/* ============================================================
   Build Lane — Marketing UI Kit styles
   ============================================================ */

/* --- Atoms --------------------------------------------------- */
.bl-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--fg-muted);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.bl-eyebrow::before {
  content: "";
  width: 24px;
  height: 2px;
  background: var(--route);
  flex-shrink: 0;
}
/* On dark surfaces, the eyebrow body needs a light foreground. */
.bl-process--dark .bl-eyebrow,
.bl-nav .bl-eyebrow,
.bl-footer .bl-eyebrow,
.bl-card__alpha .bl-eyebrow {
  color: var(--lane-300);
}

.bl-h2 {
  font-family: var(--font-display);
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.045em;
  margin: 0;
  color: inherit;
}

.bl-cta {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.005em;
  padding: 14px 22px;
  border: 2px solid var(--ink);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: transform 160ms cubic-bezier(0.85, 0, 0.15, 1),
              box-shadow 160ms cubic-bezier(0.85, 0, 0.15, 1),
              background-color 80ms linear;
}
.bl-cta--primary {
  background: var(--ink); color: var(--bone);
  box-shadow: 4px 4px 0 var(--ink);
}
.bl-cta--primary:hover { background: var(--route); color: var(--route-fg); }
.bl-cta--route {
  background: var(--route); color: var(--route-fg);
  box-shadow: 4px 4px 0 var(--ink);
}
.bl-cta--route:hover { background: var(--route-hi); }
.bl-cta--ghost {
  background: transparent; color: var(--ink);
  border-color: transparent; box-shadow: none;
  padding: 14px 0;
  border-bottom: 2px solid var(--route);
}
.bl-cta--ghost:hover { border-bottom-color: var(--ink); }
.bl-cta--ghost-light {
  background: transparent; color: var(--bone);
  border-color: transparent; box-shadow: none;
  padding: 14px 0;
  border-bottom: 2px solid var(--route);
}
.bl-cta:active { transform: translate(4px, 4px); box-shadow: 0 0 0 var(--ink); }
.bl-cta:focus-visible { outline: 2px solid var(--route); outline-offset: 4px; }

