/* =========================================================
   Aisha Steel — Xbuild pixel-match clone
   Layout: reference screenshot | Colours: ASML logo steel
   ========================================================= */

:root {
  --steel: #969696;
  --steel-dark: #5c5c5c;
  --steel-light: #c8c8c8;
  --accent: #5c5c5c;
  --accent-hover: #3f3f3f;
  --charcoal: #121212;
  --ink: #121212;
  --muted: #666;
  --bg: #ffffff;
  --bg-soft: #f3f3f3;
  --font: "Manrope", system-ui, sans-serif;
  --display: "Oswald", "Manrope", sans-serif;
  --container: 1200px;
  --gutter: clamp(1.1rem, 3.5vw, 2rem);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

body.xb-clone {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: #fff;
  overflow-x: hidden;
}

body.xb-clone .container {
  width: min(100% - (var(--gutter) * 2), var(--container));
  margin-inline: auto;
}

/* Hide legacy chrome when clone is active */
body.xb-clone .scroll-progress,
body.xb-clone .hero__scroll {
  display: none !important;
}

/* ---------- Top utility bar ---------- */
.xb-topbar {
  background: #0a0a0a;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}

.xb-topbar__inner {
  width: min(100% - (var(--gutter) * 2), var(--container));
  margin-inline: auto;
  min-height: 2.35rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.xb-topbar a {
  color: inherit;
  text-decoration: none;
}

.xb-topbar a:hover {
  color: #fff;
}

.xb-topbar__social {
  display: flex;
  gap: 0.85rem;
  text-transform: uppercase;
  font-size: 0.7rem;
  font-weight: 700;
}

/* ---------- Header ---------- */
.xb-header.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--charcoal) !important;
  border: 0 !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  color: #fff;
  --header-bg: var(--charcoal);
  --header-fg: #fff;
}

.xb-header.is-scrolled {
  background: rgba(18, 18, 18, 0.98) !important;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.3) !important;
}

.xb-header__inner {
  width: min(100% - (var(--gutter) * 2), var(--container));
  margin-inline: auto;
  min-height: 4.75rem;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.25rem;
}

.xb-logo {
  display: inline-flex;
  align-items: center;
  line-height: 0;
}

.xb-logo img {
  height: 3.15rem;
  width: auto;
  display: block;
}

/* Kill legacy header layout rules */
body.xb-clone .site-header .header__inner,
body.xb-clone .logo__text,
body.xb-clone .logo__mark {
  display: none !important;
}

body.xb-clone .xb-header .nav {
  display: flex !important;
  justify-self: center;
  position: relative;
  inset: auto;
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
  background: transparent !important;
  padding: 0 !important;
  overflow: visible !important;
}

body.xb-clone .xb-header .nav__list {
  display: flex !important;
  flex-direction: row !important;
  align-items: center;
  gap: 0.1rem;
}

.xb-header .nav {
  justify-self: center;
}

