/* Brand Closers — Cloudflare Pages static one-pager */
:root {
  --cream: #f8f4e9;
  --cream-muted: #c7c1b5;
  --gold: #e8d6a8;
  --ink: #090909;
  --card: rgba(18, 18, 22, 0.72);
  --card-border: rgba(155, 126, 189, 0.35);
  --purple: #9b7ebd;
  --blue: #7eb6d9;
  --mint: #7ed9b8;
  --footer: #111;
  --max: 1120px;
  --font: "Plus Jakarta Sans", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--ink);
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  color: var(--cream);
  background: var(--ink);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img,
video {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Fixed office BG — scroll content over it */
.bg-office {
  position: fixed;
  inset: 0;
  z-index: 0;
  background: var(--ink) url("../assets/bc-office-dark-16x9.png") center / cover no-repeat;
  pointer-events: none;
}

.bg-office::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(9, 9, 9, 0.55) 0%,
    rgba(9, 9, 9, 0.28) 45%,
    rgba(9, 9, 9, 0.35) 100%
  );
}

.page {
  position: relative;
  z-index: 1;
}

.wrap {
  width: min(100% - 3rem, var(--max));
  margin-inline: auto;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 1rem;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}

.section-label::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 10px rgba(126, 217, 184, 0.7);
}

/* ——— Hero ——— */
.hero {
  position: relative;
  min-height: 85vh;
  min-height: 85dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.hero-network {
  position: absolute;
  inset: 0;
  z-index: 0;
  mix-blend-mode: screen;
  opacity: 0.85;
  pointer-events: none;
}

.hero-network video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-vignette {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(ellipse 70% 60% at 20% 45%, rgba(9, 9, 9, 0.15), transparent 70%),
    linear-gradient(to top, rgba(9, 9, 9, 0.55) 0%, transparent 35%),
    linear-gradient(to right, rgba(9, 9, 9, 0.45) 0%, transparent 50%);
  pointer-events: none;
}

.hero-top {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.35rem 0 0;
}

.lockup {
  height: 68px;
  width: auto;
}

.hero-body {
  position: relative;
  z-index: 2;
  flex: 1;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: start;
  align-content: start;
  gap: 2rem;
  padding: calc(1.1rem + 50px) 0 1.5rem;
}

/* Tighten hero → How it works (all breakpoints) */
#how-it-works {
  padding-top: 2.75rem;
  margin-top: -150px;
}

.hero-copy {
  max-width: 38rem;
}

.hero h1 {
  margin: 0 0 1.1rem;
  font-size: clamp(2.4rem, 5.2vw, 4.75rem);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.01em;
  color: var(--cream);
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.45);
}

.hero-sub {
  margin: 0;
  max-width: 34rem;
  font-size: clamp(1rem, 1.35vw, 1.25rem);
  line-height: 1.45;
  color: var(--cream-muted);
}

.cta {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.9rem 1.35rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: linear-gradient(135deg, #6b4fc8 0%, #4a7fd4 55%, #5a9fd8 100%);
  color: #fff;
  font-size: 0.9375rem;
  font-weight: 700;
  box-shadow:
    0 0 0 1px rgba(126, 182, 217, 0.25),
    0 8px 28px rgba(107, 79, 200, 0.45);
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
  white-space: nowrap;
  align-self: end;
  margin-bottom: 0.35rem;
}

.cta:hover {
  transform: translateY(-1px);
  filter: brightness(1.06);
  box-shadow:
    0 0 0 1px rgba(126, 182, 217, 0.35),
    0 12px 32px rgba(107, 79, 200, 0.55);
}

.cta svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* ——— Shared lower sections ——— */
.panel {
  position: relative;
  padding: 5rem 0;
}

/* Tighten About → Who (~50px less gap) */
#about {
  padding-bottom: calc(5rem - 50px);
}

#who {
  padding-bottom: calc(5rem + 50px);
}

