/* BlueHarbor Freight — layout.css
   Page frame: header, hero, stacked "sheets", footer. */

:root { --hdr-inset: clamp(12px, 2vw, 26px); }

.wrap {
  width: 100%;
  max-width: calc(var(--maxw) + var(--gutter) * 2);
  margin: 0 auto;
  padding-left: var(--pad-l);
  padding-right: var(--pad-r);
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  z-index: 60;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: calc(var(--safe-t) + var(--hdr-inset)) max(var(--hdr-inset), var(--safe-r)) 0 max(var(--hdr-inset), var(--safe-l));
  pointer-events: none;
}
.site-header > * { pointer-events: auto; }

.brand {
  --g-tint: rgba(9, 19, 31, .24);
  --g-spot: 150px;
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
  height: 52px;
  padding: 0 20px 0 13px;
  border-radius: 999px;
  color: var(--cream);
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  transition: --g-tint .6s var(--ease-out), color .5s var(--ease-out), box-shadow .5s var(--ease-out), transform .7s var(--ease-spring);
}
.brand:hover { color: var(--cream); }
.brand:active { transform: scale(.97, .92); transition-duration: .6s, .5s, .5s, .12s; }

/* Logo mark: assets/logo-mark.png used as a mask, so it takes the header's text colour. */
.brand__mark {
  flex: none;
  width: 34px;
  height: 23px;
  background: currentColor;
  -webkit-mask: url("../assets/logo-mark.png") center / contain no-repeat;
  mask: url("../assets/logo-mark.png") center / contain no-repeat;
}

.brand__word {
  font-size: clamp(11px, 3vw, 13px);
  font-weight: 400;
  font-stretch: 125%;
  letter-spacing: .15em;
  line-height: 1;
  white-space: nowrap;
}
.brand__word b { font-weight: 800; }

/* Hamburger + dropdown (js/menu.js) */
.menu-btn { --g-tint: rgba(9, 19, 31, .24); color: var(--cream); flex: none; }
.menu-btn__lines { display: grid; gap: 5px; width: 20px; }
.menu-btn__lines i {
  display: block;
  height: 1.6px;
  border-radius: 2px;
  background: currentColor;
  transform-origin: 100% 50%;
  transition: transform .6s var(--ease-spring);
}
.menu-btn__lines i:nth-child(2) { transform: scaleX(.6); }
.menu-btn__lines i:nth-child(3) { transform: scaleX(.82); }
.menu-btn:hover .menu-btn__lines i { transform: none; }
.menu-btn.is-bump .menu-btn__lines { animation: menu-bump .7s var(--ease-spring); }
@keyframes menu-bump { 0% { transform: none; } 22% { transform: scale(.7, .5); } 55% { transform: scale(1.12, 1.2); } 100% { transform: none; } }
.menu-btn__lines i { transition: transform .6s var(--ease-spring), opacity .25s var(--ease-out); }
.menu-btn[aria-expanded="true"] .menu-btn__lines i:nth-child(1) { transform: translateY(6.6px) rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-btn__lines i:nth-child(2) { transform: scaleX(0); opacity: 0; }
.menu-btn[aria-expanded="true"] .menu-btn__lines i:nth-child(3) { transform: translateY(-6.6px) rotate(-45deg); }

.menu {
  --g-tint: rgba(9, 19, 31, .64);
  position: absolute;
  top: calc(var(--safe-t) + var(--hdr-inset) + 62px);
  right: max(var(--hdr-inset), var(--safe-r));
  min-width: 224px;
  padding: 8px;
  border-radius: 22px;
  color: var(--cream);
  opacity: 0;
  transform: translateY(-8px) scale(.94);
  transform-origin: calc(100% - 26px) -10px;
  transition: opacity .28s var(--ease-out), transform .55s var(--ease-spring);
}
.menu[hidden] { display: none; }
.menu.is-open { opacity: 1; transform: none; }
.menu__list { margin: 0; padding: 0; list-style: none; }
.menu__item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 50px;
  padding: 0 18px 0 8px;
  border: 0;
  border-radius: 15px;
  background: none;
  color: inherit;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .01em;
  text-align: left;
  cursor: default;
}
.menu__item:focus-visible { outline: 2px solid var(--sky-hi); outline-offset: 2px; }
a.menu__item { cursor: pointer; text-decoration: none; -webkit-tap-highlight-color: transparent; transition: background-color .3s var(--ease-out); }
a.menu__item:hover, a.menu__item[aria-current="page"] { color: var(--cream); background: rgba(90, 132, 181, .16); }
.menu__icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(90, 132, 181, .2);
  box-shadow: inset 0 0 0 1px rgba(204, 218, 233, .22), 0 0 14px -4px rgba(90, 132, 181, .8);
  color: var(--sky-hi);
}
.menu__icon svg { width: 18px; height: 18px; transform-origin: 50% 17%; }
/* Careers: the briefcase is picked up and swings from its handle; the dot pings "now hiring". */
.menu.is-open .menu__icon svg { animation: case-swing 1.5s var(--ease-out) .18s both; }
a.menu__item:hover .menu__icon svg { animation: case-hop .9s var(--ease-out) both; }
@keyframes case-swing { 0% { opacity: 0; transform: translateY(-6px) rotate(-18deg); } 16% { opacity: 1; } 34% { transform: rotate(12deg); } 54% { transform: rotate(-6deg); } 74% { transform: rotate(3deg); } 100% { transform: none; } }
@keyframes case-hop { 30% { transform: translateY(-2px) rotate(-9deg); } 60% { transform: rotate(5deg); } 100% { transform: none; } }
.menu__icon { position: relative; }
.menu__ping { position: absolute; top: 4px; right: 4px; width: 7px; height: 7px; border-radius: 50%; background: var(--sky-hi); box-shadow: 0 0 8px 1px rgba(90, 132, 181, .9); }
.menu__ping::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 1px solid rgba(204, 218, 233, .6); animation: ping 2.6s var(--ease-out) infinite; }
.menu.is-open .menu__ping { animation: ping-pop .6s var(--ease-spring) .95s both; }
@keyframes ping-pop { from { transform: scale(0); } }
@media (prefers-reduced-motion: reduce) {
  .menu.is-open .menu__icon svg, a.menu__item:hover .menu__icon svg, .menu.is-open .menu__ping, .menu__ping::after { animation: none; }
}

