/* ==========================================================================
   CryoFlux Technologies — layout.css
   Page shell, section rhythm, hero geometry and the repeating grids.
   ========================================================================== */

/* Shell --------------------------------------------------------------- */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section-y); }
.section--tight { padding-block: clamp(48px, 6vw, 88px); }
.section__foot { margin-top: clamp(38px, 5vw, 62px); }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: #fff;
  color: #000;
  padding: 12px 18px;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.skip-link:focus { left: 12px; top: 12px; }

/* Hero ----------------------------------------------------------------- */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: min(92vh, 900px);
  padding-top: calc(var(--nav-h) + 40px);
  padding-bottom: 96px;
  overflow: hidden;
  background: var(--bg);
}

/* .hero__inner stays unpositioned so absolutely positioned children
   (media, rails) resolve against .hero and can bleed to the page edge. */
.hero__inner {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.hero__copy {
  position: relative;
  z-index: 2;
  max-width: 36rem;
}
.hero__copy .lede { margin-top: 32px; max-width: 30rem; }

.hero__media {
  position: absolute;
  inset: 0 0 0 30%;
  z-index: 0;
}
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, var(--bg) 0%, rgba(7, 9, 12, 0.97) 22%, rgba(7, 9, 12, 0.55) 52%, rgba(7, 9, 12, 0.2) 78%, rgba(7, 9, 12, 0.5) 100%),
    linear-gradient(180deg, rgba(7, 9, 12, 0.55) 0%, rgba(7, 9, 12, 0) 35%, rgba(7, 9, 12, 0.6) 100%);
}

/* Four-across bands ----------------------------------------------------- */
.band {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line-soft);
  background: var(--bg-raised);
}
.band > * { border-left: 1px solid var(--line-soft); }
.band > *:first-child { border-left: 0; }

.app-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  margin-top: clamp(40px, 6vw, 72px);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}

/* Footer layout --------------------------------------------------------- */
.footer-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: clamp(26px, 5vw, 64px);
}

.footer-legal {
  margin-top: 44px;
  padding-top: 22px;
  border-top: 1px solid var(--line-soft);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 18px 30px;
}
