/* ═══════════════════════════════════════════════════════
   HERO.CSS — Section 01 (Iconiq Creatives)
   Kinetic centered agency home · Rotating headline · Marquee
═══════════════════════════════════════════════════════ */

/* ── Container ──────────────────────────────────────── */
.hero {
  position: relative;
  width: 100%;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--color-black);
  padding: clamp(72px, 11vh, 116px) clamp(20px, 5vw, 64px) clamp(110px, 15vh, 150px);
  text-align: center;
}

/* ── Canvas mesh ────────────────────────────────────── */
#hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* Faint blueprint grid over the mesh — agency / build feel */
.hero-grid {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
  background-size: clamp(48px, 6vw, 84px) clamp(48px, 6vw, 84px);
  mask-image: radial-gradient(ellipse 90% 75% at 50% 42%, #000 30%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 90% 75% at 50% 42%, #000 30%, transparent 78%);
}

/* ── Inner content ──────────────────────────────────── */
.hero-inner {
  position: relative;
  z-index: var(--z-content);
  width: 100%;
  max-width: 1000px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ── Badge ──────────────────────────────────────────── */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 16px 7px 13px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(6px);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-text-secondary);
  margin-bottom: clamp(20px, 3vw, 32px);

  opacity: 0;
  transform: translateY(16px);
  animation: heroFadeUp 0.8s var(--ease-out-quart) 0.1s forwards;
}

.hero-badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-blue);
  box-shadow: 0 0 0 0 rgba(65, 189, 254, 0.6);
  animation: heroPulse 2.4s ease-out infinite;
  flex-shrink: 0;
}

@keyframes heroPulse {
  0%   { box-shadow: 0 0 0 0 rgba(65, 189, 254, 0.55); }
  70%  { box-shadow: 0 0 0 8px rgba(65, 189, 254, 0); }
  100% { box-shadow: 0 0 0 0 rgba(65, 189, 254, 0); }
}

/* ── Logo (replaces the text badge) ─────────────────── */
.hero-logo {
  display: block;
  width: clamp(130px, 20vw, 210px);
  height: auto;
  margin-bottom: clamp(24px, 4vw, 42px);

  opacity: 0;
  transform: translateY(16px);
  animation: heroFadeUp 0.8s var(--ease-out-quart) 0.1s forwards;
}

/* ── Headline ───────────────────────────────────────── */
.hero-headline {
  font-family: var(--font-brand);
  font-weight: 800;
  font-size: clamp(2rem, 6.1vw, 4.4rem);
  line-height: 0.98;
  letter-spacing: -0.035em;
  color: var(--color-white);
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.02em;
}

.hero-line {
  display: block;
  opacity: 0;
  transform: translateY(28px);
}
.hero-line--1 { animation: heroFadeUp 0.9s var(--ease-out-quart) 0.24s forwards; }
.hero-line--3 { animation: heroFadeUp 0.9s var(--ease-out-quart) 0.52s forwards; }

/* Rotating word — its own masked line */
.hero-rotator {
  display: block;
  height: 1.02em;
  overflow: hidden;
  padding: 0 0.04em;

  opacity: 0;
  animation: heroFadeIn 0.7s ease 0.4s forwards;
}

.hero-rotator-word {
  display: inline-block;
  background: var(--gradient-brand-h);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  white-space: nowrap;
  will-change: opacity, transform;
}

/* ── Lead ───────────────────────────────────────────── */
.hero-lead {
  max-width: 540px;
  margin: clamp(18px, 2.6vw, 26px) auto 0;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: clamp(0.95rem, 1.5vw, 1.1rem);
  line-height: 1.55;
  color: var(--color-text-secondary);

  opacity: 0;
  transform: translateY(16px);
  animation: heroFadeUp 0.9s var(--ease-out-quart) 0.7s forwards;
}

/* ── Actions ────────────────────────────────────────── */
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: clamp(24px, 3.4vw, 34px);

  opacity: 0;
  transform: translateY(16px);
  animation: heroFadeUp 0.9s var(--ease-out-quart) 0.86s forwards;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  height: 50px;
  padding: 0 26px;
  border-radius: 100px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-sm);
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: transform var(--t-base), box-shadow var(--t-base),
    background var(--t-base), border-color var(--t-base), color var(--t-base);
}
.hero-cta svg { width: 17px; height: 17px; transition: transform var(--t-base); }

