:root {
  --nav-height: 64px;
}

html {
  scrollbar-width: thin;
}

html::-webkit-scrollbar {
  width: 3px !important;
  background: transparent;
}

html::-webkit-scrollbar-track {
  background: transparent;
}

html::-webkit-scrollbar-thumb {
  background: var(--color-primary-1);
  border-radius: 2px;
}

html::-webkit-scrollbar-thumb:hover {
  background: var(--color-accent-1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: var(--color-navy);
  color: var(--color-white);
  font-family: var(--font-body);
  overflow-x: hidden;
}

.dot-grid {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, black 40%, transparent 100%);
  mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, black 40%, transparent 100%);
}

main {
  position: relative;
  z-index: 1;
  padding-top: var(--nav-height);
  min-height: 100vh;
}

/* ── Hero Section ── */
.hero {
  position: relative;
  width: 100%;
  height: calc(100vh - var(--nav-height));
  overflow: hidden;
}

.hero-particles {
  position: fixed;
  top: var(--nav-height);
  left: 0;
  width: 100%;
  height: calc(100% - var(--nav-height));
  z-index: 0;
  pointer-events: none;
}

.cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.7);
  pointer-events: none;
  z-index: 9999;
  opacity: 0;
}

.hero-grid {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  padding: 0 var(--space-lg);
  max-width: var(--container-max);
  margin: 0 auto;
  transform: translateY(0);
  gap: var(--space-2xl);
  pointer-events: none;
}

.hero-content {
  text-align: left;
  pointer-events: none;
  overflow: visible;
  min-width: 0;
  position: relative;
  z-index: 1;
}

.hero-right {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  pointer-events: none;
  gap: 0;
  position: relative;
  z-index: 2;
}

/* ── Architecture Blueprint (Right Side) ── */
.arch-blueprint {
  position: relative;
  min-width: 0;
  max-width: 92%;
  width: 92%;
  aspect-ratio: 500 / 380;
}

.arch-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

/* ── Connection Lines ── */
.arch-line {
  stroke: rgba(255, 255, 255, 0.35);
  stroke-width: 1.5;
  fill: none;
}

.arch-line--accent {
  stroke: rgba(164, 110, 255, 0.7);
  stroke-width: 1.5;
}

.arch-line--bus {
  stroke: rgba(82, 109, 255, 0.9);
  stroke-width: 1.5;
}

.arch-line--thin {
  stroke: rgba(255, 255, 255, 0.22);
  stroke-width: 1;
}

/* ── Pulse Dots ── */
.arch-pulse {
  fill: var(--color-primary-2);
  filter: url(#pulseGlow);
  opacity: 0.9;
}

.arch-pulse--accent {
  fill: var(--color-accent-1);
}

/* ── Node Base ── */
.arch-node__bg {
  fill: rgba(13, 17, 23, 0.95);
  stroke: rgba(255, 255, 255, 0.3);
  stroke-width: 1.2;
}

.arch-node__bg--primary {
  fill: rgba(82, 109, 255, 0.25);
  stroke: rgba(82, 109, 255, 0.75);
  stroke-width: 1.5;
}

.arch-node__bg--infra {
  fill: rgba(124, 55, 252, 0.22);
  stroke: rgba(164, 110, 255, 0.7);
  stroke-width: 1.2;
}

.arch-node__bg--service {
  fill: rgba(66, 143, 255, 0.18);
  stroke: rgba(100, 170, 255, 0.6);
  stroke-width: 1.2;
}

.arch-node__bg--db {
  fill: rgba(82, 109, 255, 0.18);
  stroke: rgba(82, 109, 255, 0.7);
  stroke-width: 1.2;
}
.arch-db-top {
  fill: rgba(82, 109, 255, 0.3);
  stroke: rgba(82, 109, 255, 0.7);
}

/* ── Node Labels ── */
.arch-node__label {
  font-family: var(--font-primary);
  font-size: 12px;
  font-weight: 600;
  fill: #fff;
  text-anchor: middle;
  letter-spacing: 0.03em;
}

.arch-node__label--primary {
  fill: #fff;
  font-size: 14px;
  font-weight: 700;
}

.arch-node__label--infra {
  fill: #b485ff;
  font-size: 12px;
  font-weight: 700;
}

.arch-node__label--service {
  fill: #7ab8ff;
  font-size: 11.5px;
  font-weight: 600;
}

.arch-node__sublabel {
  font-family: var(--font-primary);
  font-size: 10px;
  fill: rgba(255, 255, 255, 0.7);
  text-anchor: middle;
  letter-spacing: 0.05em;
}

.arch-bus-label {
  font-family: var(--font-primary);
  font-size: 10.5px;
  fill: rgba(100, 150, 255, 0.9);
  text-anchor: middle;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
}

/* ── Architecture Tooltip ── */
.arch-tooltip {
  position: absolute;
  pointer-events: none;
  z-index: 20;
  max-width: 220px;
  padding: 10px 14px;
  border-radius: 10px;
  background: rgba(10, 14, 24, 0.95);
  border: 1px solid rgba(82, 109, 255, 0.35);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5), 0 0 20px rgba(82, 109, 255, 0.1);
  backdrop-filter: blur(12px);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.2s, transform 0.2s;
}
.arch-tooltip--visible {
  opacity: 1;
  transform: translateY(0);
}
.arch-tooltip__title {
  font-family: var(--font-primary);
  font-size: 11px;
  font-weight: 700;
  color: #7ab8ff;
  margin-bottom: 4px;
  letter-spacing: 0.02em;
}
.arch-tooltip__desc {
  font-family: var(--font-body, Inter, sans-serif);
  font-size: 10.5px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.72);
}