.xb-header .nav__list {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.xb-header .nav__link {
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.65rem 0.7rem;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.xb-header .nav__link:hover,
.xb-header .nav__link.is-active {
  color: var(--steel-light);
}

.xb-header .nav__chevron {
  width: 10px;
  height: 10px;
}

.xb-header .nav__dropdown {
  background: #1a1a1a;
  border: 0;
  min-width: 14rem;
}

.xb-header .nav__dropdown a {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.82rem;
}

.xb-header .nav__dropdown a:hover {
  color: #fff;
  background: rgba(150, 150, 150, 0.15);
}

.xb-header__actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.xb-quote {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.55rem;
  padding: 0.55rem 1.15rem;
  background: var(--steel-dark);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 2px;
}

.xb-quote:hover {
  background: var(--accent-hover);
  color: #fff;
}

.xb-header .nav-toggle {
  border-color: rgba(255, 255, 255, 0.35);
}

.xb-header .nav-toggle__bar,
.xb-header .nav-toggle__bar::before,
.xb-header .nav-toggle__bar::after {
  background: #fff;
}

/* ---------- Shared ---------- */
.xb-eyebrow {
  margin: 0 0 0.65rem;
  color: var(--steel-dark);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.xb-eyebrow--dark {
  color: var(--steel-dark);
}

.xb-sec-head {
  text-align: center;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.xb-sec-head h2,
.xb-hero h1,
.xb-quality__card h2,
.xb-foundations h2,
.xb-news .xb-sec-head h2 {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  line-height: 1.1;
  margin: 0;
}

.xb-sec-head h2 {
  font-size: clamp(1.85rem, 3.6vw, 2.85rem);
  color: var(--ink);
}

.xb-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 3rem;
  padding: 0.7rem 1.4rem;
  background: #fff;
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 0 100%);
  width: fit-content;
}

.xb-btn:hover {
  background: #f0f0f0;
  color: var(--ink);
}

.xb-btn--steel {
  background: var(--steel-dark);
  color: #fff;
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 14px 100%, 0 calc(100% - 14px));
}

.xb-btn--steel:hover {
  background: var(--accent-hover);
  color: #fff;
}

/* ---------- HERO ---------- */
.xb-hero {
  position: relative;
  min-height: min(92vh, 820px);
  display: grid;
  align-items: center;
  overflow: hidden;
  color: #fff;
}

.xb-hero__media {
  position: absolute;
  inset: 0;
}

.xb-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.xb-hero__panel {
  position: absolute;
  inset: 0 auto 0 0;
  width: min(68%, 920px);
  background: linear-gradient(
    115deg,
    rgba(92, 92, 92, 0.94) 0%,
    rgba(92, 92, 92, 0.88) 42%,
    rgba(92, 92, 92, 0.55) 68%,
    rgba(92, 92, 92, 0) 100%
  );
  clip-path: polygon(0 0, 100% 0, 78% 100%, 0 100%);
}

.xb-hero__arrow {
  position: absolute;
  left: clamp(0.75rem, 2vw, 1.5rem);
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
  display: grid;
  place-items: center;
  text-decoration: none;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.xb-hero__arrow svg {
  width: 1.1rem;
  height: 1.1rem;
}

.xb-hero__arrow:hover {
  background: var(--steel-dark);
  color: #fff;
}

.xb-hero__content {
  position: relative;
  z-index: 2;
  width: min(100% - (var(--gutter) * 2), var(--container));
  margin-inline: auto;
  max-width: 36rem;
  padding: 5rem 0 7rem;
  margin-left: max(var(--gutter), calc((100% - var(--container)) / 2));
}

.xb-hero h1 {
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  max-width: 12ch;
  margin-bottom: 1.15rem;
  color: #fff;
}

.xb-hero__content p {
  margin: 0 0 1.75rem;
  color: rgba(255, 255, 255, 0.92);
  font-size: 1.02rem;
  line-height: 1.7;
  max-width: 34rem;
}

/* ---------- SERVICES ---------- */
.xb-services {
  position: relative;
  z-index: 2;
  background: #fff;
  padding: clamp(4rem, 7vw, 6rem) 0 0;
  margin-bottom: -4.5rem;
}

.xb-services__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.35rem;
}

.xb-svc {
  position: relative;
  display: grid;
  gap: 0.9rem;
  text-align: center;
  color: inherit;
  text-decoration: none;
  padding-bottom: 1.5rem;
}

.xb-svc__media {
  position: relative;
  aspect-ratio: 4 / 3.2;
  overflow: hidden;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 30px), 50% 100%, 0 calc(100% - 30px));
  background: #e8e8e8;
}

.xb-svc__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}

.xb-svc:hover .xb-svc__media img {
  transform: scale(1.07);
}

.xb-svc__tab {
  position: absolute;
  left: 50%;
  bottom: 2.35rem;
  width: 2.35rem;
  height: 1.85rem;
  transform: translateX(-50%);
  background: var(--steel-dark);
  clip-path: polygon(0 0, 100% 0, 100% 65%, 50% 100%, 0 65%);
  z-index: 2;
}

.xb-svc h3 {
  font-family: var(--display);
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 0;
}

/* ---------- QUALITY / STORY ---------- */
.xb-quality {
  background: var(--charcoal);
  padding: clamp(7rem, 12vw, 9.5rem) 0 clamp(4.5rem, 8vw, 6.5rem);
  color: #fff;
}

.xb-quality__wrap {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: end;
}

.xb-quality__card {
  background: #fff;
  color: var(--ink);
  padding: clamp(2rem, 4vw, 3rem);
  border-radius: 1.5rem 1.5rem 0 0;
  margin-top: -8rem;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.18);
}

.xb-quality__card h2 {
  font-size: clamp(1.7rem, 3vw, 2.45rem);
  margin-bottom: 0.9rem;
}

