/* Full-bleed hero beneath the template navigation. */
body.has-hero { padding-top: 0; }
.has-hero .site-header { background: transparent; transition: background-color .3s, box-shadow .3s, top .3s; }
.has-hero .site-header.is-scrolled { background: var(--primary); }
.has-hero .navbar .navbar-nav { background: transparent; }
.has-hero .footer { margin-top: 0 !important; }
.platform-hero { position: relative; isolation: isolate; min-height: max(780px, 100svh); display: flex; color: #fff; background: #111; }
.hero-backgrounds, .hero-background, .hero-shade { position: absolute; inset: 0; pointer-events: none; }
.hero-backgrounds { z-index: -3; overflow: hidden; }
.hero-background { opacity: 0; transition: opacity .8s ease; background: #111; }
.hero-background.is-active { opacity: 1; }
.hero-background img { width: 100%; height: 100%; object-fit: cover; filter: blur(4px); transform: scale(1.03); }
.hero-shade { z-index: -2; background: linear-gradient(180deg, rgb(0 0 0 / 80%) 0%, rgb(0 0 0 / 76%) 40%, rgb(0 0 0 / 92%) 100%), linear-gradient(90deg, rgb(0 0 0 / 25%), transparent); }
.hero-content { padding-top: 180px; padding-bottom: 64px; display: flex; flex-direction: column; justify-content: space-between; gap: 40px; }
.platform-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(175px, 1fr)); gap: 18px; }
.platform-card { display: flex; flex-direction: column; position: relative; min-width: 0; min-height: 296px; padding: 24px; color: #fff; border: 1px solid rgb(255 255 255 / 16%); border-radius: 12px; background: linear-gradient(145deg, rgb(255 255 255 / 9%), rgb(255 255 255 / 2%)), rgb(12 12 12 / 65%); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); box-shadow: inset 0 1px 0 rgb(255 255 255 / 7%), 0 12px 32px rgb(0 0 0 / 16%); transition: border-color .3s, box-shadow .3s, transform .3s; overflow: hidden; }
.platform-card:hover, .platform-card:focus-visible, .platform-card.is-active { color: #fff; text-decoration: none; border-color: rgb(255 255 255 / 36%); box-shadow: inset 0 1px 0 rgb(255 255 255 / 12%), 0 18px 40px rgb(0 0 0 / 26%); }
@media (hover: hover) { .platform-card:hover { transform: translateY(-4px); } }
.platform-card:focus-visible { outline: 2px solid var(--primary); outline-offset: 4px; }
.platform-card-top { width: 100%; margin-bottom: 30px; }
.platform-logo { width: 100%; height: 144px; padding: 20px; border-radius: 6px; background: #fff; display: flex; align-items: center; justify-content: center; }
.platform-logo img { width: 100%; height: 100%; object-fit: contain; }
.platform-monogram { display: grid; place-items: center; width: 100%; height: 144px; font-size: 4rem; font-weight: 900; background: rgb(255 255 255 / 8%); border-radius: 3px; }
.platform-arrow { position: absolute; bottom: 25px; right: 20px; width: 28px; height: 28px; display: grid; place-items: center; border: 1px solid rgb(255 255 255 / 18%); border-radius: 50%; opacity: .55; line-height: 0; transition: opacity .25s; }
.platform-card.is-active .platform-arrow, .platform-card:hover .platform-arrow { opacity: 1; }
.platform-card h2 { color: #fff; font-size: 1rem; line-height: 1.4; letter-spacing: .01em; margin: auto 30px 8px 0; overflow-wrap: anywhere; }
.platform-card p { color: #aaa; font-size: .75rem; letter-spacing: .02em; margin: 0 30px 0 0; overflow-wrap: anywhere; }
.platform-card-marker { position: absolute; bottom: 0; left: 24px; right: 24px; height: 2px; background: var(--primary); opacity: 0; transform-origin: left center; transition: opacity .25s; }
.platform-card.is-active .platform-card-marker, .platform-card:hover .platform-card-marker { opacity: 1; }
.hero-empty { padding: 30px 0; color: #ddd; }
@media (max-width: 1199.98px) { .platform-grid { grid-template-columns: repeat(auto-fit, minmax(155px, 1fr)); } .platform-card { padding: 20px 16px; } }
@media (max-width: 991.98px) {
  .hero-content { padding-top: 155px; padding-bottom: 40px; gap: 50px; }
  .platform-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .platform-card { min-height: 266px; }
  .platform-logo, .platform-monogram { height: 128px; }
}
@media (max-width: 575.98px) {
  .hero-content { padding: 140px 24px 32px; gap: 40px; }
  .platform-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .platform-card { min-height: 238px; padding: 14px; }
  .platform-card-top { margin-bottom: 18px; }
  .platform-logo, .platform-monogram { height: 112px; padding: 12px; }
  .platform-arrow { bottom: 20px; right: 14px; font-size: .9rem; width: 24px; height: 24px; }
  .platform-card-marker { left: 14px; right: 14px; }
  .platform-card h2 { font-size: .95rem; }
  .platform-card p { font-size: .75rem; }
}
@media (prefers-reduced-motion: reduce) { .hero-background, .platform-card { transition: none; } }

/* Full-color secondary logo: preserve original artwork and clear space. */
.hero-identity { display: flex; justify-content: flex-start; }
.hero-logo-panel { width: min(100%, 460px); padding: 44px 44px 44px 0; }
.hero-logo { display: block; width: 100%; height: auto; }
@media (max-width: 575.98px) {
  .hero-logo-panel { width: min(100%, 320px); padding: 30px 30px 30px 0; }
}

/* Let the hero identity lead until the header becomes solid. */
.has-hero .site-header .site-logo { opacity: 0; transition: opacity .3s ease; }
.has-hero .site-header.is-scrolled .site-logo,
.has-hero .site-header .navbar-brand:focus-visible .site-logo { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .has-hero .site-header .site-logo { transition: none; }
}

/* Expanded mobile navigation uses the same green surface as the scrolled header. */
@media (max-width: 991.98px) {
  .has-hero .site-header.menu-open { background: var(--primary); }
  .has-hero .site-header.menu-open .site-logo { opacity: 1; }
  .has-hero .site-header:not(.is-scrolled).menu-open .navbar .navbar-nav .nav-link.active,
  .has-hero .site-header:not(.is-scrolled).menu-open .navbar .navbar-nav .nav-link:hover,
  .has-hero .site-header:not(.is-scrolled).menu-open .navbar .navbar-nav .nav-link:focus-visible { color: #000; }
}

@media (prefers-reduced-motion: reduce) { .platform-card:hover { transform: none; } }

.platform-arrow svg { display: block; flex-shrink: 0; }

.hero-background-stage { position: absolute; inset: 0; }
/* Phone layouts use a viewport-sized backdrop while the cards scroll over it. */
@media (max-width: 767.98px) {
  .hero-backgrounds { overflow: clip; }
  .hero-background-stage { position: sticky; top: 0; height: 100lvh; }
  .platform-grid { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .platform-card { min-height: 280px; padding: 22px; }
  .platform-logo, .platform-monogram { height: 160px; padding: 20px; }
  .platform-card-top { margin-bottom: 24px; }
  .platform-card h2 { font-size: 1.1rem; }
  .platform-card p { font-size: .8rem; }
  .platform-arrow { right: 22px; bottom: 24px; width: 28px; height: 28px; }
  .platform-card-marker { left: 22px; right: 22px; }
}

/* More photographic depth on mobile, with gentle scroll-linked movement. */
@media (max-width: 767.98px) {
  .hero-background-stage { overflow: hidden; }
  .hero-shade { background: linear-gradient(180deg, rgb(0 0 0 / 70%), rgb(0 0 0 / 58%) 40%, rgb(0 0 0 / 80%)); }
  .hero-background { transition: opacity .6s ease; }
  .hero-background img { filter: blur(3px); transform: translateY(var(--hero-parallax, 0px)) scale(1.16); }
  .platform-card { background: linear-gradient(145deg, rgb(255 255 255 / 8%), rgb(255 255 255 / 2%)), rgb(12 12 12 / 42%); }
}
@media (max-width: 767.98px) and (prefers-reduced-motion: reduce) {
  .hero-background { transition: none; }
  .hero-background img { transform: scale(1.03); }
}
