/* Rivalry Commerce — sitewide production consistency layer */
:root {
  --site-shell: 1440px;
  --site-header: 72px;
  --shell: var(--site-shell);
  --header: var(--site-header);
  --site-gold: #d4af6a;
  --site-gold-bright: #e7c67f;
  --site-line: rgba(212, 175, 106, 0.34);
  --site-panel: #0a0a0b;
  --site-ease: cubic-bezier(0.16, 1, 0.3, 1);
}

html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  background:
    radial-gradient(circle at 88% 8%, rgba(212, 175, 106, 0.045), transparent 30rem),
    #050505;
  color: #f4f0e8;
  font-family: Inter, Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  opacity: 0.04;
  background-size: 72px 72px;
}

.page-shell,
.nav-shell {
  width: min(calc(100% - 48px), var(--site-shell)) !important;
  max-width: var(--site-shell);
  margin-inline: auto;
}

.site-header,
.site-header.is-scrolled {
  position: fixed;
  z-index: 1000;
  inset: 0 0 auto;
  width: 100%;
  height: var(--site-header);
  margin: 0;
  padding: 0;
  border: 0;
  border-bottom: 1px solid rgba(212, 175, 106, 0.24);
  border-radius: 0;
  background: rgba(4, 4, 5, 0.96);
  box-shadow: none;
  backdrop-filter: blur(18px) saturate(125%);
}

.nav-shell {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 0;
}

.brand {
  min-width: 0;
  flex: 0 0 auto;
  font-size: 13px;
}

.brand img {
  width: 39px;
  height: 46px;
  object-fit: contain;
}

.main-nav {
  margin-left: auto;
  gap: clamp(16px, 2vw, 30px);
}

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

.dropdown {
  border: 1px solid var(--site-line);
  border-radius: 10px !important;
  background: rgba(7, 7, 8, 0.98);
  box-shadow: none;
}

.dropdown a:hover {
  color: #050505;
  background: var(--site-gold);
}

.button,
.nav-cta,
button[type="submit"],
input[type="submit"] {
  min-height: 46px;
  border: 1px solid var(--site-gold);
  border-radius: 999px !important;
  box-shadow: none;
  transition:
    color 0.28s ease,
    background-color 0.28s ease,
    border-color 0.28s ease,
    transform 0.28s var(--site-ease);
}

.nav-cta {
  display: inline-flex !important;
  flex: 0 0 auto;
  margin-left: 6px;
  padding-inline: 23px;
  white-space: nowrap;
}

.button:hover,
.nav-cta:hover,
button[type="submit"]:hover,
input[type="submit"]:hover {
  color: var(--site-gold);
  background: #050505;
  border-color: var(--site-gold);
  box-shadow: none;
  transform: translateY(-2px);
}

main {
  max-width: 100%;
  overflow: clip;
}

main img {
  max-width: 100%;
}

main :is(article, .card, .section-panel, details) {
  box-shadow: none;
}

.company-value-card:nth-child(1) { --value-image: url('../assets/img/company-value-independent-operation-hd.webp'); }
.company-value-card:nth-child(2) { --value-image: url('../assets/img/company-value-rights-holder-controlled-hd.webp'); }
.company-value-card:nth-child(3) { --value-image: url('../assets/img/company-value-event-scoped-hd.webp'); }
.company-value-card:nth-child(4) { --value-image: url('../assets/img/company-value-measurable-outcomes-hd.webp'); }
.company-value-card:nth-child(5) { --value-image: url('../assets/img/company-value-new-revenue-inventory-hd.webp'); }
.company-value-card:nth-child(6) { --value-image: url('../assets/img/company-value-low-risk-high-impact-hd.webp'); }

/* Deployment Library — reference-matched hero and image treatment */
.deployment-library-page .dl-hero {
  position: relative;
  background: #030303;
}

.deployment-library-page .dl-hero-shell {
  position: relative;
  display: block;
  min-height: 300px;
}

.deployment-library-page .dl-hero-copy {
  position: relative;
  z-index: 3;
  width: min(58%, 690px);
  padding: 42px 0 34px;
}

.deployment-library-page .dl-hero h1 {
  margin: 0.36rem 0 0.62rem;
  font-size: clamp(2.8rem, 4.1vw, 4.2rem);
  white-space: nowrap;
}

.deployment-library-page .dl-hero-copy > p:not(.eyebrow) {
  max-width: 520px;
  font-size: 0.9rem;
}

.deployment-library-page .dl-hero-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  border: 0;
  border-radius: 0 !important;
  overflow: hidden;
}

.deployment-library-page .dl-hero-media::before {
  z-index: 2;
  background:
    linear-gradient(90deg, #030303 0%, rgba(3, 3, 3, 0.96) 25%, rgba(3, 3, 3, 0.56) 48%, rgba(3, 3, 3, 0.08) 72%),
    linear-gradient(180deg, rgba(3, 3, 3, 0.08), rgba(3, 3, 3, 0.38));
}

.deployment-library-page .dl-hero-media img {
  object-fit: cover;
  object-position: center;
}

.deployment-library-page .dl-featured-media img,
.deployment-library-page .dl-cta img {
  image-rendering: auto;
}

/* Measurements — reference-matched map hero */
.measurements-page .ms-hero {
  position: relative;
}

.measurements-page .ms-hero-grid {
  position: relative;
  display: block;
  min-height: 455px;
}

.measurements-page .ms-hero-copy {
  position: relative;
  z-index: 3;
  width: min(46%, 540px);
  padding: 46px 0 40px;
}

.measurements-page .ms-hero-media {
  position: absolute;
  z-index: 1;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
}

.measurements-page .ms-hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(5, 5, 5, 0.2), transparent 50%);
  pointer-events: none;
}