/* SVG node interaction */
.arch-node[data-tooltip] { cursor: pointer; pointer-events: all; }
.arch-chip { cursor: pointer; }
.arch-node--hover {
  filter: brightness(1.2) drop-shadow(0 0 6px rgba(82, 109, 255, 0.4));
}

/* ── Service Line Drop Zone ── */
.arch-service-line {
  position: absolute;
  left: 2%;
  width: 96%;
  top: 60.53%;
  height: 12.63%;
  pointer-events: auto;
  z-index: 2;
  border: 1.5px dashed transparent;
  border-radius: 8px;
  transition: border-color 0.25s, background 0.25s;
}
.arch-service-line--hover {
  border-color: rgba(66, 143, 255, 0.4);
  background: rgba(66, 143, 255, 0.05);
}

/* ── Placed Service Chips (positioned by JS) ── */
.arch-chip--placed {
  position: absolute;
  top: 60.53%;
  width: 16%;
  height: 12.63%;
  z-index: 3;
  transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s;
}

/* ── Draggable Service Chips ── */
.arch-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: rgba(66, 143, 255, 0.14);
  border: 1.2px solid rgba(100, 170, 255, 0.6);
  cursor: grab;
  user-select: none;
  touch-action: none;
  pointer-events: auto;
  transition: opacity 0.2s, transform 0.15s, box-shadow 0.2s;
}
.arch-chip:hover { box-shadow: 0 0 12px rgba(66, 143, 255, 0.2); }
.arch-chip:active { cursor: grabbing; }
.arch-chip[data-permanent] { cursor: default; }
.arch-chip[data-permanent]:active { cursor: default; }
.arch-chip--dragging { opacity: 0.3; }
.arch-chip--ghost {
  opacity: 0.9;
  transform: scale(1.05);
  box-shadow: 0 8px 32px rgba(82, 109, 255, 0.3);
  cursor: grabbing;
  pointer-events: none;
  border-radius: 8px;
  background: rgba(66, 143, 255, 0.2);
  border: 1.2px solid rgba(100, 170, 255, 0.7);
}
.arch-chip__name {
  font-family: var(--font-primary);
  font-size: 11.5px;
  font-weight: 600;
  color: #7ab8ff;
  line-height: 1.2;
}
.arch-chip__sub {
  font-family: var(--font-primary);
  font-size: 10px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.2;
}

/* ── Module Tray (6th line below DB) ── */
.arch-tray {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px 14px 6px;
  border: 1.5px dashed rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  background: rgba(13, 17, 23, 0.4);
  align-items: center;
  pointer-events: auto;
  flex-shrink: 0;
  width: fit-content;
  max-width: 100%;
  margin-top: 6%;
  transition: border-color 0.25s, background 0.25s, width 0.3s;
}
.arch-tray--expanded {
  width: 100%;
}
.arch-tray__chips {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  align-items: center;
}
.arch-tray--hover {
  border-color: rgba(82, 109, 255, 0.5);
  background: rgba(82, 109, 255, 0.05);
}
.arch-tray__label {
  font-family: var(--font-primary);
  font-size: 10px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
.arch-tray .arch-chip {
  width: 80px;
  height: 42px;
  flex-shrink: 0;
}

.hero-tag {
  display: inline-block;
  font-family: var(--font-primary);
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--color-primary-2);
  padding: var(--space-sm) var(--space-lg);
  border: 1px solid rgba(66, 143, 255, 0.3);
  border-radius: var(--radius-full);
  margin-bottom: var(--space-lg);
}

