/* ─────────── HERO ─────────── */
.hero {
  padding: 92px 0 96px;
  position: relative;
  overflow: hidden;
}
/* soft light sweep behind hero (mai.co bg-shadow), light mode only */
.hero-glow {
  position: absolute;
  inset: 0;
  background: url("assets/bg-shadow.webp") center top / cover no-repeat;
  opacity: var(--hero-tex-opacity);
  pointer-events: none;
  z-index: 0;
}
.hero .container-wide { position: relative; z-index: 1; }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.95fr);
  gap: 48px;
  align-items: center;
}

.hero-text {
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 660px;
}

.hero-eyebrow { align-self: flex-start; }
.hero-eye-dot { display: none; }

/* The hero headline — KMR Waldenburg, tight tracking, near 1.0 leading */
.hero-headline {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(40px, 4.7vw, 60px);
  line-height: 1.04;
  letter-spacing: -0.035em;
  color: var(--fg-1);
  margin: 0;
  text-wrap: normal;
}
.hero-headline .hero-em {
  display: block;
  font-family: var(--font-display);
  font-style: normal;
  color: var(--fg-3);     /* muted-gray emphasis */
  letter-spacing: -0.035em;
}

.hero-sub {
  font-size: 19px;
  line-height: 1.5;
  color: var(--fg-2);
  margin: 0;
  max-width: 520px;
  text-wrap: pretty;
}

.hero-ctas {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.hero-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--hair);
  color: var(--fg-3);
}
.hero-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  letter-spacing: 0.02em;
  color: var(--fg-3);
  font-weight: 500;
}
.hero-meta-sep { color: var(--fg-4); font-size: 14px; }

/* ─────────── HERO MOCK — hairline window + section-dot ─────────── */
.hero-mock-wrap {
  position: relative;
  align-self: stretch;
  min-height: 540px;
  display: flex;
  align-items: center;
}
/* blueprint section-dot at the window's top-left */
.hero-mock-wrap::after {
  content: "";
  position: absolute;
  top: -5px; left: -5px;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--accent-color);
  z-index: 5;
}

.hero-mock {
  position: relative;
  z-index: 1;
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  font-family: var(--font-sans);
}

/* fake app chrome */
.hm-top {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 16px;
  border-bottom: 1px solid var(--hair);
  background: var(--off-white);
}
.hm-traffic { display: flex; gap: 7px; }
.hm-traffic span {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--line-strong);
}
.hm-tabs { flex: 1; display: flex; }
.hm-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 28px;
  padding: 0 12px;
  background: var(--bg-card);
  border: 1px solid var(--hair);
  border-radius: var(--radius-xs);
  font-size: 12px;
  color: var(--fg-2);
}
.hm-tab-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent-color);
}
.hm-actions { display: flex; gap: 8px; }
.hm-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 28px;
  padding: 0 12px;
  background: var(--accent-color-soft);
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--accent-color);
}
.hm-pulse {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent-color);
  box-shadow: 0 0 0 0 var(--accent-color);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(60, 95, 255, 0.45); }
  70% { box-shadow: 0 0 0 8px rgba(60, 95, 255, 0); }
}

/* body 3-col */
.hm-body {
  display: grid;
  grid-template-columns: 180px 1fr 200px;
  min-height: 460px;
}

.hm-rail {
  border-right: 1px solid var(--hair);
  padding: 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--off-white);
}
.hm-rail-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.hm-rail-title {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-3);
}
.hm-rail-count {
  font-size: 10px;
  color: var(--fg-3);
  letter-spacing: 0.04em;
}

.hm-scenes { display: flex; flex-direction: column; gap: 6px; flex: 1; }
.hm-scene {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  background: var(--bg-card);
  border: 1px solid var(--hair);
  border-radius: var(--radius-xs);
  opacity: 0;
  animation: scene-in 0.6s var(--ease-out) both;
}
.hm-scene-1 { animation-delay: 0.2s; }
.hm-scene-2 { animation-delay: 0.5s; }
.hm-scene-3 { animation-delay: 0.8s; }
.hm-scene-4 { animation-delay: 1.1s; }
@keyframes scene-in {
  0% { opacity: 0; transform: translateY(4px); }
  100% { opacity: 1; transform: translateY(0); }
}

