:root {
  --color-primary: #4e176f;
  --color-primary-deep: #46105f;
  --color-primary-darker: #390c4c;
  --color-accent: #ffae1f;
  --color-surface: #f7f4ed;
  --color-card: #fdf9f3; /* FIX: card bg #FDF9F3 per Figma */
  --color-card-border: #f0e7d8; /* FIX: card border #F0E7D8 per Figma */
  --color-body: #8e857f;
  --color-body-deep: #3e3a3b;
  --color-white: #ffffff;
  --container: 1440px;
  --gutter: 50px;
  --header-height: 90px;
  --radius-sm: 4px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  font-family: "Poppins", sans-serif;
  color: var(--color-body);
  background: var(--color-white);
}

body.nav-open {
  overflow: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

.container {
  width: min(100%, var(--container));
  margin: 0 auto;
  padding-inline: var(--gutter);
}

.eyebrow {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 18px;
  margin: 0 0 30px; /* FIX: eyebrow mb 30px per Figma */
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-accent);
}

.eyebrow::before,
.eyebrow--center::after {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
  flex: 0 0 28px;
}

.eyebrow--center {
  justify-content: center;
}

.section-title {
  margin: 0;
  font-family: "Cabin", sans-serif;
  font-size: 60px;
  line-height: 60px;
  letter-spacing: -0.03em;
  color: var(--color-primary);
}

.section-title--light {
  color: var(--color-white);
}

.section-copy {
  margin: 0;
  font-size: 16px;
  line-height: normal;
  color: var(--color-body);
}

.section-copy--light {
  color: rgba(255, 255, 255, 0.94);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 14px 28px;
  border: 0;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn--primary {
  background: var(--color-accent);
  color: var(--color-white);
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  background: transparent;
  transition: background-color 0.25s ease, box-shadow 0.25s ease;
}

.site-header.is-sticky {
  background: rgba(43, 9, 66, 0.96);
  box-shadow: 0 12px 30px rgba(21, 8, 31, 0.2);
}

.header__inner {
  position: relative;
  display: flex;
  align-items: center;
  min-height: var(--header-height);
}

.site-logo,
.menu-toggle {
  position: relative;
  z-index: 3;
}

.site-logo img {
  width: 60px;
  height: 60px;
/*  object-fit: cover;*/
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 40px;
      justify-content: center;
    width: 100%;
}

.site-nav__link {
  position: relative;
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  text-transform: uppercase;
  color: var(--color-white);
}

.site-nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -14px;
  height: 2px; /* FIX: hover line 2px per Figma */
  background: var(--color-accent);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.25s ease;
}

.site-nav__link.is-active::after,
.site-nav__link:hover::after {
  transform: scaleX(1);
}

.menu-toggle {
  display: none;
  margin-left: auto;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.menu-toggle span {
  position: absolute;
  left: 4px;
  width: 24px;
  height: 2px;
  background: var(--color-white);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.menu-toggle span:nth-child(1) { top: 8px; }
.menu-toggle span:nth-child(2) { top: 15px; }
.menu-toggle span:nth-child(3) { top: 22px; }

body.nav-open .menu-toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

body.nav-open .menu-toggle span:nth-child(2) {
  opacity: 0;
}

body.nav-open .menu-toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.what-we-do-hero {
  position: relative;
  min-height: 676px;
  padding-top: var(--header-height);
  overflow: hidden;
  background: #211326;
}

.what-we-do-hero__media,
.what-we-do-hero__media::before,
.what-we-do-hero__media::after {
  position: absolute;
  inset: 0;
}

.what-we-do-hero__picture,
.what-we-do-hero__image {
  display: block;
  width: 100%;
  height: 100%;
}

.what-we-do-hero__image {
  object-fit: cover;
  object-position: center top;
}

.what-we-do-hero__media::before {
  content: "";
  z-index: 1;
  background: linear-gradient(180deg, rgba(31, 18, 37, 0.24) 0%, rgba(31, 18, 37, 0.4) 100%);
}

.what-we-do-hero__media::after {
  content: "";
  z-index: 2;
  background:
    linear-gradient(180deg, rgba(29, 12, 36, 0.12) 0%, rgba(29, 12, 36, 0.44) 54%, rgba(11, 5, 15, 0.9) 100%),
    linear-gradient(90deg, rgba(14, 8, 19, 0.34) 0%, rgba(14, 8, 19, 0) 44%, rgba(14, 8, 19, 0.16) 100%);
}

.what-we-do-hero__content {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: minmax(0, 540px) 1fr;
  align-items: end;
  gap: 40px;
  min-height: calc(676px - var(--header-height));
  padding-top: 0;
  padding-bottom: 50px; /* FIX: 50px per Figma */
}

.what-we-do-hero__text {
  align-self: end;
  width: 619px;
}

.what-we-do-hero .eyebrow {
  margin-bottom: 26px; /* FIX: 26px per Figma */
  font-size: 14px;
  font-weight: 400; /* FIX: per Figma */
}

.what-we-do-hero .eyebrow::before {
  display: none;
}

.what-we-do-hero__content .section-title {
  max-width: 480px;
  font-size: 70px;
  line-height: 80px;
  letter-spacing: -0.02em;
}

.what-we-do-hero__copy {
  max-width: 619px;
  margin-top: 13px;
}

.hero-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-self: end;
  align-self: end;
  margin-bottom: 8px;
  padding-left: 22px;
  font-size: 12px;
  line-height: 1;
  color: rgba(255, 255, 255, 0.96);
  white-space: nowrap;
}

.hero-link::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 1px;
  height: 22px;
  background: var(--color-accent);
  transform: translateY(-50%);
}

