/* Rivalry Commerce homepage — production layout correction */
:root {
  --index-shell: 1360px;
  --index-header: 72px;
  --index-ease: cubic-bezier(0.16, 1, 0.3, 1);
}

.home-page {
  background:
    radial-gradient(circle at 82% 8%, rgba(212, 175, 106, 0.055), transparent 28rem),
    #050505;
}

.home-page::before {
  opacity: 0.05;
  background-size: 72px 72px;
}

.home-page .page-shell,
.home-page .nav-shell {
  width: min(calc(100% - 40px), var(--index-shell));
  margin-inline: auto;
}

.home-page .site-header {
  height: var(--index-header);
}

.home-page .nav-shell {
  gap: 28px;
}

.home-page .brand {
  font-size: 13px;
}

.home-page .brand img {
  width: 39px;
  height: 46px;
}

.home-page .main-nav {
  gap: clamp(18px, 2vw, 32px);
}

.home-page .main-nav > a,
.home-page .nav-trigger {
  padding-block: 26px;
  white-space: nowrap;
}

.home-page .nav-cta {
  min-height: 46px;
  padding-inline: 26px;
  box-shadow: none;
}

.home-page .nav-cta:hover,
.home-page .hero-primary:hover {
  color: #d4af6a;
  background: #050505;
  border-color: #d4af6a;
  box-shadow: none;
}

.home-page .hero {
  padding-top: var(--index-header);
}

.home-page .hero-grid {
  width: min(100%, 1440px);
  min-height: 430px;
  margin-inline: auto;
  grid-template-columns: minmax(420px, 0.88fr) minmax(0, 1.12fr);
}

.home-page .hero-copy {
  min-width: 0;
  padding: 48px 42px 44px max(40px, calc((100vw - var(--index-shell)) / 2));
  background: linear-gradient(90deg, #030303 0%, #030303 91%, rgba(3, 3, 3, 0.88) 97%, transparent 100%);
}

.home-page .hero-kicker,
.home-page .hero-secondary,
.home-page .hero-assurance,
.home-page .hero-status-card,
.home-page .hero-institutional-bar {
  display: none;
}

.home-page .hero h1 {
  max-width: 650px;
  font-family: Inter, Arial, sans-serif;
  font-size: clamp(42px, 4.15vw, 62px);
  font-weight: 700;
  line-height: 1.01;
  letter-spacing: -0.035em;
  text-wrap: initial;
}

.home-page .hero h1 span {
  display: block;
}

.home-page .hero-lede {
  max-width: 510px;
  margin-top: 18px;
  font-size: 14px;
  line-height: 1.6;
}

.home-page .hero-actions {
  margin-top: 22px;
}

.home-page .hero-primary {
  min-height: 50px;
  padding-inline: 24px;
  box-shadow: none;
}

.home-page .hero-primary > span {
  display: none;
}

.home-page .hero-media {
  min-width: 0;
  min-height: 430px;
  border-radius: 0 !important;
  box-shadow: none;
}

.home-page .hero-media::before {
  display: none;
}

.home-page .hero-media-frame {
  position: absolute;
  inset: 0;
}

.home-page .hero-media img,
.home-page .hero:hover .hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: none;
  filter: saturate(0.95) contrast(1.04) brightness(0.96);
}

