/* ============================================================
   LUNOVA — home page
   Hero, ribbon, discovery grid, about panel.
   ============================================================ */

main {
  max-width: 1600px;
  margin: auto;
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 700px;
  overflow: hidden;
  isolation: isolate;
  background: #201018;
}

.hero-art {
  position: absolute;
  inset: 0;
  left: 42%;
  z-index: -3;
  overflow: hidden;
  cursor: pointer;
  background: url('../assets/hero.jpg') center 20% / cover no-repeat;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 22%);
  mask-image: linear-gradient(90deg, transparent, #000 22%);
}

.hero-art video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  opacity: 0;
  transition: opacity .65s;
}

.hero-art video.is-playing { opacity: 1; }

.hero-shade {
  position: absolute;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    linear-gradient(90deg, #160e14 0%, #160e14 33%, #160e14d9 43%, #160e1455 68%, #160e1422),
    linear-gradient(0deg, #140d12b0, transparent 35%);
}

.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 75%;
  padding: 78px 6% 100px;
}

h1 {
  margin: 29px 0 25px;
  font-size: clamp(54px, 6.5vw, 99px);
  line-height: 1.03;
  letter-spacing: -3px;
}

.headline-line { display: block; }
h1 .headline-line:last-child { color: #e7b1bf; font-style: italic; }

.hero p {
  margin: 0 0 32px;
  color: #d3bfc6;
  font-size: 16px;
  line-height: 1.9;
}

.primary {
  display: inline-flex;
  gap: 36px;
  align-items: center;
  padding: 17px 23px;
  border: 1px solid #eccbb06b;
  border-radius: 6px;
  background: var(--gold);
  color: #2c1821;
  font-size: 12px;
  font-weight: 600;
  transition: .2s;
}

.primary:hover {
  background: #f8e1c9;
  transform: translateY(-2px);
}
.primary b {
  font-size: 21px;
  font-weight: 400;
  line-height: 1;
}

.hero-detail {
  display: flex;
  gap: 13px;
  align-items: center;
  margin-top: 28px;
  color: #c5aeb9;
  font-size: 10px;
  letter-spacing: 1px;
}

.hero-detail i {
  width: 28px;
  height: 1px;
  background: #bfa084;
}

.hero-caption {
  position: absolute;
  right: 6%;
  bottom: 29px;
  left: 6%;
  display: flex;
  justify-content: space-between;
  color: #d8bcc4;
  font-size: 8px;
  letter-spacing: 3px;
}

/* ---------- featured companion (hero widget) ---------- */

.meet {
  order: -3;
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 0;
}

.meet-photo {
  flex: none;
  width: 74px;
  height: 98px;
  overflow: hidden;
  border: 1px solid #e5c5a566;
  border-radius: 14px;
}

.meet-photo img,
.meet-photo video,
.meet-row img,
.meet-row video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 15%;
}

.meet-copy { min-width: 0; }

.meet-copy b {
  display: block;
  font-size: 16px;
}

.meet-copy span {
  display: block;
  color: var(--gold);
  font-size: 12px;
  line-height: 1.35;
}

.meet-row {
  order: -2;
  display: flex;
  gap: 8px;
  margin-top: 12px;
  overflow: auto;
}

.meet-row button {
  flex: none;
  width: 46px;
  height: 62px;
  padding: 0;
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: 10px;
  background: #1a1016;
}

.meet-row button.on { border-color: var(--gold); }

#meet-go {
  order: -1;
  margin-top: 14px;
}

/* ---------- ribbon ---------- */

.ribbon {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-around;
  padding: 26px 6%;
  border-block: 1px solid var(--line);
  background: #1c1119;
  color: #d9c2cb;
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.ribbon i {
  color: #c38d9e;
  font-size: 17px;
  font-style: normal;
}

/* ---------- discovery ---------- */

#discover { padding: 88px 6%; }

.section-top {
  display: flex;
  gap: 30px;
  align-items: center;
  justify-content: space-between;
}

h2 {
  margin: 17px 0;
  font-size: clamp(31px, 3.8vw, 51px);
  line-height: 1.15;
  letter-spacing: -1.2px;
}

.section-intro {
  margin-bottom: 30px;
  color: var(--muted);
  font-size: 13px;
}

.search-wrap {
  display: flex;
  gap: 10px;
  align-items: center;
  min-width: 240px;
  padding: 10px 16px;
  border: 1px solid #a87f8a44;
  border-radius: 6px;
  background: #21161c;
}

.search-wrap span {
  color: var(--gold);
  font-size: 25px;
  line-height: 1;
}

input { color: var(--ink); }

.search-wrap input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 12px;
}

