/* BugSmash remediation: intentionally isolated from the approved v2 layout layer. */

/* 1–4: home hero, invitation CTA and platform framing. */
.home-hero {
  min-height: calc(100svh - 75px);
}

.button-burgundy {
  background:
    linear-gradient(110deg, rgb(70 1 7 / .96), rgb(126 31 38 / .92)),
    url("/marketing-v1/assets/v2/webp/request-invitation-texture.webp") center / cover;
}

.platform-image {
  max-height: 450px;
  object-fit: contain;
}

.platform > .slide-controls {
  grid-column: 2;
  grid-row: 2;
  align-self: start;
  margin-top: -24px;
}

/* 5 and 34: the supplied member photographs cross-fade with content changes. */
.members-current.is-changing,
.members-next.is-changing,
.platform-image.is-changing {
  animation: member-photo-swap .38s ease both;
}

@keyframes member-photo-swap {
  0% { opacity: .22; transform: scale(.985); }
  100% { opacity: 1; transform: scale(1); }
}

/* 7: an editorial card is a complete link target, not just its thumbnail. */
.press-card[role="link"] { cursor: pointer; }
.press-card[role="link"]:focus-visible { outline: 2px solid var(--wine); outline-offset: 5px; }
.press-empty { color: var(--dark-grey); text-align: center; padding: 48px 20px; }

/* 9: original-site style directional menu affordance. */
.menu-layer nav a { transition: transform .22s ease, opacity .22s ease; }
.menu-layer nav:hover a { opacity: .48; }
.menu-layer nav a:hover,
.menu-layer nav a:focus-visible { opacity: 1; transform: translateX(16px); }

/* 10–17: partner list hierarchy, controls, expanded content and clubs. */
.partner-detail {
  font: 300 20px/1.4 Satoshi, sans-serif;
  color: var(--dark-grey);
}

.partner button {
  font: 500 10px/1.85 Oswald, sans-serif;
  letter-spacing: 1px;
  text-underline-offset: 3px;
}

.partner-more { margin-top: 32px; }
.partner-more h4 { margin-top: 32px; }
.partner-more h4 + p,
.partner-more h4 + ul { margin-top: 12px; }
.partner-more ul { margin: 12px 0 0; padding-left: 20px; color: var(--dark-grey); }
.partner-more li { margin: 8px 0; font: 300 16px/1.4 Satoshi, sans-serif; }
.partner.expanded > div > button { display: block; margin-top: 28px; }

.clubs > img {
  align-self: stretch;
  object-fit: cover;
  object-position: center;
}

/* 19–20: dark form controls retain readable native option menus and a clear consent control. */
.contact-form select { color-scheme: dark; }
.contact-form select option { background: var(--ink); color: #fff; }
.contact-form .consent { display: flex; align-items: flex-start; gap: 8px; }
.contact-form .consent label { display: inline; font: 300 12px/1.4 Satoshi, sans-serif; }
.contact-form .consent input {
  appearance: none;
  width: 16px;
  height: 16px;
  min-width: 16px;
  padding: 0;
  margin: 0;
  border: 1px solid rgb(255 255 255 / .72);
  border-radius: 0;
  background: transparent;
}
.contact-form .consent input:checked {
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m3 8 3 3 7-7' fill='none' stroke='%23460107' stroke-width='2'/%3E%3C/svg%3E") center / 13px 13px no-repeat;
}

/* 21–22: retain the seating in the partners hero and the top of the clean membership source. */
.inner-hero.inner-hero--partners { background-position: 50% 64%; }
.apply-direct > img { object-position: center top; }

/* 24–26 and 31: benefit emphasis, quieter loyalty information and original-style plan names. */
.plans th { font-family: "Cormorant SC", serif; font-size: 24px; }
.plans th b,
.plans th strong { font-family: Satoshi, sans-serif; }
.plans .benefit-yes { color: var(--wine); font-weight: 500; }
.plans .benefit-no { color: var(--grey); }
.loyalty table { box-shadow: 0 8px 22px rgb(0 0 0 / .08); color: var(--dark-grey); }
.loyalty th { color: var(--ink); }
.loyalty td:first-child { color: var(--ink); }

/* 28, 30 and 32: a true centered article banner and tighter statement rhythm. */
.article-hero { object-fit: cover; object-position: center; }
.statement {
  min-height: 520px;
  padding-block: clamp(104px, 10vw, 152px);
  justify-content: center;
}

@media (max-width: 900px) {
  .platform > .slide-controls {
    grid-column: auto;
    grid-row: auto;
    margin: 0;
    order: 2;
  }

  .home-hero { min-height: 0; }
}

@media (max-width: 768px) {
  .members-copy h2 { color: var(--ink); text-shadow: none; }
  .partner-detail { font-size: 18px; }
}

/* Reopened BugSmash pins: preserve the Figma desktop composition and provide
   real mobile components instead of text synthesized by CSS. */
.home-hero { height: clamp(620px, 52.5vw, 757px); min-height: 0; }
.button-burgundy {
  background: linear-gradient(110deg, rgb(126 31 38 / .92), rgb(70 1 7 / .96)),
    url("/marketing-v1/assets/v2/webp/request-invitation-texture.webp") center / cover;
}
.platform-image { justify-self: end; }
.platform > .slide-controls {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 24px;
}
.slide-controls button {
  appearance: none;
  -webkit-appearance: none;
  color: currentColor;
}
.apply-direct > img { object-position: center bottom; image-rendering: auto; }
.article-hero { margin: 40px auto 0; }
.partner p,
.partner-detail,
.partner-more p { font: 300 20px/1.4 Satoshi, sans-serif; }
.partner p.lead { font-weight: 400; }
.partner-more h4 { font: 500 20px/1.4 Satoshi, sans-serif; }
.partner button { font: 400 10px/1.4 Satoshi, sans-serif; letter-spacing: 0; }
.plans th { font-family: Oswald, Arial, sans-serif; font-size: 20px; }
.plans-mobile { display: none; }

@media (max-width: 768px) {
  .plans table { display: none; }
  .plans::after { display: none; content: none; }
  .plans-mobile { display: grid; gap: 16px; margin: 32px auto 0; max-width: 520px; }
  .plan-card { border: 1px solid var(--line); padding: 24px; text-align: left; }
  .plan-card h3 { font: 500 28px/1.05 Oswald, Arial, sans-serif; margin: 0; }
  .plan-fee { margin-top: 18px; font: 500 16px/1.3 Oswald, Arial, sans-serif; }
  .plan-price { margin-top: 8px; padding: 8px 12px; background: var(--offwhite); color: var(--dark-grey); font: 500 16px/1.3 Oswald, Arial, sans-serif; }
  .plan-card > div { margin-top: 20px; border-top: 1px solid var(--line); }
  .plan-benefit { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); font: 400 14px/1.4 Satoshi, sans-serif; }
  .plan-benefit strong { flex: 0 0 auto; font-weight: 500; }
  .partner-detail { font-size: 20px; }
}

