/* ============================================
   GPU Lab — Banner background + scroll behavior
   Sourced from input_source/banner-and-scroll.css
   ============================================ */

:root {
  /* Foundation — match the existing palette */
  --primary-black: #1C1C1E;
  --soft-black: #333333;
  --medium-grey: #666666;
  --light-grey: #999999;
  --border-grey: #e0e0e0;
  --background-white: #FDFDFB;
  --eggshell: #f9f7f4;
  --cobalt-blue: #0047AB;
}

/* Inter is the body font; JetBrains Mono is the technical/UI accent */
.mono { font-family: 'JetBrains Mono', 'SF Mono', Monaco, Consolas, monospace; }

/* ============================================
   1. SUBTLE TECHNICAL GRID BACKGROUND
   Fixed-position, sits behind everything.
   (Project already has a similar rule in desktop.css; this matches it.)
   ============================================ */
.grid-background {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,0,0,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,0,0,0.025) 1px, transparent 1px);
  background-size: 50px 50px;
  pointer-events: none;
  z-index: 0;
}
/* Anything that should sit on top of the grid: */
.utility-bar, .site-header, .contact-hero, .shop-pagehead,
main, footer { position: relative; z-index: 1; }

/* ============================================
   2. CONTACT-PAGE HERO (NO terminal panel)
   Solid dark band with eggshell text.
   ============================================ */
.contact-hero {
  background-color: #0e0f12;
  color: #e6e6e6;
  padding: 96px 0 64px;
  border-bottom: 1px solid #1d1f24;
  position: relative;
  overflow: hidden;
}
.contact-hero .container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 40px;
}
.contact-hero .eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  color: #8a8a90;
  text-transform: uppercase;
  margin-bottom: 24px;
}
.contact-hero h1 {
  font-family: 'Inter', sans-serif;
  font-size: 64px;
  font-weight: 200;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 24px;
  color: #e6e6e6;
}
.contact-hero h1 .accent {
  font-weight: 300;
  color: #f0c674;
}
.contact-hero .lede {
  font-size: 16px;
  line-height: 1.65;
  color: #8a8a90;
  max-width: 56ch;
  margin: 0 0 40px;
}
.contact-hero .meta {
  display: flex;
  gap: 40px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: #5a5a60;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-top: 1px solid #1d1f24;
  padding-top: 24px;
  flex-wrap: wrap;
}
.contact-hero .meta strong {
  color: #e6e6e6;
  font-weight: 500;
  display: block;
  margin-top: 4px;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: none;
}

/* ============================================
   3. UTILITY BAR + STICKY SITE HEADER
   The bar is a NORMAL element at the top of the
   page — it scrolls off naturally. The site-header
   uses position:sticky to pin to the viewport top.
   No JS animation involved.
   ============================================ */
.utility-bar {
  border-bottom: 1px solid var(--border-grey);
  background-color: var(--background-white);
  font-size: 12px;
  transition: opacity .25s ease, transform .25s ease;
}
.utility-bar.is-hidden {
  opacity: 0;
  transform: translateY(-100%);
  pointer-events: none;
}
.utility-bar .container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 36px;
  gap: 16px;
  flex-wrap: nowrap;
}
.utility-bar .left,
.utility-bar .social-row {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--medium-grey);
}
.utility-bar a {
  color: var(--medium-grey);
  text-decoration: none;
  transition: color .15s ease;
}
.utility-bar a:hover {
  color: var(--primary-black);
}
.utility-bar .sep {
  color: var(--border-grey);
}

/* Site header — STICKY. Pins to viewport top once you scroll past the utility bar. */
.site-header {
  background-color: rgba(253, 253, 251, 0.95);
  border-bottom: 1px solid var(--border-grey);
  padding: 18px 0;
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.site-header .container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

/* ============================================
   4. SHOP PAGE-HEAD (used on shop.html)
   Non-sticky. Same trick as the utility bar:
   it scrolls off; site-header above stays pinned.
   ============================================ */
.shop-pagehead {
  background-color: var(--background-white);
  border-bottom: 1px solid var(--border-grey);
  padding: 40px 0 24px;
}
.shop-pagehead .container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
}
.shop-pagehead .shop-title {
  font-size: 36px;
  font-weight: 300;
  letter-spacing: 0.04em;
  display: flex;
  gap: 18px;
}
.shop-pagehead .shop-title span:nth-child(2) { color: var(--medium-grey); }

/* ============================================
   5. RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
  .contact-hero { padding: 64px 0 40px; }
  .contact-hero h1 { font-size: 40px; }
  .contact-hero .meta { gap: 20px; }
  .utility-bar .container { padding: 0 16px; height: auto; flex-wrap: wrap; padding-top: 6px; padding-bottom: 6px; }
  .site-header .container { padding: 0 16px; }
  .contact-hero .container { padding: 0 20px; }
  .shop-pagehead .container { padding: 0 20px; flex-direction: column; align-items: flex-start; }
}