.panel-soft {
  background: rgba(8, 8, 12, 0.55);
  backdrop-filter: blur(2px);
}

.panel-lines {
  position: relative;
  overflow: hidden;
}

.panel-lines::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../assets/bc-lines-subtle-dark.png") center / cover no-repeat;
  mix-blend-mode: screen;
  opacity: 0.45;
  pointer-events: none;
}

.panel > .wrap {
  position: relative;
  z-index: 1;
}

/* How it works */
.hiw-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 0.5rem;
}

.card {
  padding: 1.6rem 1.45rem;
  border-radius: 18px;
  background: var(--card);
  border: 1px solid var(--card-border);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  min-height: 9.5rem;
}

.card-num {
  display: inline-block;
  margin-bottom: 0.75rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--blue);
}

.card p {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--cream);
}

/* About */
.about-grid {
  display: grid;
  grid-template-columns: minmax(240px, 470px) 1fr;
  gap: 2.5rem;
  align-items: center;
}

.about-video {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #111;
  aspect-ratio: 1 / 1;
  max-height: 470px;
  width: min(100%, 470px);
}

.about-video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-copy h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.75rem, 3.2vw, 2.75rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: var(--cream);
}

.about-copy p {
  margin: 0;
  font-size: clamp(1rem, 1.2vw, 1.2rem);
  line-height: 1.6;
  color: var(--cream);
  opacity: 0.95;
}

/* Who we work with */
.who h2 {
  margin: 0;
  max-width: 18ch;
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--cream);
}

/* Footer */
.site-footer {
  position: relative;
  z-index: 1;
  background: rgba(8, 8, 10, 0.92);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 1.75rem 0 2rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer-brand {
  margin: 0;
  color: #9c968b;
  font-size: 0.9375rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  font-size: 0.9375rem;
}

.footer-links a[href^="mailto"] {
  color: var(--gold);
  font-weight: 500;
}

.footer-links a:not([href^="mailto"]) {
  color: #9c968b;
}

.footer-links a:hover {
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 900px) {
  .hiw-grid {
    grid-template-columns: 1fr;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

  .about-video {
    max-width: 320px;
    max-height: 320px;
    width: min(100%, 320px);
    margin-inline: auto;
  }

  .hero-body {
    grid-template-columns: 1fr;
    align-items: start;
    /* keep global spacing: logo gap + tight hero→section */
  }

  .cta {
    justify-self: start;
  }

  /* Mobile Safari often fails to show fixed .bg-office under the hero video.
     Paint the office directly on the hero so the top section matches desktop. */
  .hero {
    background-color: var(--ink);
    background-image: url("../assets/bc-office-dark-16x9.png");
    background-position: center 25px;
    background-size: cover;
    background-repeat: no-repeat;
  }

  .hero-network {
    opacity: 0.5;
    background: transparent;
  }

  .hero-network video {
    background: transparent;
  }

  .hero-top,
  .lockup {
    border: 0;
    outline: 0;
    box-shadow: none;
  }

  .hero-vignette {
    background:
      radial-gradient(ellipse 70% 60% at 20% 45%, rgba(9, 9, 9, 0.1), transparent 70%),
      linear-gradient(to top, rgba(9, 9, 9, 0.35) 0%, transparent 40%),
      linear-gradient(to right, rgba(9, 9, 9, 0.25) 0%, transparent 55%);
  }

  .bg-office {
    /* keep fixed layer alive for lower sections */
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
  }
}

@media (max-width: 640px) {
  .wrap {
    width: min(100% - 1.75rem, var(--max));
  }

  .lockup {
    height: 34px;
  }

  .hero h1 {
    font-size: clamp(2rem, 9vw, 2.75rem);
  }

  .panel {
    padding: 3.5rem 0;
  }

  #about {
    padding-bottom: calc(3.5rem - 50px);
  }
  #who {
    padding-bottom: calc(3.5rem + 50px);
  }
}
