/* Gen2Hero — Gen 2 hero in a Webflow-style container. The lilac/blue light is a background image on
   the Webflow hero section (hero-bg-desktop.jpg / hero-bg-mobile.jpg), not part of this component.
   Port of the designer's Final prototype (.h3 / .hb-* / .h3-glow). The Renter Journey is a separate
   component (Gen2Journey). No background colour and no vertical padding (the Webflow section has them). */

.g2h,
.g2h * {
  box-sizing: border-box;
}
.g2h {
  position: relative;
  z-index: 2;
  /* clip, not hidden — the board's wide mobile stage must not cause sideways scroll */
  overflow-x: clip;
  overflow-y: visible;
  font-family: inter-variable, "Inter Variable", Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.4;
  letter-spacing: -0.02em;
  font-feature-settings: "ss07" 1, "ss08" 1;
  font-variation-settings: "opsz" 32;
  -webkit-font-smoothing: antialiased;
  color: #0e0d0c;
}

/* ── Container: mirrors the Webflow `container` class (see TeamCarouselStyling .tc__container) ── */
.g2h-container {
  position: relative;
  width: 90%;
  max-width: 90rem;
  margin: 0 auto;
}
@media (min-width: 1440px) {
  .g2h-container {
    max-width: 100rem;
  }
}
@media (min-width: 1920px) {
  .g2h-container {
    max-width: 120rem;
  }
}

.g2h-hero {
  position: relative;
}

/* ── Copy (prototype .h3-c: 840 wide; eyebrow → 32 → title → 20 → sub → 32 → CTA) ── */
.g2h-gut {
  position: relative;
  z-index: 1;
}
.g2h-copy {
  max-width: 840px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  text-align: center;
}
.g2h-eb {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-weight: 500;
  text-transform: uppercase;
  font-feature-settings: "salt" 1;
  font-size: 16px;
  line-height: 1.1;
  letter-spacing: 0;
  color: #3f3e3c;
}
.g2h-eb i {
  display: block;
  width: 8px;
  height: 8px;
  background: #6b4fff;
}
.g2h-hd {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.g2h-t {
  margin: 0;
  font-size: 64px;
  line-height: 1.1;
  letter-spacing: -0.03em;
  font-weight: 400;
  font-variation-settings: normal;
}
.g2h-sub {
  margin: 0;
  font-size: 18px;
  line-height: 1.4;
  letter-spacing: -0.02em;
  color: #3f3e3c;
}
.g2h-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 4px;
  background: #6b4fff;
  color: #fff;
  padding: 12px 20px;
  font-size: 16px;
  line-height: 1.4;
  text-decoration: none;
  transition:
    background 0.2s cubic-bezier(0.22, 0.8, 0.24, 1),
    transform 0.2s cubic-bezier(0.22, 0.8, 0.24, 1);
}
.g2h-btn:hover {
  background: #5231cc;
}
.g2h-btn:focus-visible {
  outline: 2px solid #6b4fff;
  outline-offset: 3px;
}

/* ── Board (prototype .h3-bd / .h3-bst / .hb-*) ── */
.g2h-bd {
  position: relative;
  z-index: 1;
  margin-top: 64px;
  overflow: hidden;
}
.g2h-bst {
  position: absolute;
  left: 50%;
  top: 0;
  z-index: 1;
  width: 1160px;
  height: 560px;
  transform-origin: 50% 0;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 58%, transparent 90%);
  mask-image: linear-gradient(180deg, #000 0%, #000 58%, transparent 90%);
}
.g2h-c1,
.g2h-c2,
.g2h-c3 {
  position: absolute;
  width: 379px;
  top: 51px;
}
.g2h-c1 {
  left: 0;
}
.g2h-c2 {
  left: 391px;
  top: 0;
}
.g2h-c3 {
  left: 782px;
}

