/* Gold Container Home — static mirror · fidelity to Squarespace original */
:root {
  --navy: #0f1630;
  --ink: #1a1a1a;
  --paper: #eeeff1;
  --band-grey: #e9e9ed;
  --muted: #555555;
  --white: #fff;
  --header-bg: #ffffff;
  --header-border: #e6e6e6;
  --active: #3f51b5;
  --cta: #3227b0;
  --cta-hover: #241c8a;
  --max: 1120px;
  --header-h: 128px;
  --font: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --display: "Barlow Condensed", "Helvetica Neue Condensed", "Arial Narrow", Helvetica, Arial, sans-serif;
  --placeholder: #1a1d28;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--active); }
a:hover { color: var(--cta); }

/* ========== Header ========== */
.site-header {
  position: relative; /* GCH-16: original header scrolls away (not sticky) */
  z-index: 100;
  background: var(--header-bg);
  border-bottom: 1px solid var(--header-border);
}
.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1rem 1.25rem 0.75rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  position: relative;
}
.brand { display: block; line-height: 0; }
.brand img {
  height: 72px;
  width: auto;
  max-width: min(280px, 70vw);
}
.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.15rem 1.25rem;
  width: 100%;
}
.nav-link {
  color: #2a2a2a;
  text-decoration: none !important;
  font-family: var(--display);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.35rem 0;
  border: 0 !important;
  border-bottom: none !important;
  box-shadow: none !important;
  background: transparent;
  background-image: none !important;
  outline: none;
}
.nav-link:hover,
.nav-link:focus {
  color: var(--active);
  text-decoration: none !important;
  border-bottom: none !important;
  box-shadow: none !important;
  background-image: none !important;
}
.nav-link.active,
.nav-link.active:hover,
.nav-link.active:focus,
a.nav-link.active {
  color: #3f51b5 !important;
  text-decoration: none !important;
  border: 0 !important;
  border-bottom: none !important;
  box-shadow: none !important;
  background: transparent !important;
  background-image: none !important;
  outline: none !important;
}
.nav-toggle {
  display: none;
  background: none; border: 0; cursor: pointer; padding: 0.55rem;
  border-radius: 4px;
}
.nav-toggle span {
  display: block; width: 22px; height: 2px; background: var(--ink); margin: 5px 0;
  transition: transform 0.2s, opacity 0.2s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}
.search-link {
  display: none;
  color: var(--ink);
  text-decoration: none;
  padding: 0.45rem;
  line-height: 0;
}
.search-link svg { width: 20px; height: 20px; }

main { min-height: 50vh; }

/* ========== Home hero — fixed viewport bg (parallax3 / GCH-10) ========== */
.hero {
  position: relative;
  min-height: 100vh;
  color: #fff;
  overflow: visible; /* overflow:hidden breaks background-attachment:fixed */
  background-color: var(--placeholder);
  background-image: var(--hero-bg);
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}
.hero-full { min-height: 100vh; }
.hero-media {
  display: none !important; /* no scrolling <img> landmarks */
}
.hero-media img {
  display: none !important;
}
.hero-overlay {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0;
  margin: 0;
  background: transparent;
  max-width: none;
  pointer-events: none;
}
.hero-overlay h1 {
  font-family: var(--display);
  font-size: clamp(2.8rem, 7vw, 4.5rem);
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.05;
  margin: 0;
  color: #fff;
  text-align: center;
  text-shadow: 0 2px 18px rgba(0,0,0,0.35);
  pointer-events: auto;
}
.scroll-line {
  position: absolute;
  left: 50%;
  bottom: 1.25rem;
  transform: translateX(-50%);
  width: 1px;
  height: 36px;
  background: rgba(255,255,255,0.85);
  pointer-events: none;
  z-index: 3;
}

/* Tagline / light text bands */
.band-plain {
  background: var(--band-grey);
  color: var(--ink);
  padding: 2.75rem 1.5rem;
  text-align: center;
}
.band-plain h2,
.band-plain p.band-heading {
  font-family: var(--display);
  font-size: clamp(1.35rem, 2.6vw, 1.85rem);
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.25;
  margin: 0 auto;
  max-width: 52rem;
  color: #111;
}