.home-page .hero-media-shade {
  background:
    linear-gradient(90deg, #030303 0%, rgba(3, 3, 3, 0.55) 7%, transparent 22%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.12), transparent 70%, rgba(0, 0, 0, 0.2));
}

.home-page .feature-strip {
  padding: 0;
  border-top: 1px solid rgba(212, 175, 106, 0.28);
}

.home-page .features-container {
  width: min(calc(100% - 40px), var(--index-shell));
  margin-inline: auto;
  gap: 0;
  padding: 0;
  overflow: visible;
}

.home-page .feature-card {
  flex: 1 1 25%;
  max-width: none;
  min-height: 92px;
  gap: 15px;
  padding: 16px 18px;
  border-top: 0;
  border-bottom: 0;
  border-left: 0;
  border-radius: 0 !important;
  box-shadow: none;
}

.home-page .feature-card:first-child {
  border-left: 1px solid var(--line);
}

.home-page .feature-card img {
  width: 42px;
  height: 42px;
}

.home-page .feature-card h2 {
  margin-bottom: 3px;
  font-size: 11px;
  letter-spacing: 0.08em;
}

.home-page .feature-card p {
  font-size: 10px;
  line-height: 1.4;
}

.home-page .problem,
.home-page .drops,
.home-page .parallel,
.home-page .capabilities,
.home-page .case-study {
  padding: 28px 0;
}

.home-page .section-heading {
  margin-bottom: 18px;
}

.home-page .section-heading .gold-rule,
.home-page .problem .section-heading .eyebrow {
  display: none;
}

.home-page .section-heading h2 {
  font-size: clamp(28px, 2.6vw, 38px);
  line-height: 1.05;
}

.home-page .problem .section-heading {
  text-align: center;
}

.home-page .problem .section-heading h2 {
  color: #d4af6a;
  font-size: clamp(25px, 2.2vw, 34px);
  text-transform: uppercase;
}

.home-page .problem-grid {
  gap: 12px;
}

.home-page .problem-card {
  min-height: 218px;
  border-radius: 10px !important;
  box-shadow: none;
}

.home-page .problem-content {
  max-width: 78%;
  padding: 22px;
}

.home-page .problem-title {
  margin-bottom: 13px;
}

.home-page .problem-title img {
  width: 30px;
  height: 30px;
}

.home-page .problem-title h3 {
  font-size: 12px;
}

.home-page .problem-content p {
  margin-bottom: 9px;
  font-size: 11px;
  line-height: 1.48;
}

.home-page .drops .section-heading {
  margin-bottom: 12px;
}

.home-page .drops .section-heading .eyebrow {
  margin-bottom: 4px;
  font-size: 9px;
}

.home-page .drops .section-heading h2 {
  font-family: Inter, Arial, sans-serif;
  font-size: clamp(20px, 2.2vw, 30px);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.home-page .drop-scroller {
  gap: 8px;
  padding: 4px 0 8px;
}

.home-page .drop-card {
  min-height: 176px;
  padding: 8px 4px;
  border-radius: 8px !important;
  box-shadow: none;
}

.home-page .drop-card img {
  height: 100px;
  margin: 6px 0;
}

.home-page .drop-card span,
.home-page .drop-card b {
  font-size: 8px;
}

.home-page .drop-card small {
  font-size: 7px;
}

.home-page .drop-note {
  margin-top: 8px;
  padding: 7px 14px;
  border-radius: 8px !important;
  font-size: 10px;
}

.home-page .parallel {
  padding-block: 18px;
}

.home-page .parallel-grid {
  grid-template-columns: minmax(0, 1fr) 280px minmax(0, 1fr);
}

.home-page .parallel-panel,
.home-page .parallel-core {
  min-height: 220px;
  border-radius: 0 !important;
  box-shadow: none;
}

.home-page .parallel-copy {
  max-width: 84%;
  padding: 22px;
}

.home-page .parallel-copy h2 {
  margin-bottom: 12px;
  font-size: 19px;
}

.home-page .parallel-copy ul {
  gap: 6px 12px;
  margin-bottom: 12px;
  font-size: 10px;
}

.home-page .parallel-core img {
  width: 270px;
}

.home-page .parallel-core h3 {
  width: 220px;
  font-size: 19px;
}

.home-page .capabilities {
  padding-block: 24px;
}

.home-page .capabilities .section-heading {
  margin-bottom: 14px;
}

.home-page .capabilities .section-heading .eyebrow {
  margin-bottom: 2px;
  font-size: 9px;
}

.home-page .capability-grid {
  gap: 10px;
}

.home-page .capability-card {
  min-height: 174px;
  padding: 18px 16px;
  border-radius: 8px !important;
  box-shadow: none;
}

.home-page .capability-card span {
  width: 32px;
  height: 32px;
  margin-bottom: 12px;
}

.home-page .capability-card h3 {
  margin-bottom: 8px;
  font-size: 16px;
}

.home-page .capability-card p {
  font-size: 10px;
  line-height: 1.5;
}

.home-page .case-study {
  padding-block: 14px 26px;
}

.home-page .case-grid {
  grid-template-columns: 290px minmax(0, 1fr);
  border-radius: 0 !important;
  box-shadow: none;
}

.home-page .case-copy {
  padding: 22px;
}

.home-page .case-copy h2 {
  font-size: 27px;
}

.home-page .case-copy p:not(.eyebrow) {
  font-size: 11px;
  line-height: 1.5;
}

.home-page .case-image {
  min-height: 214px;
}

.home-page .site-footer {
  margin-top: 0;
  padding-top: 28px;
  border-radius: 0;
}

.home-page .footer-grid {
  gap: 22px;
}

.home-page [data-executive-reveal],
.home-page .reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s var(--index-ease), transform 0.8s var(--index-ease);
}

.home-page [data-executive-reveal].is-visible,
.home-page .reveal.is-visible {
  opacity: 1;
  transform: none;
}

.home-page :is(.problem-card, .drop-card, .capability-card, .feature-card):hover {
  box-shadow: none;
  transform: translateY(-3px);
}

@media (max-width: 1180px) {
  .home-page .main-nav {
    gap: 15px;
  }

  .home-page .nav-cta {
    padding-inline: 18px;
  }

  .home-page .hero-grid {
    grid-template-columns: minmax(370px, 0.86fr) minmax(0, 1.14fr);
  }

  .home-page .hero-copy {
    padding-inline: 30px;
  }

  .home-page .hero h1 {
    font-size: clamp(39px, 4.7vw, 54px);
  }
}

@media (max-width: 1000px) {
  .home-page .nav-cta {
    display: none;
  }

  .home-page .hero-grid {
    min-height: 400px;
    grid-template-columns: minmax(340px, 0.9fr) minmax(0, 1.1fr);
  }

  .home-page .hero-media {
    min-height: 400px;
  }

  .home-page .hero h1 {
    font-size: clamp(36px, 4.8vw, 48px);
  }

  .home-page .problem-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .home-page .problem-content {
    max-width: 92%;
    padding: 18px;
  }

  .home-page .parallel-grid {
    grid-template-columns: minmax(0, 1fr) 230px minmax(0, 1fr);
  }

  .home-page .parallel-panel,
  .home-page .parallel-core {
    min-height: 210px;
  }

  .home-page .footer-grid {
    grid-template-columns: 1.35fr repeat(5, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .home-page .problem-grid {
    grid-template-columns: 1fr;
  }

  .home-page .problem-card {
    min-height: 210px;
  }

  .home-page .parallel-grid {
    grid-template-columns: 1fr;
  }

  .home-page .parallel-panel,
  .home-page .parallel-core {
    min-height: 230px;
  }

  .home-page .parallel-panel.reverse .parallel-copy {
    margin-left: 0;
  }

  .home-page .parallel-panel.reverse::after {
    background: linear-gradient(90deg, rgba(5, 5, 5, 0.96), rgba(5, 5, 5, 0.5));
  }
}

/* Final homepage composition correction — 2026-07-17 */
@media (min-width: 761px) {
  .home-page .hero-grid {
    position: relative;
    display: grid;
    width: min(100%, 1440px);
    min-height: clamp(500px, 43vw, 620px);
    grid-template-columns: minmax(0, 1fr);
    overflow: hidden;
  }

  .home-page .hero-media {
    position: absolute;
    inset: 0;
    min-height: 0;
  }

  .home-page .hero-media img,
  .home-page .hero:hover .hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
  }

  .home-page .hero-media-shade {
    background:
      linear-gradient(90deg, #030303 0%, rgba(3,3,3,.98) 18%, rgba(3,3,3,.83) 35%, rgba(3,3,3,.18) 55%, transparent 72%),
      linear-gradient(180deg, rgba(0,0,0,.08), transparent 68%, rgba(0,0,0,.28));
  }

  .home-page .hero-copy {
    position: relative;
    z-index: 2;
    width: min(47%, 650px);
    min-width: 480px;
    align-self: center;
    padding: 54px 24px 54px max(42px, calc((100vw - var(--index-shell)) / 2));
    background: none;
  }

  .home-page .hero h1 {
    max-width: 590px;
    font-size: clamp(46px, 4.7vw, 68px);
    line-height: .98;
  }

  .home-page .hero-lede {
    max-width: 480px;
  }

  .home-page .problem-grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr);
    grid-template-rows: repeat(2, minmax(210px, 1fr));
    gap: 18px;
  }

  .home-page .problem-card:first-child {
    min-height: 438px;
  }

  .home-page .problem-card > img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: .78;
    filter: brightness(.82) contrast(1.08) saturate(.9);
  }

  .home-page .problem-card:first-child > img {
    object-position: 62% 50%;
  }

  .home-page .problem-card:nth-child(2) > img {
    object-position: 70% 45%;
  }

  .home-page .problem-card:nth-child(3) > img {
    object-position: 72% 50%;
  }

  .home-page .problem-card::after {
    background: linear-gradient(90deg, rgba(3,3,3,.96) 0%, rgba(3,3,3,.78) 43%, rgba(3,3,3,.2) 78%, rgba(3,3,3,.06) 100%);
  }

  .home-page .problem-card:first-child .problem-content {
    max-width: 62%;
  }

  .home-page .problem-card:not(:first-child) .problem-content {
    max-width: 60%;
  }
}

