/* Shared, full-bleed carousel. Variants set their own slide width and gap. */
.carousel { --slide-w: 614px; --carousel-gap: 10px; min-width: 0; }
.carousel-viewport { overflow: hidden; touch-action: pan-y; cursor: pointer; }
.carousel-track {
  display: flex; gap: var(--carousel-gap); align-items: stretch;
  transition: transform .6s cubic-bezier(.65, 0, .25, 1); will-change: transform;
}
.carousel-slide {
  flex: 0 0 var(--slide-w); min-width: 0; opacity: .45; cursor: pointer;
  transition: opacity .4s ease;
}
.carousel-slide.is-active { opacity: 1; cursor: auto; }
.carousel-nav {
  display: flex; align-items: center; justify-content: center; gap: 22px;
  margin-top: 64px; padding-inline: var(--gutter);
}
.carousel-nav[hidden] { display: none; }
.nav-line { position: relative; width: 150px; height: 1px; background: var(--white); }
.nav-line::before {
  content: ""; position: absolute; top: 50%; left: 0; transform: translateY(-50%);
  width: 8px; height: 8px; border-radius: 50%; background: var(--white);
}
.nav-line:last-child::before { left: auto; right: 0; }
.carousel-btn {
  display: grid; place-items: center; flex: none; width: 48px; height: 48px;
  padding: 0; border: 0; border-radius: 50%; background: #354d5c; color: var(--white);
  transition: background-color .2s ease;
}
.carousel-btn svg { width: 18px; height: 18px; }
.carousel-btn:hover { background: var(--accent); }
.carousel-btn:focus-visible, .carousel-dot:focus-visible, .carousel:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 5px;
}
.carousel:focus-visible { outline-offset: -2px; }
.carousel-dots { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px; padding: 9px; }
.carousel-dot {
  position: relative; flex: none; width: 7px; height: 7px; padding: 0; border: 0;
  border-radius: 50%; background: transparent;
}
/* A separate hit area keeps the small reference dots easy to tap. */
.carousel-dot::before {
  content: ""; position: absolute; width: 24px; height: 24px; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
}
.carousel-dot::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--white);
  opacity: .55; transition: background-color .2s ease, opacity .2s ease, transform .2s ease;
}
.carousel-dot.is-active::after { background: var(--accent); opacity: 1; transform: scale(1.286); }