/* Full-bleed image overlay bands — fixed bg on SECTION (child overflow breaks fixed) */
.band-photo {
  position: relative;
  min-height: 78vh;
  color: #fff;
  overflow: visible; /* critical: overflow/transform ancestors break attachment:fixed */
  display: flex;
  align-items: center;
  background-color: var(--placeholder);
  background-image: var(--band-bg);
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}
.band-photo .band-media {
  position: absolute; inset: 0;
  z-index: 0;
  pointer-events: none;
  /* gradient only — image paint is on section */
  background: linear-gradient(90deg, rgba(0,0,0,0.45) 0%, rgba(0,0,0,0.22) 45%, rgba(0,0,0,0.12) 100%);
}
.band-photo .band-media img {
  display: none !important; /* no scrolling <img> landmarks */
}
.band-photo .band-media::after {
  display: none;
}
.band-photo .band-copy {
  position: relative; z-index: 1;
  max-width: 36rem;
  margin: 0;
  padding: clamp(2.5rem, 6vw, 4.5rem) clamp(1.5rem, 5vw, 4rem);
  display: flex; flex-direction: column; gap: 1rem;
  align-items: flex-start;
}
.band-photo.band-copy-center .band-copy {
  margin-left: auto; margin-right: auto;
  align-items: flex-start;
  text-align: left;
}
.band-photo h2,
.band-photo .overlay-text {
  font-family: var(--display);
  font-size: clamp(1.45rem, 2.8vw, 2rem);
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.2;
  margin: 0;
  color: #fff;
  text-shadow: 0 1px 10px rgba(0,0,0,0.35);
}

/* Engineer home teaser — split */
.band-engineer-home {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 70vh;
  background: var(--band-grey);
  color: var(--ink);
}
.band-engineer-home .band-copy {
  display: flex; flex-direction: column; justify-content: center;
  padding: clamp(2rem, 5vw, 4rem);
  gap: 0.85rem;
}
.band-engineer-home h2 {
  font-family: var(--display);
  font-size: clamp(1.45rem, 2.6vw, 1.9rem);
  font-weight: 700;
  line-height: 1.2;
  margin: 0;
}
.band-engineer-home .trust {
  font-family: var(--display);
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  font-weight: 700;
  font-style: normal;
  margin: 0.25rem 0 0.5rem;
}
.band-engineer-home .band-media {
  position: relative;
  background: var(--placeholder);
  min-height: 320px;
  overflow: hidden;
}
.band-engineer-home .band-media img {
  width: 100%; height: 100%; object-fit: cover; min-height: 320px;
}

/* Filled purple CTAs — no outline fallback */
.btn,
a.btn {
  display: inline-block;
  align-self: flex-start;
  margin-top: 0.35rem;
  padding: 0.7rem 1.35rem;
  background: #3227b0 !important;
  background-color: #3227b0 !important;
  border: 1px solid #3227b0 !important;
  color: #fff !important;
  text-decoration: none !important;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-family: var(--font);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  border-radius: 999px;
  box-shadow: none;
  transition: background 0.2s, border-color 0.2s;
}
.btn:hover,
a.btn:hover,
.btn:focus,
a.btn:focus {
  background: #241c8a !important;
  background-color: #241c8a !important;
  border-color: #241c8a !important;
  color: #fff !important;
  text-decoration: none !important;
}
.btn-block {
  width: 100%; text-align: center; border-radius: 4px;
  background: var(--navy); border-color: var(--navy);
}
.btn-block:hover { background: var(--cta); border-color: var(--cta); }