.services-section {
  padding: 50px 0; /* FIX: 50px top/bottom per Figma */
}

.services-section__intro {
  display: grid;
  grid-template-columns: 548px minmax(0, 1fr);
  justify-content: space-between;
  align-items: end;
  gap: 30px;
  margin-bottom: 60px; /* FIX: 60px desktop per Figma */
}

.services-section__heading .section-title {
  max-width: 445px;
}

.services-section__copy {
  width: 100%;
  max-width: none;
  padding-bottom: 0; /* FIX: no bottom padding per Figma */
  font-size: 20px; /* FIX: 20px per Figma */
  font-weight: 400;
  line-height: normal;
  text-align: left;
}

.services-carousel {
  width: 100%;
}

.services-section__cards {
  padding-inline: var(--gutter);
}

.services-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 30px; /* FIX: 30px per Figma */
  align-items: start;
}

.services-column {
  display: flex;
  flex-direction: column;
  gap: 30px; /* FIX: 30px per Figma */
}

.services-column--right {
  padding-top: 60px;
}

.services-carousel--mobile {
  display: none;
}

.services-grid {
  display: flex;
  padding-inline: 0;
}

.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: auto;
  padding: 30px; /* FIX: 30px per Figma */
  border: 1px solid var(--color-card-border);
  background: var(--color-card);
  overflow: hidden;
}

.service-card__icon-box {
  position: absolute;
  top: 30px; /* FIX: match 30px card padding */
  right: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 132px;
  height: 132px;
  border: 1px solid #e8dfd2;
  background: #fffdfa;
  color: var(--color-primary);
}

.service-card__icon-box svg {
  width: 65px;
  height: 65px;
}

.service-card__index,
.service-card__title,
.service-card__text {
  margin: 0;
}

.service-card__index {
  margin-bottom: 30px; /* FIX: 30px per Figma */
  font-family: "Cabin", sans-serif;
  font-size: 70px;
  line-height: 60px;
  color: #f2ece2; /* FIX: #F2ECE2 per Figma */
}

.service-card__title {
  max-width: 362px;
  margin-top: 0;
  font-family: "Cabin", sans-serif;
  font-size: 40px;
  line-height: 60px;
  color: var(--color-primary);
}

.service-card__text {
  max-width: 362px;
  margin-top: 40px; /* FIX: 40px per Figma */
  margin-bottom: 40px; /* FIX: 40px per Figma */
  font-size: 16px;
  line-height: 1.45;
}

.service-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
/*  max-width: 380px;*/
  margin-top: auto;
  padding-top: 0; /* FIX: spacing via 40px text margin */
}

.service-tag {
  display: inline-flex;
  align-items: center;
  min-height: 21px;
  padding: 13px 22px; /* FIX: 13px 22px per Figma */
  border: 1px solid #e9ddcf;
  border-radius: 10px;
  background: var(--color-white);
  font-size: 12px;
  line-height: 1;
  color: var(--color-body-deep);
  white-space: nowrap;
}

.team-cta {
  position: relative;
  overflow: hidden;
  background: var(--color-primary-deep);
}

