body[data-page="home"] {
  --jm-cyan: #00e5ff;
  --jm-yellow: #ffcf38;
  --jm-ink: #100a29;
  overflow-x: hidden;
  background-color: #170b32;
  background-image:
    radial-gradient(ellipse at 75% 16%, rgba(147, 32, 149, 0.4), transparent 44%),
    linear-gradient(125deg, #201148 0%, #32104f 48%, #48104f 100%);
}

body[data-page="home"] .jm-home {
  position: relative;
  z-index: 1;
}

body[data-page="home"] main > :not(#justine-home) {
  display: none !important;
}

body[data-page="home"] .jm-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(44px, 6vw, 76px) 0 clamp(52px, 6vw, 78px);
}

body[data-page="home"] .jm-hero::before,
body[data-page="home"] .jm-hero::after {
  position: absolute;
  z-index: -1;
  content: "";
  pointer-events: none;
}

body[data-page="home"] .jm-hero::before {
  top: 14%;
  left: 7%;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--jm-cyan);
  box-shadow: 0 0 20px 5px rgba(0, 229, 255, 0.44), 220px 200px 0 -2px #ffc83d, 220px 200px 14px 0 rgba(255, 200, 61, 0.5);
  animation: jm-twinkle 4s ease-in-out infinite;
}

body[data-page="home"] .jm-hero::after {
  top: 22%;
  left: 8%;
  width: min(390px, 36vw);
  height: 230px;
  border-top: 1px solid rgba(0, 229, 255, 0.11);
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  transform: skewY(-32deg);
  opacity: 0.7;
}

body[data-page="home"] .jm-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 640px) 400px;
  align-items: center;
  gap: 40px;
  width: min(1080px, calc(100% - 48px));
}

body[data-page="home"] .jm-hero-copy {
  max-width: 640px;
  justify-self: end;
}

body[data-page="home"] .jm-eyebrow,
body[data-page="home"] .jm-kicker {
  margin: 0 0 8px;
  color: var(--jm-cyan);
  font-size: 0.79rem;
  font-weight: 800;
  letter-spacing: 0.19em;
  line-height: 1.4;
  text-transform: uppercase;
}

body[data-page="home"] .jm-eyebrow {
  color: var(--jm-yellow);
}

body[data-page="home"] .jm-hero h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(3rem, 5.5vw, 5rem);
  font-weight: 800;
  letter-spacing: -0.065em;
  line-height: 0.99;
  text-wrap: balance;
}

body[data-page="home"] .jm-tagline {
  max-width: 640px;
  margin: 16px 0 10px;
  color: var(--jm-yellow);
  font-size: clamp(1.05rem, 1.55vw, 1.4rem);
  font-weight: 700;
  line-height: 1.5;
}

body[data-page="home"] .jm-intro {
  max-width: 640px;
  margin: 0;
  color: rgba(247, 243, 255, 0.82);
  font-size: clamp(1rem, 1.25vw, 1.125rem);
  line-height: 1.65;
}

body[data-page="home"] .jm-button {
  display: inline-flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 20px;
  padding: 0 22px;
  border: 1px solid rgba(255, 229, 156, 0.65);
  border-radius: 14px;
  background: var(--jm-yellow);
  box-shadow: 0 10px 28px rgba(255, 197, 50, 0.17);
  color: #201137;
  font-size: 0.94rem;
  font-weight: 800;
  transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

body[data-page="home"] .jm-button:hover,
body[data-page="home"] .jm-button:focus-visible {
  background: #ffdb66;
  box-shadow: 0 12px 32px rgba(255, 197, 50, 0.3);
  transform: translateY(-3px);
}

body[data-page="home"] .jm-button:focus-visible {
  outline: 3px solid var(--jm-cyan);
  outline-offset: 4px;
}

body[data-page="home"] .jm-button span {
  font-size: 1.2rem;
  line-height: 1;
  transition: transform 180ms ease;
}

body[data-page="home"] .jm-button:hover span {
  transform: translateX(3px);
}

body[data-page="home"] .jm-portrait-wrap {
  position: relative;
  display: grid;
  width: 100%;
  max-width: 400px;
  aspect-ratio: 460 / 568;
  place-items: center;
  isolation: isolate;
}

body[data-page="home"] .jm-portrait-wrap::before {
  position: absolute;
  z-index: 0;
  width: 100%;
  height: 100%;
  border: 1px solid rgba(221, 193, 255, 0.34);
  border-radius: 50%;
  background: linear-gradient(155deg, rgba(202, 166, 255, 0.35), rgba(125, 68, 182, 0.2) 55%, rgba(86, 39, 139, 0.3));
  box-shadow: 0 0 80px rgba(183, 103, 226, 0.19), inset 0 0 55px rgba(255, 255, 255, 0.07);
  content: "";
}

body[data-page="home"] .jm-portrait-halo {
  position: absolute;
  z-index: -1;
  width: 108%;
  height: 104%;
  border: 1px solid rgba(223, 194, 255, 0.16);
  border-radius: 50%;
  background: radial-gradient(ellipse at 50% 40%, rgba(177, 115, 224, 0.17), rgba(111, 53, 162, 0.08) 58%, transparent 72%);
  box-shadow: 0 0 90px rgba(163, 72, 198, 0.16), inset 0 0 50px rgba(255, 255, 255, 0.035);
  animation: jm-halo 7s ease-in-out infinite;
}

body[data-page="home"] .jm-portrait {
  position: relative;
  z-index: 1;
  width: 94%;
  height: 94%;
  overflow: hidden;
  border: 14px solid #fff;
  border-radius: 50%;
  background: #d7c5e1;
  box-shadow: 0 28px 75px rgba(5, 2, 22, 0.38), 0 0 42px rgba(255, 255, 255, 0.12);
}

body[data-page="home"] .jm-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

body[data-page="home"] .jm-portrait-ring {
  position: absolute;
  z-index: 2;
  right: -3%;
  bottom: 5%;
  width: 80px;
  aspect-ratio: 1;
  border: 11px solid var(--jm-yellow);
  border-radius: 50%;
  box-shadow: 0 0 28px rgba(255, 207, 56, 0.3);
}

body[data-page="home"] .jm-services {
  padding: 32px 0 88px;
}

body[data-page="home"] .jm-section-heading {
  margin-bottom: 32px;
  text-align: center;
}

body[data-page="home"] .jm-section-heading .jm-kicker {
  margin-bottom: 8px;
}

body[data-page="home"] .jm-section-heading h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  font-weight: 750;
  letter-spacing: -0.045em;
  line-height: 1.15;
}