/* ========== Inner pages ========== */
.page-hero {
  min-height: 52vh;
  background-size: cover; background-position: center;
  background-attachment: fixed;
  background-color: var(--placeholder);
  overflow: visible;
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  position: relative;
  max-width: var(--max);
  margin: 1.5rem auto 0;
}
.page-hero::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.40) 0%, rgba(0,0,0,0.22) 42%, rgba(0,0,0,0.12) 100%);
}
.page-hero-inner {
  position: relative; z-index: 1;
  width: 100%;
  padding: 3rem 1.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
/* Design page: full-bleed hero, centered title+lede, no left-only wash */
.page-design .page-hero {
  max-width: none;
  width: 100%;
  margin: 0;
  min-height: 56vh;
}
.page-design .page-hero::before {
  background: linear-gradient(to top, rgba(0,0,0,0.42) 0%, rgba(0,0,0,0.20) 48%, rgba(0,0,0,0.10) 100%);
}
.page-design .page-hero-inner {
  text-align: center;
  align-items: center;
}
.page-design .page-hero .lede {
  text-align: center;
  font-size: 1.25rem;
  font-weight: 400;
}
.page-hero h1 {
  font-family: var(--display);
  font-size: clamp(2.8rem, 6.5vw, 4.4rem);
  font-weight: 800;
  letter-spacing: 0.01em;
  line-height: 1.05;
  margin: 0 0 0.35rem;
  color: #fff;
  text-align: center;
}
.page-hero .lede {
  font-size: 1.2rem;
  margin: 0;
  opacity: 0.95;
}

.content {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2.5rem 1.25rem 4rem;
}
.content-narrow { max-width: 760px; }
.content h1,
.page-title {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2.6rem, 5vw, 3.6rem);
  letter-spacing: 0.01em;
  line-height: 1.05;
  text-align: center;
  margin: 0.5rem 0 1.25rem;
  text-transform: none;
}
.page-technology .content h1,
.page-features .content h1,
.page-engineer .content h1,
.page-features h1.page-title,
.page-engineer h1.page-title {
  text-align: center;
  font-weight: 800;
}
.content-intro {
  text-align: center;
  max-width: 40rem;
  margin: 0 auto 2rem;
  color: #222;
}
/* GCH alignment: Features intro is left on Squarespace */
.page-features .content-intro {
  text-align: left;
  max-width: none;
  margin: 0 0 2rem;
}
.content h2 {
  font-family: var(--display);
  font-weight: 600;
  margin-top: 2rem;
  letter-spacing: 0.02em;
}
.content-left-title h1 {
  text-align: left;
}
.bullets { padding-left: 1.2rem; }
.bullets li { margin: 0.75rem 0; }

/* Features / galleries — EXACTLY 2 columns, large images only (never 3+) */
.gallery,
.gallery-wide,
.gallery-fold,
.gallery-more {
  display: grid;
  grid-template-columns: 1fr 1fr !important;
  gap: 1.15rem;
  margin: 1.5rem 0 1.25rem;
  width: 100%;
  max-width: 100%;
}
.gallery-item {
  margin: 0;
  background: var(--placeholder);
  overflow: hidden;
  aspect-ratio: 3 / 2;
  min-height: 280px;
}
.gallery-fold .gallery-item {
  min-height: min(42vh, 480px);
  aspect-ratio: 3 / 2;
}
.gallery-item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.35s;
  background: var(--placeholder);
}
.gallery-item:hover img { transform: scale(1.03); }
.page-features .content h1,
.page-features h1.page-title {
  text-align: center;
}

