/* Binary Experiments — match live X / Cornerstone / RevSlider tokens */

@font-face {
  font-family: "FontAwesome";
  src: url("../assets/fonts/fa-solid-900.woff2") format("woff2");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "FontAwesomeRegular";
  src: url("../assets/fonts/fa-regular-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --be-teal: #1fe0d0;
  --be-teal-hover: #12887f;
  --be-ink: #241f36;
  --be-ink-soft: #4b4a5a;
  --be-muted: #848484;
  --be-card-muted: #bdbdbd;
  --be-head: #272727;
  --be-white: #ffffff;
  --be-line: #e2e2e8;
  --be-btn: #282b2d;
  --be-btn-hover: #141516;
  --be-header-h: 70px;
  --be-max: 1170px;
  --font-body: "Lato", Helvetica, Arial, sans-serif;
  --font-display: "Raleway", Helvetica, Arial, sans-serif;
  --ease-power3: cubic-bezier(0.65, 0, 0.35, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  font-size: 14px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.8;
  color: #909090;
  background: var(--be-white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.1;
  margin: 0 0 0.75rem;
  color: var(--be-ink);
}

p { margin: 0 0 1rem; }

.wrap {
  width: min(100% - 2.5rem, var(--be-max));
  margin-inline: auto;
}

/* Buttons — live .x-anchor-button */
.btn-dark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--be-btn);
  color: var(--be-white);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 19px;
  line-height: 1.3;
  padding: 0.579em 1.105em 0.842em;
  border: 0;
  border-bottom: 4px solid #141516;
  box-shadow: 0 4px 9px rgba(0, 0, 0, 0.75);
  text-shadow: 0 0.075px 0.075px rgba(0, 0, 0, 0.5);
  cursor: pointer;
}

.btn-dark:hover {
  background: var(--be-btn-hover);
  color: var(--be-white);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--be-header-h);
  background: var(--be-white);
}

.site-header .wrap {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand img { width: 175px; height: auto; }

.nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav a {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.071em;
  text-transform: uppercase;
  color: var(--be-ink);
  line-height: 1;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--be-teal);
}

.nav-toggle-input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 8px;
  background: #9a9aa3;
  color: #fff;
  cursor: pointer;
  font-size: 1.25rem;
  line-height: 1;
  align-items: center;
  justify-content: center;
}

@media (max-width: 760px) {
  .nav-toggle { display: inline-flex; }

  .nav {
    display: none;
    position: absolute;
    top: var(--be-header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--be-white);
    border-bottom: 1px solid var(--be-line);
    padding: 0.5rem 0;
  }

  .nav-toggle-input:checked ~ .nav { display: flex; }
  .nav a { padding: 0.85rem 1.25rem; letter-spacing: 0.04em; }
}

/* —— Hero (RevSlider twin) —— */
.hero-ethos {
  position: relative;
  height: 500px;
  max-width: var(--be-max);
  margin: 0 auto;
  overflow: hidden;
}

.hero-ethos__stage {
  position: relative;
  width: 100%;
  height: 100%;
}

.hero-ethos__media {
  position: absolute;
  left: 133px;
  top: 50px;
  width: 400px;
  height: 400px;
  margin: 0;
  animation: be-from-bottom 750ms var(--ease-power3) 1000ms both;
}

.hero-ethos__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-ethos__urdu {
  position: absolute;
  right: 80px;
  top: 80px;
  margin: 0;
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 700;
  line-height: 60px;
  color: var(--be-ink);
  direction: rtl;
  unicode-bidi: plaintext;
  animation: be-from-left 500ms var(--ease-power3) 1000ms both;
}

.hero-ethos__title {
  position: absolute;
  right: 80px;
  top: 150px;
  margin: 0;
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 700;
  line-height: 60px;
  color: var(--be-ink);
  animation: be-from-left 750ms var(--ease-power3) 1000ms both;
}

.hero-ethos__sub {
  position: absolute;
  right: 80px;
  top: 230px;
  width: min(629px, calc(100% - 160px));
  margin: 0;
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 400;
  line-height: 28px;
  color: var(--be-ink-soft);
  text-align: right;
  animation: be-fade-in 1000ms var(--ease-power3) 500ms both;
}

.hero-ethos__note {
  position: absolute;
  right: 80px;
  top: 260px;
  width: min(516px, calc(100% - 160px));
  margin: 0;
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 400;
  line-height: 28px;
  color: var(--be-ink-soft);
  text-align: right;
  animation: be-fade-in 1000ms var(--ease-power3) 500ms both;
}

@keyframes be-from-left {
  from { transform: translateX(-120px); opacity: 0; }
  to { transform: none; opacity: 1; }
}

