/* Approved Black Bag Security homepage redesign. */

body.home-v2 {
  --home-ink: #090909;
  --home-muted: #545454;
  --home-line: #dddddd;
  --home-soft: #f5f5f3;
  --home-accent: #78d600;
  --home-accent-dark: #58a800;
  --home-panel: #111313;
  margin: 0;
  color: var(--home-ink);
  background: #ffffff;
  line-height: 1.45;
}

body.home-v2::before,
body.home-v2::after {
  display: none;
}

body.home-v2 a:hover {
  color: var(--home-accent-dark);
}

body.home-v2 .wrap {
  width: min(1180px, calc(100% - 64px));
}

body.home-v2 .site-main {
  min-height: auto;
}

.home-v2 .site-header--v2 {
  position: relative;
  top: auto;
  z-index: 20;
  background: #ffffff;
  border-bottom: 1px solid #e4e4e4;
  box-shadow: none;
  backdrop-filter: none;
}

.home-v2 .header-v2__inner {
  min-height: 78px;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto minmax(220px, 1fr);
  align-items: center;
  gap: 24px;
}

.home-v2 .brand-v2 {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  width: fit-content;
  color: var(--home-ink);
}

.home-v2 .brand-v2__mark {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
}

.home-v2 .brand-v2__text {
  display: grid;
  line-height: 1;
}

.home-v2 .brand-v2__name {
  font-weight: 600;
  font-size: 1.35rem;
  letter-spacing: 0.035em;
}

.home-v2 .brand-v2__security {
  margin-top: 4px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.55em;
}