/* Engineer side-by-side — desktop ≥900px must show bio beside portrait */
.page-engineer .content h1,
.page-engineer h1.page-title {
  text-align: center;
}
.engineer-split {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
  gap: 0;
  align-items: stretch;
  max-width: var(--max);
  margin: 0 auto 3rem;
  background: #fff;
  box-shadow: 0 8px 28px rgba(0,0,0,0.06);
}
.engineer-split .portrait {
  margin: 0;
  background: var(--placeholder);
  min-height: 420px;
  min-width: 0;
}
.engineer-split .portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 420px;
  display: block;
}
.engineer-bio {
  padding: clamp(1.75rem, 4vw, 2.75rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.65rem;
  min-width: 0;
  background: #fff;
  visibility: visible;
  opacity: 1;
}
.engineer-bio .name-line {
  font-family: var(--display);
  font-size: clamp(1.6rem, 2.8vw, 2.1rem);
  font-weight: 700;
  margin: 0;
}
.engineer-bio .role {
  font-weight: 700;
  margin: 0 0 0.5rem;
}
.engineer-bio p { margin: 0.35rem 0; }
.braid-logo { max-width: 220px; margin: 1rem 0 0.5rem; }
.company-block {
  max-width: var(--max);
  margin: 0 auto 3rem;
  padding: 0 1.25rem 2rem;
}

/* Location two-col — desktop text | map (never stack on desktop) */
.location-split {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
  gap: 2rem;
  align-items: start;
  margin-bottom: 2rem;
}
.location-split h1 {
  text-align: center !important;
  margin-top: 0;
  font-weight: 800;
  font-size: clamp(2.2rem, 4vw, 3.1rem);
}
.page-location .content > h1,
.page-location h1 {
  text-align: center;
}
.location-split > div:first-child p {
  max-width: 36rem;
}
.map-embed {
  margin: 0;
  border-radius: 2px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  min-height: 380px;
  height: 100%;
  background: #ddd;
}
.map-embed iframe { display: block; width: 100%; height: 100%; min-height: 380px; border: 0; }
/* First location gallery row: three across like original */
.gallery-3 {
  display: grid !important;
  grid-template-columns: 1fr 1fr 1fr !important;
  gap: 1.15rem;
  margin: 1.5rem 0 1.25rem;
  width: 100%;
}
.gallery-3 .gallery-item {
  margin: 0;
  background: var(--placeholder);
  overflow: hidden;
  aspect-ratio: 3 / 2;
  min-height: 220px;
}
.gallery-3 .gallery-item img {
  width: 100%; height: 100%; object-fit: cover;
}

.brand-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 1rem;
  align-items: center;
  margin: 1.5rem 0 2rem;
}
.brand-grid img,
.brand-grid .gallery-item img {
  width: 100%; height: 64px; object-fit: contain;
  filter: grayscale(0.15);
  background: #fff;
  padding: 0.4rem;
  border: 1px solid #e6e4df;
}
.brand-grid .gallery-item {
  aspect-ratio: auto;
  background: transparent;
}

/* Contact — original vertical stack (not two-col card) */
.contact-fold {
  max-width: 720px;
  margin: 0 auto;
  padding: 2rem 1.25rem 3rem;
}
.contact-fold h1 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2.6rem, 5vw, 3.6rem);
  letter-spacing: 0.01em;
  line-height: 1.05;
  text-align: left;
  margin: 0.5rem 0 1.25rem;
}
.contact-hero-img {
  width: 100%;
  max-width: 100%;
  margin: 0 0 1.75rem;
  display: block;
}
.contact-copy {
  margin: 0 0 1.75rem;
}
.contact-copy p { margin: 0 0 0.85rem; }
.inquiry-form {
  margin: 0;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}
