/* Home — matches neo-brutalist theme (neo-styles.css variables) */

.home-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.home-shell .home-main {
  position: relative;
  overflow-x: clip;
  padding-bottom: 2rem;
  flex: 1;
}

.home-hero {
  position: relative;
  padding: clamp(2rem, 5vw, 4rem) 0 clamp(2.5rem, 6vw, 5rem);
  margin-bottom: 0.5rem;
}

.home-hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.home-hero__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(1px);
  opacity: 0.42;
  animation: home-orb-float 14s ease-in-out infinite;
}

.home-hero__orb--a {
  width: min(420px, 70vw);
  height: min(420px, 70vw);
  top: -120px;
  left: -100px;
  background: radial-gradient(circle at 35% 35%, var(--accent), var(--primary) 65%);
}

.home-hero__orb--b {
  width: min(320px, 55vw);
  height: min(320px, 55vw);
  bottom: -80px;
  right: -40px;
  background: radial-gradient(circle at 60% 40%, #ffd6ff, var(--pink) 70%);
  animation-delay: -4s;
}

.home-hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(47, 23, 79, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(47, 23, 79, 0.07) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 20%, black 0%, transparent 75%);
  opacity: 0.85;
}

.home-hero__particles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.35;
}

.home-hero__inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}

.home-hero__eyebrow {
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: var(--pink);
  margin-bottom: 0.5rem;
}

.home-hero__name {
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  line-height: 1.05;
  font-weight: 800;
  margin-bottom: 0.35rem;
  color: var(--text);
}

.home-hero__role {
  font-size: clamp(1.05rem, 2.4vw, 1.45rem);
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.home-hero__affil {
  font-weight: 600;
  max-width: 38ch;
  margin-bottom: 0.75rem;
}

.home-hero__intro {
  font-size: 1.02rem;
  line-height: 1.65;
  max-width: 52ch;
  opacity: 0.95;
}

.home-hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.35rem;
}

.home-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.25rem;
  border-radius: 14px;
  font-weight: 800;
  text-decoration: none;
  border: var(--border-width) solid var(--border);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.home-btn--primary {
  background: linear-gradient(135deg, var(--primary), var(--pink));
  color: var(--white);
  box-shadow: 6px 6px 0 var(--border);
}

.home-btn--ghost {
  background: var(--white);
  color: var(--text);
  box-shadow: 5px 5px 0 var(--border);
}

.home-btn:hover,
.home-btn:focus-visible {
  transform: translate(-2px, -2px);
  box-shadow: 8px 8px 0 var(--border);
  outline: none;
}

.home-hero__visual {
  display: flex;
  justify-content: center;
}

.home-hero__frame {
  position: relative;
  width: min(380px, 100%);
  aspect-ratio: 1;
  border-radius: 22px;
  border: var(--border-width) solid var(--border);
  box-shadow: 10px 10px 0 var(--border);
  background: linear-gradient(155deg, rgba(224, 170, 255, 0.45), rgba(255, 255, 255, 0.92));
  overflow: hidden;
}

.home-hero__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.home-hero__badge {
  position: absolute;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.82rem;
  border: 2px solid var(--border);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 4px 4px 0 var(--border);
}

.home-hero__badge--tl {
  top: 12px;
  left: 12px;
}

.home-hero__badge--br {
  bottom: 12px;
  right: 12px;
}

.home-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
  margin-bottom: 2.5rem;
}

.home-stat {
  text-align: center;
  padding: 1rem 0.75rem;
  border-radius: 16px;
  border: 2px solid var(--border);
  background: var(--white);
  box-shadow: 6px 6px 0 var(--border);
}

.home-stat__num {
  display: block;
  font-size: clamp(1.35rem, 3vw, 2rem);
  font-weight: 800;
  color: var(--primary);
}

.home-stat__label {
  font-weight: 700;
  font-size: 0.88rem;
  margin-top: 0.2rem;
}

.home-section {
  margin-bottom: 2.5rem;
}

.home-section__head {
  margin-bottom: 1.25rem;
}