.home-v2 .nav-v2 {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(20px, 3vw, 42px);
  font-family: var(--font-sans);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.home-v2 .nav-v2 a {
  color: var(--home-ink);
}

.home-v2 .nav-v2 a:hover,
.home-v2 .nav-v2 a:focus-visible {
  color: var(--home-accent-dark);
}

.home-v2 .header-v2__motto {
  justify-self: end;
  padding-left: 22px;
  border-left: 1px solid #ababab;
  font-size: 0.62rem;
  font-weight: 600;
  line-height: 1.45;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.home-v2 .header-v2__motto strong {
  display: block;
  color: var(--home-accent);
  font-weight: 600;
}

.home-v2-page {
  background: #ffffff;
}

.home-v2-page .section-title {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0 0 18px;
  font-size: 0.88rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.home-v2-page .section-title::after {
  content: "";
  height: 1px;
  flex: 1;
  background: #dedede;
}

.home-v2-hero {
  padding: 34px 0 30px;
  border-bottom: 1px solid #d8d8d8;
  background: #fff;
}

.home-v2-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(420px, 0.96fr);
  gap: 34px;
  align-items: center;
}

.home-v2-hero__eyebrow {
  margin: 0 0 13px;
  color: var(--home-accent-dark);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.home-v2-hero h1 {
  max-width: 690px;
  margin: 0;
  font-size: clamp(3.1rem, 5.4vw, 5.35rem);
  font-weight: 500;
  letter-spacing: -0.055em;
  line-height: 0.98;
  text-transform: lowercase;
}

.home-v2-hero__lead {
  max-width: 650px;
  margin: 22px 0 0;
  color: #252525;
  font-size: 0.98rem;
  line-height: 1.55;
}

.home-v2-hero__lead span {
  display: block;
}

.home-v2-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 25px;
}

.home-v2-page .home-btn {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-width: 235px;
  padding: 0 18px;
  border: 1px solid #111;
  border-radius: 0;
  background: #fff;
  color: #111;
  font-family: var(--font-sans);
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  box-shadow: none;
}

.home-v2-page .home-btn::after {
  content: "↗";
  font-size: 1rem;
}

.home-v2-page .home-btn--accent {
  border-color: var(--home-accent);
  background: var(--home-accent);
}

.home-v2-page .home-btn:hover,
.home-v2-page .home-btn:focus-visible {
  transform: none;
  color: #111;
  border-color: var(--home-accent-dark);
  box-shadow: none;
  outline: 2px solid transparent;
}

.home-v2-hero__visual {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-right: 18px;
}

.home-v2-hero__visual img {
  display: block;
  width: min(100%, 600px);
  height: auto;
}

.home-v2-why {
  padding: 22px 0 26px;
  color: #ffffff;
  background: linear-gradient(180deg, #111313, #0c0e0e);
}

.home-v2-why .section-title {
  margin-bottom: 19px;
  color: var(--home-accent);
}

.home-v2-why .section-title::after {
  background: #555;
}

.home-v2-why__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.home-v2-why__item {
  min-height: 118px;
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 15px;
  align-items: start;
  padding: 9px 24px 5px 0;
}

.home-v2-why__item + .home-v2-why__item {
  padding-left: 26px;
  border-left: 1px solid #717171;
}

.home-v2-page .icon-mask {
  display: inline-block;
  width: 45px;
  height: 45px;
  background: currentColor;
  mask: var(--icon) center / contain no-repeat;
  -webkit-mask: var(--icon) center / contain no-repeat;
}

.home-v2-why .icon-mask {
  color: #d6ed00;
}

.home-v2-page .icon-target { --icon: url("../img/icon-target.svg"); }
.home-v2-page .icon-shield { --icon: url("../img/icon-shield.svg"); }
.home-v2-page .icon-doc { --icon: url("../img/icon-doc.svg"); }
.home-v2-page .icon-model { --icon: url("../img/icon-model.svg"); }
.home-v2-page .icon-code { --icon: url("../img/icon-code.svg"); }
.home-v2-page .icon-chip { --icon: url("../img/icon-chip.svg"); }
.home-v2-page .icon-evidence { --icon: url("../img/icon-evidence.svg"); }
.home-v2-page .icon-scope { --icon: url("../img/icon-scope.svg"); }
.home-v2-page .icon-data { --icon: url("../img/icon-data-handling.svg"); }
.home-v2-page .icon-deliverables { --icon: url("../img/icon-deliverables.svg"); }

.home-v2-why h3,
.home-v2-services h3,
.home-v2-research h3,
.home-v2-principal h3,
.home-v2-commitments h3 {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.2;
  text-transform: uppercase;
}

.home-v2-why p {
  margin: 7px 0 0;
  color: #e0e0e0;
  font-size: 0.78rem;
  line-height: 1.55;
}

.home-v2-services {
  padding: 24px 0 12px;
}

.home-v2-services__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--home-line);
  border-left: 1px solid var(--home-line);
}

.home-v2-service-card {
  min-height: 180px;
  position: relative;
  display: grid;
  grid-template-columns: 54px 1fr;
  grid-template-rows: auto 1fr;
  column-gap: 16px;
  padding: 24px 20px;
  border-right: 1px solid var(--home-line);
  border-bottom: 1px solid var(--home-line);
  color: var(--home-ink);
  background: #fff;
}

.home-v2-service-card .icon-mask {
  color: #111;
  width: 44px;
  height: 44px;
}

.home-v2-service-card h3 {
  align-self: center;
  font-size: 0.9rem;
  line-height: 1.25;
}

.home-v2-service-card p {
  grid-column: 1 / -1;
  align-self: end;
  max-width: 29ch;
  margin: 24px 34px 0 0;
  color: #303030;
  font-size: 0.8rem;
  line-height: 1.55;
}

.home-v2-service-card::after {
  content: "→";
  position: absolute;
  right: 17px;
  bottom: 17px;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--home-accent);
  font-size: 1rem;
}

.home-v2-service-card:hover,
.home-v2-service-card:focus-visible {
  color: var(--home-ink);
  background: #fafafa;
  outline: none;
}

.home-v2-research {
  padding: 8px 0 0;
}

.home-v2-research__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 12px;
}

.home-v2-research__head .section-title {
  flex: 1;
  margin-bottom: 0;
}

.home-v2-research__all {
  color: var(--home-accent-dark);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  white-space: nowrap;
}

.home-v2-research__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--home-line);
  border-left: 1px solid var(--home-line);
}

.home-v2-research-card {
  min-height: 185px;
  display: grid;
  grid-template-columns: 52px 1fr auto;
  grid-template-rows: auto 1fr auto;
  column-gap: 14px;
  padding: 17px 15px 15px;
  border-right: 1px solid var(--home-line);
  border-bottom: 1px solid var(--home-line);
}

.home-v2-research-card__mark {
  grid-row: 1 / span 3;
  align-self: start;
  width: 46px;
  height: 60px;
  color: #111;
}