input::placeholder { color: #a88c98; }

.filterbar {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
  margin: 8px 0 30px;
}

#gender-filters {
  display: flex;
  gap: 3px;
  padding: 4px;
  border: 1px solid #8d647c44;
  border-radius: 30px;
  background: #281923;
}

#gender-filters button {
  padding: 8px 14px;
  border: 0;
  border-radius: 22px;
  background: transparent;
  color: #bda4ae;
  font-size: 11px;
  transition: background .2s, color .2s;
}

#gender-filters button.active {
  background: var(--gold);
  color: #271520;
}

#filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 0;
}

#filters button {
  padding: 9px 19px;
  border: 1px solid #8d647c4d;
  border-radius: 30px;
  background: transparent;
  color: #bda4ae;
  font-size: 11px;
  transition: background .2s, border-color .2s, color .2s;
}

#filters button:hover { border-color: #b67892; }

#filters button.active {
  border-color: #9e5c72;
  background: #6a344a;
  color: #ffe9e6;
}

#cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 21px;
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  aspect-ratio: 4 / 5;
  padding: 23px;
  overflow: hidden;
  border: 1px solid #ffffff19;
  border-radius: 12px;
  background: #2f1d29;
  isolation: isolate;
  transition: transform .25s, border-color .25s;
}

.card::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(0deg, #180e17 0%, #180e17e6 18%, #180e1700 70%);
}

.card .avatar-photo {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  filter: saturate(.75);
  transition: transform .6s;
}

.card video.avatar {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center 18%;
  background: #1a1016;
}

.card:hover {
  transform: translateY(-5px);
  border-color: #d3a2b377;
}

.card:hover .avatar-photo { transform: scale(1.06); }

.card h3 {
  margin: 0 0 5px;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 26px;
  font-weight: 400;
  letter-spacing: -.5px;
}

.card p {
  max-width: 90%;
  margin: 0;
  padding-right: 22px;
  color: #e1cbd5;
  font-size: 11px;
  line-height: 1.5;
}

.card-meta {
  margin-top: 8px;
  padding-right: 24px;
  overflow: hidden;
  color: #d2b8c5;
  font-size: 9px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.card .arrow {
  position: absolute;
  right: 19px;
  bottom: 24px;
  display: grid;
  place-items: center;
  width: 29px;
  height: 29px;
  border: 1px solid #e5c5a55c;
  border-radius: 50%;
  color: #f2d8c3;
  font-size: 16px;
}

.tag {
  order: -1;
  align-self: flex-start;
  margin-bottom: 13px;
  padding: 3px 7px;
  border: 1px solid #f2c9d12e;
  border-radius: 4px;
  background: #321b2f9e;
  color: #efd2d6;
  font-size: 8px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
}

.disclosure {
  margin: 25px 0 0;
  color: #a38995;
  font-size: 10px;
  text-align: center;
}

/* ---------- about ---------- */

#about {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  margin: 0 6% 90px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #251820;
}