.team-cta::after {
  content: "";
  position: absolute;
  right: -70px;
  top: -112px;
  width: 392px;
  height: 392px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  box-shadow:
    inset 0 0 0 88px transparent,
    0 0 0 46px rgba(255, 255, 255, 0.06),
    0 0 0 92px rgba(255, 255, 255, 0.04);
}

.team-cta__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 660px;
  align-items: end; /* FIX: copy aligns with title per Figma */
  gap: 40px;
  padding-top: 70px; /* FIX: 70px per Figma */
  padding-bottom: 80px; /* FIX: 80px per Figma */
}

.team-cta__copy .section-title {
  font-size: 60px;
  line-height: 70px;
}

.team-cta__copy {
  padding: 0;
}

.team-cta__text {
/*  padding-bottom: 14px;*/ /* aligns copy with title per Figma */
  font-size: 20px; /* FIX: 20px / 400 / normal per Figma */
  font-weight: 400;
  line-height: normal;
}

.project-cta {
  padding: 50px 0; /* FIX: 50px per Figma */
}

.project-cta__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.project-cta__inner .section-title {
  max-width: 524px;
  font-size: 60px;
}

.project-cta__text {
  max-width: 716px;
  margin-top: 24px;
}

.project-cta__button {
  min-width: 196px;
  min-height: 0; /* height driven by 13px padding per Figma */
  margin-top: 70px; /* FIX: 70px per Figma */
  padding: 13px 40px; /* FIX: 13px 40px per Figma */
  font-size: 16px; /* FIX: 16px per Figma */
}

.site-footer {
  background: var(--color-primary-deep);
  color: var(--color-white);
}

.site-footer__inner {
  display: grid;
  grid-template-columns: 93px 1fr auto;
  align-items: center;
  gap: 20px 40px;
  min-height: 193px;
}

.site-footer__logo img {
  width: 93px;
  height: 93px;
/*  object-fit: cover;*/
}

.site-footer__nav {
  display: flex;
  justify-content: center;
  gap: 30px;
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
}

.site-footer__copyright {
  grid-column: 2;
  margin: 0;
  justify-self: center;
  font-size: 14px;
}

.site-footer__socials {
  display: flex;
  gap: 18px;
  justify-self: end;
}

.site-footer__socials img {
  width: 30px;
  height: 30px;
}
@media screen and (max-width: 1080px) {
  .service-card__icon-box {
    width: 80px;
    height: 80px;
  }
  .team-cta__inner {
    grid-template-columns: unset;
  }
}

