/* ============================================================
   ZEANN CO — Hero (blob artifact)
   composes with colors_and_type.css + ui_kits styles
   ============================================================ */

* { box-sizing: border-box; }
html, body { margin: 0; }

body {
  min-height: 100vh;
  background: var(--bg-base);
  overflow-x: hidden;
}

/* ---------- top nav (compact, brand-consistent) ---------- */
.zh-nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--nav-h);
  background: rgba(8,9,12,0.55);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  border-bottom: 1px solid var(--border-subtle);
}
.zh-nav-inner {
  max-width: var(--content-max); height: 100%;
  margin: 0 auto; padding: 0 var(--gutter-desktop);
  display: flex; align-items: center; gap: var(--sp-7);
}
.zh-brand {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--fg-primary); background-image: none;
}
.zh-brand:hover { background-image: none; color: var(--fg-primary); }
.zh-brand img { width: 26px; height: 26px; }
.zh-brand-name { font-size: 13px; font-weight: 700; letter-spacing: 0.04em; }
.zh-brand-co {
  font-family: var(--font-mono);
  font-size: 12px; color: var(--fg-secondary); letter-spacing: 0.1em;
  padding: 2px 6px;
  border: 1px solid var(--border-interactive);
  border-radius: var(--r-sm);
}
.zh-nav-links { margin-left: auto; display: flex; gap: var(--sp-6); }
.zh-nav-links a {
  font-size: 13px; color: var(--fg-secondary);
  background-image: none;
}
.zh-nav-links a:hover { color: var(--fg-primary); background-image: none; }
.zh-nav-cta {
  font-family: var(--font-sans);
  font-size: 13px; font-weight: 600;
  padding: 8px 16px;
  border-radius: var(--r-pill);
  background: var(--accent-grad);
  color: var(--fg-on-accent);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent-cyan) 40%, transparent) inset, 0 8px 24px -8px color-mix(in srgb, var(--accent-cyan) 50%, transparent);
  transition: filter var(--dur-state) var(--ease-soft), transform var(--dur-hover) var(--ease-micro);
  display: inline-flex; align-items: center; gap: 8px;
  border: 0; cursor: pointer;
}
.zh-nav-cta:hover { filter: brightness(1.12); background: var(--accent-grad-hi); color: var(--fg-on-accent); }
.zh-nav-cta:active { transform: scale(0.985); }

/* status pip */
.zh-pip {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 3px rgba(123,228,149,0.18), 0 0 12px rgba(123,228,149,0.7);
  animation: zh-pulse 2.4s ease-in-out infinite;
}
@keyframes zh-pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(123,228,149,0.18), 0 0 12px rgba(123,228,149,0.7); }
  50%      { box-shadow: 0 0 0 5px rgba(123,228,149,0.06), 0 0 18px rgba(123,228,149,0.9); }
}

/* ============================================================
   HERO SHELL
   ============================================================ */
.zh-hero {
  position: relative;
  min-height: 100vh;
  padding-top: var(--nav-h);
  overflow: hidden;
  isolation: isolate;
}

/* faint dot grid */
.zh-grid {
  position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(42,47,58,0.55) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse 90% 80% at 50% 40%, black 35%, transparent 85%);
  -webkit-mask-image: radial-gradient(ellipse 90% 80% at 50% 40%, black 35%, transparent 85%);
  opacity: 0.45;
  pointer-events: none;
  z-index: 0;
}

/* radial accent glow */
.zh-glow {
  position: absolute;
  width: 900px; height: 700px;
  background: radial-gradient(closest-side, var(--accent-phosphor-12), transparent 70%);
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}

/* corner brackets (terminal motif) */
.zh-corners {
  position: absolute; inset: calc(var(--nav-h) + 24px) 24px 24px 24px;
  pointer-events: none; z-index: 1;
}
.zh-corners::before, .zh-corners::after,
.zh-corners > span::before, .zh-corners > span::after {
  content: ""; position: absolute;
  width: 14px; height: 14px;
  border: 1px solid var(--border-interactive);
  opacity: 0.7;
}
.zh-corners::before  { top: 0; left: 0;     border-right: 0; border-bottom: 0; }
.zh-corners::after   { top: 0; right: 0;    border-left: 0;  border-bottom: 0; }
.zh-corners > span::before { bottom: 0; left: 0;  border-right: 0; border-top: 0; }
.zh-corners > span::after  { bottom: 0; right: 0; border-left: 0;  border-top: 0; }