.xb-quality__card > p {
  color: var(--muted);
  margin: 0 0 1.25rem;
  line-height: 1.7;
}

.xb-checks {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
  display: grid;
  gap: 0.7rem;
}

.xb-checks li {
  display: grid;
  grid-template-columns: 1.1rem 1fr;
  gap: 0.7rem;
  font-size: 0.95rem;
  color: #333;
}

.xb-checks li::before {
  content: "";
  width: 1.05rem;
  height: 1.05rem;
  margin-top: 0.15rem;
  background: var(--steel);
  clip-path: polygon(14% 44%, 0 65%, 40% 100%, 100% 18%, 82% 0, 38% 62%);
}

.xb-quality__media {
  position: relative;
  min-height: 22rem;
}

.xb-quality__media img {
  width: 100%;
  height: 100%;
  min-height: 22rem;
  object-fit: cover;
}

.xb-corner {
  position: absolute;
  width: 4.25rem;
  height: 4.25rem;
  border: 3px solid var(--steel);
  pointer-events: none;
}

.xb-corner--tr {
  top: 14px;
  right: 14px;
  border-left: 0;
  border-bottom: 0;
}

.xb-corner--bl {
  left: 14px;
  bottom: 14px;
  border-right: 0;
  border-top: 0;
}

/* ---------- PROJECTS ---------- */
.xb-projects {
  background: #fff;
  padding: clamp(4.5rem, 8vw, 6.5rem) 0 clamp(3rem, 5vw, 4rem);
}

.xb-projects__row {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.55rem;
  width: min(100% - 1rem, 1400px);
  margin-inline: auto;
}

.xb-project {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4.4;
  overflow: hidden;
  color: #fff;
  text-decoration: none;
}

.xb-project img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}

.xb-project:hover img,
.xb-project.is-active img {
  transform: scale(1.06);
}

.xb-project span {
  position: absolute;
  left: 0.65rem;
  right: 0.65rem;
  bottom: 0.65rem;
  background: #fff;
  color: var(--ink);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: center;
  padding: 0.55rem 0.4rem;
  opacity: 0;
  transform: translateY(8px);
  transition: 0.3s var(--ease);
}

.xb-project.is-active span,
.xb-project:hover span {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- FOUNDATIONS + STANDARDS ---------- */
.xb-foundations {
  background: var(--bg-soft);
  padding: clamp(4.5rem, 8vw, 6.5rem) 0;
}

.xb-foundations__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.xb-foundations__left {
  display: grid;
  gap: 1rem;
}

.xb-bar {
  display: grid;
  grid-template-columns: 4.5rem 1fr;
  gap: 1rem;
  align-items: center;
  background: var(--steel-dark);
  color: #fff;
  text-decoration: none;
  padding: 1.05rem 1.2rem;
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 0 100%);
  transition: transform 0.3s var(--ease), background 0.3s ease;
}

.xb-bar:hover {
  transform: translateX(8px);
  background: var(--accent-hover);
  color: #fff;
}

.xb-bar img {
  width: 3rem;
  height: 3rem;
  object-fit: contain;
}

.xb-bar h3 {
  font-family: var(--display);
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 0 0 0.2rem;
}

.xb-bar p {
  margin: 0;
  font-size: 0.82rem;
  opacity: 0.85;
}

.xb-foundations__left > h2 {
  margin-top: 1.25rem;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  max-width: 16ch;
}

.xb-foundations__lead {
  color: var(--muted);
  margin: 0;
  max-width: 36rem;
  line-height: 1.7;
}

.xb-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin: 0.5rem 0 0.75rem;
}

.xb-stats article {
  border-top: 3px solid var(--steel);
  padding-top: 0.7rem;
}

.xb-stats strong {
  display: block;
  font-family: var(--display);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  color: var(--steel-dark);
  line-height: 1;
}

.xb-stats span {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #444;
}

.xb-foundations__right h2 {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  margin-bottom: 1.25rem;
  max-width: 12ch;
}

.xb-foundations__media {
  position: relative;
  display: grid;
  gap: 1rem;
}

.xb-foundations__float {
  width: min(100%, 280px);
  margin-left: auto;
  display: block;
  object-fit: cover;
  aspect-ratio: 4 / 3;
  margin-top: -2.5rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
}

.xb-foundations__photo {
  position: relative;
}

.xb-foundations__photo img {
  width: 100%;
  min-height: 20rem;
  object-fit: cover;
}