.about-art {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 25px;
  align-items: center;
  justify-content: center;
  min-height: 430px;
  background:
    radial-gradient(ellipse at 50% 45%, #70304444, transparent 65%),
    repeating-linear-gradient(115deg, #3d202766 0, transparent 1px, transparent 28px),
    #1c1119;
}

.about-art::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 235px;
  height: 300px;
  border: 1px solid #cda37e2b;
  border-radius: 150px 150px 0 0;
  transform: translate(-50%, -50%);
}

.about-art img { width: 75px; z-index: 1; }

.about-art > span {
  z-index: 1;
  font-family: Georgia, serif;
  font-size: 32px;
  line-height: 1.2;
  letter-spacing: 1px;
  text-align: center;
}

.about-art em {
  color: var(--gold);
  font-size: 35px;
  letter-spacing: -1px;
}

.about-copy { padding: 60px 13% 50px 10%; }
.about-copy h2 { font-size: 40px; }

.about-copy p {
  margin-bottom: 23px;
  color: #bda3af;
  font-size: 13px;
  line-height: 1.9;
}

.text-link {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid #bd8c9f55;
  color: var(--gold);
  font-size: 12px;
}

/* ---------- responsive ---------- */

@media (max-width: 1050px) {
  #cards { grid-template-columns: repeat(3, 1fr); }
  .hero { min-height: 650px; }
  .hero-copy { width: 85%; }
  .about-copy { padding: 42px 9%; }
  .about-copy h2 { font-size: 34px; }
  .ribbon { font-size: 8px; letter-spacing: 1px; }
}

@media (max-width: 760px) {
  #cards { grid-template-columns: repeat(2, 1fr); }
  .hero-copy { width: 100%; }
  .hero-art {
    left: 25%;
  }
  .hero-art video { object-position: 62% center; }
  .hero-shade {
    background:
      linear-gradient(90deg, #160e14f5, #160e14b3 40%, #160e1422),
      linear-gradient(0deg, #140d12aa, transparent);
  }
  .section-top { display: block; }
  .search-wrap { max-width: 360px; margin: 0 0 24px; }
  .section-intro { margin-bottom: 20px; }
  #discover { padding-top: 65px; }
  #about { grid-template-columns: 1fr 1.15fr; }
  .about-art { min-height: 380px; }
  .about-art::before { width: 180px; height: 270px; }
  .about-art > span { font-size: 24px; }
  .about-art em { font-size: 28px; }
  .about-copy { padding: 38px 9%; }
  .about-copy h2 { font-size: 30px; }
  .ribbon span:nth-of-type(4),
  .ribbon i:last-of-type { display: none; }
}

@media (max-width: 480px) {
  .hero {
    min-height: 100svh;
    align-items: flex-end;
  }
  .hero-art {
    left: 0;
    -webkit-mask-image: none;
    mask-image: none;
  }
  .hero-art video { object-position: center 20%; }
  .hero-shade {
    background: linear-gradient(0deg, #160e14 2%, #160e14e6 25%, #160e1466 58%, #160e1422);
  }
  .hero-copy { padding: 92px 6% 28px; }
  .hero-copy .eyebrow,
  .hero-copy h1,
  .hero-copy > p { display: none; }
  .primary { gap: 23px; padding: 15px 18px; font-size: 11px; }
  .meet-photo { width: 148px; height: 198px; }
  #meet-go {
    display: flex;
    align-items: center;
    justify-content: center;
    width: min(100%, 420px);
    min-height: 54px;
    font-size: 18px;
  }
  .hero-detail { font-size: 8px; }
  .hero-caption { font-size: 7px; letter-spacing: 1.6px; }

  .ribbon { gap: 12px; padding: 22px 5%; font-size: 8px; }
  .ribbon span:nth-of-type(3),
  .ribbon i:nth-of-type(2) { display: none; }

  #discover { padding: 50px 5%; }
  h2 { font-size: 33px; letter-spacing: -.7px; }
  .section-intro { font-size: 12px; }

  .filterbar { gap: 12px; }
  #gender-filters { width: 100%; justify-content: space-between; }
  #gender-filters button { flex: 1; font-size: 11px; }
  #filters { gap: 7px; }
  #filters button { padding: 8px 12px; font-size: 10px; }

  #cards { gap: 12px; }
  .card {
    aspect-ratio: 3 / 4.3;
    padding: 16px 13px;
    border-radius: 9px;
  }
  .card::after {
    background: linear-gradient(0deg, #180e17, #180e17cc 28%, transparent 85%);
  }
  .card h3 { font-size: 21px; }
  .card p { max-width: 100%; padding-right: 8px; font-size: 10px; }
  .card-meta { margin-top: 6px; padding-right: 14px; font-size: 8px; }
  .card .arrow {
    right: 10px;
    bottom: 17px;
    width: 22px;
    height: 22px;
    font-size: 13px;
  }
  .tag { margin-bottom: 9px; font-size: 7px; letter-spacing: .5px; }

  #about { grid-template-columns: 1fr; margin: 0 5% 55px; }
  .about-art { min-height: 300px; }
  .about-art::before { width: 190px; height: 245px; }
  .about-copy { padding: 36px 8%; }
  .about-copy h2 { font-size: 34px; }

  #discover .section-top h2 {
    font-size: clamp(24px, 7vw, 30px);
    line-height: 1.35;
    letter-spacing: -.4px;
    text-wrap: balance;
  }
}

/* CJK headlines need a little more vertical room at small sizes. */
@media (max-width: 480px) {
  html[lang^='zh'] h1 {
    font-size: clamp(35px, 10.6vw, 51px);
    line-height: 1.2;
    letter-spacing: -1px;
  }
  html[lang^='zh'] h2 { line-height: 1.35; }
}