.g2h-col {
  height: 522px;
  padding: 4px;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.04);
}
.g2h-col-h {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 12px;
  font-size: 16px;
  line-height: 24px;
  letter-spacing: -0.01em;
  color: #0e0d0c;
}
.g2h-col-h svg {
  flex: none;
  display: block;
}
.g2h-drag {
  margin-left: auto;
  display: flex;
  font-style: normal;
}
.g2h-list {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.g2h-card {
  position: relative;
  height: 75px;
  border-radius: 8px;
  transform-origin: 50% 50%;
}
.g2h-card.hid {
  visibility: hidden;
}
.g2h-in {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 100%;
  padding: 0 16px;
  background: #fff;
  border: 0.5px solid #dddcda;
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(14, 13, 12, 0.05);
  transition: box-shadow 0.45s cubic-bezier(0.25, 0.1, 0.25, 1);
}
.g2h-card.lift .g2h-in,
.g2h-fly .g2h-in {
  box-shadow:
    0 22px 40px -14px rgba(14, 13, 12, 0.2),
    0 2px 6px rgba(14, 13, 12, 0.06);
}
.g2h-fly {
  pointer-events: none;
  height: 75px;
}
.g2h-ghost {
  height: 75px;
  border: 1px dashed #c1bafe;
  border-radius: 8px;
  background: rgba(107, 79, 255, 0.03);
}

.g2h-bar {
  flex: none;
  width: 2px;
  height: 43px;
  border-radius: 2px;
  margin-left: -4px;
}
.g2h-tx {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1;
  align-self: center;
}
.g2h-tx b {
  font-weight: 400;
  font-size: 14px;
  line-height: 20px;
  color: #3f3e3c;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.g2h-tx span {
  font-size: 14px;
  line-height: 20px;
  color: #7a7977;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.g2h-tw {
  position: relative;
  display: grid;
  justify-items: end;
  align-items: center;
  flex: none;
}
.g2h-tw > * {
  grid-area: 1 / 1;
}
.g2h-time {
  font-style: normal;
  font-size: 14px;
  line-height: 20px;
  color: #0e0d0c;
  white-space: nowrap;
}

/* Chips: Plex Mono 12 caps, 22 tall, radius 3 */
.g2h-chips {
  align-self: flex-start;
  margin-top: 13px;
  display: flex;
  gap: 4px;
  flex: none;
}
.g2h-chip {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 7px;
  border-radius: 3px;
  font-family: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-weight: 500;
  font-feature-settings: "salt" 1;
  font-size: 12px;
  line-height: 1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  white-space: nowrap;
}
.g2h-chip em {
  position: relative;
  font-style: normal;
}
.g2h-chip.inq {
  background: #f4faff;
  color: #1475e8;
}
.g2h-chip.tour {
  background: #eefdf8;
  color: #00b080;
}
.g2h-chip.cur {
  background: #f6f4f2;
  color: #0e0d0c;
}
.g2h-chip.wo {
  background: #fef0fa;
  color: #d42aaf;
}
.g2h-chip.ren {
  background: #e5f2ff;
  color: #1475e8;
}
/* In progress (Figma 692:175277): no tag, sans text with a purple→blue gradient + spinner */
.g2h-chip.prog {
  background: none;
  padding: 0;
  height: 22px;
  gap: 6px;
  overflow: visible;
  font-family: inter-variable, "Inter Variable", Inter, ui-sans-serif, system-ui, sans-serif;
  font-feature-settings: "ss07" 1, "ss08" 1;
  font-weight: 400;
  text-transform: none;
  font-size: 14px;
  letter-spacing: -0.02em;
}
.g2h-chip.prog em {
  background: linear-gradient(100deg, #a093fd 0%, #1475e8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1.4;
}
.g2h-spin {
  flex: none;
  display: block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 1.25px solid rgba(160, 147, 253, 0.3);
  border-top-color: #a093fd;
  border-right-color: #5f86f0;
  animation: g2h-spin 0.9s linear infinite;
}
@keyframes g2h-spin {
  to {
    transform: rotate(360deg);
  }
}

/* Load-in: column shells rise (JS), then cards deal in as a diagonal wave */
.g2h-bd:not(.in) .g2h-list > * {
  opacity: 0;
}
.g2h-bd.deal .g2h-list > .g2h-card > .g2h-in {
  animation: g2h-deal 0.75s cubic-bezier(0.22, 1, 0.36, 1) backwards;
  animation-delay: calc(var(--r) * 75ms + 0.3s);
}
.g2h-bd.deal .g2h-c2 .g2h-list > .g2h-card > .g2h-in {
  animation-delay: calc(var(--r) * 75ms + 0.22s);
}
.g2h-bd.deal .g2h-c3 .g2h-list > .g2h-card > .g2h-in {
  animation-delay: calc(var(--r) * 75ms + 0.38s);
}
.g2h-bd.deal .g2h-col-h > * {
  animation: g2h-hd 0.5s cubic-bezier(0.25, 0.1, 0.25, 1) backwards 0.2s;
}
@keyframes g2h-deal {
  0% {
    opacity: 0;
    transform: translateY(22px) rotate(-2deg) scale(0.96);
    filter: blur(3px);
  }
  60% {
    filter: blur(0);
  }
  100% {
    opacity: 1;
    transform: none;
    filter: none;
  }
}
@keyframes g2h-hd {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
}

@media (max-width: 1000px) {
  .g2h-t {
    font-size: 52px;
  }
}

@media (max-width: 767px) {
  /* Full width on mobile, like .tc__container; the prototype's own 16/24px gutter is on the copy */
  .g2h-container {
    width: 100%;
    max-width: 100%;
  }
  .g2h-gut {
    padding: 0 16px;
  }
  .g2h-hd {
    gap: 16px;
  }
  .g2h-eb {
    font-size: 14px;
  }
  .g2h-t {
    font-size: 36px;
  }

  .g2h-bd {
    margin-top: 40px;
  }
  /* 300-wide columns: Prospects centred, Calendar / Residents peek in from the sides */
  .g2h-bst {
    width: 916px;
    height: 500px;
  }
  .g2h-c1,
  .g2h-c2,
  .g2h-c3 {
    width: 300px;
  }
  .g2h-c1 {
    left: 0;
    top: 36px;
  }
  .g2h-c2 {
    left: 308px;
    top: 0;
  }
  .g2h-c3 {
    left: 616px;
    top: 36px;
  }
  .g2h-col {
    height: 457px;
    border-radius: 12px;
    padding: 3px;
  }
  .g2h-col-h {
    height: 40px;
    font-size: 14px;
    padding: 0 10px;
    gap: 6px;
  }
  .g2h-col-h svg {
    width: 16px;
    height: 16px;
  }
  .g2h-list {
    gap: 3px;
  }
  .g2h-card,
  .g2h-fly,
  .g2h-ghost {
    height: 66px;
  }
  .g2h-in {
    padding: 0 12px;
    gap: 10px;
  }
  .g2h-bar {
    height: 38px;
  }
  .g2h-tx b,
  .g2h-tx span,
  .g2h-time {
    font-size: 12px;
    line-height: 18px;
  }
  .g2h-chips {
    margin-top: 12px;
  }
  .g2h-chip {
    font-size: 10px;
    height: 20px;
    padding: 0 6px;
  }
  .g2h-chip.prog {
    font-size: 12px;
    height: 20px;
  }
  .g2h-spin {
    width: 10px;
    height: 10px;
  }
}
@media (max-width: 480px) {
  .g2h-gut {
    padding: 0 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .g2h-spin {
    animation: none;
  }
  .g2h-bd.deal .g2h-list > .g2h-card > .g2h-in,
  .g2h-bd.deal .g2h-col-h > * {
    animation: none;
  }
}