@keyframes be-from-bottom {
  from { transform: translateY(120px); opacity: 0; }
  to { transform: none; opacity: 1; }
}

@keyframes be-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes be-fade-up {
  from { transform: translateY(28px); opacity: 0; }
  to { transform: none; opacity: 1; }
}

@media (max-width: 1024px) {
  .hero-ethos { height: auto; min-height: 438px; padding: 2rem 0 2.5rem; }
  .hero-ethos__stage {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    align-items: center;
    padding: 0 1.25rem;
  }
  .hero-ethos__media,
  .hero-ethos__urdu,
  .hero-ethos__title,
  .hero-ethos__sub,
  .hero-ethos__note {
    position: static;
    width: auto;
    right: auto;
    top: auto;
  }
  .hero-ethos__media {
    width: min(100%, 400px);
    height: auto;
    aspect-ratio: 1;
    justify-self: center;
  }
  .hero-ethos__copy { text-align: right; }
  .hero-ethos__urdu,
  .hero-ethos__title { line-height: 1.35; }
}

@media (max-width: 700px) {
  .hero-ethos__stage { grid-template-columns: 1fr; }
  .hero-ethos__copy { text-align: center; }
  .hero-ethos__sub,
  .hero-ethos__note { text-align: center; width: auto; }
  .hero-ethos__urdu { direction: rtl; }
}

/* —— Teal band (centered) —— */
.band-teal {
  background: var(--be-teal);
  padding: 100px 0 65px;
  text-align: center;
  font-size: 1.125rem;
}

.band-teal h2 {
  margin: 0 auto;
  max-width: 620px;
  font-size: calc(1.125rem * 2.285);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.035em;
  color: var(--be-head);
}

.band-teal p {
  margin: 1.45em auto 1.95em;
  max-width: 42rem;
  font-family: var(--font-body);
  font-size: 1em;
  font-weight: 400;
  line-height: 1.8;
  color: var(--be-muted);
}

.band-teal .btn-dark { margin-inline: auto; }

/* —— Builders —— */
.builders {
  position: relative;
  color: var(--be-white);
  padding: 100px 0 0;
  overflow: hidden;
  isolation: isolate;
  text-align: center;
  font-size: 1.125rem;
}

.builders__bg {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 290%;
  z-index: -2;
  background:
    linear-gradient(180deg, rgba(12, 14, 22, 0.72), rgba(12, 14, 22, 0.88)),
    url("../assets/builders-bg.jpg") center top / cover no-repeat;
  will-change: transform;
  pointer-events: none;
}

.builders h2 {
  margin: 0 0 2.5rem;
  font-size: calc(1.125rem * 2.857);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.035em;
  color: var(--be-white);
}

.builders__grid {
  display: grid;
  gap: 1.5rem 1.25rem;
  grid-template-columns: repeat(4, 1fr);
  align-items: start;
  padding-bottom: 4rem;
}

.builders__card {
  max-width: 250px;
  margin-inline: auto;
  background: transparent;
  border: 0;
  padding: 0;
  animation: be-fade-up 700ms var(--ease-power3) both;
}

.builders__card:nth-child(1) { animation-delay: 0.05s; }
.builders__card:nth-child(2) { animation-delay: 0.15s; }
.builders__card:nth-child(3) { animation-delay: 0.25s; }
.builders__card:nth-child(4) { animation-delay: 0.35s; }

.builders__icon {
  width: 130px;
  height: 130px;
  margin: 0 auto 10px;
  border: 4px solid var(--be-teal);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--be-teal);
  font-family: "FontAwesome", sans-serif;
  font-size: 3.6em;
  font-weight: 900;
  font-style: normal;
  line-height: 130px;
  -webkit-font-smoothing: antialiased;
}

.builders__icon i {
  font-family: inherit;
  font-style: normal;
  font-weight: 900;
  line-height: 1;
}

.builders__card h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.5em;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.035em;
  color: var(--be-white);
}

.builders__card p {
  margin: 0.35em 0 0;
  font-family: var(--font-body);
  font-size: 1em;
  font-weight: 400;
  line-height: 1.8;
  color: var(--be-card-muted);
  text-align: center;
}

.builders__cta {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin: 0;
  padding: 65px 50px;
  background: var(--be-teal);
  color: var(--be-white);
  text-align: center;
  overflow: hidden;
  transition: background 0.25s ease;
}

.builders__cta:hover { background: var(--be-teal-hover); }

.builders__cta-label {
  font-family: var(--font-body);
  font-size: 45px;
  font-weight: 400;
  line-height: 1;
  color: var(--be-white);
  transition:
    transform 0.45s var(--ease-power3),
    opacity 0.35s ease;
}

