/* ABIRA 2026 editorial redesign: all site pages */
:root {
  --ab-ink: #222428;
  --ab-gold: #bea47a;
  --ab-blue: #3c5998;
  --ab-paper: #f7f7f5;
}
html {
  scroll-padding-top: 92px;
}
body {
  overflow-x: hidden;
}
main {
  overflow: hidden;
}
img {
  max-width: 100%;
}
:where(
    .page-hero,
    .page-hero.compact,
    .page-hero.turnkey-hero,
    .page-hero.about-ref-hero,
    .page-hero.about-detail-hero
  ) {
  height: auto !important;
  min-height: 0 !important;
  padding: clamp(90px, 10vw, 150px) 0 clamp(75px, 8vw, 112px) !important;
  display: grid;
  align-items: center;
  text-align: center;
  position: relative;
  background-position: center !important;
}
:where(
    .page-hero,
    .page-hero.compact,
    .page-hero.turnkey-hero,
    .page-hero.about-ref-hero,
    .page-hero.about-detail-hero
  )
  > .container {
  width: 100%;
  max-width: 1100px;
  margin: auto;
  position: relative;
  z-index: 1;
}
:where(
    .page-hero,
    .page-hero.compact,
    .page-hero.turnkey-hero,
    .page-hero.about-ref-hero,
    .page-hero.about-detail-hero
  )
  h1.page-title {
  font-size: clamp(42px, 5.5vw, 76px) !important;
  line-height: 1.06 !important;
  letter-spacing: -0.055em !important;
  max-width: 1000px;
  margin: 18px auto !important;
  text-wrap: balance;
}
.page-hero .hero-page-label {
  position: static !important;
  transform: none !important;
  margin: 25px auto 0 !important;
  text-align: center;
}
.page-hero .eyebrow {
  margin-inline: auto !important;
}
.section {
  padding-block: clamp(62px, 7vw, 110px) !important;
}
.section .container {
  max-width: 1240px;
}
.section .display,
.section h2.display,
.section h2:not(.footer-col h2) {
  letter-spacing: -0.045em;
  line-height: 1.13;
  text-wrap: balance;
}
.section .display {
  font-size: clamp(35px, 4.4vw, 60px) !important;
}
.section:has(> .container > .section-heading) .section-heading {
  margin-bottom: 30px;
}
.about-ref-intro .container,
.about-pillars-section .container,
.about-growth-section .container,
.craftsmanship-section .container {
  gap: clamp(28px, 4vw, 60px) !important;
}
.about-ref-intro,
.about-growth-section {
  padding-block: clamp(55px, 6vw, 95px) !important;
}
.about-ref-intro .display {
  max-width: 800px;
}
.about-pillars-section {
  background: #202226 !important;
  color: #f4f2ec;
}
.about-pillars-section .container > :is(div, article) {
  min-width: 0;
}
.about-pillars-section h3 {
  line-height: 1.3 !important;
}
.about-growth-section {
  border-radius: 0 !important;
}
.about-growth-section h2 {
  font-size: clamp(36px, 4.8vw, 70px) !important;
  line-height: 1.12 !important;
}
/* Eliminate oversized blank CTA background while preserving content. */
.cta-image {
  min-height: 0 !important;
  height: auto !important;
  padding: clamp(70px, 8vw, 112px) 0 !important;
  overflow: hidden;
}
.cta-image h2,
.cta-image .display {
  font-size: clamp(38px, 5vw, 72px) !important;
  line-height: 1.1 !important;
}
.cta-image::before {
  opacity: 0.3;
}
.turnkey-cta {
  min-height: 0 !important;
  padding: clamp(65px, 7vw, 105px) 0 !important;
}
.turnkey-cta h2 {
  font-size: clamp(34px, 4.4vw, 62px) !important;
}
/* Page-wide structural refresh */
.abira-refresh main > .section:nth-of-type(even):not(.dark) {
  background: #f1f0ed;
}
.abira-refresh .section.light:not(.portfolio-gallery) {
  background: #f8f8f6;
}
.abira-refresh .section.dark {
  background: #222429;
  color: #f7f7f7;
}
.abira-refresh .section.sand {
  background: #eae5db;
}
.abira-refresh .section h3 {
  overflow-wrap: break-word;
}
.abira-refresh .section p {
  line-height: 1.75;
}
.abira-refresh .section img {
  border-radius: 18px;
}
.abira-refresh
  :where(.service-card, .process-card, .why-card, .value-card, .location-card) {
  border-radius: 16px;
  overflow: hidden;
}
.abira-refresh :where(.image-break, .image-break img) {
  max-height: 590px;
  object-fit: cover;
}
.abira-refresh .hero-page-label {
  letter-spacing: 0.2em;
}
/* Refreshed header and consistent content bounds */
.site-header.reference-header {
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.12);
  z-index: 1000;
}
.reference-header-cta {
  border-radius: 3px !important;
  letter-spacing: 0.14em;
}
.reference-desktop-nav a {
  letter-spacing: 0.1em;
}
.abira-refresh .container {
  width: min(100% - 48px, 1240px);
}
/* Portfolio: true variable-height CSS-columns masonry */
.page-portfolio .page-hero {
  background-image: linear-gradient(115deg, #222428, #3a3b3f) !important;
}
.portfolio-gallery {
  padding-top: 70px !important;
  background: #f7f7f5 !important;
}
.portfolio-gallery-header {
  text-align: center;
  max-width: 820px;
  margin: 0 auto 38px;
}
.portfolio-gallery-header h2 {
  font-size: clamp(36px, 5vw, 66px) !important;
  letter-spacing: -0.052em;
  line-height: 1.08;
}
.portfolio-gallery-header p {
  margin-top: 14px;
  color: #62666c;
}
.ab-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 9px;
  margin: 0 auto 42px;
}
.ab-filter {
  appearance: none;
  background: transparent;
  border: 1px solid #cdd0d2;
  border-radius: 100px;
  color: #27292c;
  padding: 11px 21px;
  font: 600 12px/1.2 inherit;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: 0.2s;
}
.ab-filter:hover,
.ab-filter[aria-pressed="true"] {
  background: #3d5b9d;
  color: #fff;
  border-color: #3d5b9d;
}
.ab-masonry {
  columns: 3 300px;
  column-gap: 18px;
}
.ab-tile {
  display: block;
  width: 100%;
  position: relative;
  margin: 0 0 18px;
  padding: 0;
  break-inside: avoid;
  overflow: hidden;
  border: 0;
  border-radius: 13px;
  background: #ddd;
  cursor: zoom-in;
  color: white;
  text-align: left;
  box-shadow: 0 8px 28px rgba(20, 20, 20, 0.045);
}
.ab-tile[hidden] {
  display: none !important;
}
.ab-tile img {
  width: 100%;
  height: auto;
  min-height: 170px;
  max-height: 620px;
  object-fit: cover;
  display: block;
  border-radius: 0 !important;
  transition: transform 0.7s cubic-bezier(0.2, 0.75, 0.25, 1), filter 0.5s;
}
.ab-tile:hover img {
  transform: scale(1.045);
  filter: brightness(0.83);
}
.ab-tile .ab-caption {
  position: absolute;
  inset: auto 0 0;
  padding: 55px 19px 18px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.72));
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.015em;
  color: #fff;
}
.ab-tile .ab-expand {
  float: right;
  font-size: 22px;
}
.ab-lightbox {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 30px 70px;
  background: rgba(10, 11, 13, 0.97);
  color: white;
}
.ab-lightbox[hidden] {
  display: none !important;
}
.ab-lightbox img {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: calc(100vh - 124px);
  object-fit: contain;
  border-radius: 0 !important;
}
.ab-lightbox .ab-lightbox-title {
  text-align: center;
  padding-top: 13px;
  font-size: 14px;
  letter-spacing: 0.06em;
}
.ab-lightbox button {
  position: absolute;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  border-radius: 100px;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  cursor: pointer;
  font-size: 26px;
}
.ab-lightbox-close {
  right: 23px;
  top: 22px;
}
.ab-lightbox-prev {
  left: 15px;
  top: 50%;
}
.ab-lightbox-next {
  right: 15px;
  top: 50%;
}
body.ab-lock {
  overflow: hidden;
}
/* Motion sections */
.ab-photo-rail {
  overflow: hidden;
  position: relative;
  margin: 45px 0 0;
  width: 100%;
  padding: 15px 0;
}
.ab-photo-track {
  display: flex;
  gap: 16px;
  width: max-content;
  animation: abRail 55s linear infinite;
}
.ab-photo-rail:hover .ab-photo-track {
  animation-play-state: paused;
}
.ab-photo-track img {
  height: 220px;
  width: 300px;
  object-fit: cover;
  border-radius: 12px;
}
@keyframes abRail {
  to {
    transform: translateX(-50%);
  }
}
.ab-fan {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 360px;
  position: relative;
  margin-top: 32px;
}
.ab-fan img {
  position: absolute;
  width: min(30vw, 270px);
  height: 340px;
  object-fit: cover;
  border: 7px solid #fff;
  border-radius: 14px;
  box-shadow: 0 20px 50px #0003;
  transform-origin: bottom center;
  transition: transform 0.5s;
}
.ab-fan img:nth-child(1) {
  transform: translateX(-150px) rotate(-13deg);
}
.ab-fan img:nth-child(2) {
  transform: translateY(-20px);
}
.ab-fan img:nth-child(3) {
  transform: translateX(150px) rotate(13deg);
}
.ab-fan:hover img:nth-child(1) {
  transform: translateX(-185px) rotate(-20deg);
}
.ab-fan:hover img:nth-child(3) {
  transform: translateX(185px) rotate(20deg);
}
@media (max-width: 760px) {
  .abira-refresh .container {
    width: min(100% - 32px, 1240px);
  }
  .ab-masonry {
    columns: 2 165px;
    column-gap: 10px;
  }
  .ab-tile {
    margin-bottom: 10px;
    border-radius: 8px;
  }
  .ab-tile .ab-caption {
    font-size: 11px;
    padding: 34px 10px 10px;
  }
  .ab-lightbox {
    padding: 35px 40px;
  }
  .ab-lightbox button {
    width: 34px;
    height: 34px;
    font-size: 20px;
  }
  .ab-lightbox-prev {
    left: 3px;
  }
  .ab-lightbox-next {
    right: 3px;
  }
  .ab-fan {
    min-height: 240px;
  }
  .ab-fan img {
    width: 36vw;
    height: 210px;
  }
  .ab-fan img:nth-child(1) {
    transform: translateX(-70px) rotate(-12deg);
  }
  .ab-fan img:nth-child(3) {
    transform: translateX(70px) rotate(12deg);
  }
  .ab-photo-track img {
    height: 150px;
    width: 210px;
  }
  .page-hero h1 {
    font-size: clamp(38px, 9vw, 56px) !important;
  }
  .section .display {
    font-size: clamp(32px, 8vw, 45px) !important;
  }
}
@media (prefers-reduced-motion: reduce) {
  .ab-photo-track {
    animation: none;
  }
  .ab-tile img,
  .ab-fan img {
    transition: none;
  }
}
/* Editorial About page: intentional split composition and elevated card grid */
.about-ref-intro .editorial-grid {
  display: grid !important;
  grid-template-columns: 68px minmax(0, 1fr) minmax(320px, 0.7fr) !important;
  gap: clamp(24px, 4vw, 60px) !important;
  align-items: start !important;
}
.about-ref-intro .editorial-grid h2 {
  font-size: clamp(40px, 4.3vw, 64px) !important;
  line-height: 1.12 !important;
}
.about-ref-intro .editorial-grid .prose {
  padding: 15px 0 0 32px !important;
  border-left: 2px solid #c9b181;
}
.about-pillars-section .section-head {
  display: grid !important;
  grid-template-columns: 1.3fr 0.7fr !important;
  gap: 45px;
  align-items: end !important;
  margin-bottom: 54px;
}
.about-pillars-section .about-pillar-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 14px !important;
}
.about-pillars-section .about-pillar {
  padding: 32px !important;
  background: #2d3034;
  border: 1px solid #494a4b;
  border-radius: 16px;
  min-height: 190px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.about-pillars-section .about-pillar:nth-child(even) {
  background: #343434;
}
.about-pillars-section .about-pillar h3 {
  font-size: clamp(20px, 2vw, 30px) !important;
  color: #d9bf8f !important;
}
.about-pillars-section .about-pillar p {
  color: #d3d3d3;
}
.about-growth-section .about-growth-grid {
  display: grid !important;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 5vw !important;
}
.about-growth-section .about-growth-media img {
  width: 100%;
  height: 100%;
  max-height: 470px;
  object-fit: cover;
  border-radius: 15px;
}
.about-growth-section .about-growth-copy {
  padding: 30px 0;
}
/* Services now reads as a modern alternating editorial catalog */
.services-stack {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 20px !important;
  align-items: stretch;
}
.services-stack .service-detail {
  height: 100%;
  margin: 0 !important;
  border: 1px solid #e0ded9;
  background: #fff;
  padding: 26px !important;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 12px 26px #00000008;
}
.services-stack .service-detail:nth-child(4n + 2),
.services-stack .service-detail:nth-child(4n + 3) {
  background: #ede9df;
}
.services-stack .service-detail img {
  width: 100%;
  height: 260px !important;
  object-fit: cover;
  border-radius: 9px !important;
}
.services-stack .service-detail h2 {
  font-size: clamp(25px, 2.6vw, 40px) !important;
}
/* Tight, consistent content and no overflowing backgrounds */
.abira-refresh
  main
  > section:not(.hero):not(.page-hero):not(.cta-image):not(.image-break) {
  margin-top: 0;
  margin-bottom: 0;
}
.abira-refresh .section .split-block {
  gap: clamp(28px, 5vw, 70px);
}
.abira-refresh .section .section-head {
  gap: clamp(22px, 4vw, 60px);
}
.abira-refresh .section :is(.prose, .intro-copy, .service-copy) {
  max-width: 70ch;
}
.abira-refresh :is(.vision-mission-card, .principle-card, .why-card) {
  border-radius: 16px;
  overflow: hidden;
}
.abira-refresh .section.sand :is(.process-card, .principle-card) {
  padding: 26px;
  border-radius: 14px;
}
.abira-refresh .turnkey-gallery-section img {
  border-radius: 12px !important;
}
.abira-refresh .footer {
  margin-top: 0;
}
@media (max-width: 980px) {
  .about-ref-intro .editorial-grid {
    grid-template-columns: 45px 1fr !important;
  }
  .about-ref-intro .editorial-grid .prose {
    grid-column: 2;
  }
  .about-pillars-section .section-head {
    grid-template-columns: 1fr !important;
  }
  .about-growth-section .about-growth-grid {
    grid-template-columns: 1fr !important;
  }
}
@media (max-width: 680px) {
  .services-stack {
    grid-template-columns: 1fr !important;
  }
  .about-ref-intro .editorial-grid {
    grid-template-columns: 1fr !important;
  }
  .about-ref-intro .editorial-grid .prose {
    grid-column: auto;
  }
  .about-pillars-section .about-pillar-grid {
    grid-template-columns: 1fr !important;
  }
  .about-pillars-section .about-pillar {
    min-height: 0;
  }
}
/* Homepage: headline restored as centered editorial banner above the original video */
.hero-video-section {
  min-height: 600px;
  height: clamp(610px, 86svh, 850px);
}
.hero-video-section .hero-video-overlay {
  background: linear-gradient(
      90deg,
      rgba(7, 9, 12, 0.72),
      rgba(7, 9, 12, 0.4),
      rgba(7, 9, 12, 0.72)
    ),
    linear-gradient(0deg, rgba(7, 9, 12, 0.35), transparent);
}
.hero-video-section .hero-content.ab-home-center {
  justify-content: center;
  text-align: center;
  padding-block: 65px !important;
}
.hero-video-section .hero-copy-panel {
  width: min(100%, 890px) !important;
  max-width: 890px !important;
  margin: auto;
}
.hero-video-section .hero-kicker {
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.hero-video-section .hero-title {
  font-size: clamp(45px, 6.3vw, 86px) !important;
  line-height: 1.04 !important;
  letter-spacing: -0.065em !important;
  text-wrap: balance;
}
.hero-video-section .hero-description {
  max-width: 690px;
  margin: 26px auto 30px !important;
  font-size: clamp(15px, 1.6vw, 19px);
  line-height: 1.65;
}
.hero-video-section .hero-actions {
  justify-content: center !important;
  gap: 15px;
}
@media (max-width: 760px) {
  .hero-video-section .hero-title {
    font-size: clamp(39px, 10vw, 63px) !important;
  }
  .hero-video-section .hero-content.ab-home-center {
    padding-block: 45px !important;
  }
}
