:root {
  --bg: #000000;
  --purple-glow: #7039a6;
  --teal-glow: #58e1d0;
  --accent: #58e1d0;
  --glass: rgba(255, 255, 255, 0.04);
  --glass-hover: rgba(255, 255, 255, 0.07);
  --border: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(88, 225, 208, 0.35);
  --text: #ffffff;
  --text-2: rgba(255, 255, 255, 0.5);
  --text-3: rgba(255, 255, 255, 0.22);
  --font: 'Inter', sans-serif;
  --radius: 28px;
  --ease: cubic-bezier(0.165, 0.84, 0.44, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  min-height: 100vh;
  overflow-x: hidden;
}

/* ─── Glows — match business card values ─── */
.bg-glow-purple {
  position: fixed;
  top: -25%;
  left: -25%;
  width: 150%;
  height: 150%;
  /* More saturated and solid core for vibrancy */
  background: radial-gradient(circle at 20% 20%,
      rgba(112, 57, 166, 1) 0%,
      rgba(112, 57, 166, 0.6) 20%,
      rgba(112, 57, 166, 0.2) 45%,
      transparent 75%);
  opacity: 0.75;
  will-change: transform;
  z-index: 0;
  pointer-events: none;
  transform: translateZ(0);
}

.bg-glow-teal {
  position: fixed;
  bottom: -25%;
  right: -25%;
  width: 150%;
  height: 150%;
  background: radial-gradient(circle at 80% 80%,
      rgba(88, 225, 208, 0.9) 0%,
      rgba(88, 225, 208, 0.5) 20%,
      rgba(88, 225, 208, 0.1) 45%,
      transparent 75%);
  opacity: 0.65;
  will-change: transform;
  z-index: 0;
  pointer-events: none;
  transform: translateZ(0);
}

/* ─── Bento Grid ─── */
.bento-grid {
  position: relative;
  z-index: 10;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: auto;
  gap: 12px;
  padding: 24px;
  min-height: 100vh;
  max-width: 1100px;
  margin: 0 auto;
  align-content: center;
}

/* ─── Glass Card Base ─── */
.bento-card {
  background: var(--glass);
  backdrop-filter: blur(16px) saturate(250%);
  -webkit-backdrop-filter: blur(16px) saturate(250%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.6);
  will-change: transform, opacity;
  opacity: 0;
  transform: translateY(15px) translateZ(0);
  backface-visibility: hidden;
  transition: opacity 0.4s ease-out, transform 0.4s ease-out, background 0.35s var(--ease), border-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
  overflow: hidden;
  position: relative;
}

.bento-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.bento-card:hover {
  background: var(--glass-hover);
  border-color: rgba(88, 225, 208, 0.35);
  transform: translateY(-3px);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(88, 225, 208, 0.08);
}

@keyframes cardIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

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

/* Staggered delays */
.bento-grid>*:nth-child(1) {
  animation-delay: 0.05s;
}

.bento-grid>*:nth-child(2) {
  animation-delay: 0.05s;
}

.bento-grid>*:nth-child(3) {
  animation-delay: 0.1s;
}

.bento-grid>*:nth-child(4) {
  animation-delay: 0.15s;
}

.bento-grid>*:nth-child(5) {
  animation-delay: 0.2s;
}

.bento-grid>*:nth-child(6) {
  animation-delay: 0.25s;
}

.bento-grid>*:nth-child(7) {
  animation-delay: 0.3s;
}

/* ─── Gradient text ─── */
.grad {
  background: linear-gradient(135deg, #fff 10%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ─── HERO CARD ─── */
.card-hero {
  grid-column: span 2;
  display: flex;
  gap: 28px;
  align-items: center;
  padding: 36px;
}

.hero-photo-wrap {
  flex-shrink: 0;
  width: 160px;
  height: 160px;
  border-radius: 26px;
  background: linear-gradient(135deg, rgba(88, 225, 208, 0.3), rgba(112, 57, 166, 0.3));
  padding: 3px;
}

.hero-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 19px;
  display: block;
}

.hero-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-2);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  margin-bottom: 6px;
}

.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  animation: dotpulse 2.5s infinite;
}

@keyframes dotpulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.4;
  }
}

.hero-name {
  font-size: clamp(36px, 4vw, 52px);
  font-weight: 800;
  letter-spacing: -2px;
  line-height: 0.92;
  margin-bottom: 8px;
}

.hero-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 2.5px;
}

.hero-hook {
  font-size: 15px;
  font-weight: 400;
  color: var(--text-2);
  line-height: 1.55;
  margin-top: 8px;
  font-style: italic;
}

.hero-cta {
  display: inline-block;
  margin-top: 16px;
  padding: 9px 20px;
  border-radius: 100px;
  background: rgba(88, 225, 208, 0.1);
  border: 1px solid rgba(88, 225, 208, 0.35);
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-decoration: none;
  text-transform: uppercase;
  transition: background 0.3s var(--ease), transform 0.25s var(--ease);
}