.builders__cta-arrow {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--be-white);
  opacity: 0;
  transform: scale(0.35);
  pointer-events: none;
  transition:
    transform 0.45s var(--ease-power3),
    opacity 0.35s ease;
}

.builders__cta-arrow svg {
  display: block;
  width: 75px;
  height: 75px;
}

.builders__cta:hover .builders__cta-label {
  transform: translateX(40%);
  opacity: 0;
}

.builders__cta:hover .builders__cta-arrow {
  opacity: 1;
  transform: scale(1);
}

@media (max-width: 1000px) {
  .builders__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .builders { padding-top: 60px; }
  .builders h2 { font-size: 2rem; }
  .builders__grid { grid-template-columns: 1fr; }
  .builders__cta { padding: 40px 24px; }
  .builders__cta-label { font-size: 28px; }
  .builders__cta-arrow svg { width: 48px; height: 48px; }
  .band-teal { padding: 60px 0 50px; }
  .band-teal h2 { font-size: 1.85rem; max-width: none; }
}

/* About + contact */
.page-band {
  background-color: var(--be-teal);
  background-image: url("../assets/bg-pattern-secondary-e1762516512194.png");
  background-repeat: repeat;
  background-size: 60px 60px;
  padding: clamp(3rem, 7vw, 4.5rem) 0;
  color: var(--be-white);
  text-align: center;
}

.page-band h1 {
  margin: 0 0 0.85rem;
  font-size: calc(1rem * 2.857);
  line-height: 1.1;
  letter-spacing: -0.035em;
  color: var(--be-white);
}

.page-band p {
  margin: 0 auto;
  max-width: 36rem;
  color: rgba(255, 255, 255, 0.92);
  font-size: 1.125rem;
  line-height: 1.8;
}

.page-band .mail-row {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.25rem;
  color: var(--be-white);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
}

.page-band .mail-icon {
  width: 31px;
  height: 31px;
  border-radius: 50%;
  background: #333;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-family: "FontAwesomeRegular", sans-serif;
  font-size: 15.6px;
  font-weight: 400;
  font-style: normal;
  line-height: 1;
  -webkit-font-smoothing: antialiased;
}

.page-section { padding: clamp(2.5rem, 6vw, 4rem) 0; }

.page-section--pull {
  margin-top: -3.5rem;
  position: relative;
  z-index: 2;
}

.who-box {
  border: 1px solid var(--be-line);
  background: var(--be-white);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  max-width: 48rem;
  margin-inline: auto;
  text-align: center;
  box-shadow: 0 12px 40px rgba(26, 26, 46, 0.06);
}

.who-box h2 {
  font-size: 1.5em;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--be-ink);
}

.who-box p {
  color: var(--be-muted);
  font-style: italic;
  line-height: 1.8;
}

.people {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 2rem;
}

.person { text-align: center; }

.person img {
  width: 160px;
  height: 160px;
  object-fit: cover;
  object-position: center top;
  border-radius: 50%;
  margin: 0 auto 1rem;
  background: #2a2438;
}

.person h3 {
  margin-bottom: 0.35rem;
  font-size: 1.2rem;
  color: var(--be-ink);
}

.person p {
  margin: 0;
  color: var(--be-muted);
  font-size: 0.95rem;
  line-height: 1.8;
}

.contact-layout {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: 1.2fr 0.8fr;
}

.form label {
  display: block;
  margin: 0 0 0.35rem;
  color: #8a8a96;
  font-size: 0.95rem;
}

.form .field { margin-bottom: 1rem; }

.form input,
.form textarea {
  width: 100%;
  border: 1px solid var(--be-line);
  background: var(--be-white);
  padding: 0.75rem 0.85rem;
  font: inherit;
  color: var(--be-ink);
}

.form input:focus,
.form textarea:focus {
  outline: 2px solid rgba(31, 224, 208, 0.45);
  border-color: var(--be-teal);
}

.form textarea {
  min-height: 140px;
  resize: vertical;
}

.side-block h2 {
  font-size: 1.5rem;
  color: var(--be-ink);
}

.side-block p { color: var(--be-muted); }

.site-footer {
  border-top: 1px solid var(--be-line);
  padding: 1.5rem 0 2rem;
  color: var(--be-muted);
  font-size: 0.9rem;
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  justify-content: space-between;
}

@media (max-width: 900px) {
  .page-band,
  .who-box { text-align: center; }

  .page-band p,
  .who-box { margin-inline: auto; }

  .people { grid-template-columns: 1fr; }
  .contact-layout { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