.bl-link-arrow {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 2px solid var(--route);
  padding-bottom: 4px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.bl-link-arrow:hover { border-bottom-color: var(--ink); }

/* --- Section frame ------------------------------------------- */
.bl-section { padding: 96px 0; }
.bl-section__inner { max-width: 1280px; margin: 0 auto; padding: 0 32px; }
.bl-section__head { margin-bottom: 56px; }
.bl-section__head--row { display: flex; justify-content: space-between; align-items: end; gap: 24px; }

/* --- Nav ------------------------------------------------------ */
.bl-nav { background: var(--ink); color: var(--bone); position: sticky; top: 0; z-index: 50; border-bottom: 2px solid var(--bone); --route: var(--route-bright); }
.bl-nav__inner { max-width: 1280px; margin: 0 auto; padding: 14px 32px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.bl-nav__mark { display: flex; align-items: center; gap: 12px; font-family: var(--font-display); font-weight: 700; font-size: 18px; letter-spacing: -0.04em; color: var(--bone); text-decoration: none; }
.bl-nav__bar { width: 8px; height: 24px; background: var(--route); display: inline-block; }
.bl-nav__links { display: flex; gap: 28px; }
.bl-nav__link { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.18em; color: var(--bone); text-decoration: none; padding: 6px 0; border-bottom: 2px solid transparent; }
.bl-nav__link.is-active { border-bottom-color: var(--route); }
.bl-nav__link:hover { border-bottom-color: var(--bone); }
.bl-nav .bl-cta--route { padding: 10px 16px; font-size: 13px; box-shadow: 4px 4px 0 var(--bone); }
.bl-nav .bl-cta--route:active { box-shadow: 0 0 0 var(--bone); }

/* --- Hero ----------------------------------------------------- */
.bl-hero { background: var(--bone); position: relative; padding: 88px 0 0; overflow: hidden; }
.bl-hero__inner { max-width: 1280px; margin: 0 auto; padding: 0 32px 88px; position: relative; }
.bl-hero__grid { position: absolute; inset: 0;
  background-image: linear-gradient(to right, var(--bone-line) 1px, transparent 1px);
  background-size: calc(100% / 12) 100%;
  opacity: 0.7;
  pointer-events: none;
}
.bl-hero__head {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(72px, 11vw, 160px);
  line-height: 0.88;
  letter-spacing: -0.05em;
  margin: 0 0 24px;
  text-wrap: balance;
  position: relative;
}
.bl-hero__route { background: var(--route); padding: 0 12px 0 6px; }
.bl-hero__lead { font-size: 19px; line-height: 1.45; max-width: 620px; color: var(--lane-700); margin: 0 0 32px; }
.bl-hero__ctas { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.bl-hero__stripe {
  height: 32px;
  background-image: repeating-linear-gradient(-45deg, var(--ink) 0 24px, var(--route) 24px 48px);
}

/* --- Manifesto ----------------------------------------------- */
.bl-manifesto { background: var(--bone); }
.bl-manifesto__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 2px solid var(--ink); }
.bl-manifesto__col { padding: 36px 28px 32px 0; border-right: 1px solid var(--bone-line); }
.bl-manifesto__col:last-child { border-right: 0; }
.bl-manifesto__col:not(:first-child) { padding-left: 28px; }
.bl-manifesto__n {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.16em;
  color: var(--lane-500);
  display: block;
  margin-bottom: 24px;
}
.bl-manifesto__h {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 36px;
  letter-spacing: -0.035em;
  line-height: 1;
  margin: 0 0 16px;
}
.bl-manifesto__p { font-size: 16px; color: var(--lane-700); margin: 0; line-height: 1.5; }

/* --- Work grid ----------------------------------------------- */
.bl-work { background: var(--paper); border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); }
.bl-work__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.bl-card { background: var(--paper); border: 2px solid var(--ink); display: flex; flex-direction: column; transition: transform 160ms cubic-bezier(0.85, 0, 0.15, 1), box-shadow 160ms; }
.bl-card:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }
.bl-card--featured { box-shadow: 4px 4px 0 var(--ink); border-top: 0; }
.bl-card--featured::before { content: ""; display: block; height: 8px; background: var(--route); }
.bl-card__media { aspect-ratio: 16 / 9; background: var(--bone-2); border-bottom: 2px solid var(--ink); position: relative; overflow: hidden; }
.bl-card__placeholder { width: 100%; height: 100%; display: flex; align-items: flex-end; justify-content: flex-end; padding: 16px; background-image: linear-gradient(to right, var(--bone-line) 1px, transparent 1px), linear-gradient(to bottom, var(--bone-line) 1px, transparent 1px); background-size: 24px 24px; }
.bl-card__placeholder span { font-family: var(--font-mono); font-size: 13px; color: var(--lane-500); letter-spacing: 0.16em; }
.bl-card__alpha { width: 100%; height: 100%; background: var(--ink); color: var(--route-bright); position: relative; display: flex; align-items: center; justify-content: center; --route: var(--route-bright); }
.bl-card__alpha-stripe { position: absolute; left: 0; right: 0; top: 50%; height: 12px; transform: translateY(-50%);
  background-image: repeating-linear-gradient(to right, var(--route) 0 60px, transparent 60px 96px);
}
.bl-card__alpha-num { position: absolute; top: 16px; left: 20px; font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.16em; }
.bl-card__alpha-mark { position: relative; width: 80px; height: 80px; background: var(--route); color: var(--ink); display: grid; place-items: center; }
.bl-card__alpha-mark svg { width: 56px; height: 56px; }
.bl-card__body { padding: 24px 24px 22px; display: flex; flex-direction: column; gap: 6px; }
.bl-card__h { font-family: var(--font-display); font-size: 26px; font-weight: 600; letter-spacing: -0.025em; line-height: 1.1; margin: 0; }
.bl-card__p { font-size: 15px; line-height: 1.5; color: var(--lane-700); margin: 4px 0 14px; }
.bl-card__meta { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.16em; color: var(--lane-500); }

/* --- Process (dark) ------------------------------------------ */
.bl-process--dark { background: var(--ink); color: var(--bone); --route: var(--route-bright); }
.bl-process--dark .bl-h2 { color: var(--bone); }
.bl-process__road { height: 8px; background-image: repeating-linear-gradient(to right, var(--route) 0 80px, transparent 80px 120px); margin-bottom: 56px; }
.bl-process__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; position: relative; }
.bl-process__step { position: relative; padding-right: 16px; }
.bl-process__num { font-family: var(--font-mono); font-size: 13px; color: var(--route); letter-spacing: 0.18em; margin-bottom: 8px; }
.bl-process__tag { font-family: var(--font-display); font-weight: 700; font-size: 56px; letter-spacing: -0.045em; color: var(--bone); line-height: 1; margin-bottom: 16px; }
.bl-process__h { font-family: var(--font-display); font-size: 22px; font-weight: 600; letter-spacing: -0.02em; margin: 0 0 12px; color: var(--bone); }
.bl-process__p { font-size: 15px; color: var(--lane-300); margin: 0; line-height: 1.55; max-width: 380px; }
.bl-process__arrow { position: absolute; right: -12px; top: 18px; font-family: var(--font-mono); color: var(--route); font-size: 22px; }

