/* Developers hero — full viewport first section, footer below */

body.developer-hero-layout {
  min-height: 100vh;
  background: #0a0a0a;
}

body.developer-hero-layout #main-content {
  flex: 0 0 auto;
  display: block;
  margin: 0;
  padding: var(--nav-height, 60px) 0 0;
  box-sizing: border-box;
}

body.developer-hero-layout footer {
  flex-shrink: 0;
}

.developer-hero {
  position: relative;
  isolation: isolate;
  width: 100%;
  height: calc(100vh - var(--nav-height, 60px));
  min-height: calc(100vh - var(--nav-height, 60px));
  min-height: calc(100dvh - var(--nav-height, 60px));
  overflow: hidden;
}

.developer-hero--light {
  --dh-text: #2b2b2b;
  --dh-muted: #4a4a4a;
  --dh-soft: #6b6f76;
  --dh-rule: rgba(43, 43, 43, 0.35);
}

.developer-hero--dark {
  --dh-text: #f5f5f5;
  --dh-muted: rgba(245, 245, 245, 0.88);
  --dh-soft: rgba(245, 245, 245, 0.72);
  --dh-rule: rgba(245, 245, 245, 0.4);
}

.developer-hero__bg {
  position: absolute;
  inset: 0;
  background-image: var(--dev-hero-image);
  background-repeat: no-repeat;
  background-size: cover;
  /* Anchor image top to hero top; crop from bottom only */
  background-position: var(--dev-hero-position, 50% top);
  transform: scale(1);
  transform-origin: center top;
  animation: dhBgSlowZoom 24s ease-in-out infinite alternate;
}

.developer-hero__inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  height: 100%;
  max-width: min(54rem, 82vw);
  padding: clamp(3.5rem, 12vh, 7rem) clamp(1.75rem, 5.5vw, 5rem) 2rem;
  text-align: left;
}

.developer-hero__title {
  margin: 0;
  padding: 0;
  font-family: var(--font-inter, "Inter", Arial, Helvetica, sans-serif);
  font-size: clamp(2.75rem, 7.5vw, 5.5rem);
  font-weight: 800;
  line-height: 0.92;
  letter-spacing: -0.025em;
  text-transform: uppercase;
  color: var(--dh-text);
  opacity: 0;
  transform: translateY(20px);
  animation: dhTitleReveal 1s cubic-bezier(0.22, 1, 0.36, 1) 0.1s forwards;
}

.developer-hero__title-line {
  display: block;
}

.developer-hero__copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  max-width: 34rem;
  margin-top: clamp(1.75rem, 3.5vw, 2.5rem);
}

.developer-hero__lead {
  margin: 0;
  width: 100%;
  font-family: var(--font-inter, "Inter", Arial, Helvetica, sans-serif);
  font-size: clamp(1rem, 2vw, 1.35rem);
  font-weight: 500;
  line-height: 1.5;
  color: var(--dh-muted);
  opacity: 0;
  animation: dhFadeUp 0.95s cubic-bezier(0.22, 1, 0.36, 1) 0.32s forwards;
}

.developer-hero__rule {
  width: clamp(3.25rem, 7vw, 4.75rem);
  height: 1px;
  margin: clamp(1.5rem, 2.8vw, 2.15rem) 0 0;
  background: var(--dh-rule);
  opacity: 0;
  animation: dhFadeUp 0.85s cubic-bezier(0.22, 1, 0.36, 1) 0.44s forwards;
}

.developer-hero__note {
  margin: clamp(1rem, 2vw, 1.35rem) 0 0;
  width: 100%;
  font-family: var(--font-inter, "Inter", Arial, Helvetica, sans-serif);
  font-size: clamp(0.95rem, 1.6vw, 1.1rem);
  font-weight: 400;
  line-height: 1.45;
  color: var(--dh-soft);
  opacity: 0;
  animation: dhFadeUp 0.95s cubic-bezier(0.22, 1, 0.36, 1) 0.52s forwards;
}

@keyframes dhBgSlowZoom {
  from { transform: scale(1); }
  to { transform: scale(1.03); }
}

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

@keyframes dhFadeUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 900px) {
  .developer-hero__title {
    font-size: clamp(2.1rem, 11vw, 3.25rem);
  }

  .developer-hero__inner {
    max-width: 92vw;
    padding-right: 1.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .developer-hero__bg,
  .developer-hero__title,
  .developer-hero__lead,
  .developer-hero__rule,
  .developer-hero__note {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}