/* hairline meta strip floating against top-left corner */
.zh-meta-tl {
  position: absolute;
  top: calc(var(--nav-h) + 24px);
  left: 50%; transform: translateX(-50%);
  display: flex; gap: 18px;
  font-family: var(--font-mono); font-size: 11px;
  color: var(--fg-tertiary); letter-spacing: 0.12em;
  text-transform: uppercase;
  z-index: 3;
  white-space: nowrap;
}
.zh-meta-tl span { display: inline-flex; align-items: center; gap: 6px; }
.zh-meta-tl em { font-style: normal; color: var(--accent-cyan); }

/* ============================================================
   LAYOUT — base
   ============================================================ */
.zh-stage {
  position: relative; z-index: 2;
  max-width: var(--content-max);
  margin: 0 auto;
  padding: clamp(56px, 9vh, 96px) var(--gutter-desktop) var(--sp-9);
  min-height: calc(100vh - var(--nav-h));
  display: grid;
  align-items: center;
}

/* ============================================================
   BLOB ARTIFACT (the video)
   ============================================================ */
.zh-blob-wrap {
  position: relative;
  display: grid;
  place-items: center;
  isolation: isolate;
}
/* poster-ish fallback while video loads (lift hint of the metal) */
.zh-blob-wrap::before {
  content: "";
  position: absolute;
  inset: 18% 12%;
  z-index: 0;
  background:
    radial-gradient(ellipse 60% 45% at 38% 42%, rgba(247,217,140,0.18), transparent 60%),
    radial-gradient(ellipse 50% 40% at 64% 58%, rgba(120,160,220,0.16), transparent 65%),
    radial-gradient(ellipse 70% 55% at 50% 50%, rgba(255,255,255,0.04), transparent 70%);
  filter: blur(28px);
  border-radius: 50%;
  opacity: 0.85;
  pointer-events: none;
}
.zh-blob-glow {
  position: absolute;
  inset: 10%;
  background: radial-gradient(closest-side, var(--accent-phosphor-24), transparent 65%);
  filter: blur(70px);
  z-index: 0;
  opacity: var(--blob-glow-strength, 0.9);
}
.zh-blob-video {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  mix-blend-mode: var(--blob-blend, screen);
  /* lift contrast a touch so the metal pops on the dark base */
  filter: contrast(1.04) saturate(1.05);
  pointer-events: none;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, black 60%, transparent 100%);
          mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, black 60%, transparent 100%);
}

/* scanning hairline that crosses the blob */
.zh-blob-scan {
  position: absolute;
  left: 6%; right: 6%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-cyan), transparent);
  opacity: 0.6;
  z-index: 2;
  animation: zh-scan 6s linear infinite;
  pointer-events: none;
}
@keyframes zh-scan {
  0%   { top: 18%; opacity: 0; }
  10%  { opacity: 0.6; }
  90%  { opacity: 0.6; }
  100% { top: 82%; opacity: 0; }
}

/* tiny floating labels around the blob */
.zh-blob-labels {
  position: absolute; inset: 0;
  z-index: 3; pointer-events: none;
  font-family: var(--font-mono); font-size: 10px;
  color: var(--fg-tertiary); letter-spacing: 0.14em;
  text-transform: uppercase;
}
.zh-blob-labels span {
  position: absolute;
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(8,9,12,0.5);
  padding: 4px 8px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-sm);
  backdrop-filter: blur(4px);
}
.zh-blob-labels span::before {
  content: ""; width: 4px; height: 4px; border-radius: 50%;
  background: var(--accent-cyan);
  box-shadow: 0 0 8px var(--accent-cyan);
}
.zh-blob-labels .l1 { top: 12%; left: -2%; }
.zh-blob-labels .l2 { top: 38%; right: -4%; }
.zh-blob-labels .l3 { bottom: 14%; left: 4%; }

/* ============================================================
   COPY BLOCK
   ============================================================ */
