/* ===========================================================
   HOME — page-specific layout. Depends on tokens/base/components.
   =========================================================== */

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-top: var(--header-h);
  overflow: hidden;
  /* Fallback backdrop shown behind/instead of the WebGL canvas
     (no-JS, WebGL unsupported, or prefers-reduced-motion static frame). */
  background:
    radial-gradient(60% 50% at 50% 15%, rgba(198,161,91,0.14), transparent 70%),
    radial-gradient(80% 60% at 85% 85%, rgba(47,111,94,0.12), transparent 70%),
    var(--color-ink);
}

.hero__photo {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.hero__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.82) contrast(1.08) saturate(1.35);
}

.hero__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero__confetti {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

.hero__icons {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  display: none;
}

.hero__float-icon {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: clamp(1.75rem, 2.5vw, 2.75rem);
  height: clamp(1.75rem, 2.5vw, 2.75rem);
  color: var(--color-purple-bright);
  opacity: 0.4;
  animation: hero-float var(--dur, 9s) ease-in-out var(--delay, 0s) infinite;
}

.hero__float-icon:nth-child(2n) { color: var(--color-teal-bright); }
.hero__float-icon svg { width: 100%; height: 100%; }

@keyframes hero-float {
  0%, 100% { transform: translateY(0) rotate(-4deg); }
  50% { transform: translateY(-1.1rem) rotate(4deg); }
}

@media (min-width: 48rem) {
  .hero__icons { display: block; }
}

@media (prefers-reduced-motion: reduce) {
  .hero__float-icon { animation: none; }
}

.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(10,10,11,0.35) 0%, rgba(10,10,11,0.15) 30%, rgba(10,10,11,0.55) 78%, var(--color-ink) 100%),
    radial-gradient(120% 90% at 50% 100%, rgba(10,10,11,0.2), transparent 60%);
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 2;
  padding-bottom: var(--space-9);
}

.hero__eyebrow { margin-bottom: var(--space-5); }

.hero__title {
  font-size: var(--text-5xl);
  font-weight: 500;
  max-width: 62rem;
}

.hero__title em {
  font-style: italic;
  font-weight: 400;
  color: var(--color-accent-bright);
}

.hero__row {
  margin-top: var(--space-7);
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-6);
}

.hero__lede {
  max-width: 28rem;
  font-size: var(--text-md);
  color: var(--color-fg-muted);
}

.hero__actions { display: flex; flex-wrap: wrap; gap: var(--space-4); }

.hero__scroll-cue {
  position: absolute;
  right: var(--space-gutter);
  bottom: var(--space-6);
  z-index: 2;
  display: none;
  align-items: center;
  gap: var(--space-3);
  color: var(--color-fg-faint);
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  writing-mode: vertical-rl;
}

.hero__scroll-cue::after {
  content: '';
  display: block;
  width: 1px;
  height: 3rem;
  background: linear-gradient(var(--color-accent), transparent);
  animation: scroll-cue 2.2s var(--ease-in-out-quart) infinite;
}

@keyframes scroll-cue {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  50.01% { transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ---------- About / manifesto ---------- */
.about-grid {
  display: grid;
  gap: var(--space-8);
  align-items: start;
}

.manifesto {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--text-2xl);
  line-height: var(--leading-snug);
  max-width: 44rem;
}

.manifesto .dim { color: var(--color-fg-faint); }

.about-aside {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
}

/* ---------- Industries / local-seo strip ---------- */
.industries {
  display: grid;
  gap: var(--space-8);
}

/* ---------- Section divider ---------- */
.divider { height: 1px; background: var(--color-border); border: none; }

@media (min-width: 64rem) {
  .hero__scroll-cue { display: flex; }

  .about-grid { grid-template-columns: 1.3fr 1fr; gap: var(--space-9); }

  .industries { grid-template-columns: 1fr 1.4fr; align-items: center; }
}
