/* ========================================
   H1 × H2 Mix Hero Variants
   ======================================== */

/* Shared hybrid base */
.heroM {
  position: relative;
  width: 100%; height: 100%;
  background: var(--bg-0);
  overflow: hidden;
  font-family: var(--font-ui);
}
.heroM-grid::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
  z-index: 0;
}

/* ========== M1: Massive stacked headline + thread on right column ========== */
.heroM1 {
  display: grid;
  grid-template-columns: 1fr 380px;
  height: 100%;
}
.heroM1-left {
  padding: 48px 56px;
  display: flex; flex-direction: column; justify-content: space-between;
  position: relative;
  z-index: 1;
}
.heroM1-top {
  display: flex; justify-content: space-between; align-items: center;
}
.heroM1-title {
  font-family: var(--font-display);
  font-size: clamp(64px, 9vw, 128px);
  line-height: 0.86;
  letter-spacing: -0.05em;
  font-weight: 700;
  margin: 32px 0 0;
  color: var(--ink-0);
}
.heroM1-title .strike {
  position: relative;
  color: var(--ink-3);
  font-weight: 500;
  font-style: italic;
}
.heroM1-title .strike::after {
  content: "";
  position: absolute; left: -2%; right: -2%; top: 52%;
  height: 5px;
  background: var(--brand-500);
  transform: rotate(-1.5deg);
  box-shadow: 0 0 16px var(--brand-glow);
}
.heroM1-title .pop {
  background-image: linear-gradient(120deg, var(--brand-500), var(--accent-500));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.heroM1-bot {
  display: flex; justify-content: space-between; align-items: end; gap: 32px;
}
.heroM1-desc { font-size: var(--t-md); color: var(--ink-1); max-width: 460px; line-height: 1.55; }

.heroM1-right {
  background: var(--bg-1);
  border-left: 1px solid var(--line);
  padding: 32px 28px;
  display: flex; flex-direction: column; justify-content: center; gap: 18px;
  position: relative;
}
.heroM1-right-label {
  font-family: var(--font-mono); font-size: var(--t-xs);
  color: var(--ink-2); letter-spacing: 0.1em; text-transform: uppercase;
  display: flex; align-items: center; gap: 8px;
}
.heroM1-right-label::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--brand-500);
  box-shadow: 0 0 10px var(--brand-glow);
  animation: pulse 2s ease-in-out infinite;
}

/* ========== M2: Title takes left column, thread breaks the right edge ========== */
.heroM2 {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  height: 100%;
  gap: 0;
  padding: 48px 0 48px 56px;
}
.heroM2-left {
  display: flex; flex-direction: column; justify-content: space-between;
  position: relative;
  z-index: 2;
  padding-right: 32px;
}
.heroM2-top {
  display: flex; justify-content: flex-start; align-items: center;
}
.heroM2-title {
  font-family: var(--font-display);
  font-size: clamp(72px, 10vw, 144px);
  line-height: 0.85;
  letter-spacing: -0.05em;
  font-weight: 700;
  margin: 24px 0;
  color: var(--ink-0);
}
.heroM2-title .row { display: block; }
.heroM2-title .quiet { color: var(--ink-3); font-weight: 500; font-style: italic; }
.heroM2-title .pop {
  background-image: linear-gradient(120deg, var(--brand-500), var(--accent-500));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.heroM2-title .strike {
  position: relative;
  color: var(--ink-3);
  font-weight: 500;
}
.heroM2-title .strike::after {
  content: "";
  position: absolute; left: -2%; right: -2%; top: 52%;
  height: 6px;
  background: var(--brand-500);
  transform: rotate(-1.5deg);
}
.heroM2-bot {
  display: flex; flex-direction: column; gap: 20px;
}
.heroM2-desc { font-size: var(--t-md); color: var(--ink-1); max-width: 460px; line-height: 1.55; }
.heroM2-right {
  position: relative;
  display: flex; align-items: center; justify-content: flex-end;
  padding-right: 56px;
}
.heroM2-thread-wrap {
  width: 100%; max-width: 420px;
  position: relative;
  z-index: 1;
}
.heroM2-thread-frame {
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 18px;
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow-md);
}
.heroM2-thread-label {
  font-family: var(--font-mono); font-size: var(--t-xs);
  color: var(--ink-2); letter-spacing: 0.1em; text-transform: uppercase;
  margin-bottom: 12px;
  display: flex; align-items: center; gap: 8px;
}
.heroM2-thread-label::before {
  content: "";
  display: inline-block;
  width: 24px; height: 1px;
  background: var(--brand-500);
}