.hero-cta:hover {
  background: rgba(88, 225, 208, 0.18);
  transform: translateY(-2px);
}

/* ─── TAGLINE CARD ─── */
.card-tagline {
  grid-column: span 2;
  display: flex;
  flex-direction: column;
  gap: 12px;
  justify-content: center;
}

.tagline-text {
  font-size: 16px;
  color: var(--text-2);
  line-height: 1.8;
}

.tagline-text strong {
  color: var(--text);
  font-weight: 700;
}

/* ─── CHIPS CARD ─── */
.card-chips {
  grid-column: span 2;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--accent);
}

.chip-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.chip-group-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--text-3);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.chip {
  padding: 7px 14px;
  border-radius: 100px;
  background: rgba(88, 225, 208, 0.06);
  border: 1px solid rgba(88, 225, 208, 0.18);
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.03em;
  white-space: nowrap;
}

/* ─── SERVICES CARD ─── */
.card-services {
  grid-column: 1 / 3;
  grid-row: span 3;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.services-intro {
  font-size: 15px;
  color: var(--text-2);
  line-height: 1.65;
  margin-bottom: 4px;
}

.service-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.service-item {
  padding: 14px 0 14px 16px;
  border-left: 2px solid rgba(88, 225, 208, 0.25);
  transition: border-color 0.3s var(--ease);
}

.service-item:not(:last-child) {
  margin-bottom: 4px;
}

.service-item:hover {
  border-left-color: var(--accent);
}

.service-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 5px;
  letter-spacing: -0.2px;
}

.service-desc {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.6;
}

/* ─── TOOLS CARD ─── */
.card-tools {
  grid-column: 3 / 5;
  grid-row: 2;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* ─── QUOTE CARD ─── */
.card-quote {
  grid-column: 3 / 5;
  grid-row: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 20px;
  padding: 48px 40px;
  background: linear-gradient(135deg, rgba(112, 57, 166, 0.08) 0%, rgba(88, 225, 208, 0.06) 100%);
  border: 1px solid rgba(88, 225, 208, 0.18);
  position: relative;
  overflow: hidden;
}

/* decorative glow behind the quote */
.card-quote::after {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(88, 225, 208, 0.06), transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.quote-mark {
  display: none;
}

.quote {
  font-size: clamp(18px, 2.5vw, 26px);
  font-style: normal;
  font-weight: 800;
  color: var(--text);
  line-height: 1.3;
  letter-spacing: -0.5px;
  position: relative;
  z-index: 1;
}

.quote span.teal {
  color: var(--accent);
}

.quote-sub {
  font-size: 15px;
  color: var(--text-2);
  line-height: 1.65;
  font-weight: 300;
  max-width: 420px;
}

/* ─── PROCESS CARD ─── */
.card-process {
  grid-column: 3 / 5;
  grid-row: 4;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.process-steps {
  display: flex;
  align-items: flex-start;
  gap: 0;
  flex: 1;
}

.process-step {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.process-num {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -1px;
  background: linear-gradient(135deg, var(--accent) 0%, rgba(88, 225, 208, 0.4) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 4px;
}

.process-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.2px;
}

.process-desc {
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.55;
}

.process-divider {
  width: 1px;
  height: 60px;
  background: var(--border);
  flex-shrink: 0;
  margin: 8px 16px 0;
}

.card-stats {
  grid-column: span 2;
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 8px;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex: 1;
  text-align: center;
}

.stat-num {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -1.5px;
  background: linear-gradient(135deg, #fff 20%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.stat-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-2);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  text-align: center;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
  flex-shrink: 0;
}

/* ─── Card micro label (bio) ─── */
.card-micro-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--accent);
  margin-bottom: 12px;
  display: block;
}

/* ─── EMAIL / PHONE CARDS ─── */
.card-email,
.card-phone {
  grid-column: span 1;
  text-decoration: none;
  color: var(--text);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
  cursor: pointer;
}

.contact-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--accent);
}

.contact-value {
  font-size: 15px;
  font-weight: 600;
  word-break: normal;
  white-space: nowrap;
}

.arrow {
  font-size: 20px;
  color: var(--text-3);
  margin-top: 4px;
  display: block;
  transition: color 0.3s, transform 0.3s;
}

.card-email:hover .arrow,
.card-phone:hover .arrow {
  color: var(--accent);
  transform: translateX(4px);
}

/* ─── AVAILABILITY CARD ─── */
.card-available {
  grid-column: span 2;
  display: flex;
  flex-direction: column;
  gap: 12px;
  justify-content: center;
}

.avail-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 10px rgba(74, 222, 128, 0.6);
  animation: dotpulse 2.5s infinite;
  display: block;
}

.avail-title {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.3px;
  color: var(--text);
}

.avail-sub {
  font-size: 15px;
  color: var(--text-2);
  line-height: 1.7;
}