/* Header states */
.site-header.is-scrolled :is(.brand, .menu-btn) { --g-tint: rgba(9, 19, 31, .5); }
.site-header.is-on-light :is(.brand, .menu-btn) {
  --g-tint: rgba(255, 255, 255, .6);
  --g-edge: #fff;
  --g-edge-2: rgba(255, 255, 255, .6);
  --g-spot-color: rgba(255, 255, 255, .85);
  --g-shadow: 0 16px 34px -20px rgba(27, 47, 69, .6);
  color: var(--ink);
}

/* ---------- Hero ---------- */
.hero {
  position: sticky;
  top: 0;
  z-index: 0;
  /* Grows with its content so the copy/buttons are never clipped when browser
     chrome (tabs, address/tool bars) leaves a short viewport. */
  display: grid;
  min-height: max(540px, 100vh);
  min-height: max(540px, 100svh);
  overflow: hidden;
  isolation: isolate;
  color: var(--cream);
  background:
    radial-gradient(80% 50% at 50% 0%, rgba(46, 77, 107, .3), rgba(46, 77, 107, 0) 70%),
    radial-gradient(140% 90% at 50% 20%, #0E1B2A 0%, #09131F 45%, #050B13 80%);
}
@media (max-height: 539px) { .hero { position: relative; } }

.hero__stage {
  position: absolute;
  inset: 0;
  transform-origin: 50% 38%;
  transform: scale(calc(1 - var(--cover, 0) * .06));
  opacity: calc(1 - var(--cover, 0) * .8);
}
.hero__stage canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  touch-action: pan-y;
  cursor: grab;
  -webkit-tap-highlight-color: transparent;
  -webkit-user-select: none;
  user-select: none;
}
.hero__stage canvas.is-dragging { cursor: grabbing; }
.hero__canvas { opacity: 0; transition: opacity 1.4s var(--ease-out); }
.hero.is-globe-ready .hero__canvas { opacity: 1; }
.hero__stage canvas:focus-visible { outline: none; box-shadow: inset 0 0 0 2px rgba(204, 218, 233, .7); }
.hero__fallback { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 42%; opacity: 0; transition: opacity 1.2s var(--ease-out); }
.hero.is-fallback .hero__fallback, .hero__fallback.is-static { opacity: 1; }
.hero.is-fallback .hero__poster { opacity: 0; visibility: hidden; }
.hero.is-fallback .hero__hint { display: none; }
.hero-sentinel { position: absolute; top: 0; left: 0; width: 1px; height: 1px; pointer-events: none; }