.zh-copy { display: flex; flex-direction: column; gap: var(--sp-4); }
.zh-copy-foot { display: flex; flex-direction: column; gap: var(--sp-4); }

.zh-eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-mono); font-size: 12px;
  color: var(--fg-tertiary); letter-spacing: 0.18em;
  text-transform: uppercase;
}
.zh-eyebrow::before {
  content: ""; display: inline-block; width: 6px; height: 6px;
  background: var(--accent-phosphor);
  box-shadow: 0 0 12px var(--accent-phosphor);
}
.zh-eyebrow .divider { width: 28px; height: 1px; background: var(--border-interactive); }

.zh-headline {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(40px, 6.4vw, 96px);
  letter-spacing: -0.045em;
  line-height: 0.95;
  margin: 0;
  text-wrap: balance;
  color: var(--fg-primary);
}
.zh-headline .line { display: block; }
.zh-headline .accent {
  background: linear-gradient(180deg, var(--fg-primary) 0%, var(--accent-cyan-hi) 55%, var(--accent-cyan-lo) 100%);
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
}
.zh-headline .stroke {
  -webkit-text-stroke: 1.5px var(--fg-tertiary);
  color: transparent;
  font-style: italic;
}
.zh-cursor {
  display: inline-block;
  width: 0.5em; height: 0.78em;
  background: var(--accent-phosphor);
  vertical-align: -0.06em;
  margin-left: 0.08em;
  animation: cursor-blink 1.05s steps(2,end) infinite;
  box-shadow: 0 0 16px var(--accent-phosphor);
}

.zh-tagline {
  margin: 18px 0 0;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(18px, 1.55vw, 24px);
  line-height: 1.3;
  letter-spacing: -0.015em;
  color: var(--fg-primary);
  max-width: 34ch;
}
.zh-tagline .accent {
  background: linear-gradient(180deg, var(--accent-cyan-hi) 0%, var(--accent-cyan) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.zh-bio {
  max-width: 46ch;
  font-size: clamp(15px, 1.15vw, 17px);
  line-height: 1.6;
  color: var(--fg-secondary);
  margin: 0;
}

.zh-ctas { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin-top: var(--sp-2); }
.zh-btn {
  font-family: var(--font-sans);
  font-size: 14px; font-weight: 600;
  border: 0; cursor: pointer;
  display: inline-flex; align-items: center; gap: 10px;
  white-space: nowrap;
  transition: transform var(--dur-hover) var(--ease-micro), filter var(--dur-state) var(--ease-soft), border-color var(--dur-state) var(--ease-soft), color var(--dur-state) var(--ease-soft);
  background-image: none;
}
.zh-btn:active { transform: scale(0.985); }
.zh-btn-primary {
  padding: 13px 22px;
  border-radius: var(--r-pill);
  background: var(--accent-grad);
  color: var(--fg-on-accent);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent-cyan) 40%, transparent) inset, 0 12px 32px -12px color-mix(in srgb, var(--accent-cyan) 65%, transparent);
}
.zh-btn-primary:hover { filter: brightness(1.1); color: var(--fg-on-accent); background: var(--accent-grad-hi); }
.zh-btn-ghost {
  padding: 12px 20px;
  border-radius: var(--r-pill);
  background: transparent;
  color: var(--fg-primary);
  border: 1px solid var(--border-interactive);
}
.zh-btn-ghost:hover { border-color: var(--accent-cyan); color: var(--accent-cyan); background-image: none; }
.zh-arrow {
  display: inline-block;
  transition: transform var(--dur-state) var(--ease-soft);
}
.zh-btn:hover .zh-arrow { transform: translateX(3px); }

/* signal strip — terminal-style metadata at bottom */
.zh-signal {
  margin-top: var(--sp-6);
  padding-top: var(--sp-4);
  border-top: 1px solid var(--border-subtle);
  display: flex; flex-wrap: wrap; gap: var(--sp-6) var(--sp-7);
  font-family: var(--font-mono); font-size: 11px;
  color: var(--fg-tertiary); letter-spacing: 0.12em;
  text-transform: uppercase;
}
.zh-signal .row { display: inline-flex; align-items: baseline; gap: 10px; }
.zh-signal .k { color: var(--fg-muted); }
.zh-signal .v { color: var(--fg-secondary); }
.zh-signal em { font-style: normal; color: var(--accent-cyan); }

