/* ——— Unified homepage stage hero — Apple-soft theme + ultra-curve controls ——— */
.stage-hero {
  --stage-ink: #1d1d1f;
  --stage-panel: rgba(255, 255, 255, 0.08);
  --stage-panel-strong: rgba(255, 255, 255, 0.14);
  --stage-line: rgba(255, 255, 255, 0.16);
  --stage-foam: #f5f5f7;
  --stage-mute: rgba(245, 245, 247, 0.68);
  --stage-blue: #0071e3;
  --stage-blue-deep: #0077ed;
  --stage-blue-soft: #2997ff;
  --stage-curve: 999px;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin: 0 0 1.35rem;
  color: var(--stage-foam);
  background:
    radial-gradient(ellipse 85% 70% at 10% -8%, rgba(41, 151, 255, 0.22), transparent 58%),
    radial-gradient(ellipse 55% 50% at 92% 12%, rgba(0, 113, 227, 0.16), transparent 52%),
    radial-gradient(ellipse 45% 40% at 60% 100%, rgba(255, 255, 255, 0.05), transparent 55%),
    linear-gradient(165deg, #2a2a2c 0%, #1d1d1f 48%, #161618 100%);
}
.stage-hero__wash,
.stage-hero__grain {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.stage-hero__wash {
  background-image:
    linear-gradient(rgba(245, 245, 247, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(245, 245, 247, 0.035) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.5), transparent 88%);
  animation: stage-grid-drift 18s linear infinite;
}
.stage-hero__grain {
  opacity: 0.55;
  background:
    radial-gradient(circle at 18% 28%, rgba(255, 255, 255, 0.07), transparent 30%),
    radial-gradient(circle at 82% 18%, rgba(41, 151, 255, 0.14), transparent 34%);
  animation: stage-glow-shift 12s ease-in-out infinite alternate;
}
.stage-hero__shell {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  padding: clamp(1.6rem, 4vw, 2.6rem) 0 clamp(1.35rem, 3vw, 2rem);
  display: grid;
  gap: clamp(1.1rem, 2.5vw, 1.6rem);
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  grid-template-areas:
    "copy spot"
    "rail rail";
  align-items: end;
}
.stage-hero__copy {
  grid-area: copy;
  max-width: 34rem;
  animation: stage-rise 0.7s ease both;
}
.stage-hero__season {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0 0 0.65rem;
  padding: 0.28rem 0.75rem;
  border-radius: var(--stage-curve);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--stage-line);
  font-size: 0.7rem;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--stage-blue-soft);
}
.stage-hero__season::before { display: none; }
.stage-hero__brand {
  margin: 0;
  font-family: var(--font-display, Outfit, sans-serif);
  font-size: clamp(3.2rem, 9vw, 5.4rem);
  font-weight: 800;
  letter-spacing: -0.055em;
  line-height: 0.88;
  color: #fff;
}
.stage-hero__title {
  margin: 0.45rem 0 0;
  font-family: var(--font-display, Outfit, sans-serif);
  font-size: clamp(1.35rem, 3vw, 1.9rem);
  font-weight: 650;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: rgba(245, 245, 247, 0.9);
}
.stage-hero__lede {
  margin: 0.7rem 0 0;
  max-width: 32ch;
  font-size: 1.05rem;
  line-height: 1.45;
  color: var(--stage-mute);
}
.stage-hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1.25rem;
  animation: stage-rise 0.7s 0.08s ease both;
}

/* Ultra-curve Apple-style buttons */
.stage-hero__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.85rem;
  padding: 0.72rem 1.35rem;
  border-radius: var(--stage-curve);
  font-family: var(--font-body, Figtree, -apple-system, BlinkMacSystemFont, sans-serif);
  font-size: 0.95rem;
  font-weight: 650;
  letter-spacing: -0.01em;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.stage-hero__btn:active { transform: scale(0.98); }