/* --- Ticker --------------------------------------------------- */
.bl-ticker { background: var(--route); border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); overflow: hidden; }
.bl-ticker__track { display: flex; gap: 40px; padding: 14px 0; animation: bl-ticker 50s linear infinite; white-space: nowrap; will-change: transform; }
.bl-ticker__item { font-family: var(--font-mono); font-size: 13px; font-weight: 600; letter-spacing: 0.18em; color: var(--route-fg); text-transform: uppercase; display: inline-flex; align-items: center; gap: 16px; flex-shrink: 0; }
.bl-ticker__item::after { content: "/"; margin-left: 40px; color: var(--route-fg); opacity: 0.6; }
.bl-ticker__dot { width: 8px; height: 8px; background: var(--ink); border-radius: 999px; flex-shrink: 0; }
@keyframes bl-ticker { from { transform: translateX(0); } to { transform: translateX(-33.333%); } }

/* --- Closing CTA --------------------------------------------- */
.bl-closing { background: var(--bone); padding-top: 120px; padding-bottom: 96px; }
.bl-closing__inner { max-width: 900px; margin: 0 auto; text-align: left; }
.bl-closing__slab { display: inline-block; background: var(--ink); color: var(--route-bright); font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.22em; padding: 8px 14px; margin-bottom: 28px; }
.bl-closing__h { font-family: var(--font-display); font-weight: 700; font-size: clamp(48px, 8vw, 96px); line-height: 0.93; letter-spacing: -0.05em; margin: 0 0 32px; }
.bl-closing__p { font-size: 17px; color: var(--lane-700); margin: 0 0 36px; max-width: 580px; line-height: 1.55; }
.bl-closing__ctas { display: flex; gap: 20px; flex-wrap: wrap; }
.bl-closing__ctas .bl-cta--ghost-light { color: var(--ink); }

