/* Homepage shell: rounded beige hero card below the brand-blue header. */
.site-header { background: var(--brand); }
.hero {
  background: var(--brand);
  min-height: calc(100svh - var(--header-h));
  display: grid;
  align-items: center;
  padding: 0 16px clamp(2rem, 4vw, 3rem);
}
.hero > .hero-grid {
  width: min(100%, 1408px);
  padding: clamp(1rem, 2.5vw, 2rem);
  border-radius: var(--radius-lg);
  background: var(--bg);
}
@media (max-width: 1023px) {
  .hero .hero-media[data-globe-3d] { width: min(100%, 30rem); justify-self: center; }
  .hero-copy { width: 100%; max-width: 42rem; justify-self: center; }
}
@media (min-width: 1024px) {
  .hero > .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2.5rem; align-items: center; }
  .hero-copy { align-self: center; display: grid; gap: 1.75rem; margin-block: 0; transform: translate(1.25rem, -.5rem); padding-inline-start: clamp(1rem, 2vw, 1.75rem); }
  .hero-copy .lead, .hero-copy .actions { margin-top: 0; }
  .hero .hero-media[data-globe-3d] { width: min(90%, max(20rem, calc(100svh - var(--header-h) - 7rem))); justify-self: end; transform: translateX(-.75rem); aspect-ratio: 1 / 1; }
  main > .section, main > .section-tight { padding-block: clamp(1.25rem, 3vh, 2rem); scroll-margin-top: var(--header-h); }
  main > section .section-head { margin-bottom: 1.5rem; }
  main > section .section-head p { margin-top: .5rem; font-size: 1rem; }
}

/* Company name sits directly above “partner”, sharing its grid column. */
.hero-copy {
  color: var(--text);
  container-type: inline-size;
}
.hero-heading {
  display: grid;
  grid-template-columns: max-content max-content;
  column-gap: .22em;
  width: max-content;
  max-width: 100%;
  font-size: clamp(1.875rem, 11.7cqi, 4.75rem);
}
.hero-copy .hero-heading h1 {
  display: grid;
  grid-template-columns: subgrid;
  grid-column: 1 / -1;
  grid-row: 1 / 3;
  font-size: inherit;
  line-height: 1.05;
  margin: 0;
}
.hero-title-first { grid-column: 1; grid-row: 1; }
.hero-title-distribution { grid-column: 1; grid-row: 2; }
.hero-title-partner { grid-column: 2; grid-row: 2; }
.hero-heading .hero-name {
  grid-column: 2;
  grid-row: 1;
  align-self: end;
  z-index: 1;
  margin: 0 0 .15em;
  transform: translateY(.85em);
  font-size: .29em;
  line-height: 1.25;
  white-space: nowrap;
}

/* Desktop benefits: all six cards in two rows, with content-driven growth. */
@media (min-width: 1024px) {
  [aria-labelledby="why-title"] {
    padding-block: clamp(1rem, 3vh, 2rem);
    scroll-margin-top: var(--header-h);
  }
  [aria-labelledby="why-title"] .section-head {
    margin-bottom: clamp(1rem, 2.5vh, 1.5rem);
  }
  [aria-labelledby="why-title"] h2 {
    font-size: var(--section-heading-size);
  }
  [aria-labelledby="why-title"] .section-head p {
    margin-top: .5rem;
    font-size: 1rem;
    line-height: 1.4;
  }
  [aria-labelledby="why-title"] .bento {
    gap: .75rem;
    grid-auto-rows: minmax(clamp(11.5rem, 27vh, 14rem), auto);
  }
  [aria-labelledby="why-title"] .bento-cell {
    min-height: 0;
    padding: clamp(1rem, 2.5vh, 1.25rem);
    overflow: visible;
  }
  [aria-labelledby="why-title"] .bento-cell > .icon {
    width: 1.5rem;
    height: 1.5rem;
    margin-bottom: .25rem;
  }
  [aria-labelledby="why-title"] .bento-cell h3 {
    margin-top: 0;
    font-size: clamp(1.125rem, 2.5vh, 1.25rem);
  }
  [aria-labelledby="why-title"] .bento-cell p {
    line-height: 1.4;
  }
  [aria-labelledby="why-title"] .bento-feature {
    grid-column: auto;
    grid-row: auto;
    padding: 0;
  }
  [aria-labelledby="why-title"] .bento-feature img,
  [aria-labelledby="why-title"] .bento-feature .overlay {
    border-radius: inherit;
  }
  [aria-labelledby="why-title"] .bento-feature .overlay {
    display: flex;
    flex-direction: column;
    gap: .5rem;
    padding: clamp(1rem, 2.5vh, 1.25rem);
  }
  [aria-labelledby="why-title"] .bento-feature .stat {
    font-size: clamp(2rem, 5vh, 2.5rem);
    line-height: 1;
  }
}

/* Load after style.css. Transparent WebGL, no extra card or tinted backdrop. */
.hero-media[data-globe-3d] {
  position: relative;
  isolation: isolate;
  width: 100%;
  min-width: 0;
  aspect-ratio: 1 / 1;
  margin: 0;
  overflow: hidden;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
.hero-media[data-globe-3d]::before,
.hero-media[data-globe-3d]::after { display: none; }
.hero-media[data-globe-3d] > img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  object-fit: contain;
  border-radius: 0;
  box-shadow: none;
  /* Opacity, not display:none: the image's alt remains accessible. */
  opacity: 1;
}
.hero-media[data-globe-3d] > .globe-box-layer {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transform: scale(.95);
}
.hero-media[data-globe-3d] > .globe-box-back { z-index: 1; }
.hero-media[data-globe-3d] > .globe-box-front { z-index: 3; }
.hero-media[data-globe-3d] > .globe-3d-canvas {
  z-index: 2;
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  opacity: 0;
  pointer-events: none;
  touch-action: pan-y pinch-zoom;
  user-select: none;
}
.hero-media[data-globe-3d].globe-3d-ready > .globe-fallback { opacity: 0; }
.hero-media[data-globe-3d].globe-3d-ready > .globe-box-layer { opacity: 1; }
.hero-media[data-globe-3d].globe-3d-ready > .globe-3d-canvas {
  opacity: 1;
  pointer-events: auto;
  cursor: grab;
}
.hero-media[data-globe-3d].globe-3d-ready > .globe-3d-canvas:active { cursor: grabbing; }

/* Text-only assortment card; retain the existing bento size and position. */
.bento-feature.bento-feature-text { background: var(--surface-2); }
.bento-feature-text .overlay { background: none; }
.bento-feature-text .stat { color: var(--brand); }
.bento-feature-text h3 { color: var(--ink); }
.bento-feature-text p { color: var(--muted); }

/* Normalized artwork already includes its optical spacing. */
.brand-portfolio .brand-grid__logo[src*="brands-normalized/"] {
  inset: 0;
  width: 100%;
  height: 100%;
}