/* scroll cue at bottom */
.zh-scroll {
  position: absolute;
  left: 50%; bottom: 22px; transform: translateX(-50%);
  font-family: var(--font-mono); font-size: 10px;
  color: var(--fg-muted); letter-spacing: 0.2em;
  text-transform: uppercase;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  z-index: 2;
}
.zh-scroll .stem {
  width: 1px; height: 40px;
  background: linear-gradient(to bottom, var(--fg-muted), transparent);
  position: relative; overflow: hidden;
}
.zh-scroll .stem::after {
  content: ""; position: absolute;
  left: 0; right: 0; top: 0; height: 14px;
  background: var(--accent-cyan);
  animation: zh-scroll-dot 2.2s var(--ease-soft) infinite;
}
@keyframes zh-scroll-dot {
  0%   { transform: translateY(-100%); }
  100% { transform: translateY(300%); }
}

/* ============================================================
   LAYOUT — Split (default)
   ============================================================ */
.zh-stage[data-layout="split"] {
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: var(--sp-7);
}
.zh-stage[data-layout="split"] .zh-blob-wrap {
  width: 100%;
  aspect-ratio: 1 / 0.95;
  max-height: 78vh;
}
.zh-stage[data-layout="split"] .zh-glow {
  right: -18%; top: 8%;
}

/* ============================================================
   LAYOUT — Centered (blob behind the headline)
   ============================================================ */
.zh-stage[data-layout="centered"] {
  grid-template-columns: 1fr;
  justify-items: center;
  text-align: center;
}
.zh-stage[data-layout="centered"] .zh-copy {
  align-items: center;
  text-align: center;
  position: relative; z-index: 3;
}
.zh-stage[data-layout="centered"] .zh-bio { text-align: center; }
.zh-stage[data-layout="centered"] .zh-signal { justify-content: center; }
.zh-stage[data-layout="centered"] .zh-ctas { justify-content: center; }
.zh-stage[data-layout="centered"] .zh-blob-wrap {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: min(100%, 1100px);
  margin: auto;
  aspect-ratio: 1.4 / 1;
  pointer-events: none;
}
.zh-stage[data-layout="centered"] .zh-headline {
  font-size: clamp(64px, 11vw, 168px);
  letter-spacing: -0.05em;
  mix-blend-mode: difference;
  color: #ffffff;
}
.zh-stage[data-layout="centered"] .zh-headline .accent {
  -webkit-text-fill-color: #ffffff;
  color: #ffffff;
  background: none;
}
.zh-stage[data-layout="centered"] .zh-glow {
  left: 50%; top: 40%; transform: translate(-50%, -50%);
}

/* ============================================================
   LAYOUT — Aside (small blob, compact copy)
   ============================================================ */
.zh-stage[data-layout="aside"] {
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: var(--sp-8);
}
.zh-stage[data-layout="aside"] .zh-blob-wrap {
  width: 100%;
  aspect-ratio: 1 / 1;
  max-height: 56vh;
}
.zh-stage[data-layout="aside"] .zh-headline {
  font-size: clamp(48px, 6.5vw, 92px);
}
.zh-stage[data-layout="aside"] .zh-glow {
  right: -10%; top: 30%;
}

/* ============================================================
   DESKTOP GRID PLACEMENT
   The copy is split into a lead block (.zh-copy) and a foot block
   (.zh-copy-foot) with the blob between them in source order. On desktop we
   place lead + foot in column 1 (rows 1/2) and span the blob down column 2,
   reproducing the original two-column hero. Scoped to >=1101px so the mobile
   stack below keeps the natural text → blob → actions source order.
   ============================================================ */