.hero-content h1 {
  font-family: var(--font-primary);
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: var(--weight-bold);
  color: var(--color-white);
  letter-spacing: -0.04em;
  line-height: 1.1;
  margin-bottom: 0;
  min-height: 2.4em;
}

.hero-line-1,
.hero-line-2 {
  display: block;
}

.hero-outline {
  -webkit-text-stroke: 1.5px var(--color-white);
  color: transparent;
}

.hero-content h1 .grad {
  background: linear-gradient(135deg, #7c37fc 0%, #526dff 50%, #3c9cff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-slot-reel {
  display: block;
  overflow: visible;
  position: relative;
  border-radius: var(--radius-lg, 12px);
  border: 1px solid rgba(82, 109, 255, 0.3);
  padding: 0 var(--space-lg);
  margin-top: var(--space-xl);
  transition: width 0.4s ease, height 0.3s ease;
  width: fit-content;
}

.hero-slot-word {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  padding-left: var(--space-lg);
  padding-right: var(--space-lg);
  white-space: nowrap;
  opacity: 0;
  transform: translateY(calc(var(--vshift, 0px) + 40%));
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  background: linear-gradient(135deg, #7c37fc 0%, #526dff 50%, #3c9cff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-stroke: 0;
}

.hero-slot-word.active {
  opacity: 1;
  transform: translateY(var(--vshift, 0px));
}

.hero-slot-word.exit {
  opacity: 0;
  transform: translateY(calc(var(--vshift, 0px) - 40%));
}

.hero-content p {
  font-family: var(--font-primary);
  font-size: var(--text-lg);
  color: rgba(255, 255, 255, 0.66);
  max-width: 100%;
  margin-top: var(--space-lg);
  letter-spacing: -0.02em;
  line-height: 1.6;
}

.hero-buttons {
  display: flex;
  gap: var(--space-md);
  margin-top: var(--space-xl);
  pointer-events: auto;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

/* ── Navbar (main site structure, dark theme) ── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-sticky);
  height: var(--nav-height);
  background: rgba(10, 22, 40, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.2);
  transition: box-shadow var(--transition-base);
}

.nav.scrolled {
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
}

.nav-container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--font-primary);
  font-size: var(--text-xl);
  font-weight: var(--weight-bold);
  letter-spacing: -0.02em;
  text-decoration: none;
}

.logo-text {
  display: flex;
  align-items: baseline;
  gap: var(--space-xs);
}

.logo-crest {
  color: var(--color-primary-1);
}

.logo-ampersand {
  font-family: var(--font-body);
  color: var(--color-primary-2);
  font-weight: var(--weight-semibold);
}

.logo-core {
  color: var(--color-primary-2);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
  list-style: none;
}

.nav-links > li {
  display: flex;
  align-items: center;
}

.nav-link {
  display: inline-block;
  font-size: var(--text-md);
  font-weight: var(--weight-medium);
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  position: relative;
  padding: var(--space-sm) 0;
  transition: color var(--transition-base);
}

.nav-link:hover {
  color: var(--color-white);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-primary-1);
  transition: width var(--transition-base);
}

.nav-link:hover::after {
  width: 100%;
}


/* Mobile menu button */
.nav-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: var(--space-sm);
  background: none;
  border: none;
  cursor: pointer;
}

.nav-menu-btn span {
  display: block;
  width: 24px;
  height: 2px;
  background: rgba(255, 255, 255, 0.85);
  transition: transform var(--transition-fast), opacity var(--transition-fast);
  transform-origin: center;
}

.nav-menu-btn.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-menu-btn.active span:nth-child(2) {
  opacity: 0;
}

.nav-menu-btn.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile menu (matches main site) */
.nav-menu {
  display: none;
  position: fixed;
  top: var(--nav-height);
  left: 0;
  right: 0;
  background: rgba(10, 22, 40, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding: var(--space-lg);
  z-index: calc(var(--z-sticky) - 1);
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
  transition: transform var(--transition-base), opacity var(--transition-base);
}

.nav-menu.active {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.nav-menu-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  list-style: none;
}

.nav-menu-links .nav-link {
  font-size: var(--text-lg);
  color: rgba(255, 255, 255, 0.8);
}

.nav-menu-links .nav-link:hover {
  color: var(--color-white);
}

/* ── Specializations (Bento Scroll) ── */
.specializations {
  padding: var(--space-4xl) 0;
  position: relative;
}

.specializations .section-header {
  margin-bottom: var(--space-2xl);
}

.specializations .section-title {
  font-family: var(--font-primary);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.03em;
  margin-top: var(--space-sm);
}

.gradient-text {
  background: linear-gradient(135deg, #7c37fc 0%, #526dff 50%, #3c9cff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto auto;
  grid-template-areas:
    "a a b"
    "g c e"
    "g f f";
  gap: var(--space-md);
  padding: var(--space-sm) 0 var(--space-xl) 0;
}

.bento-card {
  position: relative;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 24px;
  padding: var(--space-lg) var(--space-lg) var(--space-md);
  display: flex;
  flex-direction: column;
  gap: 0;
  transition: border-color 0.3s, box-shadow 0.3s;
  overflow: hidden;
}

.bento-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 0% 0%, rgba(82, 109, 255, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.bento-card:hover {
  border-color: rgba(82, 109, 255, 0.3);
  box-shadow: 0 8px 24px rgba(82, 109, 255, 0.08);
}

.bento-icon {
  width: 48px;
  height: 48px;
  margin-bottom: var(--space-md);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(82, 109, 255, 0.1);
  color: var(--color-primary-2);
}

.bento-title {
  font-family: var(--font-primary);
  font-size: var(--text-lg);
  font-weight: 600;
  color: #fff;
  letter-spacing: -0.02em;
}

.bento-desc {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.66);
  line-height: 1.6;
  margin-top: var(--space-sm);
}

.bento-list {
  list-style: none;
  padding: 0;
  margin: var(--space-sm) 0 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.bento-list li {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.5;
  padding-left: 1.25rem;
  position: relative;
}

.bento-list li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--color-primary-1);
  font-weight: 600;
}

.bento-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
  margin-top: auto;
  padding-top: var(--space-md);
}

.bento-tags span {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 500;
  padding: 5px 12px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.8);
  letter-spacing: 0.01em;
}


/* Responsive layouts */
/* Desktop default: base styles above */

/* Tablet layout */
.bento-mobile-progress {
  display: none;
}

@media (max-width: 1024px) and (min-width: 768px) {
  .nav-links {
    display: none;
  }

  .nav-menu-btn {
    display: flex;
  }

  .nav-menu {
    display: block;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    transform: translateY(0);
  }

  .hero-right {
    display: none;
  }

  .hero-content {
    text-align: center;
    max-width: 760px;
  }

  .hero-content p {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero-slot-reel {
    margin-left: auto;
    margin-right: auto;
  }

  .bento-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "a b"
      "c d"
      "e f"
      "g g";
  }
}

/* ── About Section ── */
.about {
  position: relative;
  z-index: 1;
  padding: var(--space-4xl) 0;
}

.about-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-lg);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
}