.stage-hero__btn--primary {
  background: #fff;
  color: var(--stage-ink);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.35) inset;
}
.stage-hero__btn--primary:hover {
  background: #f5f5f7;
}
.stage-hero__btn--ghost {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.stage-hero__btn--ghost:hover {
  background: rgba(255, 255, 255, 0.16);
}
.stage-hero__btn--sale {
  background: var(--stage-blue);
  color: #fff;
  box-shadow: 0 8px 24px rgba(0, 113, 227, 0.28);
}
.stage-hero__btn--sale:hover {
  background: var(--stage-blue-deep);
}

.stage-hero__spot-wrap {
  grid-area: spot;
  animation: stage-rise 0.7s 0.12s ease both;
}
.stage-hero__spot {
  position: relative;
  display: grid;
  gap: 0.95rem;
  padding: 1.2rem 1.2rem 1.35rem;
  border-radius: 28px;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.04)),
    rgba(29, 29, 31, 0.35);
  border: 1px solid var(--stage-line);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  overflow: hidden;
}
.stage-hero__spot-top {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.9rem;
  align-items: center;
}
.stage-hero__mark {
  width: 72px;
  height: 72px;
  border-radius: 22px;
  display: grid;
  place-items: center;
  background: #fff;
  overflow: hidden;
}
.stage-hero__mark img {
  width: 70%;
  height: 70%;
  object-fit: contain;
  display: block;
}
.stage-hero__meta { min-width: 0; }
.stage-hero__sector {
  margin: 0;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--stage-blue-soft);
}
.stage-hero__name {
  margin: 0.2rem 0 0;
  font-family: var(--font-body, Figtree, -apple-system, BlinkMacSystemFont, sans-serif);
  font-size: clamp(1.45rem, 2.6vw, 1.9rem);
  font-weight: 750;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: #fff;
}
.stage-hero__note {
  margin: 0.35rem 0 0;
  font-size: 0.9rem;
  font-weight: 650;
  color: rgba(245, 245, 247, 0.9);
}
.stage-hero__blurb {
  margin: 0.35rem 0 0;
  font-size: 0.92rem;
  line-height: 1.4;
  color: var(--stage-mute);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.stage-hero__spot-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.stage-hero__progress {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 0.55rem;
  height: 3px;
  border-radius: var(--stage-curve);
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
}
.stage-hero__progress span {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--stage-blue), var(--stage-blue-soft));
}
.bf-floor__stage.is-swap .stage-hero__spot,
.stage-hero__spot-wrap.is-swap .stage-hero__spot {
  animation: stage-swap 0.42s ease both;
}

