/* ── Hero ── dark background, orange accent ─────────────────── */
.hero {
  background-color: var(--color-black);
  position: relative;
  z-index: 2; /* stacking context above ticker (z-index:1) */
}

.hero-text-wrapper {
  padding: 0 var(--pad-h) 0;
  /* overflow:hidden moved to .hero-title-clip per-line wrappers */
}

/* Per-line clip wrapper — masks the slide-in animation */
.hero-title-clip {
  overflow: hidden;
  display: block;
}

/* Two-line title: "Un-" large / "Usual." smaller */
.hero-title {
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--color-white);
  white-space: nowrap;
  display: block;
  transform: translateY(110%);
  transition: transform 1s var(--ease-out);
  overflow: visible;
}

.hero-title.visible {
  transform: translateY(0);
}

/* "Un-" — very large, fills the line */
.hero-line-1 {
  font-size: 60vw;
  line-height: 0.80;
  margin-top: -0.12em;
  color: var(--color-white);
  transition-delay: 0ms;
}

/* "Usual." */
.hero-line-2 {
  font-size: 27vw;
  line-height: 0.86;
  color: var(--color-white);
  transition-delay: 80ms;
}

/* ── Hero second row: Usual. + subline ──────────────────────── */
/* Mobile: stacked column */
.hero-second-row {
  display: flex;
  flex-direction: column;
}

/* ── Hero subline ───────────────────────────────────────────── */
.hero-subline {
  font-family: var(--font-body);
  font-size: clamp(15px, 4vw, 20px);
  font-weight: 400;
  color: var(--color-white);
  opacity: 0.85;
  padding: 3vw 0 0;
  letter-spacing: 0.01em;
  max-width: 26ch;
}

/* ── Hero image ─────────────────────────────────────────────── */
.hero-image-wrapper {
  position: relative;
  z-index: 2;
  margin-top: 6vw;
  margin-bottom: -42vw; /* reduced from -66vw — less overlap into About section */
  padding: 0;
  display: flex;
  justify-content: center;
  overflow: visible;
  will-change: transform;
}

.hero-image-wrapper img {
  width: 58%;
  height: auto;
  display: block;
}

/* ── Spinning badge ─────────────────────────────────────────── */
.hero-badge {
  position: absolute;
  bottom: 11vw;
  left: 27vw;
  width: 100px;
  height: 100px;
  background-color: var(--color-orange);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.4s var(--ease-out);
  z-index: 10;
}

.hero-badge:hover {
  background-color: var(--color-white);
  transform: scale(1.08);
}

.hero-badge svg.badge-ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  animation: badge-spin 12s linear infinite;
}

.hero-badge svg.badge-ring text {
  font-family: var(--font-body);
  font-size: 22px;
  fill: var(--color-black);
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.hero-badge .badge-face {
  width: 38%;
  height: 38%;
  position: absolute;
}

.hero-badge .badge-face svg {
  width: 100%;
  height: 100%;
}

@keyframes badge-spin {
  to {
    transform: rotate(360deg);
  }
}

/* ── Hero colourway themes (cycled on refresh via JS) ────────── */

/* Orange theme */
.hero[data-theme="orange"] {
  background-color: var(--color-orange);
}
.hero[data-theme="orange"] .hero-title {
  color: var(--color-black);
}
.hero[data-theme="orange"] .hero-hyphen {
  color: var(--color-white);
}
.hero[data-theme="orange"] .hero-subline {
  color: var(--color-black);
}
.hero[data-theme="orange"] .hero-badge {
  background-color: var(--color-black);
}
.hero[data-theme="orange"] .hero-badge svg.badge-ring text {
  fill: var(--color-white);
}
/* Badge face: circle stays outline, eyes filled white, smile stroke white */
.hero[data-theme="orange"] .hero-badge .badge-face-circle {
  stroke: var(--color-white);
  fill: none;
}
.hero[data-theme="orange"] .hero-badge .badge-face-eye {
  fill: var(--color-white);
}
.hero[data-theme="orange"] .hero-badge .badge-face-smile {
  stroke: var(--color-white);
  fill: none;
}

/* Light theme */
.hero[data-theme="light"] {
  background-color: var(--color-off-white);
}
.hero[data-theme="light"] .hero-title {
  color: var(--color-black);
}
.hero[data-theme="light"] .hero-hyphen {
  color: var(--color-orange);
}
.hero[data-theme="light"] .hero-subline {
  color: var(--color-black);
}

/* ── Responsive ─────────────────────────────────────────────── */

/* Mobile-specific overrides (up to 767px) */
@media (max-width: 767px) {
  .hero-image-wrapper {
    margin-top: 8vw;
    margin-bottom: -68vw;
  }

  .hero-image-wrapper img {
    width: 74%;
  }

  .hero-badge {
    width: 88px;
    height: 88px;
    bottom: 18vw;
    left: 10vw;
  }

  .hero-badge svg.badge-ring text {
    font-size: 20px;
  }
}

@media (min-width: 768px) {
  .hero-line-1 {
    font-size: 46vw;
  }

  .hero-line-2 {
    font-size: 22vw;
  }

  /* Desktop: Usual. and subline sit side by side */
  .hero-second-row {
    flex-direction: row;
    align-items: flex-end;
    gap: 3vw;
  }

  .hero-subline {
    font-size: clamp(17px, 1.4vw, 22px);
    padding: 0 0 2.5vw; /* lifts subline up toward x-height of Usual. */
    max-width: 22ch;
  }

  .hero-badge {
    width: 150px;
    height: 150px;
    bottom: 9vw;
    left: 26vw;
  }

  .hero-badge svg.badge-ring text {
    font-size: 19px;
  }
}
