/* ============================================================
   YMT — landing hub only
   ============================================================ */

.hub {
  position: relative;
  min-height: 100svh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding-top: clamp(5.5rem, 12vh, 8rem);
  padding-bottom: 2rem;
}

/* Mosaic canvas echoing the logo's triangular Y */
#mosaic {
  position: fixed;
  inset: 0;
  z-index: 0;
  opacity: 0.5;
  pointer-events: none;
}

.hub-head {
  display: grid;
  gap: 1.35rem;
  justify-items: start;
  max-width: 900px;
  margin-bottom: clamp(2.5rem, 6vh, 4.5rem);
}
.hub-head .display { max-width: 15ch; }

/* ---------- The three doors ---------- */
.doors {
  display: grid;
  gap: clamp(0.9rem, 1.6vw, 1.4rem);
  grid-template-columns: repeat(3, 1fr);
  align-content: start;
}
@media (max-width: 1000px) { .doors { grid-template-columns: 1fr; } }

.door {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-height: clamp(340px, 46vh, 460px);
  padding: clamp(1.5rem, 2.4vw, 2.3rem);
  border-radius: var(--r-xl);
  isolation: isolate;
  overflow: hidden;
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.5s;
  transform-style: preserve-3d;
}
.door:hover { border-color: var(--glass-line-hi); }

/* Each door carries its own accent */
.door[data-key="marketing"] { --accent-a: var(--magenta); --accent-b: var(--violet); --accent-glow: rgba(255,45,111,0.4); }
.door[data-key="live"]      { --accent-a: var(--sky);     --accent-b: var(--indigo); --accent-glow: rgba(34,200,245,0.4); }
.door[data-key="ai"]        { --accent-a: var(--emerald); --accent-b: var(--lime);   --accent-glow: rgba(47,191,110,0.4); }

/* Looping ambient clip behind each door */
.door-video {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: -2;
  opacity: 0;
  transform: scale(1.06);
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1), transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.door-video.is-ready { opacity: 0.5; }
.door:hover .door-video.is-ready { opacity: 0.72; transform: scale(1.12); }

.door-wash {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(190deg, rgba(4,6,13,0.1), rgba(4,6,13,0.72) 62%, rgba(4,6,13,0.94)),
    radial-gradient(90% 70% at 20% 0%, var(--accent-glow), transparent 62%);
  opacity: 0.9;
  transition: opacity 0.6s;
}
.door:hover .door-wash { opacity: 0.78; }

/* Sweeping specular highlight tracking the cursor */
.door-shine {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(320px 320px at var(--mx, 50%) var(--my, 50%),
              rgba(255,255,255,0.13), transparent 62%);
  transition: opacity 0.5s;
}
.door:hover .door-shine { opacity: 1; }

/* In normal flow, not absolute — on short viewports an absolute header
   collides with the title block. margin-bottom:auto pins the body to
   the bottom of the card without either overlapping the other. */
.door-top {
  position: relative;
  z-index: 2;
  margin-bottom: auto;
  padding-bottom: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.door-key {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.24em;
  color: rgba(244,246,251,0.5);
}
.door-mark {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: 12px;
  border: 1px solid var(--glass-line-hi);
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--paper);
}
.door-mark svg { width: 20px; height: 20px; }

.door-body { position: relative; z-index: 2; display: grid; gap: 0.85rem; }
.door-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.6rem, 1.2rem + 1.1vw, 2.15rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
}
.door-sub { color: var(--mist); font-size: 0.95rem; max-width: 34ch; }

.door-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.15rem; }
.door-tag {
  font-size: 0.74rem;
  padding: 0.28rem 0.68rem;
  border-radius: 999px;
  border: 1px solid var(--glass-line);
  color: var(--whisper);
  background: rgba(255,255,255,0.035);
}

.door-go {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 0.5rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--paper);
}
.door-go span {
  width: 30px; height: 30px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: linear-gradient(120deg, var(--accent-a), var(--accent-b));
  color: #05070f;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.door:hover .door-go span { transform: translateX(5px); }

/* Animated bottom edge light */
.door::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  z-index: 3;
  background: linear-gradient(90deg, transparent, var(--accent-a), var(--accent-b), transparent);
  transform: scaleX(0);
  transform-origin: 50%;
  transition: transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
}
.door:hover::after { transform: scaleX(1); }

/* ---------- Footer strip on hub ---------- */
.hub-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  margin-top: clamp(2rem, 4vh, 3rem);
  padding-top: 1.5rem;
  border-top: 1px solid var(--glass-line);
  font-size: 0.85rem;
  color: var(--whisper);
}
.hub-foot-links { display: flex; flex-wrap: wrap; gap: 1.4rem; }
.hub-foot-links a:hover { color: var(--paper); }