/* CSS poster: shown while the globe boots (and without JS) */
.hero__poster { position: absolute; inset: 0; transition: opacity 1.6s var(--ease-out), visibility 0s linear 1.6s; }
.hero.is-globe-ready .hero__poster { opacity: 0; visibility: hidden; }
.hero__planet {
  position: absolute;
  left: 50%;
  top: 27%;
  width: 280vmax;
  height: 280vmax;
  margin-left: -140vmax;
  border-radius: 50%;
  background: radial-gradient(closest-side, #0B1724 0%, #0E1B2A 88%, #183049 97%, #2E4D6B 100%);
  box-shadow: 0 0 0 1px rgba(169, 188, 208, .22), 0 -12px 44px -6px rgba(90, 132, 181, .45), 0 -50px 160px -20px rgba(63, 109, 154, .4);
}
.hero__glow {
  position: absolute;
  left: 50%;
  top: 47%;
  width: min(62vw, 440px);
  aspect-ratio: 1;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(90, 132, 181, .5), rgba(63, 109, 154, .2) 55%, rgba(63, 109, 154, 0));
  animation: breathe 5.5s ease-in-out infinite;
}
@keyframes breathe { 50% { opacity: .55; transform: translate(-50%, -50%) scale(.94); } }

.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(to top, rgba(5, 11, 19, .92) 0%, rgba(5, 11, 19, .6) 18%, rgba(5, 11, 19, 0) 46%),
    linear-gradient(to bottom, rgba(5, 11, 19, .5) 0%, rgba(5, 11, 19, 0) 14%);
}

.hero__overlay {
  position: relative;
  z-index: 3;
  align-self: end;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 22px 48px;
  padding: calc(var(--safe-t) + var(--hdr-inset) + 84px) var(--pad-r) calc(var(--r-xl) + var(--safe-b) + clamp(24px, 5vh, 56px)) var(--pad-l);
  pointer-events: none;
}
.hero__overlay :is(a, button) { pointer-events: auto; }
.hero__copy { display: grid; gap: clamp(14px, 2.2vh, 22px); min-width: 0; justify-items: start; }
.hero__eyebrow { display: flex; align-items: center; gap: 12px; color: var(--sky-hi); }
.live-dot { position: relative; flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--sky-hi); box-shadow: 0 0 10px 1px rgba(90, 132, 181, .9); }
.live-dot::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 1px solid rgba(204, 218, 233, .6); animation: ping 2.6s var(--ease-out) infinite; }
@keyframes ping { 0% { transform: scale(.4); opacity: 1; } 80%, 100% { transform: scale(1.6); opacity: 0; } }

.hero__title { font-size: clamp(34px, min(5vw, 8.5vh), 84px); color: var(--cream); }
.hero__title .line { display: block; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }

.hero__aside { display: grid; gap: 12px; justify-items: end; }
.legend { --g-tint: rgba(9, 19, 31, .32); display: grid; gap: 12px; padding: 16px 16px 14px; border-radius: 24px; }
.legend__list { display: grid; grid-template-columns: repeat(4, auto); gap: 6px; }
.legend__list li {
  display: grid;
  place-items: center;
  min-width: 44px;
  height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .08em;
  color: var(--sky-hi);
  background: rgba(90, 132, 181, .2);
  box-shadow: inset 0 0 0 1px rgba(169, 188, 208, .22), 0 0 18px -6px rgba(90, 132, 181, .8);
}
.hero__hint { display: flex; align-items: center; gap: 10px; color: var(--mist); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); }
.hero.has-spun .hero__hint { opacity: 0; transform: translate3d(0, 6px, 0); }