.measurements-page .ms-hero-media img {
  object-fit: cover;
  object-position: center;
}

main :is(article, .card, .section-panel):hover {
  transform: translateY(-3px);
  border-color: rgba(212, 175, 106, 0.62) !important;
  box-shadow: none;
}

h1,
h2,
h3,
p {
  max-width: 100%;
}

h1,
h2,
h3 {
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

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

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

.site-footer {
  position: relative;
  display: block;
  width: 100%;
  max-width: none;
  margin: 28px 0 0;
  padding: 32px 0 16px;
  border: 0;
  border-top: 1px solid rgba(212, 175, 106, 0.28);
  border-radius: 0;
  background: #050505;
  overflow: hidden;
}

.site-footer::before {
  display: none;
}

.footer-grid {
  width: min(calc(100% - 48px), var(--site-shell));
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1.35fr repeat(5, minmax(0, 1fr));
  gap: 24px;
}

.footer-brand-block,
.footer-column {
  min-width: 0;
}

.footer-column h2,
.footer-column a {
  overflow-wrap: normal;
  word-break: normal;
}

.footer-column a {
  width: max-content;
  max-width: 100%;
}

.footer-column a:hover,
.footer-bottom a:hover {
  color: var(--site-gold-bright);
  background: transparent;
}

.footer-bottom {
  width: min(calc(100% - 48px), var(--site-shell));
  margin-inline: auto;
}

/* Tour Overview — repaired desktop/tablet layout */
.tour-page > main {
  padding-top: var(--site-header);
}

.tour-page main > .hero {
  min-height: 520px;
  border-bottom: 1px solid var(--site-line);
}

.tour-page .hero-content {
  width: min(calc(100% - 48px), var(--site-shell));
  max-width: none;
  min-height: 520px;
  margin-inline: auto;
  padding: 58px 0 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

.tour-page .hero-content > * {
  width: min(100%, 620px);
}

.tour-page .hero-content .button {
  width: auto;
}

.tour-page .hero-content h1 {
  margin-bottom: 18px;
  font-family: Inter, Arial, sans-serif;
  font-size: clamp(44px, 5vw, 68px);
  font-weight: 700;
  line-height: 0.99;
  letter-spacing: -0.035em;
  text-transform: uppercase;
}

.tour-page .hero-copy {
  max-width: 570px;
  margin-bottom: 26px;
  font-size: 16px;
  line-height: 1.65;
}

.tour-page .metric-strip {
  width: min(calc(100% - 48px), var(--site-shell));
  max-width: var(--site-shell);
  margin-inline: auto;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--site-line);
  border-top: 0;
}

.tour-page .metric {
  min-height: 142px;
  padding: 20px 18px;
  border-right: 1px solid var(--site-line);
  border-bottom: 0;
  border-radius: 0 !important;
}

.tour-page .metric:nth-child(2) {
  border-right: 1px solid var(--site-line);
}

.tour-page .metric:last-child {
  border-right: 0;
}

.tour-page .metric strong {
  font-size: 40px;
}

.tour-page .metric span {
  font-size: 12px;
  line-height: 1.45;
}

.tour-page .section,
.tour-page .opportunity-section,
.tour-page .journey-section,
.tour-page .final-cta {
  width: min(calc(100% - 48px), var(--site-shell));
  max-width: var(--site-shell);
  margin-inline: auto;
}

.tour-page .section {
  padding: 44px 0 24px;
}

.tour-page .section-heading {
  margin-bottom: 22px;
}

.tour-page .section-heading h2 {
  font-size: clamp(30px, 3.1vw, 44px);
}

.tour-page .feature-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.tour-page .image-card {
  min-height: 330px;
  border-radius: 12px !important;
}

.tour-page .image-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tour-page .image-card-content {
  left: 20px;
  right: 20px;
  bottom: 18px;
}

.tour-page .image-card-content h3 {
  font-size: 24px;
}

.tour-page .image-card-content p {
  font-size: 14px;
  line-height: 1.5;
}

.tour-page .opportunity-section {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  margin-top: 22px;
  border: 1px solid var(--site-line);
  border-radius: 12px;
  overflow: hidden;
}

.tour-page .opportunity-visual,
.tour-page .opportunity-visual img {
  min-height: 410px;
}

.tour-page .opportunity-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tour-page .opportunity-content {
  padding: 32px 36px;
}

.tour-page .value-section {
  padding-top: 44px;
}

.tour-page .value-flow {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border: 1px solid var(--site-line);
}

.tour-page .value-step {
  padding: 20px 16px 24px;
  border-bottom: 0;
  border-radius: 0 !important;
}

.tour-page .journey-section {
  padding: 36px 0 0;
}

.tour-page .journey-card {
  grid-template-columns: minmax(190px, 1.1fr) minmax(0, 3fr) minmax(170px, 0.9fr);
  border-radius: 12px;
  overflow: hidden;
}

.tour-page .journey-stops {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  overflow: visible;
}

.tour-page .final-cta {
  grid-template-columns: 72px minmax(0, 1fr) auto;
  margin-top: 22px;
  padding: 24px 28px;
  border: 1px solid var(--site-line);
  border-radius: 12px;
}

@media (max-width: 1200px) {
  .nav-shell,
  .home-page .nav-shell {
    gap: 16px;
  }

  .main-nav,
  .home-page .main-nav {
    gap: 14px;
  }

  .main-nav > a,
  .nav-trigger {
    font-size: 9px;
    letter-spacing: 0.09em;
  }

  .nav-cta,
  .home-page .nav-cta {
    min-height: 42px;
    margin-left: 0;
    padding-inline: 16px;
    font-size: 9px;
    letter-spacing: 0.06em;
  }
}

@media (max-width: 1100px) {
  .tour-page .hero-content h1 {
    font-size: clamp(42px, 5.8vw, 60px);
  }

  .tour-page .image-card {
    min-height: 300px;
  }

  .tour-page .journey-card {
    grid-template-columns: 1fr;
  }

  .tour-page .journey-card > img {
    min-height: 230px;
  }

  .tour-page .journey-stops {
    grid-template-columns: repeat(5, minmax(150px, 1fr));
    overflow-x: auto;
  }

  .tour-page .journey-total {
    border-left: 0;
    border-top: 1px solid var(--site-line);
  }
}

@media (max-width: 920px) {
  .nav-shell,
  .home-page .nav-shell {
    gap: 10px;
  }

  .menu-toggle {
    display: block;
    order: 3;
    flex: 0 0 42px;
    margin-left: 0;
  }

  .nav-cta,
  .home-page .nav-cta {
    order: 2;
    min-height: 40px;
    margin-left: auto;
    padding-inline: 13px;
    font-size: 8px;
  }

  .main-nav {
    position: fixed;
    z-index: 1001;
    top: var(--site-header);
    left: 0;
    right: 0;
    display: none;
    max-height: calc(100dvh - var(--site-header));
    margin: 0;
    padding: 8px 16px 22px;
    overflow-y: auto;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    border-bottom: 1px solid var(--site-line);
    background: #070708;
  }

  .main-nav.open {
    display: flex;
  }

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

  .footer-brand-block {
    grid-column: 1 / -1;
  }

  .footer-column:nth-child(n + 5) {
    margin-top: 0;
  }

  .main-nav > a,
  .nav-trigger {
    width: 100%;
    padding: 15px 4px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .nav-group {
    width: 100%;
  }

  .dropdown,
  .dropdown-right {
    position: static;
    display: none;
    min-width: 0;
    padding: 0 0 8px 12px;
    border: 0;
    border-radius: 0 !important;
    background: transparent;
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .nav-group.open .dropdown {
    display: block;
  }

  main :is(article, .card, .section-panel):hover {
    transform: none;
  }

  .tour-page .metric-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tour-page .metric:nth-child(2) {
    border-right: 0;
  }

  .tour-page .metric:nth-child(-n + 2) {
    border-bottom: 1px solid var(--site-line);
  }

  .tour-page .feature-grid {
    grid-template-columns: 1fr;
  }

  .tour-page .image-card {
    min-height: 390px;
  }

  .tour-page .opportunity-section {
    grid-template-columns: 1fr;
  }

  .tour-page .opportunity-content {
    border-left: 0;
    border-top: 1px solid var(--site-line);
  }

  .tour-page .value-flow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tour-page .value-step {
    border-bottom: 1px solid var(--site-line);
  }

  .tour-page .final-cta {
    grid-template-columns: 60px minmax(0, 1fr);
  }

  .tour-page .final-cta .button {
    grid-column: 1 / -1;
    width: 100%;
  }
}

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

  .page-shell,
  .nav-shell,
  .footer-grid,
  .footer-bottom {
    width: min(calc(100% - 28px), var(--site-shell)) !important;
  }

  .brand {
    font-size: 11px;
  }

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

  .nav-cta,
  .home-page .nav-cta {
    min-height: 38px;
    padding-inline: 11px;
    font-size: 7.5px;
    letter-spacing: 0.04em;
  }

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

  .footer-brand-block {
    grid-column: 1 / -1;
  }

  .footer-column:nth-child(n + 5) {
    margin-top: 0;
  }

  .footer-bottom {
    align-items: flex-start;
  }

  .deployment-library-page .dl-hero-shell {
    min-height: 470px;
  }

  .deployment-library-page .dl-hero-copy {
    width: 100%;
    padding: 230px 0 28px;
  }

  .deployment-library-page .dl-hero h1 {
    font-size: clamp(2.45rem, 12vw, 3.5rem);
    white-space: normal;
  }

  .deployment-library-page .dl-hero-media {
    position: absolute;
    inset: 0;
    height: 100%;
    margin: 0;
  }

  .deployment-library-page .dl-hero-media::before {
    background: linear-gradient(180deg, rgba(3, 3, 3, 0.08), rgba(3, 3, 3, 0.35) 35%, #030303 68%, #030303 100%);
  }

  .deployment-library-page .dl-hero-media img {
    object-position: 64% center;
  }

  .measurements-page .ms-hero-grid {
    display: grid;
    min-height: auto;
  }

  .measurements-page .ms-hero-copy {
    width: 100%;
    padding: 30px 0 18px;
  }

  .measurements-page .ms-hero-media {
    position: relative;
    inset: auto;
    height: 280px;
    margin-inline: -12px;
  }

  .measurements-page .ms-hero-media img {
    object-position: 63% center;
  }

  .tour-page main > .hero {
    min-height: 650px;
  }

  .tour-page .hero-image {
    object-position: 64% center;
  }

  .tour-page .hero-overlay {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.48) 36%, #050505 72%, #050505 100%);
  }

  .tour-page .hero-content {
    width: min(calc(100% - 32px), var(--site-shell));
    min-height: 650px;
    padding: 300px 0 34px;
    justify-content: flex-end;
  }

  .tour-page .hero-content h1 {
    font-size: clamp(38px, 11.5vw, 50px);
  }

  .tour-page .hero-copy {
    font-size: 14px;
  }

  .tour-page .metric-strip,
  .tour-page .section,
  .tour-page .opportunity-section,
  .tour-page .journey-section,
  .tour-page .final-cta {
    width: min(calc(100% - 28px), var(--site-shell));
  }

  .tour-page .metric {
    min-height: 155px;
    padding: 18px 12px;
  }

  .tour-page .metric strong {
    font-size: 35px;
  }

  .tour-page .section {
    padding-top: 36px;
  }

  .tour-page .section-heading::before,
  .tour-page .section-heading::after {
    display: none;
  }

  .tour-page .section-heading h2 {
    width: 100%;
    text-align: left;
  }

  .tour-page .image-card {
    min-height: 330px;
  }

  .tour-page .opportunity-content {
    padding: 26px 20px;
  }

  .tour-page .value-flow {
    grid-template-columns: 1fr;
  }

  .tour-page .value-step {
    border-right: 0;
  }

  .tour-page .final-cta {
    grid-template-columns: 1fr;
    padding: 22px 18px;
  }

  .tour-page .final-cta-mark {
    display: none;
  }
}

@media (max-width: 440px) {
  .nav-shell,
  .home-page .nav-shell {
    width: min(calc(100% - 18px), var(--site-shell)) !important;
    gap: 7px;
  }

  .brand {
    gap: 7px;
    font-size: 9px;
  }

  .brand img {
    width: 30px;
    height: 36px;
  }

  .nav-cta,
  .home-page .nav-cta {
    min-height: 36px;
    max-width: 138px;
    padding-inline: 9px;
    font-size: 7px;
    line-height: 1.15;
    text-align: center;
  }

  .menu-toggle {
    flex-basis: 38px;
    width: 38px;
    height: 38px;
  }
}

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

.deployment-dialog{width:min(1120px,calc(100% - 32px));max-height:calc(100vh - 32px);padding:0;border:1px solid rgba(212,175,106,.62);border-radius:18px;background:#080808;color:#f4efe7;overflow:auto}.deployment-dialog::backdrop{background:rgba(0,0,0,.86);backdrop-filter:blur(6px)}.deployment-dialog-close{position:sticky;z-index:4;top:14px;float:right;margin:14px 14px -60px 0;width:42px;height:42px;border:1px solid rgba(212,175,106,.6);border-radius:50%;background:#090909;color:#d4af6a;font-size:1.7rem;cursor:pointer}.deployment-dialog-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(420px,.9fr);min-height:650px}.deployment-dialog-grid>img{width:100%;height:100%;min-height:650px;object-fit:cover;display:block}.deployment-dialog-copy{padding:clamp(34px,5vw,68px)}.deployment-dialog-copy h2{margin:.35rem 0 18px;font-size:clamp(2rem,4vw,3.5rem);line-height:1.02;letter-spacing:-.035em}.deployment-dialog-copy h3{margin:24px 0 10px;color:#d4af6a;font-size:.78rem;letter-spacing:.12em;text-transform:uppercase}.deployment-dialog-meta,.deployment-dialog-windows>div{display:flex;flex-wrap:wrap;gap:8px}.deployment-dialog-meta span,.deployment-dialog-windows span{padding:8px 10px;border:1px solid #343434;color:#ccc;font-size:.75rem}.deployment-dialog-opportunities ul{margin:0;padding-left:18px;color:#ccc;line-height:1.65}.deployment-dialog-note{margin:24px 0;padding:16px;border-left:2px solid #d4af6a;background:#111;color:#bbb;font-size:.82rem;line-height:1.6}@media(max-width:800px){.deployment-dialog-grid{grid-template-columns:1fr}.deployment-dialog-grid>img{min-height:0;aspect-ratio:16/9}.deployment-dialog-copy{padding:28px 20px 34px}}

/* Deployment Library: event-specific revenue categories */
.event-categories {
  margin-block: clamp(64px, 7vw, 112px);
  padding: clamp(28px, 4vw, 54px);
  border: 1px solid rgba(212, 175, 106, .34);
  background: linear-gradient(145deg, #111 0%, #070707 58%, #0d0b08 100%);
}
.event-categories-heading { display:grid; grid-template-columns:minmax(0,1.2fr) minmax(280px,.8fr); gap:32px; align-items:end; margin-bottom:34px; }
.event-categories-heading h2 { margin:.35rem 0 0; max-width:780px; font-size:clamp(2rem,4vw,3.8rem); line-height:1.02; letter-spacing:-.035em; }
.event-categories-heading > p { margin:0; color:#b9b9b9; line-height:1.7; }
.event-category-tabs { display:grid; grid-template-columns:repeat(3,1fr); border:1px solid #333; border-bottom:0; }
.event-category-tabs button { min-height:74px; padding:16px 20px; border:0; border-right:1px solid #333; background:#111; color:#a9a9a9; text-align:left; font:600 clamp(.78rem,1.2vw,.98rem)/1.3 Inter,sans-serif; letter-spacing:.02em; cursor:pointer; transition:background .25s,color .25s,border-color .25s; }
.event-category-tabs button:last-child { border-right:0; }
.event-category-tabs button span { display:block; margin-bottom:5px; color:#777; font-size:.68rem; letter-spacing:.14em; }
.event-category-tabs button:hover,.event-category-tabs button:focus-visible,.event-category-tabs button[aria-selected="true"] { background:#d4af6a; color:#080808; outline:0; }
.event-category-tabs button[aria-selected="true"] span { color:#44320f; }
.event-category-panels { border:1px solid rgba(212,175,106,.38); }
.event-category-panel { display:grid; grid-template-columns:minmax(0,1.15fr) minmax(360px,.85fr); min-height:520px; background:#080808; }
.event-category-panel[hidden] { display:none; }
.event-category-panel img { width:100%; height:100%; min-height:520px; object-fit:cover; object-position:center; display:block; }
.event-category-content { display:flex; flex-direction:column; justify-content:center; padding:clamp(28px,4vw,58px); }
.event-category-content h3 { margin:.35rem 0 1rem; font-size:clamp(2rem,3.5vw,3.5rem); letter-spacing:-.035em; }
.event-category-content > p:not(.eyebrow) { margin:0 0 28px; color:#bbb; line-height:1.7; }
.category-window-grid { display:grid; gap:0; border-top:1px solid #333; }
.category-window-grid div { display:grid; grid-template-columns:110px 1fr; gap:16px; padding:16px 0; border-bottom:1px solid #2d2d2d; }
.category-window-grid b { color:#d4af6a; font-size:.78rem; text-transform:uppercase; letter-spacing:.08em; }
.category-window-grid span { color:#d1d1d1; font-size:.88rem; line-height:1.45; }
@media (max-width:900px) {
  .event-categories-heading,.event-category-panel { grid-template-columns:1fr; }
  .event-category-panel img { min-height:0; aspect-ratio:16/9; }
  .event-category-tabs { overflow-x:auto; grid-template-columns:repeat(3,minmax(190px,1fr)); }
}
@media (max-width:600px) {
  .event-categories { width:calc(100% - 24px)!important; padding:20px 0 0; overflow:hidden; }
  .event-categories-heading { padding:0 20px; }
  .event-category-tabs { margin-inline:20px; }
  .event-category-content { padding:26px 20px 30px; }
  .category-window-grid div { grid-template-columns:1fr; gap:6px; }
}

/* Lifecycle hero — final production composition */
.lifecycle-page .lifecycle-hero {
  min-height: 0;
  background: #050505;
  overflow: hidden;
}

.lifecycle-page .lifecycle-hero::before {
  inset: 0 0 auto;
  height: clamp(500px, 46vw, 650px);
  background:
    linear-gradient(90deg, rgba(3,3,3,.96) 0%, rgba(3,3,3,.76) 31%, rgba(3,3,3,.08) 54%, rgba(3,3,3,.04) 100%),
    linear-gradient(180deg, transparent 70%, #050505 100%),
    url('../assets/img/lifecycle-hero-v2.webp') center center / cover no-repeat;
}

.lifecycle-page .lifecycle-hero-grid {
  min-height: 0;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: clamp(500px, 46vw, 650px) auto;
  gap: 0;
  padding: 0;
}

.lifecycle-page .lifecycle-hero-copy {
  width: min(52%, 620px);
  max-width: none;
  align-self: center;
  padding: 48px 0;
}

.lifecycle-page .lifecycle-hero-copy > p:not(.eyebrow) {
  max-width: 540px;
  text-wrap: pretty;
}

.lifecycle-page .lifecycle-hero-side {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid rgba(212,175,106,.38);
  border-bottom: 1px solid rgba(212,175,106,.38);
  background: #070707;
}

.lifecycle-page .lifecycle-info-card {
  display: grid;
  grid-template-columns: minmax(190px, .8fr) minmax(0, 1.2fr);
  align-items: start;
  gap: 24px;
  padding: 24px 30px;
  border: 0;
  background: transparent;
}

.lifecycle-page .lifecycle-info-card + .lifecycle-info-card {
  border-left: 1px solid rgba(212,175,106,.28);
}

.lifecycle-page .lifecycle-info-card h2 {
  margin: 3px 0 0;
  line-height: 1.35;
}

.lifecycle-page .lifecycle-info-card ul {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px 18px;
}

.lifecycle-page .lifecycle-info-card li {
  min-width: 0;
  font-size: .88rem;
  line-height: 1.45;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}

@media (max-width: 1000px) {
  .lifecycle-page .lifecycle-hero::before {
    height: 540px;
    background:
      linear-gradient(90deg, rgba(3,3,3,.96) 0%, rgba(3,3,3,.7) 40%, rgba(3,3,3,.08) 70%),
      linear-gradient(180deg, transparent 70%, #050505 100%),
      url('../assets/img/lifecycle-hero-v2.webp') 56% center / cover no-repeat;
  }

  .lifecycle-page .lifecycle-hero-grid {
    grid-template-rows: 540px auto;
  }

  .lifecycle-page .lifecycle-hero-copy {
    width: min(58%, 560px);
  }

  .lifecycle-page .lifecycle-info-card {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

@media (max-width: 700px) {
  .lifecycle-page .lifecycle-hero::before {
    height: clamp(315px, 77vw, 430px);
    background:
      linear-gradient(180deg, rgba(3,3,3,.05) 55%, #050505 100%),
      url('../assets/img/lifecycle-hero-v2.webp') 68% center / cover no-repeat;
  }

  .lifecycle-page .lifecycle-hero-grid {
    display: grid;
    grid-template-rows: clamp(315px, 77vw, 430px) auto auto;
  }

  .lifecycle-page .lifecycle-hero-copy {
    grid-row: 2;
    width: 100%;
    padding: 22px 0 30px;
    background: #050505;
  }

  .lifecycle-page .lifecycle-hero-side {
    grid-row: 3;
    grid-template-columns: 1fr;
  }

  .lifecycle-page .lifecycle-info-card {
    padding: 22px 18px;
  }

  .lifecycle-page .lifecycle-info-card + .lifecycle-info-card {
    border-left: 0;
    border-top: 1px solid rgba(212,175,106,.28);
  }

  .lifecycle-page .lifecycle-info-card ul {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 430px) {
  .lifecycle-page .lifecycle-info-card ul {
    grid-template-columns: 1fr;
  }
}

/* Tour opportunity image — preserve the complete 1672 × 941 artwork. */
.tour-page .opportunity-section {
  position: relative;
  isolation: auto;
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(390px, .82fr);
  min-height: 0;
  align-items: center;
  overflow: hidden;
}

.tour-page .opportunity-visual {
  position: relative;
  z-index: 0;
  inset: auto;
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 0;
  overflow: visible;
  background: #050606;
}

.tour-page .opportunity-visual::after {
  display: none;
}

.tour-page .opportunity-visual img {
  display: block;
  width: 100%;
  height: auto;
  min-height: 0;
  aspect-ratio: 1672 / 941;
  object-fit: contain;
  object-position: center;
}

.tour-page .opportunity-content {
  position: relative;
  z-index: 1;
  grid-column: auto;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(28px, 3vw, 44px);
  border-left: 1px solid var(--site-line);
  background: #050606;
}

@media (max-width: 900px) {
  .tour-page .opportunity-section {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .tour-page .opportunity-content {
    grid-column: 1;
    border-left: 0;
    border-top: 1px solid var(--site-line);
  }

  .tour-page .opportunity-visual img {
    height: auto;
    aspect-ratio: 1672 / 941;
    object-fit: contain;
  }
}

/* Tour revenue box — rebuilt for the portrait production asset. */
.tour-page .opportunity-section {
  display: grid;
  grid-template-columns: minmax(360px, .82fr) minmax(440px, 1.18fr);
  min-height: 0;
  align-items: stretch;
  background: #050606;
}

.tour-page .opportunity-visual {
  position: relative;
  inset: auto;
  display: block;
  min-height: 0;
  aspect-ratio: 1122 / 1402;
  overflow: hidden;
  border-right: 1px solid var(--site-line);
}

.tour-page .opportunity-visual::after {
  content: "";
  display: block;
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 72%, rgba(3,3,3,.18) 100%);
}

.tour-page .opportunity-visual img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  aspect-ratio: 1122 / 1402;
  object-fit: cover;
  object-position: center;
}

.tour-page .opportunity-content {
  grid-column: auto;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(34px, 4.4vw, 70px);
  border: 0;
  background: #050606;
}

.tour-page .opportunity-content h2 {
  max-width: 530px;
  margin-bottom: 22px;
  font-size: clamp(38px, 4vw, 58px);
  line-height: 1.03;
  text-wrap: balance;
}

.tour-page .opportunity-content article {
  padding-block: 20px;
}

@media (max-width: 900px) {
  .tour-page .opportunity-section {
    grid-template-columns: minmax(0, 1fr);
  }

  .tour-page .opportunity-visual {
    width: 100%;
    max-height: none;
    border-right: 0;
    border-bottom: 1px solid var(--site-line);
  }

  .tour-page .opportunity-content {
    grid-column: 1;
    padding: 30px 24px;
  }
}
/* OVERVIEW — COMPACT, RESPONSIVE PRODUCTION SCALE */
.overview-page .deployment-hero-grid{position:relative;display:block;min-height:clamp(440px,42vw,520px)}
.overview-page .deployment-hero-copy{position:relative;z-index:2;width:min(45%,620px);min-height:inherit;padding-block:clamp(34px,4vw,48px)}
.overview-page .deployment-hero-copy h1{font-size:clamp(2.7rem,4.35vw,4.35rem)}
.overview-page .deployment-hero-media{position:absolute;inset:0;min-height:0;overflow:hidden;background:#050505}
.overview-page .deployment-hero-media img{width:100%;height:100%;object-fit:contain;object-position:right center}
.overview-page .deployment-hero-media:after{background:linear-gradient(90deg,#050505 0%,rgba(5,5,5,.97) 24%,rgba(5,5,5,.68) 42%,rgba(5,5,5,.08) 68%,transparent 100%)}
.overview-page .deployment-steps{align-items:stretch;grid-template-columns:repeat(5,minmax(0,1fr));overflow:visible}
.overview-page .deployment-step{display:flex;min-height:190px;flex-direction:column;align-items:center;justify-content:flex-start;isolation:isolate;overflow:hidden;padding:16px 12px 18px}
.overview-page .deployment-step img{width:96px;height:72px;aspect-ratio:4/3;object-fit:cover;margin:0 auto 10px;border:1px solid rgba(212,175,106,.22);opacity:1}
.overview-page .deployment-step p{max-width:190px}
.overview-page .event-type-card{min-height:clamp(220px,20vw,285px);border-radius:14px}
.overview-page .event-type-card img{object-position:center center}
.overview-page .inventory-card{overflow:hidden;border-radius:14px 14px 8px 8px}
.overview-page .inventory-card img{height:clamp(118px,12vw,165px);aspect-ratio:auto;object-fit:contain;object-position:center;background:radial-gradient(circle at 50% 28%,rgba(212,175,106,.1),transparent 58%),#090909;border-radius:42% 42% 8px 8px}
@media(max-width:1100px){
  .overview-page .deployment-hero-grid{min-height:470px}
  .overview-page .deployment-hero-copy{width:min(48%,520px);padding:32px 22px 32px 0}
  .overview-page .deployment-hero-copy h1{font-size:clamp(2.55rem,4.5vw,3.25rem)}
  .overview-page .deployment-pillars{grid-template-columns:repeat(2,minmax(0,1fr))}
  .overview-page .deployment-pillar:nth-child(3){border-left:0;border-top:1px solid rgba(212,175,106,.38)}
  .overview-page .deployment-pillar:nth-child(4){border-top:1px solid rgba(212,175,106,.38)}
}
@media(max-width:1050px){
  .overview-page .deployment-hero-grid{min-height:460px}
  .overview-page .deployment-hero-copy{width:min(50%,500px);min-height:inherit;padding:32px 20px 32px 0}
  .overview-page .deployment-steps{display:flex;overflow-x:auto;scroll-snap-type:x proximity;padding-bottom:8px}
  .overview-page .deployment-step{flex:0 0 190px;min-height:188px;border-top:0;scroll-snap-align:start}
  .overview-page .deployment-step:after{display:none}
  .overview-page .event-type-grid{display:flex;overflow-x:auto;scroll-snap-type:x proximity;padding-bottom:10px}
  .overview-page .event-type-card{flex:0 0 205px;min-height:260px;scroll-snap-align:start}
  .overview-page .inventory-grid{display:flex;overflow-x:auto;scroll-snap-type:x proximity}
  .overview-page .inventory-card{flex:0 0 190px;scroll-snap-align:start}
  .overview-page .inventory-card img{height:145px}
}
@media(max-width:820px){
  .overview-page .deployment-hero-grid{display:grid;grid-template-columns:1fr;min-height:0}
  .overview-page .deployment-hero-copy{width:100%;min-height:0;padding:30px 0 24px}
  .overview-page .deployment-hero-media{position:relative;inset:auto;width:100%;min-height:0;aspect-ratio:1672/941;margin:0}
  .overview-page .deployment-hero-media img{object-fit:contain;object-position:center}
  .overview-page .deployment-hero-media:after{background:linear-gradient(180deg,#050505 0%,transparent 20%,transparent 82%,#050505 100%)}
}
@media(max-width:700px){
  .overview-page .deployment-hero-copy{padding:28px 0 22px}
  .overview-page .deployment-hero-copy h1{font-size:clamp(2.35rem,11vw,3.25rem)}
  .overview-page .deployment-hero-media{min-height:0;aspect-ratio:1672/941;margin:0 -14px;width:calc(100% + 28px)}
  .overview-page .deployment-hero-media img{object-position:center}
  .overview-page .deployment-pillars{grid-template-columns:1fr}
  .overview-page .deployment-pillar{border-left:0;min-height:82px;padding:14px 16px}
  .overview-page .deployment-steps{margin-right:-14px}
  .overview-page .deployment-step{flex-basis:min(64vw,230px)}
  .overview-page .event-type-grid{margin-right:-14px}
  .overview-page .event-type-card{flex-basis:min(62vw,230px);min-height:285px}
  .overview-page .inventory-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));overflow:visible}
  .overview-page .inventory-card{min-width:0}
  .overview-page .inventory-card img{height:clamp(125px,40vw,165px)}
}

/* MOBILE-FIRST PRODUCTION REPAIR — iPhone Safari and narrow touch screens */
@media (max-width: 760px) {
  :root {
    --site-header: calc(64px + env(safe-area-inset-top, 0px));
    --header: var(--site-header);
  }

  html {
    overflow-x: hidden;
    scroll-padding-top: calc(var(--site-header) + 12px);
  }

  body {
    min-width: 0;
    overflow-x: hidden;
  }

  .site-header,
  .site-header.is-scrolled {
    height: var(--site-header);
    padding-top: env(safe-area-inset-top, 0px);
  }

  .nav-shell,
  .home-page .nav-shell {
    width: calc(100% - 24px) !important;
    max-width: none;
    gap: 10px;
  }

  .brand,
  .home-page .brand {
    gap: 8px;
    font-size: 10px;
    letter-spacing: .09em;
  }

  .brand img,
  .home-page .brand img {
    width: 32px;
    height: 38px;
  }

  .menu-toggle,
  .home-page .menu-toggle {
    order: 3;
    display: block;
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    margin-left: auto;
    padding: 10px;
  }

  .nav-cta,
  .home-page .nav-cta {
    display: none !important;
  }

  .main-nav,
  .home-page .main-nav {
    top: var(--site-header);
    max-height: calc(100vh - var(--site-header));
    max-height: calc(100dvh - var(--site-header));
    padding: 10px 18px calc(96px + env(safe-area-inset-bottom, 0px));
    overscroll-behavior: contain;
  }

  .main-nav.open + .nav-cta,
  .home-page .main-nav.open + .nav-cta {
    position: fixed;
    z-index: 1003;
    left: 18px;
    right: 18px;
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    display: inline-flex !important;
    width: auto;
    max-width: none;
    min-height: 50px;
    justify-content: center;
    padding-inline: 18px;
    font-size: 10px;
    letter-spacing: .07em;
  }

  .main-nav > a,
  .nav-trigger {
    min-height: 50px;
    padding: 15px 4px;
    font-size: 11px;
  }

  .dropdown a {
    min-height: 46px;
    display: flex;
    align-items: center;
    padding: 11px 12px;
    font-size: 13px;
  }

  .page-shell,
  .article-shell,
  .footer-grid,
  .footer-bottom,
  .po-shell,
  .me-shell,
  .resource-shell,
  .contact-section,
  .contact-hero,
  .contact-cta,
  .intake-app {
    width: calc(100% - 28px) !important;
    max-width: none;
    margin-inline: auto;
  }

  main,
  main > section,
  main > article,
  main :is(section, article, div, figure, form, fieldset) {
    min-width: 0;
  }

  main h1 {
    max-width: 100%;
    font-size: clamp(2.45rem, 12vw, 3.35rem);
    line-height: 1.01;
    overflow-wrap: normal;
    word-break: normal;
    hyphens: none;
    text-wrap: balance;
  }

  main h2,
  main h3,
  main p,
  main li,
  main a,
  main button,
  main label,
  main span {
    overflow-wrap: break-word;
  }

  main img,
  main picture,
  main video,
  main svg {
    max-width: 100%;
  }

  main img {
    image-rendering: auto;
  }

  input,
  select,
  textarea {
    max-width: 100%;
    font-size: 16px !important;
  }

  .button,
  main button:not(.deployment-dialog-close):not(.dl-view-toggle button) {
    min-height: 48px;
  }

  .hero-actions,
  .contact-hero .hero-actions,
  .deployment-hero-actions {
    width: 100%;
  }

  .hero-actions .button,
  .contact-hero .hero-actions .button,
  .deployment-hero-actions .button {
    width: 100%;
  }

  :is(.features-container, .feature-strip, .drop-scroller, .deployment-steps, .event-type-grid, .serve-strip,
      .serve-card-grid, .vendor-strip, .vendor-process-grid, .ms-kpis, .dl-stats, .po-benefit-grid,
      .po-proof-strip, .legal-principles, .me-metrics, .tour-page .journey-stops) {
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-inline: contain;
    scrollbar-width: thin;
    scrollbar-color: var(--site-gold) #0b0b0b;
  }

  :is(.features-container, .drop-scroller, .deployment-steps, .event-type-grid, .serve-strip,
      .serve-card-grid, .vendor-strip, .vendor-process-grid, .ms-kpis, .dl-stats, .po-benefit-grid,
      .po-proof-strip, .legal-principles, .me-metrics, .tour-page .journey-stops)::after {
    content: "";
    flex: 0 0 1px;
  }

  .deployment-library-page .dl-stats,
  .measurements-page .ms-kpis,
  .po-benefit-grid,
  .po-proof-strip {
    margin-inline: 0;
    padding-inline: 0;
  }

  .dl-workspace,
  .dl-featured,
  .dl-card-grid,
  .dl-cta,
  .ms-data-grid,
  .ms-impact-grid,
  .company-hero-grid,
  .company-story,
  .company-founder,
  .company-ip-grid,
  .company-values-grid,
  .contact-hero,
  .contact-cta,
  .inquiry-grid,
  .channel-grid,
  .process-row,
  .rv-hero-layout,
  .rv-compare-grid,
  .rv-triad,
  .serve-hero-grid,
  .vendor-hero-grid,
  .vendor-control,
  .po-meaning-grid,
  .po-beside,
  .po-faq-grid,
  .tour-page .opportunity-section,
  .tour-page .journey-card,
  .tour-page .final-cta {
    grid-template-columns: minmax(0, 1fr);
  }

  .deployment-library-page .dl-hero-copy,
  .measurements-page .ms-hero-copy,
  .company-hero-copy,
  .contact-hero-copy,
  .serve-hero-copy,
  .vendor-hero-copy,
  .rv-hero-copy {
    min-width: 0;
  }

  .deployment-library-page .dl-hero-media img,
  .measurements-page .ms-hero-media img,
  .overview-page .deployment-hero-media img,
  .lifecycle-page .lifecycle-hero img,
  .serve-page .serve-hero img,
  .vendor-page .vendor-hero img,
  .tour-page .hero-image {
    width: 100%;
    max-width: 100%;
  }

  .deployment-dialog {
    width: calc(100% - 20px);
    max-height: calc(100dvh - 20px);
    border-radius: 12px;
  }

  .deployment-dialog-grid > img {
    min-height: 0;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: contain;
  }

  .deployment-dialog-copy {
    padding: 26px 18px 32px;
  }

  .article-prose {
    width: calc(100% - 24px);
    padding-inline: 20px;
  }

  .article-prose :is(table, pre) {
    display: block;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 18px;
  }

  .footer-brand-block {
    grid-column: 1 / -1;
  }

  .footer-bottom,
  .footer-bottom > div {
    flex-direction: column;
    gap: 8px;
  }
}

@media (max-width: 380px) {
  .nav-shell,
  .home-page .nav-shell {
    width: calc(100% - 18px) !important;
  }

  .brand span,
  .home-page .brand span {
    font-size: 9px;
  }

  main h1 {
    font-size: clamp(2.25rem, 12vw, 2.85rem);
  }

  .page-shell,
  .article-shell,
  .footer-grid,
  .footer-bottom,
  .po-shell,
  .me-shell,
  .resource-shell,
  .contact-section,
  .contact-hero,
  .contact-cta,
  .intake-app {
    width: calc(100% - 22px) !important;
  }

  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-brand-block {
    grid-column: auto;
  }
}