/* ========== M3: Stacked title with INLINE thread embedded at end ========== */
.heroM3 {
  padding: 48px 64px;
  display: flex; flex-direction: column; justify-content: space-between;
}
.heroM3-top {
  display: flex; justify-content: space-between; align-items: center;
  position: relative; z-index: 2;
}
.heroM3-mid {
  flex: 1;
  display: flex; align-items: center; justify-content: center;
  position: relative; z-index: 1;
  padding: 24px 0;
}
.heroM3-title-block {
  display: flex; align-items: center; justify-content: center; gap: 56px;
  flex-wrap: wrap;
  width: 100%;
}
.heroM3-title {
  font-family: var(--font-display);
  text-align: right;
  font-size: clamp(64px, 9vw, 128px);
  line-height: 0.85;
  letter-spacing: -0.05em;
  font-weight: 700;
  margin: 0;
  color: var(--ink-0);
}
.heroM3-title .row { display: block; }
.heroM3-title .quiet { color: var(--ink-3); font-weight: 500; }
.heroM3-title .pop {
  background-image: linear-gradient(120deg, var(--brand-500), var(--accent-500));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.heroM3-thread-inline {
  width: 440px;
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 20px;
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow-md);
  margin-bottom: 8px;
  flex-shrink: 0;
}
.heroM3-thread-inline .tmini-avatar { width: 28px; height: 28px; font-size: 12px; }
.heroM3-thread-inline .tmini-text { font-size: var(--t-sm); padding: 8px 12px; }
.heroM3-thread-inline .tmini-msg { gap: 10px; margin-bottom: 10px; }
.heroM3-thread-inline .tmini-head-title { font-size: var(--t-sm); }
.heroM3-thread-inline .tmini-head-sub { font-size: var(--t-xs); }
.heroM3-bot {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: end; gap: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
  margin-top: 32px;
  position: relative; z-index: 1;
}
.heroM3-cta { display: flex; align-items: end; }
.heroM3-cta .nav-cta {
  padding: 14px 24px;
  font-size: var(--t-md);
  border-radius: var(--r-md);
  box-shadow: 0 8px 24px var(--brand-glow);
}
.heroM3-bot-left { display: flex; flex-direction: column; gap: 20px; }
.heroM3-desc { font-size: var(--t-lg); color: var(--ink-0); max-width: 520px; line-height: 1.5; margin: 0; font-weight: 500; }
.heroM3-platforms {
  display: flex; align-items: center; gap: 16px;
}
.heroM3-platforms-label {
  font-family: var(--font-mono); font-size: var(--t-sm);
  color: var(--ink-1); letter-spacing: 0.1em; text-transform: uppercase;
  padding-right: 4px;
  border-right: 1px solid var(--line);
  margin-right: 4px;
}
.heroM3-platforms img {
  width: 28px; height: 28px;
  opacity: 0.75;
  filter: grayscale(0.2);
  transition: opacity 0.2s, filter 0.2s, transform 0.2s;
}
.heroM3-platforms img:hover { opacity: 1; filter: none; transform: translateY(-1px); }
.heroM3-meta { display: flex; gap: 32px; }
.heroM3-meta-label { font-family: var(--font-mono); font-size: var(--t-xs); color: var(--ink-2); letter-spacing: 0.1em; text-transform: uppercase; }
.heroM3-meta-value { font-family: var(--font-display); font-size: var(--t-xl); color: var(--ink-0); font-weight: 700; letter-spacing: -0.02em; margin-top: 2px; }

/* ========== M4: H1 base, but title flush-left HUGE + thread is small floating overlap ========== */
.heroM4 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  height: 100%;
}
.heroM4-left {
  padding: 48px 0 48px 56px;
  display: flex; flex-direction: column; justify-content: space-between;
  position: relative;
  z-index: 2;
}
.heroM4-top {
  display: flex; justify-content: space-between; align-items: center;
  padding-right: 24px;
}
.heroM4-title {
  font-family: var(--font-display);
  font-size: clamp(80px, 12vw, 168px);
  line-height: 0.82;
  letter-spacing: -0.06em;
  font-weight: 700;
  margin: 0;
  color: var(--ink-0);
}
.heroM4-title .row { display: block; }
.heroM4-title .quiet { color: var(--ink-3); font-weight: 500; }
.heroM4-title .pop {
  background-image: linear-gradient(120deg, var(--brand-500), var(--accent-500));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.heroM4-bot { display: flex; flex-direction: column; gap: 18px; padding-right: 24px; }
.heroM4-desc { font-size: var(--t-md); color: var(--ink-1); max-width: 460px; line-height: 1.55; }

.heroM4-right {
  position: relative;
  background:
    radial-gradient(ellipse 80% 60% at 30% 50%, rgba(41,214,255,0.08), transparent 60%);
  display: flex; align-items: center; justify-content: center;
  padding: 32px;
}
.heroM4-thread-card {
  width: 100%; max-width: 380px;
  background: var(--glass-strong);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 18px;
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow-md), var(--shadow-glow);
  transform: rotate(2deg) translateX(-32px);
  transition: transform 0.35s var(--ease-out);
  position: relative;
  z-index: 1;
}
.heroM4-thread-card:hover { transform: rotate(0) translateX(-32px); }
.heroM4-bg-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(ellipse 80% 60% at 30% 50%, black 30%, transparent 70%);
  pointer-events: none;
}