body[data-page="home"] .jm-service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

body[data-page="home"] .jm-service-card {
  display: flex;
  min-height: 208px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 26px;
  border: 1px solid rgba(188, 143, 255, 0.22);
  border-radius: 20px;
  background: linear-gradient(145deg, rgba(38, 17, 74, 0.76), rgba(22, 12, 49, 0.7));
  box-shadow: 0 16px 36px rgba(7, 3, 25, 0.12);
  color: inherit;
  text-decoration: none;
  transition: transform 200ms ease, border-color 200ms ease, box-shadow 200ms ease, background-color 200ms ease;
}

body[data-page="home"] .jm-service-card:hover,
body[data-page="home"] .jm-service-card:focus-visible {
  border-color: rgba(0, 229, 255, 0.65);
  background-color: rgba(45, 24, 84, 0.85);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.2), 0 0 24px rgba(0, 229, 255, 0.1);
  transform: translateY(-5px);
}

body[data-page="home"] .jm-service-card:focus-visible {
  outline: 3px solid var(--jm-cyan);
  outline-offset: 4px;
}

body[data-page="home"] .jm-service-icon {
  display: grid;
  width: 56px;
  height: 56px;
  place-items: center;
  margin-bottom: 20px;
  border-radius: 50%;
  background: #a7eaff;
  color: #10244e;
}

body[data-page="home"] .jm-service-icon svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

body[data-page="home"] .jm-service-card h3 {
  margin: 0;
  color: #fff;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.45;
}

@keyframes jm-twinkle {
  0%, 100% { opacity: 0.65; transform: scale(0.9); }
  50% { opacity: 1; transform: scale(1.15); }
}

@keyframes jm-halo {
  0%, 100% { transform: scale(0.98); }
  50% { transform: scale(1.025); }
}

@media (max-width: 1200px) {
  body[data-page="home"] .jm-hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 48%);
    gap: 28px;
  }

  body[data-page="home"] .jm-portrait-wrap {
    width: 100%;
  }

  body[data-page="home"] .jm-service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  body[data-page="home"] .header-inner {
    min-height: 70px;
  }

  body[data-page="home"] .jm-hero {
    padding-top: 62px;
  }

  body[data-page="home"] .jm-hero-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 26px;
    width: min(var(--container), calc(100% - 24px));
  }

  body[data-page="home"] .jm-hero-copy {
    max-width: 600px;
    margin: 0 auto;
    justify-self: center;
    text-align: center;
  }

  body[data-page="home"] .jm-intro,
  body[data-page="home"] .jm-tagline {
    margin-right: auto;
    margin-left: auto;
  }

  body[data-page="home"] .jm-portrait-wrap {
    width: min(100%, 400px);
    margin: 0 auto;
  }

  body[data-page="home"] .jm-portrait {
    border-width: 14px;
  }

  body[data-page="home"] .jm-portrait-halo {
    width: 108%;
  }

  body[data-page="home"] .jm-portrait-ring {
    right: -2%;
    bottom: 5%;
    width: clamp(78px, 18vw, 120px);
    border-width: 9px;
  }

}

@media (max-width: 560px) {
  body[data-page="home"] .jm-hero {
    padding: 48px 0 58px;
  }

  body[data-page="home"] .jm-hero h1 {
    font-size: clamp(2.85rem, 14vw, 4rem);
  }

  body[data-page="home"] .jm-intro {
    font-size: 0.94rem;
  }

  body[data-page="home"] .jm-portrait-wrap {
    width: min(100%, 380px);
  }

  body[data-page="home"] .jm-portrait {
    border-width: 11px;
  }

  body[data-page="home"] .jm-portrait-ring {
    right: -2%;
    bottom: 5%;
    width: clamp(68px, 20vw, 88px);
    border-width: 7px;
  }

  body[data-page="home"] .jm-services {
    padding: 22px 0 58px;
  }

  body[data-page="home"] .jm-service-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 13px;
  }

  body[data-page="home"] .jm-service-card {
    min-height: 150px;
    padding: 22px;
  }

}

@media (prefers-reduced-motion: reduce) {
  body[data-page="home"] *,
  body[data-page="home"] *::before,
  body[data-page="home"] *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