.about-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.section-label {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-primary-1);
}

.about-title {
  font-family: var(--font-primary);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
}

.about-text {
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.7;
}

.about-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  font-family: var(--font-primary);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-primary-1);
  text-decoration: none;
  margin-top: var(--space-sm);
  transition: gap 0.2s;
}

.about-link:hover {
  gap: var(--space-sm);
}

.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}

.stat-card {
  position: relative;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  text-align: center;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(82, 109, 255, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.stat-number {
  font-family: var(--font-primary);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 700;
  background: linear-gradient(135deg, #7c37fc 0%, #526dff 50%, #3c9cff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.5);
}

.stat-card--link {
  text-decoration: none;
  border-color: rgba(82, 109, 255, 0.15);
  transition: border-color 0.2s, box-shadow 0.2s;
  cursor: pointer;
}

.stat-card--link::before {
  pointer-events: none;
}

.stat-card--link:hover {
  border-color: rgba(82, 109, 255, 0.4);
  box-shadow: 0 8px 24px rgba(82, 109, 255, 0.1);
}

.stat-card--link .stat-icon {
  color: var(--color-primary-1);
}

.stat-card--link .stat-icon svg {
  width: clamp(1.5rem, 2.5vw, 2rem);
  height: clamp(1.5rem, 2.5vw, 2rem);
}

/* Mobile layout */
@media (max-width: 767px) {
  .bento-list {
    display: none;
  }

  .nav-links {
    display: none;
  }

  .nav-menu-btn {
    display: flex;
  }

  .nav-menu {
    display: block;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    transform: translateY(0);
    gap: var(--space-lg);
    padding: 0 var(--space-md);
  }

  .hero-right {
    display: none;
  }

  .hero-content {
    text-align: center;
    max-width: 100%;
  }

  .hero-content p {
    margin-left: auto;
    margin-right: auto;
    font-size: var(--text-md);
  }

  .hero-buttons {
    justify-content: center;
    flex-wrap: wrap;
  }

  .hero-slot-reel {
    margin-left: auto;
    margin-right: auto;
  }

  .bento-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: var(--space-md);
    padding-bottom: var(--space-sm);
  }

  .bento-grid::-webkit-scrollbar {
    display: none;
  }

  .bento-grid .bento-card {
    flex: 0 0 78vw;
    min-height: 240px;
    scroll-snap-align: center;
  }

  .bento-scroll-wrap {
    position: relative;
  }

  .bento-mobile-progress {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: var(--space-md);
  }

  .bento-progress-bar {
    width: 120px;
    height: 5px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.08);
    overflow: hidden;
  }

  .bento-progress-fill {
    height: 100%;
    border-radius: 2px;
    width: 14.28%;
    background: linear-gradient(90deg, var(--color-primary-1), var(--color-accent-1));
    transition: width 0.3s;
  }

  .about-inner {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .about-stats {
    grid-template-columns: 1fr 1fr;
  }
}

/* Short screens */
@media (max-height: 800px) {
  .hero-tag {
    display: none;
  }

  .hero-grid {
    transform: translateY(0);
  }
}

/* ── Contact Section ── */
.contact {
  position: relative;
  z-index: 1;
  padding: var(--space-4xl) 0;
  overflow: hidden;
}

.contact-streaks {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  border-radius: 24px;
}

.contact-inner {
  position: relative;
  z-index: 1;
  padding: var(--space-4xl) var(--space-lg);
  text-align: center;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 24px;
  overflow: hidden;
}

.contact-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(82, 109, 255, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.contact .section-label {
  position: relative;
  color: var(--color-primary-2);
  margin-bottom: var(--space-lg);
  display: block;
}

.contact-title {
  position: relative;
  font-family: var(--font-primary);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: var(--space-md);
}

.contact-desc {
  position: relative;
  font-family: var(--font-body);
  font-size: var(--text-md);
  color: rgba(255, 255, 255, 0.5);
  max-width: 480px;
  margin: 0 auto var(--space-xl);
  line-height: 1.6;
}

.contact-actions {
  position: relative;
  display: flex;
  gap: var(--space-md);
  justify-content: center;
}

@media (max-width: 767px) {
  .contact-actions {
    flex-direction: column;
    align-items: center;
  }
}

/* ── Footer ── */
.site-footer {
  position: relative;
  background: #060d1b;
  overflow: hidden;
  z-index: 1;
}

.footer-constellation {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.footer-inner {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding-top: var(--space-4xl);
  padding-bottom: var(--space-2xl);
  gap: var(--space-2xl);
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.footer-logo {
  font-family: var(--font-primary);
  font-size: var(--text-xl);
  font-weight: 700;
  text-transform: uppercase;
  color: #fff;
  letter-spacing: -0.01em;
}

.footer-logo .logo-ampersand {
  font-weight: 700;
}

.footer-tagline {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.4);
}

.footer-links {
  display: flex;
  gap: var(--space-3xl);
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.footer-col-title {
  font-family: var(--font-primary);
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: var(--space-xs);
}

.footer-col a {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.4);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-col a:hover {
  color: var(--color-primary-1);
}

.footer-bottom {
  position: relative;
  z-index: 1;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: var(--space-lg);
  padding-bottom: var(--space-lg);
}

.footer-copy {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.3);
}

@media (max-width: 767px) {
  .footer-inner {
    flex-direction: column;
    gap: var(--space-xl);
  }

  .footer-links {
    gap: var(--space-2xl);
  }
}
