/* ==========================================================================
   MBH — home.css
   Hero, service rows, speed band, sector rail, selected work
   ========================================================================== */

/* ==========================================================================
   HERO
   Type is anchored bottom-left. The headline sits above a full-width
   hairline; the lead and actions sit below it on a shared baseline. The
   section label runs vertically up the left gutter and the capability list
   sits quietly at the right, so nothing competes with the headline.
   ========================================================================== */

.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 100svh;
  padding-top: calc(var(--header-h) + 28px);
  padding-bottom: clamp(36px, 4.8vw, 58px);
  overflow: hidden;
  background: var(--green-900);
}

.hero__media { position: absolute; inset: -8% 0; z-index: 0; }

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 58% 42%;
  will-change: transform;
}

.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(to top, rgba(6,39,28,0.94) 0%, rgba(6,39,28,0.62) 36%, rgba(6,39,28,0.16) 66%, rgba(6,39,28,0.44) 100%),
    linear-gradient(to right, rgba(6,39,28,0.98) 0%, rgba(6,39,28,0.94) 28%, rgba(6,39,28,0.72) 46%, rgba(6,39,28,0.26) 66%, rgba(6,39,28,0) 84%);
}

.hero .slashes { z-index: 2; }

.hero__inner { position: relative; z-index: 3; width: 100%; }

/* Hero runs on a wider measure than the rest of the page */
.hero .container { max-width: var(--container-wide); }

.hero .display {
  max-width: 17ch;
  margin-bottom: clamp(32px, 4vw, 56px);
  color: var(--paper);
  font-size: clamp(1.8rem, 4vw, 3.55rem);
  letter-spacing: -0.035em;
  line-height: 1.02;
}

/* Hairline, then lead and actions on a shared baseline */
.hero__foot {
  display: grid;
  gap: 26px;
  padding-top: clamp(24px, 2.6vw, 34px);
  border-top: 1px solid rgba(254, 254, 254, 0.22);
}

@media (min-width: 860px) {
  .hero__foot {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: 56px;
  }
}

.hero__lead {
  max-width: 46ch;
  color: rgba(254, 254, 254, 0.76);
  font-size: var(--fs-lead);
  line-height: 1.65;
}

.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }

.hero__actions .btn--outline {
  border-color: rgba(254, 254, 254, 0.38);
  color: var(--paper);
}

.hero__actions .btn--outline:hover {
  border-color: var(--paper);
  background: var(--paper);
  color: var(--green-900);
}

/* Capability list — quiet, and out of the headline's way */
.hero__caps {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 32px;
  padding-top: 22px;
  border-top: 1px solid rgba(254, 254, 254, 0.14);
}

.hero__caps li {
  display: flex;
  align-items: center;
  gap: 9px;
  color: rgba(254, 254, 254, 0.7);
  font-size: 0.75rem;
}

.hero__caps li::before {
  content: "";
  flex: none;
  width: 10px;
  height: 2px;
  background: var(--accent);
  transform: skewX(-19deg);
}

@media (min-width: 900px) {
  .hero__caps { gap: 10px clamp(24px, 3.4vw, 52px); }
}

/* ---------------------------------------------------------------- hero on
   mobile: image sits at the top at full strength, copy sits beneath it on
   solid green so nothing has to fight the render for contrast.            */
@media (max-width: 767px) {
  .hero {
    display: block;
    min-height: 0;
    padding: 0;
  }

  .hero__media {
    position: relative;
    inset: auto;
    height: 40svh;
    min-height: 260px;
    overflow: hidden;
  }

  .hero__media img {
    position: absolute;
    top: -9%;
    left: 0;
    height: 118%;
  }

  .hero__scrim {
    bottom: auto;
    height: 40svh;
    min-height: 260px;
    background:
      linear-gradient(to bottom, rgba(6,39,28,0.62) 0%, rgba(6,39,28,0.10) 34%, rgba(6,39,28,0.20) 72%, rgba(6,39,28,0.96) 100%);
  }

  .hero__inner {
    padding-block: 34px 42px;
    background: var(--green-900);
  }

  .hero .display {
    max-width: none;
    margin-bottom: 26px;
    font-size: clamp(1.85rem, 7.8vw, 2.45rem);
  }

  .hero__foot { padding-top: 22px; }
  .hero__caps { margin-top: 26px; padding-top: 20px; }
  .hero .slashes { display: none; }
}


/* ========================================================================== 
   PROOF POINTS
   ========================================================================== */

.proof-strip {
  background: var(--green-800);
  border-top: 1px solid rgba(254, 254, 254, 0.12);
  border-bottom: 1px solid rgba(254, 254, 254, 0.12);
  padding-block: clamp(28px, 3.4vw, 46px);
}

.proof-strip__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid rgba(254, 254, 254, 0.14);
  border-left: 1px solid rgba(254, 254, 254, 0.14);
}