.stage-hero__rail-wrap {
  grid-area: rail;
  display: grid;
  gap: 0.65rem;
  animation: stage-rise 0.7s 0.18s ease both;
}
.stage-hero__rail-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}
.stage-hero__rail-label {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--stage-mute);
}
.stage-hero__controls {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem;
  border-radius: var(--stage-curve);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--stage-line);
}
.stage-hero__nav {
  width: 2.2rem;
  height: 2.2rem;
  border-radius: var(--stage-curve);
  display: grid;
  place-items: center;
  border: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
  transition: background 0.2s ease;
}
.stage-hero__nav:hover { background: rgba(255, 255, 255, 0.12); }
.stage-hero__nav--next .icon { transform: scaleX(-1); }
.stage-hero__count {
  min-width: 3.2rem;
  text-align: center;
  font-size: 0.8rem;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  color: var(--stage-mute);
}
.stage-hero__rail {
  list-style: none;
  margin: 0;
  padding: 0.15rem 0;
  display: flex;
  gap: 0.55rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.stage-hero__rail::-webkit-scrollbar { display: none; }
.stage-hero__rail > li {
  flex: 0 0 auto;
  scroll-snap-align: start;
}
.stage-hero__tile {
  width: 9.8rem;
  min-height: 4.5rem;
  padding: 0.7rem 0.8rem;
  border-radius: 22px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.55rem;
  align-items: center;
  text-align: left;
  border: 1px solid var(--stage-line);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}
.stage-hero__tile:hover {
  border-color: rgba(41, 151, 255, 0.45);
  background: rgba(255, 255, 255, 0.1);
}
.stage-hero__tile.is-active {
  border-color: rgba(0, 113, 227, 0.7);
  background: rgba(0, 113, 227, 0.22);
  transform: translateY(-2px);
}
.stage-hero__tile-mark {
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: #fff;
  overflow: hidden;
}
.stage-hero__tile-mark img {
  width: 70%;
  height: 70%;
  object-fit: contain;
}
.stage-hero__tile-copy {
  display: grid;
  gap: 0.1rem;
  min-width: 0;
}
.stage-hero__tile-copy strong {
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.stage-hero__tile-copy small {
  font-size: 0.68rem;
  color: var(--stage-mute);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Compact listing pages (non-home) */
.home-hero {
  position: relative;
  padding: 1.6rem 0 0.35rem;
}
.home-hero--home { padding: 2rem 0 1.1rem; }
.home-hero--compact { padding: 1.1rem 0 0.25rem; }
.home-hero__inner { position: relative; max-width: 40rem; }
.home-hero__brand {
  margin: 0 0 0.35rem;
  font-family: var(--font-display, Outfit, sans-serif);
  font-size: clamp(2.6rem, 8vw, 4.2rem);
  font-weight: 800;
  letter-spacing: -0.055em;
  line-height: 0.92;
  color: var(--ink, #0b1f17);
}
.home-hero__eyebrow {
  margin: 0 0 0.35rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--heat, #1fa971);
}
.home-hero__title {
  margin: 0;
  font-family: var(--font-display, Outfit, sans-serif);
  font-size: clamp(1.55rem, 3.6vw, 2.2rem);
  font-weight: 750;
  letter-spacing: -0.035em;
  line-height: 1.08;
  color: var(--ink, #0b1f17);
}
.home-hero--home .home-hero__title {
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  font-weight: 650;
  color: var(--ink-2, #143528);
}
.home-hero__lede {
  margin: 0.55rem 0 0;
  color: var(--muted, #667286);
  max-width: 34ch;
  font-size: 1.02rem;
  line-height: 1.45;
}
.home-hero__cta { margin-top: 1.05rem; }
.home-hero__btn {
  display: inline-flex;
  align-items: center;
  padding: 0.72rem 1.25rem;
  border-radius: 999px;
  background: #1d1d1f;
  color: #fff;
  font-weight: 650;
  text-decoration: none;
}
.home-hero__btn:hover { background: #0071e3; }

@keyframes stage-rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}
@keyframes stage-swap {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}
@keyframes stage-grid-drift {
  from { background-position: 0 0, 0 0; }
  to { background-position: 44px 44px, 44px 44px; }
}
@keyframes stage-glow-shift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(-2%, 3%, 0) scale(1.05); }
}

@media (max-width: 900px) {
  .stage-hero__shell {
    grid-template-columns: 1fr;
    grid-template-areas:
      "copy"
      "spot"
      "rail";
    align-items: stretch;
  }
  .stage-hero__brand { font-size: clamp(2.6rem, 14vw, 3.6rem); }
  .stage-hero__lede { max-width: none; }
  .stage-hero__cta .stage-hero__btn { flex: 1 1 auto; }
  .stage-hero__spot-cta .stage-hero__btn { flex: 1 1 auto; }
}

@media (max-width: 560px) {
  .stage-hero__shell { width: min(100% - 1.25rem, 1180px); }
  .stage-hero__mark { width: 60px; height: 60px; border-radius: 18px; }
  .stage-hero__spot { border-radius: 24px; }
  .stage-hero__name { font-size: 1.35rem; }
  .stage-hero__tile { width: 8.6rem; min-height: 4.1rem; border-radius: 18px; }
  .home-hero__btn { width: 100%; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  .stage-hero__wash,
  .stage-hero__grain,
  .stage-hero__copy,
  .stage-hero__spot-wrap,
  .stage-hero__rail-wrap,
  .stage-hero__cta {
    animation: none;
  }
}