.home-page .feature-card,
.home-page .problem-content,
.home-page .problem-title,
.home-page .problem-title h3 {
  min-width: 0;
}

.home-page .feature-card h2,
.home-page .problem-title h3 {
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
  text-wrap: balance;
}

.home-page .feature-card p,
.home-page .problem-content p {
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}

@media (min-width: 761px) and (max-width: 1050px) {
  .home-page .hero-grid {
    min-height: 500px;
  }

  .home-page .hero-copy {
    width: 50%;
    min-width: 420px;
    padding-left: 34px;
  }

  .home-page .hero h1 {
    font-size: clamp(43px, 5.4vw, 58px);
  }

  .home-page .feature-card {
    padding-inline: 13px;
  }

  .home-page .feature-card h2 {
    font-size: 10px;
  }
}

@media (max-width: 760px) {
  :root {
    --index-header: 64px;
  }

  .home-page .page-shell,
  .home-page .nav-shell {
    width: min(calc(100% - 28px), var(--index-shell));
  }

  .home-page .site-header {
    height: var(--index-header);
  }

  .home-page .brand {
    font-size: 11px;
  }

  .home-page .brand img {
    width: 34px;
    height: 40px;
  }

  .home-page .main-nav {
    top: var(--index-header);
    max-height: calc(100dvh - var(--index-header));
  }

  .home-page .hero {
    padding-top: var(--index-header);
  }

  .home-page .hero-grid {
    display: flex;
    min-height: 0;
    flex-direction: column;
  }

  .home-page .hero-media {
    order: 1;
    min-height: clamp(230px, 64vw, 310px);
    margin: 0;
  }

  .home-page .hero-media-shade {
    background: linear-gradient(180deg, transparent 62%, #040404 100%);
  }

  .home-page .hero-copy {
    order: 2;
    padding: 28px 20px 30px;
    background: #040404;
  }

  .home-page .hero h1 {
    max-width: 600px;
    font-size: clamp(37px, 11vw, 50px);
    line-height: 1.02;
  }

  .home-page .hero-lede {
    margin-top: 16px;
    font-size: 14px;
  }

  .home-page .hero-actions {
    margin-top: 20px;
  }

  .home-page .hero-primary {
    width: 100%;
  }

  .home-page .features-container {
    width: 100%;
    gap: 12px;
    padding: 14px 16px 16px;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    scrollbar-width: thin;
  }

  .home-page .feature-card,
  .home-page .feature-card:first-child {
    flex: 0 0 280px;
    max-width: 280px;
    min-height: 108px;
    border: 1px solid var(--line);
    border-radius: 8px !important;
    scroll-snap-align: start;
  }

  .home-page .problem,
  .home-page .drops,
  .home-page .parallel,
  .home-page .capabilities,
  .home-page .case-study {
    padding-block: 34px;
  }

  .home-page .problem-card {
    min-height: 230px;
  }

  .home-page .drops .page-shell {
    width: 100%;
    padding-inline: 14px;
  }

  .home-page .drop-scroller {
    display: flex;
    gap: 9px;
    overflow-x: auto;
    padding: 6px 2px 12px;
    scroll-snap-type: x proximity;
    scrollbar-width: thin;
  }

  .home-page .drop-card {
    flex: 0 0 126px;
    min-height: 176px;
    padding: 8px 5px;
    scroll-snap-align: start;
  }

  .home-page .drop-card img {
    height: 102px;
  }

  .home-page .drop-card span,
  .home-page .drop-card b {
    font-size: 8px;
  }

  .home-page .drop-card small {
    font-size: 7px;
  }

  .home-page .drop-note {
    font-size: 9px;
    line-height: 1.45;
  }

  .home-page .parallel-copy {
    max-width: 94%;
  }

  .home-page .capability-grid {
    grid-template-columns: 1fr;
  }

  .home-page .capability-card {
    min-height: 0;
    padding: 22px 20px;
  }

  .home-page .case-grid {
    grid-template-columns: 1fr;
  }

  .home-page .case-image {
    min-height: 210px;
  }

  .home-page .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px 16px;
  }
}

