/* Fidelity layer for the approved Black Bag Security homepage mockup.
 * The 1085px-wide approved image is the visual source of truth.
 * This file intentionally overrides the earlier prototype proportions.
 */

body.home-v2 {
  --home-font: Arial, "Helvetica Neue", Helvetica, "Liberation Sans", sans-serif;
  --home-ink: #080909;
  --home-muted: #3d3f3f;
  --home-line: #e1e1df;
  --home-accent: #74ce00;
  --home-accent-dark: #55a400;
  --home-dark: #111313;
  margin: 0;
  color: var(--home-ink);
  background: #fff;
  font-family: var(--home-font);
  font-size: 13px;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

body.home-v2 *,
body.home-v2 *::before,
body.home-v2 *::after {
  font-family: inherit;
}

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

body.home-v2 .wrap {
  width: min(960px, calc(100% - 40px));
  margin-inline: auto;
}

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

/* HEADER */
.home-v2 .site-header--v2 {
  position: relative;
  min-height: 70px;
  background: #fff;
  border-bottom: 1px solid #e7e7e5;
  box-shadow: none;
  backdrop-filter: none;
}

.home-v2 .header-v2__inner {
  min-height: 70px;
  display: grid;
  grid-template-columns: 238px 1fr 174px;
  align-items: center;
  gap: 20px;
  padding: 0;
}

.home-v2 .brand-v2 {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  width: fit-content;
  color: #090909;
}

.home-v2 .brand-v2__mark {
  width: 38px;
  height: 38px;
}

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

.home-v2 .brand-v2__name {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: .01em;
}

.home-v2 .brand-v2__security {
  margin-top: 5px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .56em;
}

.home-v2 .nav-v2 {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 34px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .03em;
  text-transform: uppercase;
  white-space: nowrap;
}

.home-v2 .nav-v2 a {
  padding: 0;
  color: #0b0b0b;
}

.home-v2 .nav-v2 a::after { display: none; }
.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;
  min-width: 0;
  padding: 2px 0 2px 20px;
  border-left: 1px solid #9c9d9b;
  color: #1b1b1b;
  font-size: 8px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

/* COMMON */
.home-v2-page { background: #fff; }

.home-v2-page .section-title {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0 0 14px;
  color: #0c0c0c;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: .01em;
  text-transform: uppercase;
}

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

/* HERO: 70px header + ~392px hero in approved mockup */
.home-v2-hero {
  min-height: 392px;
  padding: 31px 0 27px;
  border-bottom: 1px solid #dcdcd9;
  background: #fff;
}

.home-v2-hero__grid {
  display: grid;
  grid-template-columns: 500px 1fr;
  gap: 30px;
  align-items: center;
  min-height: 333px;
}

.home-v2-hero__eyebrow {
  margin: 0 0 14px;
  color: var(--home-accent-dark);
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.home-v2-hero h1 {
  max-width: 520px;
  margin: 0;
  color: #050505;
  font-size: 48px;
  font-weight: 500;
  line-height: .98;
  letter-spacing: -.045em;
  text-transform: lowercase;
}

.home-v2-hero__lead {
  max-width: 510px;
  margin: 20px 0 0;
  color: #232323;
  font-size: 11px;
  font-weight: 400;
  line-height: 1.75;
}

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

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

.home-v2-page .home-btn {
  min-width: 209px;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 0 15px;
  border: 1px solid #111;
  border-radius: 0;
  background: #fff;
  color: #111;
  box-shadow: none;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .035em;
  text-transform: uppercase;
}

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

.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 {
  color: #111;
  border-color: #111;
  box-shadow: none;
  transform: none;
}

.home-v2-hero__visual {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transform: translateX(-12px);
}

.home-v2-hero__visual img {
  width: 430px;
  max-width: 100%;
  height: auto;
}

/* WHY CLIENTS HIRE US */
.home-v2-why {
  min-height: 165px;
  padding: 20px 0 17px;
  color: #fff;
  background: #111313;
}

.home-v2-why .section-title {
  margin-bottom: 19px;
  color: #b9dc19;
}

.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: 101px;
  display: grid;
  grid-template-columns: 47px 1fr;
  gap: 15px;
  align-items: start;
  padding: 7px 18px 4px 0;
  color: #fff;
}

.home-v2-why__item + .home-v2-why__item {
  padding-left: 20px;
  border-left: 1px solid #6a6a6a;
}

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

.home-v2-why .icon-mask {
  width: 41px;
  height: 41px;
  color: #d4e900;
}

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

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

/* WHAT WE DO */
.home-v2-services { padding: 22px 0 10px; }

.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: 160px;
  position: relative;
  display: grid;
  grid-template-columns: 49px 1fr;
  grid-template-rows: auto 1fr;
  column-gap: 12px;
  padding: 19px 13px 15px;
  border-right: 1px solid var(--home-line);
  border-bottom: 1px solid var(--home-line);
  color: #111;
  background: #fff;
}

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

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

.home-v2-service-card p {
  grid-column: 1 / -1;
  align-self: end;
  max-width: 25ch;
  margin: 22px 30px 0 0;
  color: #282828;
  font-size: 10px;
  line-height: 1.55;
}

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

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

/* SELECTED ENGINEERING & RESEARCH */
.home-v2-research { padding: 8px 0 0; }

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

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

.home-v2-research__all {
  color: var(--home-accent-dark);
  font-size: 9px;
  font-weight: 700;
  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: 171px;
  display: grid;
  grid-template-columns: 48px 1fr auto;
  grid-template-rows: auto 1fr auto;
  column-gap: 10px;
  padding: 15px 11px 13px;
  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: 42px;
  height: 52px;
}

.home-v2-research-card h3 {
  font-size: 10px;
  line-height: 1.25;
}

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

.home-v2-research-card p {
  grid-column: 2 / 4;
  margin: 12px 0 9px;
  color: #282828;
  font-size: 10px;
  line-height: 1.55;
}

.home-v2-research-card a {
  grid-column: 2 / 4;
  align-self: end;
  color: #111;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
}

/* TIMELINE */
.home-v2-timeline { padding: 18px 0 15px; }
.home-v2-timeline .section-title { margin-bottom: 10px; }

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

.home-v2-timeline__item {
  min-width: 0;
  position: relative;
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 9px;
  padding-top: 15px;
}

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

.home-v2-timeline__icon {
  width: 44px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid #aaa;
  background: #fff;
  color: #111;
  font-family: "Courier New", monospace;
  font-size: 17px;
  line-height: 1;
}

.home-v2-timeline__copy strong {
  display: block;
  color: #111;
  font-size: 9px;
  font-weight: 700;
}

.home-v2-timeline__copy p {
  margin: 4px 0 0;
  color: #222;
  font-size: 9px;
  line-height: 1.48;
}

/* PRINCIPAL: preserve the three-column compact composition from mockup */
.home-v2-principal { padding: 0 0 12px; }

.home-v2-principal__panel {
  min-height: 158px;
  display: grid;
  grid-template-columns: 194px 1fr 346px;
  border: 1px solid #e5e5e3;
  background: #f8f8f6;
}

.home-v2-principal__portrait {
  height: 158px;
  overflow: hidden;
  background: #ededeb;
}

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

.home-v2-principal__bio {
  min-width: 0;
  padding: 14px 24px 12px 34px;
}

.home-v2-principal__eyebrow {
  margin: 0;
  color: var(--home-accent-dark);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .03em;
  text-transform: uppercase;
}

.home-v2-principal__bio h2 {
  margin: 1px 0 0;
  color: #111;
  font-size: 22px;
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -.02em;
}

.home-v2-principal__bio > p:not(.home-v2-principal__eyebrow) {
  max-width: 56ch;
  margin: 8px 0 0;
  color: #242424;
  font-size: 9px;
  line-height: 1.45;
}

.home-v2-principal__credentials {
  display: flex;
  align-items: center;
  gap: 0;
  margin-top: 11px;
  white-space: nowrap;
}

.home-v2-principal__credentials span {
  padding: 0 14px;
  color: #202020;
  font-size: 8px;
  font-weight: 700;
  text-transform: uppercase;
}

.home-v2-principal__credentials span:first-child { padding-left: 0; }
.home-v2-principal__credentials span + span { border-left: 1px solid #9f9f9d; }

.home-v2-principal__proof {
  display: grid;
  align-content: center;
  gap: 8px;
  margin: 12px 0;
  padding: 0 18px 0 24px;
  border-left: 1px dotted #aaa;
}

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

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

.home-v2-principal__proof-item strong {
  display: block;
  color: #111;
  font-size: 8px;
  font-weight: 700;
  line-height: 1.1;
  text-transform: uppercase;
}

.home-v2-principal__proof-item p {
  margin: 2px 0 0;
  color: #222;
  font-size: 8px;
  line-height: 1.3;
}

/* COMMITMENTS */
.home-v2-commitments { padding: 0 0 26px; }
.home-v2-commitments .section-title { margin-bottom: 9px; }

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

.home-v2-commitment {
  min-height: 67px;
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 10px;
  padding: 7px 18px 7px 0;
  color: #111;
}

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

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

.home-v2-commitment h3 { font-size: 8px; }
.home-v2-commitment p {
  margin: 4px 0 0;
  color: #2c2c2c;
  font-size: 8px;
  line-height: 1.35;
}

/* FOOTER: below the approved mockup viewport, intentionally quiet */
.home-v2 .footer-v2 {
  padding: 15px 0 18px;
  border-top: 1px solid #e4e4e2;
  background: #fff;
  color: #555;
  font-size: 9px;
}

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

.home-v2 .footer-v2 nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 8px;
  font-weight: 700;
  text-transform: uppercase;
}

/* Keep the mockup composition intact on normal laptop widths.
 * Responsive reflow starts only when there is genuinely insufficient room.
 */
@media (max-width: 1010px) and (min-width: 761px) {
  body.home-v2 .wrap { width: calc(100% - 32px); }

  .home-v2 .header-v2__inner {
    grid-template-columns: 205px 1fr 145px;
    gap: 12px;
  }

  .home-v2 .nav-v2 { gap: 20px; }
  .home-v2 .header-v2__motto { padding-left: 12px; }

  .home-v2-hero__grid {
    grid-template-columns: minmax(450px, .98fr) minmax(330px, 1.02fr);
    gap: 12px;
  }

  .home-v2-hero h1 { font-size: clamp(42px, 5vw, 48px); }
  .home-v2-hero__visual { transform: translateX(-6px); }

  .home-v2-principal__panel {
    grid-template-columns: 178px minmax(0, 1fr) 285px;
  }

  .home-v2-principal__portrait { height: 158px; }
  .home-v2-principal__bio { padding-left: 20px; padding-right: 16px; }
  .home-v2-principal__bio h2 { font-size: 20px; }
  .home-v2-principal__bio > p:not(.home-v2-principal__eyebrow) { font-size: 8px; }
  .home-v2-principal__credentials span { padding-inline: 8px; font-size: 7px; }
  .home-v2-principal__proof { padding-left: 15px; padding-right: 10px; }
  .home-v2-principal__proof-item { grid-template-columns: 27px 1fr; gap: 7px; }
  .home-v2-principal__proof-item .icon-mask { width: 21px; height: 21px; }
  .home-v2-principal__proof-item strong,
  .home-v2-principal__proof-item p { font-size: 7px; }
}

@media (max-width: 760px) {
  body.home-v2 .wrap { width: calc(100% - 28px); }

  .home-v2 .header-v2__inner {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    padding: 12px 0;
  }
  .home-v2 .header-v2__motto { display: none; }
  .home-v2 .nav-v2 {
    order: 2;
    width: 100%;
    justify-content: flex-start;
    gap: 17px;
    overflow-x: auto;
  }

  .home-v2-hero { min-height: 0; }
  .home-v2-hero__grid { grid-template-columns: 1fr; min-height: 0; }
  .home-v2-hero h1 { font-size: clamp(39px, 10vw, 48px); }
  .home-v2-hero__visual { transform: none; }
  .home-v2-hero__visual img { width: min(430px, 100%); }

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

  .home-v2-timeline__line { grid-template-columns: 1fr; border-top: 0; gap: 13px; }
  .home-v2-timeline__item { grid-template-columns: 45px 1fr; padding-top: 0; }
  .home-v2-timeline__item::before { display: none; }

  .home-v2-principal__panel { grid-template-columns: 150px 1fr; }
  .home-v2-principal__portrait { height: 180px; }
  .home-v2-principal__proof {
    grid-column: 1 / -1;
    grid-template-columns: repeat(3, 1fr);
    margin: 0;
    padding: 12px;
    border-left: 0;
    border-top: 1px dotted #aaa;
  }
}

@media (max-width: 520px) {
  .home-v2-why__grid,
  .home-v2-services__grid,
  .home-v2-research__grid,
  .home-v2-commitments__grid { grid-template-columns: 1fr; }

  .home-v2-hero__actions { flex-direction: column; }
  .home-v2-page .home-btn { width: 100%; min-width: 0; }

  .home-v2-principal__panel { grid-template-columns: 1fr; }
  .home-v2-principal__portrait { height: 205px; }
  .home-v2-principal__bio { padding: 18px; }
  .home-v2-principal__proof { grid-template-columns: 1fr; }

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