/* ---------- NEWS ---------- */
.xb-news {
  background: #fff;
  padding: clamp(4.5rem, 8vw, 6.5rem) 0;
}

.xb-news__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.35rem;
}

.xb-news-card {
  display: grid;
  background: #fff;
  color: inherit;
  text-decoration: none;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.06);
  border-top: 3px solid var(--steel);
  overflow: hidden;
  transition: transform 0.35s var(--ease);
}

.xb-news-card:hover {
  transform: translateY(-6px);
}

.xb-news-card__media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.xb-news-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.xb-news-card__body {
  padding: 1.25rem 1.35rem 1.5rem;
  display: grid;
  gap: 0.85rem;
}

.xb-news-card h3 {
  font-family: var(--display);
  font-size: 1.15rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin: 0;
  line-height: 1.25;
}

.xb-news-card span {
  color: var(--steel-dark);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.xb-news-card.is-featured {
  background: var(--charcoal);
  color: #fff;
  border-top-color: var(--steel);
}

.xb-news-card.is-featured span {
  color: var(--steel-light);
}

/* ---------- PARTNERS ---------- */
.xb-partners {
  background: var(--bg-soft);
  padding: 2.75rem 0;
}

.xb-partners__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: clamp(1.5rem, 4vw, 3.5rem);
}

.xb-partners__row img {
  height: 2.35rem;
  width: auto;
  max-width: 7.5rem;
  object-fit: contain;
  opacity: 0.7;
  filter: grayscale(1);
}

/* ---------- FOOTER ---------- */
.xb-footer {
  background: #0d0d0d;
  color: rgba(255, 255, 255, 0.78);
}

.xb-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
  padding: clamp(3rem, 6vw, 4.5rem) 0 2.5rem;
}

.xb-logo--footer img {
  height: 3rem;
  margin-bottom: 1rem;
}

.xb-footer h4 {
  font-family: var(--display);
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.95rem;
  margin: 0 0 1rem;
}

.xb-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.xb-footer a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
}

.xb-footer a:hover {
  color: #fff;
}

.xb-footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1.1rem 0;
  font-size: 0.85rem;
}

.xb-footer__bottom .container {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}

.xb-footer__bottom p {
  margin: 0;
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .xb-header__inner {
    grid-template-columns: auto auto;
  }

  body.xb-clone .xb-header .nav {
    position: fixed !important;
    inset: 0 !important;
    background: rgba(10, 10, 10, 0.97) !important;
    display: grid !important;
    align-content: start;
    padding: 5.5rem var(--gutter) 2rem !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transform: translateY(-8px) !important;
    transition: 0.3s var(--ease);
    overflow-y: auto !important;
    justify-self: stretch;
  }

  body.xb-clone .xb-header .nav.is-open {
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
  }

  body.xb-clone .xb-header .nav__list {
    flex-direction: column !important;
    align-items: stretch;
  }

  .xb-services__grid {
    grid-template-columns: 1fr 1fr;
  }

  .xb-projects__row {
    grid-template-columns: repeat(3, 1fr);
  }

  .xb-quality__wrap,
  .xb-foundations__grid,
  .xb-news__grid,
  .xb-footer__grid {
    grid-template-columns: 1fr;
  }

  .xb-quality__card {
    margin-top: -4rem;
  }

  .xb-foundations__float {
    margin-top: 0;
    margin-left: 0;
    width: 100%;
  }

  .xb-stats {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 720px) {
  .xb-topbar__social {
    display: none;
  }

  .xb-quote {
    display: none;
  }

  .xb-hero__panel {
    width: 100%;
    clip-path: none;
    background: linear-gradient(
      180deg,
      rgba(70, 70, 70, 0.82) 0%,
      rgba(18, 18, 18, 0.72) 100%
    );
  }

  .xb-hero__content {
    margin-left: var(--gutter);
    max-width: none;
    padding-bottom: 4.5rem;
  }

  .xb-hero__arrow {
    display: none;
  }

  .xb-services {
    margin-bottom: 0;
    padding-bottom: 3rem;
  }

  .xb-services__grid,
  .xb-projects__row,
  .xb-news__grid {
    grid-template-columns: 1fr;
  }

  .xb-projects__row {
    width: min(100% - (var(--gutter) * 2), 420px);
  }

  .xb-project {
    aspect-ratio: 16 / 10;
  }
}