@media (max-width: 420px) {
  .home-page .page-shell,
  .home-page .nav-shell {
    width: min(calc(100% - 24px), var(--index-shell));
  }

  .home-page .hero-copy {
    padding-inline: 16px;
  }

  .home-page .hero h1 {
    font-size: clamp(35px, 10.5vw, 44px);
  }

  .home-page .problem-content {
    max-width: 96%;
    padding: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-page [data-executive-reveal],
  .home-page .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* Homepage editorial pass: give each core idea its own visual grammar. */
@media (min-width: 821px) {
  .home-page .problem-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
    grid-template-rows: repeat(2, minmax(178px, auto));
    gap: 16px;
  }

  .home-page .problem-card {
    min-height: 0;
    border: 0;
    border-radius: 0;
    overflow: hidden;
    box-shadow: inset 0 0 0 1px rgba(205, 151, 38, .28);
  }

  .home-page .problem-card:first-child {
    grid-row: 1 / 3;
    min-height: 372px;
  }

  .home-page .problem-card:not(:first-child) .problem-content {
    max-width: 62%;
    padding: 24px 26px;
  }

  .home-page .problem-card:first-child .problem-content {
    max-width: 72%;
    padding: 32px;
  }

  .home-page .problem-card::after {
    background: linear-gradient(90deg, rgba(3, 3, 3, .96) 0%, rgba(3, 3, 3, .72) 52%, rgba(3, 3, 3, .08) 100%);
  }

  .home-page .drop-scroller {
    position: relative;
    display: grid;
    grid-template-columns: repeat(8, minmax(0, 1fr));
    gap: 10px;
    padding: 28px 0 12px;
    overflow: visible;
  }

  .home-page .drop-scroller::before {
    content: "";
    position: absolute;
    top: 41px;
    left: 5%;
    right: 5%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(224, 169, 42, .8) 10%, rgba(224, 169, 42, .8) 90%, transparent);
  }

  .home-page .drop-card {
    position: relative;
    min-height: 214px;
    padding: 34px 6px 12px;
    border: 0;
    border-radius: 0;
    background: transparent;
  }

  .home-page .drop-card::before {
    content: "";
    position: absolute;
    top: 8px;
    left: 50%;
    width: 9px;
    height: 9px;
    border: 2px solid #dca528;
    border-radius: 50%;
    background: #050505;
    transform: translateX(-50%);
    z-index: 2;
  }

  .home-page .drop-card img {
    height: 112px;
    margin: 10px 0 8px;
    object-fit: contain;
  }

  .home-page .drop-card.featured {
    background: linear-gradient(180deg, rgba(215, 158, 33, .15), rgba(215, 158, 33, .025));
    box-shadow: inset 0 0 0 1px rgba(224, 169, 42, .72);
    transform: translateY(-8px);
  }

  .home-page .drop-card.featured::before {
    width: 13px;
    height: 13px;
    background: #dca528;
    box-shadow: 0 0 18px rgba(220, 165, 40, .65);
  }

  .home-page .drop-note {
    border: 0;
    border-top: 1px solid rgba(205, 151, 38, .32);
    border-bottom: 1px solid rgba(205, 151, 38, .32);
    border-radius: 0;
  }

  .home-page .parallel-grid {
    grid-template-columns: minmax(0, 1fr) 250px minmax(0, 1fr);
    gap: 0;
    align-items: stretch;
    border-top: 1px solid rgba(205, 151, 38, .42);
    border-bottom: 1px solid rgba(205, 151, 38, .42);
  }

  .home-page .parallel-panel,
  .home-page .parallel-core {
    min-height: 300px;
    border: 0;
    border-radius: 0;
  }

  .home-page .parallel-panel:first-child {
    border-right: 1px solid rgba(205, 151, 38, .28);
  }

  .home-page .parallel-panel:last-child {
    border-left: 1px solid rgba(205, 151, 38, .28);
  }

  .home-page .parallel-core {
    z-index: 3;
    margin: -18px 0;
    background: radial-gradient(circle, #171008 0%, #080706 63%, #020202 100%);
    box-shadow: 0 0 0 1px rgba(224, 169, 42, .65), 0 0 40px rgba(0, 0, 0, .8);
  }

  .home-page .parallel-core img {
    width: min(225px, 92%);
  }

  .home-page .capability-grid {
    gap: 0;
    border-top: 1px solid rgba(205, 151, 38, .38);
    border-bottom: 1px solid rgba(205, 151, 38, .38);
  }

  .home-page .capability-card {
    border: 0;
    border-right: 1px solid rgba(205, 151, 38, .28);
    border-radius: 0;
    background: linear-gradient(180deg, rgba(255,255,255,.018), transparent);
  }

  .home-page .capability-card:last-child {
    border-right: 0;
  }
}

@media (max-width: 820px) {
  .home-page .problem-grid {
    gap: 14px;
  }

  .home-page .parallel-grid {
    gap: 14px;
  }
}

/* Keep final desktop image composition after all earlier editorial rules. */
@media (min-width: 821px) {
  .home-page .problem-grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr);
    grid-template-rows: repeat(2, minmax(210px, 1fr));
    gap: 18px;
  }

  .home-page .problem-card:first-child { min-height: 438px; }
  .home-page .problem-card:first-child .problem-content { max-width: 62%; }
  .home-page .problem-card:not(:first-child) .problem-content { max-width: 60%; }
  .home-page .problem-card::after {
    background: linear-gradient(90deg, rgba(3,3,3,.96) 0%, rgba(3,3,3,.78) 43%, rgba(3,3,3,.2) 78%, rgba(3,3,3,.06) 100%);
  }
}