.home-section__eyebrow {
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-size: 0.78rem;
  color: var(--pink);
  margin-bottom: 0.35rem;
}

.home-section__head h2 {
  font-size: clamp(1.45rem, 3vw, 2.1rem);
  font-weight: 800;
}

.home-section__subtext {
  margin-top: 0.4rem;
  max-width: 70ch;
  opacity: 0.9;
}

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

.home-page-card {
  display: block;
  text-decoration: none;
  color: inherit;
  border-radius: 16px;
  border: 2px solid var(--border);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(224, 170, 255, 0.2));
  box-shadow: 7px 7px 0 var(--border);
  padding: 1rem 1rem 0.9rem;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.home-page-card:hover,
.home-page-card:focus-visible {
  transform: translate(-3px, -3px);
  box-shadow: 10px 10px 0 var(--border);
  outline: none;
}

.home-page-card__icon {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  border: 2px solid var(--border);
  background: rgba(199, 125, 255, 0.25);
  margin-bottom: 0.5rem;
}

.home-page-card h3 {
  font-size: 1.02rem;
  font-weight: 800;
  margin-bottom: 0.25rem;
}

.home-page-card p {
  font-size: 0.9rem;
  line-height: 1.45;
  opacity: 0.92;
}

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

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

.home-card {
  border-radius: 16px;
  border: 2px solid var(--border);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(224, 170, 255, 0.22));
  box-shadow: 7px 7px 0 var(--border);
  padding: 1.1rem 1.15rem;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.home-card:hover {
  transform: translate(-3px, -3px);
  box-shadow: 10px 10px 0 var(--border);
}

.home-card__icon {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  border: 2px solid var(--border);
  background: rgba(199, 125, 255, 0.25);
  margin-bottom: 0.55rem;
  font-size: 1.1rem;
}

.home-card__title {
  font-size: 1.12rem;
  font-weight: 800;
  margin-bottom: 0.4rem;
}

.home-card__text {
  font-size: 0.95rem;
  line-height: 1.55;
  opacity: 0.95;
}

.home-card__tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  border: 2px solid var(--border);
  background: rgba(224, 170, 255, 0.45);
  margin-bottom: 0.55rem;
}

.home-card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.65rem;
  font-weight: 800;
  color: inherit;
  text-decoration: none;
}

.home-card__link i {
  transition: transform 0.2s ease;
}

.home-card__link:hover i,
.home-card__link:focus-visible i {
  transform: translateX(4px);
}

.home-cta {
  margin-bottom: 2rem;
}

.home-cta__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.35rem 1.5rem;
  border-radius: 18px;
  border: 2px solid var(--border);
  box-shadow: 8px 8px 0 var(--border);
  background: linear-gradient(120deg, rgba(199, 125, 255, 0.28), rgba(255, 255, 255, 0.9));
}

.home-cta__text h2 {
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  margin-bottom: 0.25rem;
}

.home-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

[data-home-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

[data-home-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

body[data-theme="dark"] .home-hero__frame {
  background: linear-gradient(155deg, rgba(155, 93, 229, 0.35), rgba(36, 19, 58, 0.95));
}

body[data-theme="dark"] .home-card,
body[data-theme="dark"] .home-stat,
body[data-theme="dark"] .home-page-card,
body[data-theme="dark"] .home-cta__inner {
  background: linear-gradient(180deg, rgba(36, 19, 58, 0.96), rgba(155, 93, 229, 0.15));
}

body[data-theme="dark"] .home-hero__badge {
  background: rgba(36, 19, 58, 0.92);
  color: var(--text);
}

@keyframes home-orb-float {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-14px) scale(1.02); }
}

@media (max-width: 1024px) {
  .home-hero__inner {
    grid-template-columns: 1fr;
  }

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

  .home-feature-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 640px) {
  .home-pages-grid,
  .home-focus-grid {
    grid-template-columns: 1fr;
  }

  .home-stats {
    grid-template-columns: 1fr;
  }

  .home-cta__inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-hero__orb,
  [data-home-reveal] {
    animation: none !important;
    transition: none !important;
  }
}
