/* ============================================
   HERO — Asymmetric fragmented opening
   ============================================ */

.section--hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100vh;
  position: relative;
  overflow: hidden;
  background: var(--color-bg-dark);
  color: var(--color-text-dark);
  isolation: isolate; /* Stacking context root for mix-blend-mode */
}

.section--hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.04) var(--grid-line-width), transparent var(--grid-line-width)),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.04) var(--grid-line-width), transparent var(--grid-line-width));
  background-size: var(--grid-gap) var(--grid-gap);
  -webkit-mask-image: linear-gradient(to bottom, black 80%, transparent 100%);
  mask-image: linear-gradient(to bottom, black 80%, transparent 100%);
  pointer-events: none;
  z-index: 0;
}

/* ---- Cryptic Margin Labels ---- */
.hero-margin {
  position: absolute;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 4px;
  opacity: 0;
}

.hero-margin .mono-label {
  color: rgba(255, 255, 255, 0.7);
  font-size: 10px;
  letter-spacing: 0.15em;
}

.hero-margin--tl {
  top: 48px;
  left: 48px;
}

.hero-margin--tr {
  top: 48px;
  right: 48px;
  text-align: right;
}

.hero-margin--tr .tagline-line {
  font-family: var(--font-display);
  font-size: clamp(18px, 2.5vw, 32px);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1;
  display: block;
  text-transform: uppercase;
  opacity: 1;
  transform: none;
}

.hero-margin--tr .tagline-line .editorial {
  font-size: 1.15em;
  color: rgba(255, 255, 255, 0.8);
  letter-spacing: 0;
}

.hero-margin--bl {
  bottom: 100px;
  left: 48px;
}

.hero-margin--bl .tagline-line {
  font-family: var(--font-display);
  font-size: clamp(18px, 2.5vw, 24px);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.1;
  display: block;
  text-transform: uppercase;
  opacity: 1;
  transform: none;
}

.hero-margin--bl .tagline-line .editorial {
  font-size: 1.15em;
  color: rgba(255, 255, 255, 0.75);
  letter-spacing: 0;
}

.hero-margin--br {
  bottom: 100px;
  right: 48px;
  text-align: right;
}

.hero-margin--br .editorial {
  font-size: 13px;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.8);
}

/* ---- Hero Content (Center Lockup: Logo + Title) ---- */
.hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem; /* Reduced gap between logo and title */
  pointer-events: none;
}

.hero-logo-wrapper {
  position: relative;
  width: clamp(300px, 55vw, 450px);
  opacity: 0; /* Animated in */
}

.hero-display-logo {
  width: 100%;
  height: auto;
  /* No filter needed for light logo */
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 700;
  color: #fff;
  position: relative;
  overflow: visible;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 0.8em;
  line-height: 1;
}

.hero-title .char {
  display: inline-block;
  opacity: 0;
  will-change: transform, opacity;
}

.hero-title .char--accent {
  color: var(--color-accent);
}

.hero-title-row {
  display: flex;
}

.hero-title-row--clay,
.hero-title-row--os {
  font-size: clamp(18px, 2.5vw, 24px);
  letter-spacing: 0.4em;
  text-align: center;
  padding: 0;
  margin: 0;
}

/* ---- Editorial Image Window ---- */
.hero-image-wrapper {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: clamp(320px, 45vw, 600px);
  height: clamp(400px, 65vh, 800px);
  z-index: 1;
  pointer-events: none;
}

.hero-image-window {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
  opacity: 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  transform: scale(1.15);
  will-change: transform;
}

/* ---- Build Info (replaces hero-meta) ---- */
.hero-build {
  position: absolute;
  bottom: 20vh;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  align-items: center;
  gap: var(--space-md);
  opacity: 0;
}

.hero-build .mono-label {
  color: rgba(255, 255, 255, 0.3);
  font-size: 10px;
  letter-spacing: 0.12em;
}

.hero-build-sep {
  color: rgba(255, 255, 255, 0.15) !important;
}

/* ---- Boot Sequence ---- */
.hero-boot {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.6);
  white-space: nowrap;
}

.hero-boot-line {
  opacity: 0;
  display: block;
}

/* ---- Floating Pottery Line Art ---- */
.hero-floats {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.hero-float {
  position: absolute;
  will-change: transform;
}

.hero-float-svg {
  width: 100%;
  height: auto;
}

.hero-float-svg path,
.hero-float-svg ellipse {
  stroke: rgba(255, 255, 255, 0.1);
  stroke-width: 1;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

/* ---- Film Grain ---- */
.hero-grain {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
  opacity: 0.035;
  mix-blend-mode: overlay;
}

/* ---- Accent Glow ---- */
.hero-glow {
  position: absolute;
  top: 50%;
  left: 40%;
  transform: translate(-50%, -50%);
  width: 55vw;
  height: 55vw;
  max-width: 750px;
  max-height: 750px;
  background: radial-gradient(
    circle,
    rgba(194, 122, 89, 0.08) 0%,
    rgba(194, 122, 89, 0.03) 35%,
    transparent 70%
  );
  pointer-events: none;
  z-index: 1;
  border-radius: 50%;
  opacity: 0;
}

/* ---- Top TestFlight Banner ---- */
.hero-banner {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  padding: 16px 0;
  display: flex;
  justify-content: center;
  z-index: 10;
  opacity: 0; /* Animated in */
}

.hero-banner-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 100px;
  color: #fff;
  text-decoration: none;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.hero-banner-link:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.hero-banner-link .mono-label {
  font-size: 9px;
  color: rgba(255, 255, 255, 0.8);
}

.hero-banner-arrow {
  font-size: 12px;
  color: var(--color-accent);
}

/* ---- Scroll Indicator ---- */
.scroll-indicator {
  position: absolute;
  bottom: 4vh;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  opacity: 0;
  z-index: 4;
}

.scroll-indicator-line {
  width: 1px;
  height: 48px;
  background: var(--color-text-dark);
  transform-origin: top;
  animation: scrollPulse 2s var(--ease-in-out) infinite;
}

@keyframes scrollPulse {
  0% {
    transform: scaleY(0);
    opacity: 0;
  }
  50% {
    transform: scaleY(1);
    opacity: 1;
  }
  100% {
    transform: scaleY(0);
    opacity: 0;
    transform-origin: bottom;
  }
}

.scroll-indicator .mono-label {
  font-size: 9px;
  letter-spacing: 0.2em;
  color: rgba(255, 255, 255, 0.4);
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .hero-image {
    object-position: 40% 40%;
  }
}

@media (max-width: 768px) {
  .hero-image {
    object-position: 40% 40%; /* Shift image focus more to show pot on mobile */
  }

  .hero-margin--tl,
  .hero-margin--tr,
  .hero-margin--bl,
  .hero-margin--br {
    display: none;
  }

  .hero-build {
    left: 50%;
    transform: translateX(-50%);
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-sm);
  }

  .scroll-indicator {
    bottom: 24px;
  }

  .hero-boot {
    font-size: 10px;
  }

  .hero-float {
    display: none;
  }

  .hero-glow {
    width: 80vw;
    height: 80vw;
    left: 50%;
  }
}
