/* ===================================================================
   CARTFIT.AI · hero.css
   section 01 — hero
   load order matters — see index.html
   =================================================================== */

/* =================================================================
   01 / HERO
   ================================================================= */
.hero { position: relative; }
.hero__meta {
  position: absolute;
  top: calc(var(--nav-h) + 36px);
  display: flex; flex-direction: column; gap: 14px;
  z-index: 3;
}
.hero__meta--l { left:  calc(var(--page-pad) + 32px); }
.hero__meta--r { right: calc(var(--page-pad) + 32px); align-items: flex-end; }
.meta__row { display: flex; align-items: center; gap: 12px; }
.meta__row--end { justify-content: flex-end; }
.meta__sep { width: 80px; height: 1px; background: var(--line-2); margin: 4px 0; }
.meta__col { display: flex; flex-direction: column; gap: 6px; }
.meta__col--end { align-items: flex-end; }

.hero__stage {
  flex: 1;
  display: grid;
  grid-template-rows: auto 1fr auto;
  align-items: center;
  position: relative;
}

/* center crosshair */
.cross {
  position: absolute; inset: 0;
  pointer-events: none;
  display: grid; place-items: center;
  z-index: 1;
}
.cross::before, .cross::after {
  content: ''; position: absolute;
  background: var(--line-1);
}
.cross::before { left: 0; right: 0; height: 1px; top: 50%; }
.cross::after  { top: 0; bottom: 0; width: 1px; left: 50%; }
.cross__h, .cross__v { display: none; }

/* product video behind the type */
.hero-media {
  position: absolute;
  top: 0; bottom: 0;
  left: 50%; transform: translateX(-50%);
  width: 100vw;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.hero-media__video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(.15) contrast(1.05) brightness(.92);
  background: var(--bg-0);
}
/* dim scrim — reduced 30% so video reads stronger */
.hero-media__scrim {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at center, rgba(0,0,0,.175) 0%, rgba(0,0,0,.6) 75%),
    linear-gradient(to bottom, rgba(0,0,0,.385), rgba(0,0,0,.245) 40%, rgba(0,0,0,.385));
}
.hero-media__tag {
  position: absolute;
  font-family: var(--font-jp);
  font-weight: 500;
  font-size: 11px; letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--fg-2);
  padding: 6px 8px;
}
.hero-media__tag--tl { top: 8%;     left: 8%;  color: var(--accent); }
.hero-media__tag--tl::before {
  content: ''; display: inline-block;
  width: 6px; height: 6px; background: var(--accent);
  margin-right: 8px; vertical-align: 1px;
  animation: pulse 2s ease-out infinite;
}
.hero-media__tag--tr { top: 8%;     right: 8%; }
.hero-media__tag--bl { bottom: 8%;  left: 8%;  }
.hero-media__tag--br { bottom: 8%;  right: 8%; }

/* top eyebrow — sits at the top of the stage, just under the meta row */
.hero__eyebrow {
  position: relative; z-index: 2;
  display: inline-flex; align-items: center; gap: 14px;
  justify-self: start;
  padding-top: 4px;
}
.hero__eyebrow .line {
  display: inline-block; width: 56px; height: 1px;
  background: var(--accent);
}

/* hero type — left-aligned, settled to the left margin of the stage */
.hero__type {
  position: relative; z-index: 2;
  text-align: left;
  display: flex; flex-direction: column;
  align-items: flex-start;
  gap: 22px;
  align-self: center;
  transform: translateY(5vh);
  max-width: 60%;
}
.hero__h {
  font-family: var(--font-jp);
  font-weight: 400;
  font-size: clamp(22px, 2.2vw, 30px);
  line-height: 1.5;
  letter-spacing: 0.04em;
  color: var(--fg-1);
  display: flex; flex-direction: column; gap: 2px;
}
.hero__h-jp { display: block; }
.hero__brand {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(88px, 13vw, 200px);
  line-height: .85;
  letter-spacing: -0.02em;
  color: var(--fg-0);
}
.hero__brand-dot { color: var(--accent); font-weight: 300; }

.hero__cta {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 48px;
  position: relative; z-index: 2;
}
.hero__scroll {
  display: inline-flex; align-items: center; gap: 14px;
  color: var(--fg-2);
}
.hero__scroll-line {
  display: inline-block; position: relative;
  width: 120px; height: 1px;
  background: var(--line-2);
  overflow: hidden;
}
.hero__scroll-line i {
  position: absolute; top: 0; left: -30%;
  width: 30%; height: 1px;
  background: var(--accent);
  animation: scrollSlide 2.4s ease-in-out infinite;
}
@keyframes scrollSlide {
  0%   { left: -30%; }
  100% { left: 100%; }
}

/* =================================================================
   responsive — hero
   ================================================================= */
@media (max-width: 1100px) {
  .hero__meta--l, .hero__meta--r { display: none; }
}
@media (max-width: 768px) {
  .hero__eyebrow, .cross { display: none; }
  .hero__stage { padding-left: 0; padding-right: 0; }
  .hero__type { padding-left: 0; }
  .hero__brand {
    font-size: clamp(56px, 14vw, 80px);
    letter-spacing: 0.04em;
  }
  .hero__h {
    font-size: clamp(20px, 5.5vw, 28px);
    line-height: 1.5;
    word-break: keep-all;
    overflow-wrap: break-word;
  }
  .hero__h-jp {
    display: block;
    white-space: nowrap;
    letter-spacing: 0.05em;
  }
}

