/* Fixed-stage canvas and the single highlighted UCSB cell. */
.home main#top {
  z-index: auto;
}

.home .home-nav {
  background: transparent;
  backdrop-filter: none;
}

.home .home-hero {
  overflow: visible;
}

.home-numeric-atlas {
  position: absolute;
  z-index: 1;
  top: -77px;
  right: 0;
  bottom: 0;
  left: 0;
  overflow: hidden;
  pointer-events: none;
  transition: opacity 120ms ease;
}

.binary-atlas {
  position: absolute;
  top: 0;
  left: 0;
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
}

/* Desktop only: dragging on empty hero space paints or erases activity
   (handled on the hero element in binary-field.js, since the copy grid overlays the canvas).
   Crosshair signals paintability; text elements keep their own cursors.
   Touch devices are excluded so scrolling never paints cells. */
@media (hover: hover) and (pointer: fine) {
  .home-hero {
    cursor: crosshair;
  }

  .home-hero .home-hero__copy {
    cursor: auto;
  }
}

.ucsb-marker-overlay {
  position: absolute;
  z-index: 4;
  left: var(--ucsb-marker-left, -20px);
  top: var(--ucsb-marker-top, -20px);
  width: calc(var(--ucsb-marker-size, 0px) + 2px);
  height: calc(var(--ucsb-marker-size, 0px) + 2px);
  display: grid;
  place-items: center;
  border: 1px solid rgba(0, 54, 96, 0.82);
  background: #febc11;
  box-shadow:
    0 0 0 1px rgba(241, 238, 234, 0.5),
    0 0 9px rgba(0, 54, 96, 0.3);
  color: #003660;
  font: 700 calc(var(--ucsb-marker-size, 7px) * 0.88) / 1
    ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  pointer-events: none;
  transform: translate(-1px, -1px);
}

:root[data-theme="dark"] .ucsb-marker-overlay {
  border-color: rgba(254, 188, 17, 0.96);
  box-shadow:
    0 0 0 1px rgba(0, 54, 96, 0.76),
    0 0 10px rgba(254, 188, 17, 0.52);
}

/* Hero typography and spacing are calibrated against the fixed field stage,
   rather than the general page grid. */
.home .home-hero__grid {
  justify-content: flex-start;
  min-height: 720px;
  padding-block: 104px 98px;
}

.home .home-hero__copy {
  max-width: 650px;
  margin: 0;
  text-align: left;
}

.home .home-hero .home-kicker {
  margin-bottom: 26px;
  color: #214e52;
  font-size: clamp(9.5px, 1vw, 12px);
  font-weight: 600;
  letter-spacing: 0.17em;
}

.home .home-hero h1 {
  max-width: 650px;
  font-size: clamp(58px, 5.8vw, 94px);
  line-height: 0.91;
  letter-spacing: -0.022em;
}

.home .home-hero__summary {
  width: min(100%, var(--subtitle-ocean-width, 590px));
  max-width: 590px;
  margin: 36px 0 0;
  font-size: clamp(16px, 1.35vw, 19px);
  font-weight: 500;
  line-height: 1.62;
}

.home .home-actions {
  justify-content: flex-start;
  margin-top: 38px;
}

:root[data-theme="dark"] .home .home-nav {
  background: transparent;
}

:root[data-theme="dark"] .home .home-hero .home-kicker {
  color: #b8d9d3;
}

/* Breakpoints reposition/crop the stage; they never change its tile lattice. */
@media (max-width: 820px) {
  .home .home-hero__grid {
    min-height: 680px;
    padding-block: 104px 98px;
  }

  .home .home-hero h1 {
    max-width: min(620px, 82vw);
    font-size: clamp(58px, 11vw, 82px);
  }
}

@media (max-width: 700px) {
  .home-numeric-atlas {
    top: -67px;
  }

  .home .home-hero__grid {
    min-height: 690px;
    padding-block: 112px 94px;
  }

  .home .home-hero__copy {
    max-width: none;
  }

  .home .home-hero h1 {
    max-width: none;
    font-size: clamp(52px, 16vw, 72px);
    line-height: 0.92;
  }

  .home .home-hero__summary {
    max-width: 94%;
    margin-top: 31px;
  }

  .home .home-actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 22px;
  }
}

@media (max-width: 560px) {
  .home .home-hero .home-kicker {
    letter-spacing: 0.145em;
    white-space: nowrap;
  }
}