.avail-cta {
  display: inline-block;
  margin-top: 4px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  text-decoration: none;
  transition: opacity 0.3s;
}

.avail-cta:hover {
  opacity: 0.7;
}

/* ─── SOCIALS CARD ─── */
.card-socials {
  grid-column: span 2;
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 12px;
}

.social-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--text-2);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  transition: color 0.3s;
  flex: 1;
}

.social-btn svg {
  width: 22px;
  height: 22px;
  transition: transform 0.3s;
}

.social-btn:hover {
  color: var(--accent);
}

.social-btn:hover svg {
  transform: translateY(-3px);
}

/* ─── FOOTER ─── */
.footer {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: 16px 24px 28px;
  font-size: 13px;
  color: var(--text-3);
  letter-spacing: 0.05em;
}

/* ─── Tablet (≤ 1024px) — 2×2 grid ─── */
@media (max-width: 1024px) {
  .bento-grid {
    grid-template-columns: 1fr 1fr;
    max-width: 800px;
    gap: 12px;
    padding: 20px;
    align-content: start;
    min-height: auto;
    padding-top: 32px;
  }

  /* All cards span 1 column except hero, quote, socials */
  .card-hero {
    grid-column: span 2;
  }

  .card-tagline {
    grid-column: span 2;
  }

  .card-services {
    grid-column: span 2;
    grid-row: auto;
  }

  .card-tools {
    grid-column: span 2;
    grid-row: auto;
  }

  .card-quote {
    grid-column: span 2;
    grid-row: auto;
  }

  .card-process {
    grid-column: span 2;
    grid-row: auto;
  }

  .card-email {
    grid-column: span 1;
  }

  .card-phone {
    grid-column: span 1;
  }

  .card-stats {
    grid-column: span 2;
  }

  .card-socials {
    grid-column: span 2;
  }

  .hero-name {
    font-size: clamp(38px, 5vw, 52px);
  }
}

/* ─── Small tablet / large phone (≤ 680px) ─── */
@media (max-width: 680px) {
  .bento-grid {
    grid-template-columns: 1fr 1fr;
    padding: 14px;
    gap: 10px;
  }

  .card-hero {
    flex-direction: column !important;
    text-align: center !important;
    align-items: center !important;
    gap: 24px !important;
    padding: 32px 24px !important;
  }

  .eyebrow {
    justify-content: center !important;
  }

  .hero-photo-wrap {
    width: 140px !important;
    height: 140px !important;
    border-radius: 24px !important;
    margin: 0 auto !important;
  }

  .hero-photo {
    border-radius: 15px;
  }

  .hero-name {
    font-size: 32px;
    letter-spacing: -1.5px;
  }

  .bento-card {
    padding: 22px 18px;
  }

  .tagline-text {
    font-size: 15px;
  }

  .quote {
    font-size: 16px;
  }
}

/* ─── Mobile (≤ 430px) — full 1-column stack ─── */
@media (max-width: 430px) {
  .bento-grid {
    grid-template-columns: 1fr;
    padding: 16px;
    gap: 16px;
  }

  .card-hero,
  .card-tagline,
  .card-services,
  .card-tools,
  .card-quote,
  .card-process,
  .card-stats,
  .card-email,
  .card-phone,
  .card-available,
  .card-socials {
    grid-column: 1 / -1 !important;
  }

  /* Hide sections that don't work on mobile */
  .card-process {
    display: none !important;
  }

  /* Force stack sections that were cramped */
  .process-steps {
    display: flex !important;
    flex-direction: column !important;
    gap: 28px !important;
    align-items: flex-start !important;
    /* Switch to left-align for balance */
    text-align: left !important;
  }

  .stats-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 32px !important;
    align-items: center !important;
    text-align: center !important;
  }

  .process-divider {
    display: block !important;
    width: 40px !important;
    height: 1px !important;
    margin: 4px 0 !important;
    /* Left-aligned divider */
    background: rgba(255, 255, 255, 0.1) !important;
  }

  .stat-divider {
    display: block !important;
    width: 60px !important;
    height: 1px !important;
    margin: 8px auto !important;
    background: rgba(255, 255, 255, 0.1) !important;
  }

  /* Stack Email & Phone */
  .contact-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 16px !important;
  }

  /* Fix for glow overflow */
  .bg-glow-purple,
  .bg-glow-teal {
    width: 100% !important;
    left: 0 !important;
    right: 0 !important;
  }

  .card-stats {
    flex-direction: column;
    gap: 16px;
  }

  .stat-divider {
    width: 40px;
    height: 1px;
  }

  .card-hero {
    flex-direction: row;
    align-items: center;
  }

  .hero-name {
    font-size: 38px;
    line-height: 1.1;
  }

  .card-socials {
    flex-direction: row;
    justify-content: center;
    gap: 32px;
  }

  .bento-card {
    padding: 20px 18px;
    border-radius: 20px;
  }
}