/* Hero motion: intro on load; overlay lifts away and the globe settles as the next sheet covers it (--cover, js/hero.js) */
.hero__overlay { opacity: calc(1 - var(--cover, 0) * 1.5); transform: translate3d(0, calc(var(--cover, 0) * -40px), 0); }
@keyframes hero-line { from { transform: translate3d(0, 108%, 0); } to { transform: none; } }
@keyframes hero-rise { from { opacity: 0; transform: translate3d(0, 16px, 0); } to { opacity: 1; transform: none; } }
html.js .hero__title .line { overflow: hidden; padding-bottom: .22em; margin-bottom: -.22em; }
html.js .hero__title .line > span { display: block; animation: hero-line 1.15s var(--ease-out) both; animation-delay: calc(.2s + var(--n, 0) * 90ms); }
.hero__title .line:nth-child(2) { --n: 1; }
.hero__title .line:nth-child(3) { --n: 2; }
html.js .hero__eyebrow { animation: hero-rise .9s var(--ease-out) .1s both; }
html.js .hero__actions { animation: hero-rise .9s var(--ease-out) .55s both; }
html.js .hero__aside { animation: hero-rise .9s var(--ease-out) .8s both; }
@media (prefers-reduced-motion: reduce) {
  .hero__stage, .hero__overlay { transform: none; }
  html.js .hero__title .line > span { animation: none; }
  html.js :is(.hero__eyebrow, .hero__actions, .hero__aside) { animation-name: hero-fade; animation-duration: .6s; }
  @keyframes hero-fade { from { opacity: 0; } to { opacity: 1; } }
}

@media (max-width: 759px) {
  .hero__overlay { grid-template-columns: minmax(0, 1fr); }
  .hero__aside { justify-items: start; }
  .legend { display: none; }
  .hero__actions { width: 100%; }
  .hero__actions .btn { flex: 1 1 auto; }
}

/* ---------- Sheets (sections that slide over the pinned hero) ---------- */
.sheet {
  position: relative;
  margin-top: calc(-1 * var(--r-xl));
  border-radius: var(--r-xl) var(--r-xl) 0 0;
}
.sheet::before {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0 0 auto;
  height: calc(var(--r-xl) * 2);
  border-radius: inherit;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16);
  pointer-events: none;
}

/* ---------- Footer ---------- */
.site-footer {
  z-index: 4;
  overflow: hidden;
  color: var(--cream);
  padding: clamp(64px, 8vw, 120px) 0 calc(var(--safe-b) + 26px);
  background:
    radial-gradient(60% 50% at 8% 0%, rgba(90, 132, 181, .22), rgba(90, 132, 181, 0) 70%),
    linear-gradient(180deg, #354D66 0%, #2F465E 100%);
  box-shadow: 0 -30px 70px -40px rgba(1, 5, 10, .7);
}
.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) auto;
  gap: 40px clamp(24px, 4vw, 64px);
  align-items: start;
}
.footer__tagline { font-size: clamp(34px, 3.9vw, 62px); color: var(--cream); }
.footer__tagline .line { display: block; }
.footer__col { display: grid; gap: 14px; align-content: start; padding-top: 8px; }
.footer__col .eyebrow { color: var(--mist); }
.footer__email {
  justify-self: start;
  padding-bottom: 3px;
  font-size: clamp(17px, 1.5vw, 21px);
  font-weight: 500;
  color: var(--cream);
  text-decoration: none;
  overflow-wrap: anywhere;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size .6s var(--ease-out);
}
.footer__email:hover { color: var(--cream); background-size: 100% 1px; }
.footer__states { display: grid; grid-template-columns: repeat(2, max-content); gap: 9px 28px; font-size: 15px; }
.footer__states li { display: flex; align-items: baseline; gap: 10px; }
.footer__states span { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .08em; color: var(--mist); min-width: 2.2em; }

.footer__wordmark { display: grid; margin-top: clamp(64px, 9vw, 130px); line-height: .8; -webkit-user-select: none; user-select: none; }
.wm-main {
  justify-self: start;
  display: inline-block;
  white-space: nowrap;
  font-size: 12.1vw;
  font-weight: 800;
  font-stretch: 125%;
  letter-spacing: -.01em;
  color: transparent;
  background: linear-gradient(180deg, rgba(204, 218, 233, .62) 0%, rgba(204, 218, 233, .16) 76%, rgba(204, 218, 233, .05) 100%);
  -webkit-background-clip: text;
  background-clip: text;
}
.wm-sub {
  justify-self: start;
  display: inline-block;
  white-space: nowrap;
  margin-top: .55em;
  font-size: 4vw;
  font-weight: 500;
  font-stretch: 125%;
  letter-spacing: .62em;
  color: rgba(204, 218, 233, .55);
}
.footer__base {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  margin-top: clamp(28px, 4vw, 48px);
  padding-top: 22px;
  border-top: 1px solid rgba(169, 188, 208, .22);
}
.footer__legal { font-size: 13px; color: var(--mist); }

@media (max-width: 1179px) {
  .footer__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .footer__tagline { grid-column: 1 / -1; }
}
@media (max-width: 559px) {
  .footer__grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
}