/* Five figures: one row from tablet up; on phones the odd one out spans */
.proof-point:last-child:nth-child(odd) { grid-column: 1 / -1; }

@media (min-width: 760px) {
  .proof-strip__grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .proof-point:last-child:nth-child(odd) { grid-column: auto; }
}

.proof-point {
  min-height: 118px;
  padding: clamp(18px, 2.2vw, 26px);
  border-right: 1px solid rgba(254, 254, 254, 0.14);
  border-bottom: 1px solid rgba(254, 254, 254, 0.14);
}

.proof-point b {
  display: block;
  margin-bottom: 10px;
  color: var(--paper);
  font-size: clamp(1.55rem, 3vw, 2.45rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1;
}

.proof-point__label {
  display: block;
  max-width: 18ch;
  color: rgba(254, 254, 254, 0.68);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  line-height: 1.45;
  text-transform: uppercase;
}
/* ==========================================================================
   SERVICE ROWS
   Cards replaced by hairline rows — name, description, arrow. Nothing boxed,
   so the eye reads straight down the disciplines.
   ========================================================================== */

.rowlist { border-top: 1px solid var(--line); }

.rowlist__item { border-bottom: 1px solid var(--line); }

.rowlist__link {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
  padding: clamp(22px, 2.4vw, 30px) 0;
  transition: padding-left 0.55s var(--ease);
}

@media (min-width: 860px) {
  .rowlist__link {
    grid-template-columns: 26px minmax(0, 0.8fr) minmax(0, 1.3fr) 24px;
    align-items: center;
    gap: 0 32px;
  }
}

.rowlist__icon {
  width: 22px;
  height: 22px;
  color: var(--green-900);
  opacity: 0.55;
  transition: color 0.45s var(--ease), opacity 0.45s var(--ease);
}

.rowlist__icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.rowlist__link:hover .rowlist__icon { color: var(--accent); opacity: 1; }

/* Accent slash slides in from the left on hover */
.rowlist__link::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 11px;
  height: 2px;
  margin-top: -1px;
  background: var(--accent);
  transform: skewX(-19deg) scaleX(0);
  transform-origin: left;
  transition: transform 0.55s var(--ease);
}

.rowlist__link:hover { padding-left: 26px; }
.rowlist__link:hover::before { transform: skewX(-19deg) scaleX(1); }

.rowlist__name {
  color: var(--green-900);
  font-size: clamp(1.15rem, 1.9vw, 1.5rem);
  font-weight: 600;
  letter-spacing: -0.022em;
  line-height: 1.2;
  transition: color 0.45s var(--ease);
}

.rowlist__link:hover .rowlist__name { color: var(--accent); }

.rowlist__desc {
  max-width: 46ch;
  color: var(--muted);
  font-size: var(--fs-body);
  line-height: 1.6;
}

.rowlist__arrow {
  display: none;
  color: var(--accent);
  font-size: 1rem;
  transition: transform 0.5s var(--ease);
}

@media (min-width: 860px) { .rowlist__arrow { display: block; } }

.rowlist__link:hover .rowlist__arrow { transform: translateX(6px); }

/* Cursor-following preview. One element is reused for every row; the image
   swaps on enter. Pointer devices only — it never appears on touch.       */
.row-preview {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 60;
  width: 260px;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  background: var(--green-900);
  box-shadow: 0 24px 60px rgba(6, 39, 28, 0.28);
  transition: opacity 0.35s var(--ease);
}

.row-preview::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 3px;
  background: var(--accent);
}

.row-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (hover: none), (max-width: 859px) {
  .row-preview { display: none; }
}

/* ==========================================================================
   SPEED BAND
   A dark full-width band that breaks the white/bone rhythm. Copy sits on a
   container-aligned left column; the image bleeds off the right edge.
   ========================================================================== */

.speed {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  overflow: hidden;
  background: var(--green-900);
}

@media (min-width: 1000px) {
  .speed { grid-template-columns: minmax(0, 1fr) min(46vw, 660px); align-items: stretch; }
}

.speed__text {
  position: relative;
  z-index: 1;
  padding: var(--section) var(--gutter);
}

@media (min-width: 1000px) {
  .speed__text {
    padding-left: max(var(--gutter), calc((100vw - var(--container)) / 2 + var(--gutter)));
    padding-right: clamp(40px, 5vw, 80px);
  }
}

.speed .h2 { max-width: 15ch; color: var(--paper); }

.speed__lead {
  max-width: 48ch;
  margin-top: 20px;
  color: rgba(254, 254, 254, 0.72);
  font-size: var(--fs-lead);
}

.speed__points {
  display: grid;
  grid-template-columns: 1fr;
  margin-block: clamp(34px, 4vw, 48px) clamp(30px, 3.4vw, 40px);
}

@media (min-width: 620px) {
  .speed__points { grid-template-columns: repeat(2, 1fr); column-gap: 40px; }
}