.inquiry-form label {
  display: block; margin-bottom: 1rem; font-size: 0.9rem; font-weight: 500;
}
.inquiry-form .field-hint {
  display: block;
  font-size: 0.8rem;
  font-weight: 400;
  color: #555;
  margin-top: 0.15rem;
}
.inquiry-form input,
.inquiry-form select,
.inquiry-form textarea {
  display: block; width: 100%; margin-top: 0.35rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid #222;
  background: #fff;
  font: inherit;
  border-radius: 0;
}
.name-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.name-row > span { min-width: 0; display: block; }
.name-row input { width: 100%; }
.name-row .sublabel {
  display: block;
  font-size: 0.8rem;
  font-weight: 400;
  color: #555;
  margin-bottom: 0.2rem;
}
.req { color: #b33; }
.form-status { min-height: 1.4em; font-size: 0.9rem; }
.form-status.ok { color: #1a7a3c; }
.form-status.err { color: #a12020; }
.form-alt { font-size: 0.9rem; margin-top: 1rem; }
.form-alt a { font-weight: 600; }
/* legacy — unused on contact after stack fix */
.content-split {
  display: block;
}
.form-panel {
  background: transparent;
  padding: 0;
  border: 0;
  box-shadow: none;
}

/* Footer */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.85);
  padding: 3rem 1.25rem 2.5rem;
  margin-top: 0;
}
.footer-inner {
  max-width: var(--max); margin: 0 auto;
  display: flex; flex-wrap: wrap; gap: 2rem; justify-content: space-between;
}
.footer-logo { height: 52px; width: auto; margin-bottom: 1rem; }
.footer-nav { display: flex; flex-direction: column; gap: 0.35rem; }
.footer-nav a { color: rgba(255,255,255,0.8); text-decoration: none; }
.footer-nav a:hover { color: #fff; }
.site-footer a { color: #c9b8ff; }
.site-footer a:hover { color: #fff; }

/* ========== Mobile ========== */
@media (max-width: 800px) {
  :root { --header-h: 64px; }
  .header-inner {
    display: grid;
    grid-template-columns: 44px 1fr 44px;
    align-items: center;
    padding: 0.45rem 0.65rem;
    gap: 0.25rem;
  }
  .nav-toggle { display: block; justify-self: start; }
  .brand { justify-self: center; }
  .brand img { height: 44px; max-width: 160px; }
  .search-link { display: inline-flex; justify-self: end; align-items: center; }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    padding: 0.5rem 0 1rem;
    border-bottom: 1px solid var(--header-border);
    box-shadow: 0 12px 28px rgba(15, 18, 32, 0.12);
    gap: 0;
    width: 100%;
    grid-column: 1 / -1;
  }
  .site-nav.open { display: flex; }
  .nav-link {
    padding: 0.9rem 1.35rem;
    font-size: 1rem;
    border-bottom: 1px solid #f0eeea !important;
  }
  .nav-link.active {
    color: #3f51b5 !important;
    background: #f7f7fa !important;
    border-bottom: none !important;
    text-decoration: none !important;
    box-shadow: none !important;
    background-image: none !important;
  }

  .hero-full { min-height: calc(100vh - var(--header-h)); }
  .hero-overlay { position: relative; min-height: 100vh; }
  .band-photo { min-height: 70vh; }
  .band-photo .band-copy { padding: 2.5rem 1.25rem; max-width: none; }
  .band-engineer-home,
  .location-split,
  .content-split { grid-template-columns: 1fr !important; }
  .gallery-3 { grid-template-columns: 1fr !important; }
  /* Features stays 2-col on tablet; stack only on very narrow phones */
  .gallery,
  .gallery-wide,
  .gallery-fold,
  .gallery-more { grid-template-columns: 1fr 1fr !important; }
  /* Engineer: do NOT stack at 800px — stack only below 900 via separate query */
  .engineer-split {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
  }
  .band-engineer-home { min-height: auto; }
  .page-hero { margin: 0; max-width: none; min-height: 42vh; }
  .name-row { grid-template-columns: 1fr; }
  .contact-fold h1 { text-align: left; }
}

@media (min-width: 801px) {
  .search-link { display: none; }
}


/* Engineer stacks only below 900px — desktop/tablet side-by-side */
@media (max-width: 899px) {
  .engineer-split {
    grid-template-columns: 1fr !important;
  }
  .engineer-split .portrait,
  .engineer-split .portrait img {
    min-height: 360px;
  }
}

@media (max-width: 560px) {
  .gallery,
  .gallery-wide,
  .gallery-fold,
  .gallery-more {
    grid-template-columns: 1fr !important;
  }
}

/* Absolute ban on gold/orange nav accents */
.site-nav a,
.site-nav .nav-link,
.site-nav .nav-link.active {
  border-bottom-color: transparent !important;
  text-decoration-color: transparent !important;
}








/* parallax5: Squarespace mobile scrolls with document; desktop keeps fixed window */
@media (max-width: 900px) {
  .hero,
  .band-photo,
  .page-hero {
    background-attachment: scroll;
  }
}