@media (min-width: 1101px) {
  .zh-stage[data-layout="split"],
  .zh-stage[data-layout="aside"] {
    grid-template-rows: auto auto;
    row-gap: var(--sp-5);
    align-content: center;
  }
  .zh-stage[data-layout="split"] .zh-copy,
  .zh-stage[data-layout="aside"] .zh-copy { grid-column: 1; grid-row: 1; align-self: end; }
  .zh-stage[data-layout="split"] .zh-copy-foot,
  .zh-stage[data-layout="aside"] .zh-copy-foot { grid-column: 1; grid-row: 2; align-self: start; }
  .zh-stage[data-layout="split"] .zh-blob-wrap,
  .zh-stage[data-layout="aside"] .zh-blob-wrap { grid-column: 2; grid-row: 1 / span 2; align-self: center; }

  .zh-stage[data-layout="centered"] .zh-copy-foot { align-items: center; }
}

/* ============================================================
   RESPONSIVE — desktop split → tablet/mobile stack
   ============================================================ */
@media (max-width: 1100px) {
  .zh-nav-inner { padding: 0 var(--gutter-mobile); gap: var(--sp-4); }
  .zh-nav-links { display: none; }
  .zh-stage,
  .zh-stage[data-layout="split"],
  .zh-stage[data-layout="centered"],
  .zh-stage[data-layout="aside"] {
    grid-template-columns: 1fr;
    padding: var(--sp-7) var(--gutter-mobile) var(--sp-9);
    gap: var(--sp-6);
    text-align: left;
    justify-items: stretch;
  }
  /* Source order is lead text → blob → actions, so no reordering needed. */
  .zh-stage .zh-copy { align-items: flex-start; text-align: left; }
  .zh-stage .zh-copy-foot { align-items: flex-start; }
  .zh-stage .zh-bio { text-align: left; }
  .zh-stage .zh-signal { justify-content: flex-start; }
  .zh-stage .zh-ctas { justify-content: flex-start; }

  /* Framed showcase: the edge-faded blob floats inside a bordered card. */
  .zh-blob-wrap {
    width: 100%;
    aspect-ratio: 1 / 0.72 !important;
    max-height: 46vh !important;
    margin: var(--sp-2) auto;
    position: relative !important;
    inset: auto !important;
    border: 1px solid var(--border-subtle);
    border-radius: var(--r-xl);
    background: var(--bg-deep, var(--surface-1));
    overflow: hidden;
  }
  .zh-stage[data-layout="centered"] .zh-headline {
    font-size: clamp(48px, 14vw, 84px);
    mix-blend-mode: normal;
  }
  .zh-stage[data-layout="centered"] .zh-headline .accent {
    background: linear-gradient(180deg, var(--fg-primary) 0%, var(--accent-cyan-hi) 55%, var(--accent-cyan-lo) 100%);
    -webkit-background-clip: text;
            background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
  }

  .zh-headline { font-size: clamp(38px, 11.5vw, 78px); letter-spacing: -0.035em; line-height: 0.98; }
  /* let the phrases wrap instead of clipping off the right edge */
  .zh-headline .line { white-space: normal; text-wrap: balance; }
  .zh-meta-tl { font-size: 10px; gap: 12px; top: calc(var(--nav-h) + 12px); }
  .zh-meta-tl .hide-sm { display: none; }
  .zh-blob-labels { display: none; }
  .zh-scroll { display: none; }
  .zh-corners { inset: calc(var(--nav-h) + 12px) 12px 12px 12px; }
  .zh-signal { gap: var(--sp-4); }
}

@media (max-width: 520px) {
  .zh-eyebrow { font-size: 11px; letter-spacing: 0.16em; }
  .zh-eyebrow .divider { display: none; }
  .zh-headline { font-size: clamp(34px, 12vw, 56px); }
  /* shrink the blob so the headline sits closer to the top on phones */
  .zh-blob-wrap {
    aspect-ratio: 1 / 0.62 !important;
    max-height: 38vh !important;
  }
  .zh-tagline { font-size: 18px; margin-top: 14px; }
  .zh-bio { font-size: 15px; }
  .zh-ctas { width: 100%; flex-direction: column; align-items: stretch; }
  .zh-ctas .zh-btn { justify-content: center; }
  .zh-signal { gap: var(--sp-3) var(--sp-5); margin-top: var(--sp-5); }
}

/* reduced motion */
@media (prefers-reduced-motion: reduce) {
  .zh-blob-scan, .zh-cursor, .zh-pip, .zh-scroll .stem::after { animation: none; }
}