.speed__points li {
  padding: 22px 0;
  border-top: 1px solid rgba(254, 254, 254, 0.16);
}

.speed__points b {
  display: block;
  margin-bottom: 5px;
  color: var(--paper);
  font-size: 0.9375rem;
  font-weight: 600;
}

.speed__points span {
  display: block;
  color: rgba(254, 254, 254, 0.66);
  font-size: var(--fs-small);
  line-height: 1.55;
}

.speed__media {
  position: relative;
  min-height: clamp(320px, 54vw, 470px);
  overflow: hidden;
}

@media (min-width: 1000px) { .speed__media { min-height: 100%; } }

/* Oversized so the parallax shift never exposes an edge */
.speed__media img {
  position: absolute;
  top: -8%;
  left: 0;
  width: 100%;
  height: 116%;
  object-fit: cover;
  will-change: transform;
}

/* Experience marker sits on the image rather than in a floating white box */
.speed__years {
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 2;
  max-width: 264px;
  padding: 24px 28px 26px;
  background: rgba(6, 39, 28, 0.86);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border-top: 2px solid var(--accent);
}

.speed__years b {
  display: block;
  margin-bottom: 6px;
  color: var(--paper);
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1;
}

.speed__years b span {
  display: inline;
  font: inherit;
}

.speed__years small {
  display: inline;
  font-size: 0.72em;
  font-weight: inherit;
  vertical-align: 0.08em;
}

.speed__years span {
  display: block;
  color: rgba(254, 254, 254, 0.7);
  font-size: 0.75rem;
  line-height: 1.5;
}

/* ========================================================================== 
   SECTOR GRID
   ========================================================================== */

.sectors__grid {
  --sector-gap: clamp(18px, 2.2vw, 28px);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--sector-gap);
  margin-top: clamp(36px, 4vw, 54px);
}

.sectors__grid .sector-card:last-child:nth-child(odd) {
  grid-column: 1 / -1;
  aspect-ratio: 50 / 24;
}

@media (max-width: 640px) {
  .sectors__grid { grid-template-columns: 1fr; }
  .sectors__grid .sector-card:last-child:nth-child(odd) { width: 100%; aspect-ratio: 25 / 24; }
}
.sector-card {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 25 / 24;
  background: var(--green-900);
}

.sector-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s var(--ease);
}

.sector-card:hover img { transform: scale(1.05); }

.sector-card__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top,
    rgba(6,39,28,0.92) 0%,
    rgba(6,39,28,0.52) 42%,
    rgba(6,39,28,0.04) 80%);
}

.sector-card__body { position: absolute; inset: auto 0 0 0; padding: clamp(26px, 3vw, 36px); }

.sector-card__index {
  display: block;
  margin-bottom: 14px;
  color: var(--accent);
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.sector-card__title {
  display: block;
  margin-bottom: 8px;
  color: var(--paper);
  font-size: clamp(1.25rem, 1.9vw, 1.55rem);
  font-weight: 600;
  letter-spacing: -0.022em;
}

.sector-card__text {
  display: block;
  max-width: 36ch;
  color: rgba(254, 254, 254, 0.74);
  font-size: var(--fs-small);
  line-height: 1.55;
}

.sector-card__line {
  display: block;
  width: 30px;
  height: 2px;
  margin-top: 20px;
  background: var(--accent);
  transition: width 0.6s var(--ease);
}

.sector-card:hover .sector-card__line { width: 76px; }

/* ==========================================================================
   SELECTED WORK
   Not three equal cards: one lead project carries the section and two
   supporting projects stack alongside it.
   ========================================================================== */

.work-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: clamp(36px, 4vw, 56px);
}

.work {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(30px, 3.2vw, 44px) clamp(20px, 2.2vw, 30px);
}

@media (min-width: 640px) { .work { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .work { grid-template-columns: repeat(3, 1fr); } }

.project { display: block; }

.project .media { overflow: hidden; }
.project .media img { transition: transform 1s var(--ease); }
.project:hover .media img { transform: scale(1.045); }

.project__body {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.project__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin-bottom: 9px;
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.project__cat { color: var(--accent); }
.project__region { color: var(--muted); opacity: 0.6; }

.project__title {
  margin-bottom: 3px;
  color: var(--green-900);
  font-size: clamp(1rem, 1.3vw, 1.15rem);
  font-weight: 600;
  letter-spacing: -0.018em;
  transition: color 0.45s var(--ease);
}

.project:hover .project__title { color: var(--accent); }

.project__sub { font-size: var(--fs-small); }

/* ==========================================================================
   CLIENTS
   ========================================================================== */

.clients { padding-block: clamp(44px, 5vw, 66px); }

.clients__label {
  margin-bottom: 28px;
  text-align: center;
  color: var(--muted);
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  opacity: 0.7;
}