.hero-cta--primary {
  background: var(--gradient-brand-h);
  color: #05060a;
  box-shadow: 0 12px 40px -12px rgba(65, 189, 254, 0.5);
}
.hero-cta--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 52px -12px rgba(225, 17, 251, 0.55);
}
.hero-cta--primary:hover svg { transform: translateX(4px); }

.hero-cta--ghost {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--color-white);
}
.hero-cta--ghost:hover {
  transform: translateY(-2px);
  border-color: rgba(65, 189, 254, 0.5);
  background: rgba(65, 189, 254, 0.08);
  color: var(--color-blue);
}

/* ── Marquee ────────────────────────────────────────── */
.hero-marquee {
  position: absolute;
  left: 0;
  bottom: clamp(98px, 14vh, 128px);
  z-index: 1;
  width: 100%;
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding: clamp(12px, 1.6vw, 18px) 0;
  mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent);

  opacity: 0;
  animation: heroFadeIn 1s ease 1s forwards;
}

.hero-marquee-track {
  display: inline-flex;
  align-items: center;
  gap: clamp(20px, 3vw, 40px);
  white-space: nowrap;
  will-change: transform;
  animation: heroMarquee 26s linear infinite;
}

.hero-marquee-track span {
  font-family: var(--font-brand);
  font-weight: 700;
  font-size: clamp(1.1rem, 2.4vw, 1.9rem);
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.28);
}

.hero-marquee-dot {
  color: var(--color-blue) !important;
  font-size: clamp(0.6rem, 1.2vw, 0.9rem) !important;
}

@keyframes heroMarquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ── Scroll hint ────────────────────────────────────── */
.scroll-hint {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: var(--z-content);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-2);

  opacity: 0;
  animation: heroFadeIn 1s ease 1.4s forwards;
}

.scroll-mouse {
  width: 21px;
  height: 33px;
  border: 1.5px solid rgba(255, 255, 255, 0.15);
  border-radius: 11px;
  position: relative;
  display: flex;
  justify-content: center;
  flex-shrink: 0;
}

.scroll-mouse-wheel {
  width: 2px;
  height: 5px;
  background: rgba(255, 255, 255, 0.45);
  border-radius: 1px;
  margin-top: 5px;
  animation: scrollWheel 2.2s ease-in-out infinite;
}

.scroll-label {
  font-family: var(--font-mono);
  font-size: 0.55rem;
  letter-spacing: 0.22em;
  color: rgba(255, 255, 255, 0.15);
}

/* ── Keyframes ──────────────────────────────────────── */
@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes heroFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes scrollWheel {
  0%   { opacity: 1;   transform: translateY(0); }
  55%  { opacity: 0.1; transform: translateY(11px); }
  56%  { opacity: 0;   transform: translateY(0); }
  100% { opacity: 0;   transform: translateY(0); }
}

/* ── Responsive ─────────────────────────────────────── */
@media (max-width: 600px) {
  .hero-marquee { bottom: clamp(50px, 8vh, 72px); }
  .hero-cta { height: 46px; padding: 0 20px; }
  .hero-actions { width: 100%; }
}

/* Phones: the clamp() minimum (2rem) was too big for small screens, so the
   long headline words jammed edge-to-edge. Let the headline scale with the
   viewport again (and loosen the line-height a touch) so it breathes. */
@media (max-width: 480px) {
  .hero-headline { font-size: clamp(1.5rem, 7vw, 2rem); line-height: 1.06; }
}

@media (max-width: 400px) {
  .hero-badge { font-size: 0.6rem; letter-spacing: 0.1em; }
  .scroll-hint { display: none; }
}

/* Short landscape */
@media (orientation: landscape) and (max-height: 560px) {
  .hero { min-height: 100vh; padding-top: 96px; padding-bottom: 120px; }
  .hero-marquee { bottom: 40px; }
  .scroll-hint { display: none; }
}

/* ── Reduced motion ─────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .hero-logo,
  .hero-badge,
  .hero-line,
  .hero-rotator,
  .hero-lead,
  .hero-actions,
  .hero-marquee,
  .scroll-hint {
    opacity: 1;
    transform: none;
    animation: none;
  }
  .hero-badge-dot,
  .scroll-mouse-wheel { animation: none; }
  .hero-marquee-track { animation: none; }
}