@media (max-width: 1023px) {
  :root {
    --gutter: 15px;
  }

  .site-nav {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(78vw, 320px);
    flex-direction: column;
    align-items: flex-start;
    justify-content: unset;
    gap: 22px;
    padding: 110px 30px 40px;
    background: rgba(255, 255, 255, 0.98);
    transform: translateX(100%);
    transition: transform 0.28s ease;
    background: rgba(25, 3, 38, 0.95);
  }

  body.nav-open .site-nav {
    transform: translateX(0);
  }

  .site-nav__link::after {
    left: 0;
    right: auto;
    width: 100%;
    bottom: -8px;
  }

  .menu-toggle {
    display: block;
  }

  .eyebrow {
    gap: 20px; /* FIX: 20px gap line-to-text on mobile per Figma */
    margin-bottom: 30px; /* FIX: 30px on mobile per Figma */
    font-size: 14px; /* FIX: 14px on mobile per Figma */
  }

  .eyebrow::before,
  .eyebrow--center::after {
    width: 26px;
    flex-basis: 26px;
  }

  .section-title {
    font-size: 30px;
    line-height: 1.05;
  }

  .section-copy {
    font-size: 14px;
    line-height: 1.58;
  }

  .what-we-do-hero {
    min-height: 700px;
  }

  .what-we-do-hero__media::before {
    background: linear-gradient(180deg, rgba(31, 18, 37, 0.1) 0%, rgba(31, 18, 37, 0.32) 100%);
  }

  .what-we-do-hero__media::after {
    background:
      linear-gradient(180deg, rgba(29, 12, 36, 0) 0%, rgba(29, 12, 36, 0.28) 52%, rgba(10, 5, 15, 0.96) 100%),
      linear-gradient(90deg, rgba(12, 7, 16, 0.18) 0%, rgba(12, 7, 16, 0.06) 100%);
  }

  .what-we-do-hero__content {
    display: block;
    padding-top: 305px;
    min-height: 0;
    padding-bottom: 30px; /* FIX: 30px on mobile per Figma */
  }

  .what-we-do-hero__content .section-title {
    max-width: 235px;
    font-size: 30px;
    line-height: normal;
  }

  .what-we-do-hero__copy {
    max-width: 360px;
    margin-top: 12px;
  }

  .hero-link {
    margin-top: 28px;
    font-size: 13px;
  }

  .services-section {
    padding: 50px 0; /* FIX: 50px top/bottom per Figma */
  }

  .services-section__intro {
    grid-template-columns: 1fr;
    gap: 30px; /* FIX: 30px on mobile per Figma */
    margin-bottom: 50px; /* FIX: 50px on mobile per Figma */
  }

  .services-section__heading .section-title,
  .services-section__copy {
    max-width: none;
  }

  .services-section__copy {
    padding-bottom: 0;
    font-size: 16px;
    line-height: normal;
    text-align: left;
  }

  .services-carousel {
    padding-left: 0;
    overflow: hidden;
  }

  .services-section__cards {
    padding-inline: 15px 0;
  }

  .services-columns {
    display: none;
  }

  .services-carousel--mobile {
    display: block;
  }

  .services-grid {
    display: flex;
    padding-inline: 0;
  }

  .service-card {
    width: 344px;
    height: auto;
    padding: 30px; /* FIX: 30px per Figma mobile */
  }

  .service-card__icon-box {
    position: relative;
    top: 0;
    right: 0;
    width: 115px;
    height: 115px;
    margin-bottom: 18px;
  }

  .service-card__icon-box svg {
    width: 42px;
    height: 42px;
  }

  .service-card__index {
    font-size: 70px; /* FIX: 70px on mobile per Figma */
    margin-bottom: 20px; /* FIX: 20px on mobile per Figma */
  }

  .service-card__title,
  .service-card__text,
  .service-card__tags {
    max-width: none;
  }

  .service-card__title {
    margin-top: 2px;
    font-size: 30px;
    line-height: normal;
  }

  .service-card__text {
    margin-top: 30px; /* FIX: 30px on mobile per Figma */
    margin-bottom: 20px; /* FIX: 20px on mobile per Figma */
    font-size: 16px;
    line-height: normal;
  }

  .service-card__tags {
    gap: 8px;
    margin-top: 8px;
  }

  .service-tag {
    min-height: 28px;
    font-size: 12px;
    line-height: normal;
  }

  .team-cta {
    margin-top: 34px;
  }

  .team-cta::after {
    right: -78px;
    top: auto;
    bottom: -118px;
    width: 280px;
    height: 280px;
    box-shadow:
      inset 0 0 0 58px transparent,
      0 0 0 32px rgba(255, 255, 255, 0.06),
      0 0 0 64px rgba(255, 255, 255, 0.04);
  }

  .team-cta__inner {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 0;
    min-height: 304px;
    padding-top: 26px;
    padding-bottom: 70px;
  }

  .team-cta__copy .section-title {
    font-size: 30px;
    line-height: normal;
  }

  .team-cta__text {
    max-width: 300px;
    padding-top: 0;
    padding-bottom: 0;
    font-size: 16px;
  }

  .project-cta {
    padding: 50px 0; /* FIX: 50px per Figma */
  }

  .project-cta__inner .section-title {
    max-width: unset;
    font-size: 30px;
    line-height: normal;
  }

  .project-cta__text {
    max-width: 335px;
    margin-top: 18px;
  }

  .project-cta__button {
    width: 100%;
    max-width: 384px;
    margin-top: 30px;
    font-size: 16px; /* FIX: 16px per Figma */
  }

  .site-footer__inner {
    grid-template-columns: 1fr;
    justify-items: start;
    align-items: start;
    gap: 30px; /* FIX: even 30px spacing per Figma */
    min-height: auto;
    padding: 50px 15px;
  }

  .site-footer__logo img {
    width: 93px;
    height: 93px;
  }

  .site-footer__nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 15px 25px; /* FIX: even spacing per Figma */
    font-size: 14px; /* FIX: 14px per Figma */
  }

  .site-footer__copyright {
    grid-column: auto;
    justify-self: start;
    font-size: 14px; /* FIX: 14px per Figma */
  }

  .site-footer__socials {
    justify-self: start;
  }

  .site-footer__socials img {
    width: 30px;
    height: 30px;
  }
}