/* 5. Recent builds: project summaries in the reference's review-card slot. */
.builds { padding: 100px 0; }
.builds .section-title { text-align: center; }
.builds-sub { margin-top: 22px; font-family: var(--font-body); font-size: 22px; color: var(--white); text-align: center; }
.builds-sub svg { display: inline-block; width: 20px; height: 20px; color: var(--accent); vertical-align: middle; }
.builds-carousel { --slide-w: min(614px, 86vw); --carousel-gap: 10px; margin-top: 70px; }
.build-card { position: relative; min-height: 317px; padding: 40px 40px 64px; border-radius: 20px; background: var(--surface); }
.build-head { display: grid; grid-template-columns: 80px minmax(0, 1fr) auto; gap: 18px; align-items: start; }
.build-avatar { display: grid; place-items: center; width: 80px; height: 80px; border-radius: 50%; background: var(--accent); color: var(--on-accent); }
.build-avatar svg { width: 36px; height: 36px; }
.build-name { font-family: var(--font-display); font-size: 18px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: var(--white); overflow-wrap: anywhere; }
.build-place { margin-top: 4px; font-size: 14px; color: #cbd4db; }
.build-tag { font-size: 13px; font-weight: 700; color: var(--accent); letter-spacing: .3px; }
.build-mark { width: 46px; height: 38px; --mark-tower: var(--accent); --mark-core: var(--white); }
.build-body { position: relative; margin-top: 26px; padding-right: 34px; }
.build-body p { font-size: 17px; line-height: 1.6; color: #bac5cd; }
.build-bar { position: absolute; right: 0; top: 4px; width: 4px; height: 72px; border-radius: 2px; background: linear-gradient(var(--white) 0 58%, var(--accent) 58% 100%); opacity: .9; }
.build-card-cta { background: linear-gradient(135deg, #38261d 0%, var(--surface) 60%); border: 1px solid rgba(236, 104, 16, .45); }
.build-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; font-size: 15px; font-weight: 800; text-transform: uppercase; letter-spacing: .6px; color: var(--accent); }
.build-link svg { flex: none; width: 16px; height: 16px; transition: transform .2s ease; }
.build-link:hover svg { transform: translateX(4px); }

/* 6. About and team: generous copy spacing, then a photo/copy split. */
.about { padding: 100px 0 180px; }
.about-intro p, .team-note, .team-copy p { font-family: var(--font-body); font-size: clamp(16px, 1.25vw, 18px); line-height: 1.75; color: var(--muted); }
/* About: text on the left, NHBRC registration panel on the right (MSNT Energy-style split). */
.about-split { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 72px; align-items: center; margin-top: 40px; }
.about-copy p + p { margin-top: 20px; }
.about-copy .page-teaser { display: inline-block; margin: 26px 0 0; }
.about-nhbrc { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; padding: 36px; border: 1px solid rgba(255, 255, 255, .14); border-radius: 24px; background: linear-gradient(160deg, rgba(24, 46, 132, .3), rgba(255, 255, 255, .02)); }
.about-nhbrc img { width: min(100%, 300px); height: auto; border-radius: 14px; }
.about-intro .about-nhbrc p { margin: 0; }
.about-intro .about-nhbrc-title { margin: 0 0 10px; color: var(--white); font-family: var(--font-display); font-size: clamp(20px, 1.8vw, 26px); font-weight: 700; line-height: 1.25; letter-spacing: .5px; text-transform: uppercase; }
@media (max-width: 900px) {
  .about-split { grid-template-columns: minmax(0, 1fr); gap: 36px; margin-top: 30px; }
  .about-nhbrc { padding: 24px; }
  .about-nhbrc img { width: 200px; }
}
.team-grid { display: grid; grid-template-columns: minmax(0, 713fr) minmax(0, 633fr); column-gap: 80px; align-items: start; margin-top: 130px; }
.team-photo { position: relative; container-type: inline-size; aspect-ratio: 713 / 490; border-radius: 20px; overflow: hidden; }
.team-photo img { width: 100%; height: 100%; object-fit: cover; }
.team-pill {
  position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%);
  padding: 10px 22px; border-radius: 30px; background: rgba(19, 37, 48, .45);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, .45); color: var(--white); font-size: 15px; font-weight: 700; white-space: nowrap;
}
.team-pill span {
  position: absolute; top: 50%; height: 1px; background: var(--white);
  width: min(clamp(40px, 16vw, 230px), max(0px, calc(50cqw - 50% - 18px)));
}
.team-pill span:first-child { right: 100%; }
.team-pill span:last-child { left: 100%; }
.team-pill span::before { content: ""; position: absolute; top: 50%; width: 8px; height: 8px; transform: translateY(-50%); border-radius: 50%; background: var(--white); }
.team-pill span:first-child::before { left: 0; }
.team-pill span:last-child::before { right: 0; }
.about .team-note { margin-top: 14px; color: #93a0aa; font-size: 13px; line-height: 1.5; letter-spacing: .3px; }
.team-copy p { margin-top: 22px; }
.team-copy .title-row + p { margin-top: 30px; }
.team-copy .btn-lg { margin-top: 56px; }

@media (max-width: 1024px) {
  .team-grid { grid-template-columns: minmax(0, 1fr); gap: 56px; margin-top: 80px; }
}
@media (max-width: 640px) {
  .nav-line { display: none; }
  .carousel-nav { gap: 18px; }
  .build-card { min-height: 0; padding: 28px 22px 36px; }
  .build-head { grid-template-columns: 60px minmax(0, 1fr) auto; gap: 12px; }
  .build-avatar { width: 60px; height: 60px; }
  .build-avatar svg { width: 28px; height: 28px; }
  .build-mark { width: 36px; height: 30px; }
  .build-name { font-size: 16px; }
  .build-body p { font-size: 15.5px; }
  .about { padding: 72px 0 110px; }
  .about .title-dot { width: 30px; height: 30px; }
  .team-pill { bottom: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .carousel-track, .carousel-slide, .carousel-btn, .carousel-dot::after, .build-link svg,
  .about .btn-lg { transition: none; }
}