.hm-scene-thumb {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-xs);
  flex: 0 0 auto;
}
.hm-scene-1 .hm-scene-thumb { background: linear-gradient(140deg, #3A3A3A, #1C1C1C); }
.hm-scene-2 .hm-scene-thumb { background: linear-gradient(140deg, #6FB592, var(--persona-scientist)); }
.hm-scene-3 .hm-scene-thumb { background: linear-gradient(140deg, #9C7CC0, var(--persona-strategist)); }
.hm-scene-4 .hm-scene-thumb { background: var(--ink); position: relative; }
.hm-scene-4 .hm-scene-thumb::after {
  content: "→"; color: #fff;
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px;
}

.hm-scene-meta { flex: 1; min-width: 0; }
.hm-scene-label {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--fg-1);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.hm-scene-dur {
  font-size: 10px;
  color: var(--fg-3);
  letter-spacing: 0.04em;
}

.hm-rail-foot {
  padding-top: 8px;
  border-top: 1px dashed var(--line);
  font-size: 10px;
  color: var(--fg-3);
  letter-spacing: 0.04em;
}
.hm-rail-foot.hm-status {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--accent-color);
}
.hm-status-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent-color);
  animation: pulse 2s infinite;
}

/* center stage */
.hm-stage {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: var(--bg-card);
}
.hm-stage-frame {
  flex: 1;
  background: #1C1C1C;
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  min-height: 280px;
}
.hm-stage-vid {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hm-vid-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 35%, rgba(125, 93, 154, 0.30), transparent 70%),
    linear-gradient(180deg, #2C2C2C 0%, #141414 100%);
}

/* stylized "bottle" centerpiece (product stand-in) */
.hm-vid-product {
  position: relative;
  z-index: 1;
  width: 64px;
  height: 200px;
}
.hm-bottle {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hm-bottle-cap {
  width: 22px; height: 18px;
  background: #2E2A26;
  border-radius: 3px 3px 0 0;
}
.hm-bottle-neck {
  width: 16px; height: 12px;
  background: #3A352F;
}
.hm-bottle-body {
  width: 56px;
  flex: 1;
  background: linear-gradient(180deg, #5C5A55, #38352F);
  border-radius: 8px 8px 4px 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.hm-bottle-body::after {
  content: "";
  position: absolute;
  left: 8px; top: 6px; bottom: 6px;
  width: 4px;
  background: linear-gradient(180deg, rgba(255,255,255,0.4), transparent);
  border-radius: 2px;
}
.hm-bottle-label {
  background: #F4F2EC;
  padding: 10px 6px;
  text-align: center;
  width: 80%;
  border-radius: 1px;
}
.hm-bottle-brand {
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0.04em;
}
.hm-bottle-sub {
  font-family: var(--font-mono);
  font-size: 6px;
  color: var(--gray-500);
  letter-spacing: 0.12em;
  margin-top: 2px;
}

.hm-caption {
  position: absolute;
  bottom: 60px;
  left: 0; right: 0;
  text-align: center;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 24px;
  color: #fff;
  letter-spacing: -0.02em;
  z-index: 2;
  text-shadow: 0 1px 10px rgba(0,0,0,0.45);
}
.hm-cap-w {
  display: inline-block;
  opacity: 0;
  transform: translateY(6px);
  animation: cap-in 0.5s var(--ease-out) both;
}
.hm-cap-1 { animation-delay: 1.4s; }
.hm-cap-2 { animation-delay: 1.6s; }
.hm-cap-3 { animation-delay: 1.8s; color: var(--persona-gold); }
.hm-cap-4 { animation-delay: 2.0s; }
@keyframes cap-in {
  0% { opacity: 0; transform: translateY(6px); }
  100% { opacity: 1; transform: translateY(0); }
}

.hm-vid-controls {
  position: absolute;
  left: 14px; right: 14px;
  bottom: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 3;
}
.hm-vid-progress {
  height: 3px;
  background: rgba(255,255,255,0.18);
  border-radius: 999px;
  overflow: hidden;
}
.hm-vid-progress-fill {
  height: 100%;
  background: var(--accent);
  width: 0;
  animation: prog-fill 14s infinite linear;
}
@keyframes prog-fill {
  0% { width: 0; }
  90% { width: 100%; }
  100% { width: 100%; }
}
.hm-vid-time {
  font-size: 10px;
  color: rgba(255,255,255,0.7);
  letter-spacing: 0.04em;
}

/* timeline */
.hm-timeline { display: flex; flex-direction: column; gap: 6px; }
.hm-timeline-track {
  position: relative;
  height: 24px;
  background: var(--off-white);
  border: 1px solid var(--hair);
  border-radius: var(--radius-xs);
  overflow: hidden;
}
.hm-clip {
  position: absolute;
  top: 2px; bottom: 2px;
  border-radius: 2px;
}
.hm-clip-1 { background: linear-gradient(140deg, #3A3A3A, #1C1C1C); }
.hm-clip-2 { background: linear-gradient(140deg, #6FB592, var(--persona-scientist)); }
.hm-clip-3 { background: linear-gradient(140deg, #9C7CC0, var(--persona-strategist)); }
.hm-clip-4 { background: var(--ink); }
.hm-playhead {
  position: absolute;
  top: -2px; bottom: -2px;
  width: 2px;
  background: var(--accent);
  left: 0;
  animation: playhead 14s infinite linear;
}
@keyframes playhead {
  0% { left: 0%; }
  90% { left: 100%; }
  100% { left: 100%; }
}
.hm-timeline-ruler {
  display: flex;
  justify-content: space-between;
  font-size: 9.5px;
  color: var(--fg-3);
  letter-spacing: 0.04em;
}

/* variants rail */
.hm-variants {
  border-left: 1px solid var(--hair);
  padding: 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--off-white);
}
.hm-var-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  flex: 1;
}
.hm-var {
  aspect-ratio: 9/14;
  border-radius: var(--radius-xs);
  overflow: hidden;
  border: 1px solid var(--hair);
  opacity: 0;
  transform: scale(0.9);
  animation: var-in 0.5s var(--ease-out) both;
}
.hm-var-1 { animation-delay: 2.2s; }
.hm-var-2 { animation-delay: 2.35s; }
.hm-var-3 { animation-delay: 2.5s; }
.hm-var-4 { animation-delay: 2.65s; }
.hm-var-5 { animation-delay: 2.8s; }
.hm-var-6 { animation-delay: 2.95s; }
.hm-var-7 { animation-delay: 3.1s; }
.hm-var-8 { animation-delay: 3.25s; }
.hm-var-9 { animation-delay: 3.4s; }
@keyframes var-in {
  0% { opacity: 0; transform: scale(0.9); }
  100% { opacity: 1; transform: scale(1); }
}
.hm-var-thumb { width: 100%; height: 100%; }
.hm-var-1 .hm-var-thumb { background: linear-gradient(140deg, #3A3A3A, #1C1C1C); }
.hm-var-2 .hm-var-thumb { background: linear-gradient(140deg, #6FB592, var(--persona-scientist)); }
.hm-var-3 .hm-var-thumb { background: linear-gradient(140deg, #9C7CC0, var(--persona-strategist)); }
.hm-var-4 .hm-var-thumb { background: linear-gradient(140deg, #5C8FB0, var(--persona-ops)); }
.hm-var-5 .hm-var-thumb { background: linear-gradient(140deg, #3A3A3A, var(--persona-strategist)); }
.hm-var-6 .hm-var-thumb { background: linear-gradient(140deg, #D6BC72, var(--persona-gold)); }
.hm-var-7 .hm-var-thumb { background: linear-gradient(140deg, var(--persona-scientist), #3A6B50); }
.hm-var-8 .hm-var-thumb { background: linear-gradient(140deg, var(--accent), var(--accent-soft)); }
.hm-var-9 .hm-var-thumb { background: linear-gradient(140deg, #2A2A2A, #4A4A4A); }

@media (max-width: 1100px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hm-body { grid-template-columns: 150px 1fr 160px; }
}
@media (max-width: 760px) {
  .hm-body { grid-template-columns: 1fr; }
  .hm-rail, .hm-variants { border: 0; border-bottom: 1px solid var(--hair); }
}