@media (max-width: 900px) {
  .home-hero { height: auto; }
}

/* The laptop composition deliberately exits the right edge, as in the source
   design. Keep only the reading column inset, never the laptop edge. */
.platform { padding-right: 0; }
.platform > .platform-image {
  width: auto;
  height: 450px;
  max-width: none;
  aspect-ratio: auto;
  justify-self: end;
}
.partner-more h4 { font-weight: 700; }
.partner-more li { font: 300 20px/1.4 Satoshi, sans-serif; }

@media (max-width: 900px) {
  .platform > .platform-image {
    width: 100%;
    height: auto;
    max-width: none;
    aspect-ratio: auto;
  }
}

/* Round three: the header and opening composition are a single viewport at
   every size. `dvh` handles mobile browser chrome; `vh` is the fallback. */
.home-hero {
  height: calc(100vh - 75px);
  height: calc(100dvh - 75px);
  min-height: 0;
  overflow: hidden;
}

/* The invitation treatment is vertical from the dark base to Nobilis wine. */
.button-burgundy {
  background: linear-gradient(to top, #151515, #540008);
}

/* Keep table-row breathing room fixed as the responsive grid changes rows. */
.way { padding-block: 28px; }

@media (min-width: 901px) {
  /* The image is a child of the viewport-height hero. On short desktops, do
     not let its former editorial min-height paint into the statement below. */
  .home-hero-image {
    height: 100%;
    min-height: 0;
    object-fit: cover;
  }

  /* The controls share the laptop's row. Their translated edge leaves the
     fixed 24px gutter immediately to the left of the image. */
  .platform > .platform-image {
    grid-column: 2;
    grid-row: 1;
  }
  .platform > .slide-controls {
    grid-column: 2;
    grid-row: 1;
    align-self: end;
    justify-self: end;
    margin: 0;
    transform: translateX(calc(-623px - 24px));
  }
  .platform > .slide-controls button:first-child { color: var(--grey); }

  /* Each collapsed partner summary shares the adjacent image's 250px reading
     frame. Lead copy remains intact; only the expandable detail is shortened. */
  .partner:not(.expanded) > div {
    height: 250px;
    min-height: 250px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }
  .partner:not(.expanded) .partner-detail {
    display: -webkit-box;
    -webkit-line-clamp: var(--partner-detail-lines, 2);
    -webkit-box-orient: vertical;
    flex: 0 1 auto;
    min-height: 0;
    margin-bottom: 5px;
    overflow: hidden;
  }
  .partner:not(.expanded) > div > button {
    flex: 0 0 auto;
    margin-top: auto;
    align-self: flex-start;
    text-align: left;
    text-decoration: underline;
  }
}