/* --- Footer (dark) ------------------------------------------- */
.bl-footer { background: var(--ink); color: var(--bone); padding: 80px 0 32px; --route: var(--route-bright); }
.bl-footer__top { display: grid; grid-template-columns: 1.4fr 2fr; gap: 64px; }
.bl-footer__mark { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.bl-footer__bar { width: 10px; height: 36px; background: var(--route); }
.bl-footer__word { font-family: var(--font-display); font-weight: 700; font-size: 26px; letter-spacing: -0.04em; }
.bl-footer__tag { color: var(--lane-300); font-size: 15px; line-height: 1.5; max-width: 360px; margin: 0; }
.bl-footer__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.bl-footer__h { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.2em; color: var(--route); margin-bottom: 16px; }
.bl-footer__col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.bl-footer__col a { color: var(--bone); text-decoration: none; font-size: 15px; border-bottom: 1px solid transparent; padding-bottom: 1px; }
.bl-footer__col a:hover { border-bottom-color: var(--route); }
.bl-footer__rule { height: 2px; background: var(--bone); margin: 56px 0 20px; }
.bl-footer__bottom { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.16em; color: var(--lane-400); text-transform: uppercase; }

/* --- Page-level reset for the demo --------------------------- */
.bl-page { background: var(--bone); color: var(--ink); }

/* ============================================================
   RESPONSIVE — Mobile first principles, tablet + phone overrides
   ============================================================ */

/* Hide the mobile toggle by default (desktop) */
.bl-nav__toggle { display: none; }
.bl-nav__panel { display: contents; }  /* desktop: panel is transparent */

@media (max-width: 900px) {
  /* --- Section padding tightens ------------------------------ */
  .bl-section { padding: 64px 0; }
  .bl-section__inner { padding: 0 20px; }
  .bl-section__head { margin-bottom: 36px; }
  .bl-section__head--row { flex-direction: column; align-items: flex-start; }

  /* --- Nav: hamburger ---------------------------------------- */
  .bl-nav { position: sticky; top: 0; }
  .bl-nav__inner { padding: 12px 20px; gap: 12px; flex-wrap: nowrap; }
  .bl-nav__word { font-size: 16px; }
  .bl-nav__toggle {
    display: inline-flex; align-items: center; justify-content: center;
    background: transparent; border: 0; color: var(--bone);
    padding: 8px; cursor: pointer; margin-left: auto;
    z-index: 110;
  }
  .bl-nav__toggle:hover { color: var(--route-bright); }

  /* The panel: full-screen overlay below the nav bar */
  .bl-nav__panel {
    display: flex;
    position: fixed;
    top: 56px; left: 0; right: 0; bottom: 0;
    background: var(--ink);
    flex-direction: column;
    align-items: stretch;
    padding: 32px 20px;
    gap: 24px;
    transform: translateY(-110%);
    transition: transform 240ms cubic-bezier(0.85, 0, 0.15, 1);
    z-index: 100;
    border-top: 2px solid var(--bone);
  }
  .bl-nav.is-open .bl-nav__panel { transform: translateY(0); }

  .bl-nav__links {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .bl-nav__link {
    font-size: 24px;
    letter-spacing: -0.01em;
    text-transform: none;
    padding: 18px 0;
    border-bottom: 1px solid var(--ink-line);
    width: 100%;
  }
  .bl-nav__link.is-active { border-bottom-color: var(--route); color: var(--route); }
  .bl-nav__link:hover { border-bottom-color: var(--bone); color: var(--bone); }

  .bl-nav__panel .bl-cta { margin-top: auto; width: 100%; }

  /* --- Hero -------------------------------------------------- */
  .bl-hero { padding-top: 56px; }
  .bl-hero__inner { padding: 0 20px 64px; }
  .bl-hero__head {
    font-size: clamp(56px, 14vw, 96px);
    line-height: 0.92;
  }
  .bl-hero__hzd { padding: 0 6px; }
  .bl-hero__lead { font-size: 17px; max-width: none; }
  .bl-hero__ctas { gap: 12px; }
  .bl-hero__grid { display: none; }  /* 12-col rule hidden on mobile */
  .bl-hero__stripe { height: 24px; }

  /* --- Ticker ------------------------------------------------ */
  .bl-ticker__item { font-size: 11px; }

  /* --- Manifesto -------------------------------------------- */
  .bl-manifesto__grid { grid-template-columns: 1fr; }
  .bl-manifesto__col { padding: 28px 0; border-right: 0; border-bottom: 1px solid var(--bone-line); }
  .bl-manifesto__col:last-child { border-bottom: 0; }
  .bl-manifesto__col:not(:first-child) { padding-left: 0; }
  .bl-manifesto__h { font-size: 28px; }

  /* --- Work grid -------------------------------------------- */
  .bl-work__grid { grid-template-columns: 1fr; gap: 16px; }
  .bl-card__h { font-size: 22px; }
  .bl-card__body { padding: 20px; }
  .bl-card__alpha-mark { width: 64px; height: 64px; }
  .bl-card__alpha-mark svg { width: 44px; height: 44px; }

  /* --- Process --------------------------------------------- */
  .bl-process__grid { grid-template-columns: 1fr; gap: 36px; }
  .bl-process__tag { font-size: 44px; }
  .bl-process__arrow { display: none; }

  /* --- Closing CTA ------------------------------------------ */
  .bl-closing { padding: 80px 0 64px; }
  .bl-closing__h { font-size: clamp(40px, 11vw, 64px); }
  .bl-closing__ctas { flex-direction: column; align-items: flex-start; gap: 16px; }

  /* --- Footer ------------------------------------------------ */
  .bl-footer { padding: 56px 0 24px; }
  .bl-footer__top { grid-template-columns: 1fr; gap: 40px; }
  .bl-footer__cols { grid-template-columns: 1fr 1fr; gap: 24px; }
  .bl-footer__word { font-size: 22px; }
  .bl-footer__rule { margin: 40px 0 16px; }
  .bl-footer__bottom { flex-direction: column; gap: 8px; }

  /* --- CTA buttons get bigger tap targets ------------------- */
  .bl-cta--primary, .bl-cta--route { padding: 16px 22px; min-height: 48px; }
  .bl-cta--ghost { padding: 14px 0; min-height: 44px; }
}

@media (max-width: 480px) {
  .bl-section__inner { padding: 0 16px; }
  .bl-hero__inner { padding: 0 16px 56px; }
  .bl-nav__inner { padding: 12px 16px; }
  .bl-footer__cols { grid-template-columns: 1fr; }
  .bl-section__head { margin-bottom: 28px; }
}