.home-v2-research-card__mark.lines {
  background:
    radial-gradient(circle, var(--home-accent) 0 2px, transparent 2.2px) 0 8px / 100% 16px no-repeat,
    linear-gradient(#777,#777) 0 8px / 34px 1px no-repeat,
    linear-gradient(#777,#777) 0 24px / 34px 1px no-repeat,
    linear-gradient(#777,#777) 0 40px / 34px 1px no-repeat,
    linear-gradient(#777,#777) 0 56px / 34px 1px no-repeat;
}

.home-v2-research-card__mark.dots {
  background-image: radial-gradient(#111 1.6px, transparent 1.8px);
  background-size: 12px 12px;
}

.home-v2-research-card__mark.network {
  --icon: url("../img/icon-model.svg");
  background: #111;
  mask: var(--icon) center / 45px 45px no-repeat;
  -webkit-mask: var(--icon) center / 45px 45px no-repeat;
}

.home-v2-research-card__mark.ring {
  width: 48px;
  height: 48px;
  border: 2px dotted #111;
  border-radius: 50%;
  position: relative;
}

.home-v2-research-card__mark.ring::after {
  content: "";
  position: absolute;
  inset: 16px;
  border: 1px solid #111;
  border-radius: 50%;
}

.home-v2-research-card h3 {
  align-self: start;
  font-size: 0.78rem;
}

.home-v2-research-card__year {
  color: var(--home-accent-dark);
  font-size: 0.75rem;
  font-weight: 700;
}

.home-v2-research-card p {
  grid-column: 2 / 4;
  margin: 13px 0 10px;
  color: #303030;
  font-size: 0.78rem;
  line-height: 1.55;
}

.home-v2-research-card a {
  grid-column: 2 / 4;
  align-self: end;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
}

.home-v2-research-card a::after {
  content: "  →";
  color: var(--home-accent-dark);
  font-size: 1rem;
}

.home-v2-timeline {
  padding: 13px 0 8px;
}

.home-v2-timeline .section-title {
  margin-bottom: 5px;
}

.home-v2-timeline__line {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  padding-top: 18px;
  border-top: 1px solid #111;
}

.home-v2-timeline__line::after {
  content: "→";
  position: absolute;
  right: -4px;
  top: -12px;
  font-size: 1.1rem;
}

.home-v2-timeline__item {
  position: relative;
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 13px;
  min-height: 95px;
  padding-right: 18px;
}

.home-v2-timeline__item::before {
  content: "";
  position: absolute;
  top: -23px;
  left: 50%;
  width: 7px;
  height: 7px;
  border: 1px solid #111;
  border-radius: 50%;
  background: var(--home-accent);
}

.home-v2-timeline__icon {
  width: 47px;
  height: 47px;
  display: grid;
  place-items: center;
  border: 1px solid #111;
  color: #111;
  font-family: var(--font-mono);
  font-size: 1.55rem;
}

.home-v2-timeline__copy strong {
  display: block;
  margin-bottom: 4px;
  font-size: 0.71rem;
}

.home-v2-timeline__copy p {
  margin: 0;
  color: #333;
  font-size: 0.68rem;
  line-height: 1.45;
}

.home-v2-principal {
  padding: 5px 0 12px;
}

.home-v2-principal__panel {
  min-height: 175px;
  display: grid;
  grid-template-columns: 210px 1.4fr 1fr;
  border: 1px solid #e3e3e3;
  background: #f7f7f6;
}

.home-v2-principal__portrait {
  min-height: 175px;
  overflow: hidden;
}

.home-v2-principal__portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-v2-principal__bio {
  padding: 17px 28px;
}

.home-v2-principal__eyebrow {
  margin: 0 0 3px;
  color: var(--home-accent-dark);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
}

.home-v2-principal__bio h2 {
  margin: 0;
  font-size: 1.55rem;
  font-weight: 500;
}

.home-v2-principal__bio p {
  margin: 9px 0 0;
  color: #333;
  font-size: 0.72rem;
  line-height: 1.5;
}

.home-v2-principal__credentials {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin-top: 13px;
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
}

.home-v2-principal__credentials span + span::before {
  content: "|";
  margin: 0 17px;
  color: #9d9d9d;
}

.home-v2-principal__proof {
  display: grid;
  align-content: center;
  gap: 10px;
  margin: 14px 0;
  padding: 0 22px;
  border-left: 1px dotted #aaa;
}

.home-v2-principal__proof-item {
  display: grid;
  grid-template-columns: 35px 1fr;
  gap: 11px;
  align-items: start;
}

.home-v2-principal__proof-item .icon-mask {
  width: 28px;
  height: 28px;
  color: #111;
}

.home-v2-principal__proof-item strong {
  display: block;
  font-size: 0.66rem;
  text-transform: uppercase;
}

.home-v2-principal__proof-item p {
  margin: 2px 0 0;
  color: #333;
  font-size: 0.66rem;
  line-height: 1.35;
}

.home-v2-commitments {
  padding: 0 0 28px;
}

.home-v2-commitments .section-title {
  margin: 0 0 10px;
}

.home-v2-commitments__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.home-v2-commitment {
  min-height: 72px;
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 12px;
  padding: 8px 22px 8px 0;
}

.home-v2-commitment + .home-v2-commitment {
  padding-left: 26px;
  border-left: 1px solid #c9c9c9;
}

.home-v2-commitment .icon-mask {
  width: 39px;
  height: 39px;
  color: #111;
}

.home-v2-commitment h3 {
  margin-top: 1px;
  font-size: 0.66rem;
}

.home-v2-commitment p {
  margin: 4px 0 0;
  color: #343434;
  font-size: 0.64rem;
  line-height: 1.4;
}

.home-v2 .footer-v2 {
  padding: 22px 0 26px;
  border-top: 1px solid #ddd;
  color: #4b4b4b;
  background: #fff;
  font-size: 0.72rem;
}

.home-v2 .footer-v2__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.home-v2 .footer-v2 nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
}

@media (max-width: 1080px) {
  .home-v2 .header-v2__inner {
    grid-template-columns: 1fr auto;
  }

  .home-v2 .header-v2__motto {
    display: none;
  }

  .home-v2-hero__grid {
    grid-template-columns: 1fr 0.9fr;
  }

  .home-v2-why__grid,
  .home-v2-services__grid,
  .home-v2-research__grid,
  .home-v2-commitments__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .home-v2-why__item:nth-child(3),
  .home-v2-commitment:nth-child(3) {
    padding-left: 0;
    border-left: 0;
  }

  .home-v2-principal__panel {
    grid-template-columns: 180px 1fr;
  }

  .home-v2-principal__proof {
    grid-column: 1 / -1;
    grid-template-columns: repeat(3, 1fr);
    margin: 0;
    padding: 16px 20px;
    border-top: 1px dotted #aaa;
    border-left: 0;
  }
}

@media (max-width: 820px) {
  body.home-v2 .wrap {
    width: min(100% - 36px, 1180px);
  }

  .home-v2 .header-v2__inner {
    display: flex;
    flex-wrap: wrap;
    padding: 14px 0;
  }

  .home-v2 .nav-v2 {
    order: 2;
    width: 100%;
    justify-content: flex-start;
    gap: 18px;
    overflow-x: auto;
    padding-top: 8px;
  }

  .home-v2-hero__grid {
    grid-template-columns: 1fr;
  }

  .home-v2-hero__visual {
    max-width: 620px;
    margin: 0 auto;
    padding-right: 0;
  }

  .home-v2-timeline__line {
    grid-template-columns: 1fr;
    gap: 18px;
    border-top: 0;
    border-left: 1px solid #111;
    padding: 0 0 0 22px;
  }

  .home-v2-timeline__line::after {
    display: none;
  }

  .home-v2-timeline__item::before {
    top: 18px;
    left: -26px;
  }
}

@media (max-width: 620px) {
  .home-v2 .brand-v2__name {
    font-size: 1.05rem;
  }

  .home-v2 .brand-v2__security {
    font-size: 0.58rem;
  }

  .home-v2-hero {
    padding-top: 28px;
  }

  .home-v2-hero h1 {
    font-size: clamp(2.65rem, 13vw, 4rem);
  }

  .home-v2-page .home-btn {
    min-width: 100%;
  }

  .home-v2-why__grid,
  .home-v2-services__grid,
  .home-v2-research__grid,
  .home-v2-commitments__grid {
    grid-template-columns: 1fr;
  }

  .home-v2-why__item,
  .home-v2-why__item + .home-v2-why__item,
  .home-v2-commitment,
  .home-v2-commitment + .home-v2-commitment {
    padding: 17px 0;
    border-left: 0;
    border-top: 1px solid #555;
  }

  .home-v2-commitment,
  .home-v2-commitment + .home-v2-commitment {
    border-top-color: #ddd;
  }

  .home-v2-principal__panel {
    grid-template-columns: 1fr;
  }

  .home-v2-principal__portrait {
    height: 220px;
  }

  .home-v2-principal__bio {
    padding: 20px;
  }

  .home-v2-principal__proof {
    grid-template-columns: 1fr;
  }

  .home-v2 .footer-v2__inner {
    align-items: flex-start;
    flex-direction: column;
  }
}
