/* ================================================================
   NIANE TECHNOLOGIES — style.css
   Design: Figma (1728px base), scaled with clamp() and responsive
================================================================ */

/* ----------------------------------------------------------------
   1. CUSTOM PROPERTIES
---------------------------------------------------------------- */
:root {
  /* Brand colours */
  --c-primary:        #1A098E;
  --c-primary-deep:   #090047;
  --c-blue-accent:    #184ef6;
  --c-footer-bg:      #05090f;

  /* Overlays */
  --c-about-overlay:  rgba(7, 2, 37, 0.83);

  /* Accent gradient */
  --g-accent:         linear-gradient(135deg, rgb(0, 229, 160) 0%, rgb(79, 142, 255) 100%);

  /* Light backgrounds */
  --c-hero-bg:        #edecec;
  --c-card-bg:        #f7f7f7;
  --c-card-bg-2:      #f8f8f8;
  --c-input-bg:       #f1f1f1;

  /* Text */
  --c-text-dark:      #313131;
  --c-text-darker:    #1e1e1e;
  --c-text-muted:     rgba(69, 69, 69, 0.52);
  --c-text-muted-2:   rgba(44, 44, 45, 0.52);
  --c-text-muted-3:   rgba(58, 58, 58, 0.52);
  --c-text-faq-sub:   rgba(237, 242, 255, 0.52);
  --c-text-step:      rgba(75, 75, 77, 0.52);
  --c-text-date:      rgba(58, 74, 116, 0.25);

  /* Borders */
  --c-border-input:   rgba(96, 96, 96, 0.1);
  --c-border-faq:     rgba(255, 255, 255, 0.06);

  /* Spacing */
  --section-pad-v:    clamp(56px, 8vw, 120px);
  --container-pad:    clamp(16px, 4vw, 80px);

  /* Radius */
  --r-card:           18px;
  --r-input:          14px;
  --r-btn:            100px;
}

/* ----------------------------------------------------------------
   2. RESET & BASE
---------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: 'Poppins', sans-serif;
  color: var(--c-text-dark);
  background: #fff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

ul {
  list-style: none;
}

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* ----------------------------------------------------------------
   3. UTILITY CLASSES
---------------------------------------------------------------- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--container-pad);
}

.w-full {
  width: 100%;
}

.max-w-1499px,
.section-shell {
  width: 100%;
  max-width: 1499px;
  margin-inline: auto;
  padding-inline: var(--container-pad);
  box-sizing: border-box;
}

/* Gradient text */
.text-gradient {
  background: var(--g-accent);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline;
}

/* Section labels */
.section-label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: clamp(24px, 3vw, 48px);
}

.section-label--centered {
  justify-content: center;
}

.section-label--light .section-label__text {
  color: rgba(255, 255, 255, 0.7);
}

.section-label__text {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-variation-settings: 'opsz' 14, 'wdth' 100;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 1.54px;
  text-transform: uppercase;
  color: var(--c-primary);
}

.section-label__line {
  display: inline-block;
  width: 32px;
  height: 1px;
  background: rgba(255, 255, 255, 0.4);
}

/* ----------------------------------------------------------------
   4. BUTTONS
---------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
  font-size: 15px;
  border-radius: var(--r-btn);
  transition: background 0.3s, color 0.3s, box-shadow 0.3s, border-color 0.3s, transform 0.3s;
  white-space: nowrap;
  cursor: pointer;
  text-decoration: none;
}

/* Primary — navy fill */
.btn--primary {
  background: var(--c-primary);
  color: #fff;
  padding: 12px 24px;
}

.btn--primary:hover {
  background: #2a15b0;
  box-shadow: 0 4px 20px rgba(26, 9, 142, 0.35);
  transform: translateY(-2px);
}

/* Outline — navy border */
.btn--outline {
  background: transparent;
  border: 2px solid var(--c-primary);
  color: var(--c-primary);
  padding: 6px 10px;
  font-size: 16px;
  font-weight: 500;
  border-radius: 12px;
  min-width: 191px;
  height: 61px;
  justify-content: center;
}

.btn--outline:hover {
  background: var(--c-primary);
  color: #fff;
}

.btn--outline svg path {
  transition: fill 0.3s;
}

.btn--outline:hover svg path {
  fill: #fff;
}

/* CTA — white pill with gray arrow box */
.btn--cta {
  background: #fff;
  color: #a9a6a6;
  padding: 9px;
  font-size: 15px;
  font-weight: 500;
  border-radius: 13px;
}

.btn--cta:hover {
  box-shadow: 0 6px 24px rgba(0,0,0,0.16);
  transform: translateY(-2px);
}

.btn--cta:hover .btn__arrow-box {
  background: var(--c-primary);
}

.btn--cta:hover .btn__arrow-box svg path {
  stroke: #fff;
}

/* Light — white fill on dark bg */
.btn--light {
  background: #fff;
  color: var(--c-primary);
  padding: 6px 10px;
  font-size: 16px;
  font-weight: 500;
  border-radius: 12px;
  min-width: 191px;
  height: 61px;
  justify-content: center;
  gap: 10px;
}

.btn--light:hover {
  background: rgba(255,255,255,0.9);
}

.btn__arrow-box {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: #E6E6E6;
  border-radius: 6px;
  flex-shrink: 0;
}

.btn__arrow-box--white {
  /* background: rgba(255,255,255,0.15); */
}

.btn--submit {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Poppins', sans-serif;
  font-size: 15px;
  white-space: nowrap;
  cursor: pointer;
  text-decoration: none;
  color: #fff;
  padding: 18px 16px;
  background: var(--c-primary);
  border-radius: 13px;
}

/* ----------------------------------------------------------------
   5. FADE-IN ANIMATIONS (IntersectionObserver)
---------------------------------------------------------------- */
.fade-in {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ----------------------------------------------------------------
   6. NAVBAR
---------------------------------------------------------------- */
.navbar {
  position: sticky;
  top: 16px;
  z-index: 1000;
  display: flex;
  justify-content: center;
  pointer-events: none;
  padding: 0 clamp(12px, 2.5vw, 32px);
}

.navbar__inner {
  pointer-events: all;
  display: flex;
  align-items: center;
  gap: clamp(10px, 2vw, 16px);
  background: #fff;
  border-radius: 24px;
  padding: clamp(12px, 2vw, 20px) clamp(20px, 4vw, 58px);
  width: 100%;
  max-width: 1100px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  transition: background 0.3s, box-shadow 0.3s;
  position: relative;
}

.navbar--scrolled .navbar__inner {
  background: rgba(240, 240, 240, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 32px rgba(26, 9, 142, 0.10), 0 1px 4px rgba(0,0,0,0.06);
}

.navbar__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.navbar__logo-img {
  height: clamp(32px, 4vw, 40px);
  width: auto;
  object-fit: contain;
}

.navbar__cta-mobile {
  display: none;
}

/* Center pill nav */
.navbar__nav {
  flex: 1;
  display: flex;
  justify-content: center;
}

.navbar__list {
  display: flex;
  align-items: center;
  gap: 4px;
  background: #E7E7E7;
  border-radius: 18px;
  padding: 15px 16px;
}

.navbar__link {
  font-size: 14px;
  font-weight: 500;
  color: #A9A6A6;
  padding: 8px;
  border-radius: 12.25px;
  transition: background 0.2s, color 0.2s;
}

.navbar__link:hover {
  color: var(--c-primary);
}

.navbar__link--active {
  background: var(--c-primary);
  color: #fff !important;
  font-weight: 500;
}

.navbar__cta {
  flex-shrink: 0;
  font-size: 14px;
  padding: 9px 20px;
  border-radius: 15px;
}

/* Burger */
.navbar__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
  cursor: pointer;
}

.navbar__burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--c-text-dark);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.navbar__burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.navbar__burger.open span:nth-child(2) { opacity: 0; }
.navbar__burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

body.menu-open {
  overflow: hidden;
}

/* ----------------------------------------------------------------
   7. HERO
---------------------------------------------------------------- */
.hero {
  position: relative;
  background: var(--c-hero-bg);
  min-height: clamp(600px, 70vw, 1000px);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  text-align: center;
  margin-top: -96px;
  padding: calc(72px + clamp(32px, 4vw, 72px)) var(--container-pad) clamp(60px, 8vw, 120px);
}

.hero__bg-pattern {
  position: absolute;
  inset: 0;
  background-image: url('../assets/img/hero-pattern.png');
  background-size: cover;
  background-position: center;
  pointer-events: none;
}

.hero__ellipse {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
}

.hero__ellipse--left {
  width: 700px;
  height: 900px;
  bottom: -200px;
  left: -200px;
  background: rgba(26, 9, 142, 0.35);
}

.hero__ellipse--right {
  width: 800px;
  height: 1000px;
  top: -300px;
  right: -250px;
  background: rgba(26, 9, 142, 0.3);
}

.hero__content {
  position: relative;
  z-index: 1;
  /* max-width: 900px; */
  margin: 0 auto;
}

.hero__title {
  font-size: clamp(40px, 6vw, 103px);
  max-width: 1208px;
  margin: 0 auto;
  font-family: 'Poppins', serif;
  letter-spacing: 1.54px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.06em;
  line-height: 1.05;
  /* color: var(--c-primary); */
}

.hero__title-line1 {
  font-weight: 600;
}

.hero__title-line1,
.hero__title-line2 {
  display: block;
  line-height: 1;
}

.hero__title-line2 {
  display: block;
  font-weight: 400;
}

.hero__title-phrase {
  display: inline;
}

/* .hero__title-normal {
  font-family: 'Poppins', sans-serif;
  font-weight: 400;
  font-size: clamp(34px, 5.5vw, 89px);
  color: var(--c-text-darker);
} */

.hero__title-accent {
  font-family: 'Source Serif 4', sans-serif;
  font-size: clamp(40px, 6vw, 103px);
  color: var(--c-primary);
}

.hero__subtitle {
  font-size: clamp(15px, 1.5vw, 23.74px);
  font-weight: 400;
  color: var(--c-text-darker);
  max-width: 814px;
  margin: 16px auto 31px;
  line-height: 1.6;
}

.hero__trust {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  margin-top: clamp(20px, 4vw, 52px);
}

.hero__trust-label {
  font-family: 'Poppins', sans-serif;
  font-style: italic;
  font-weight: 500;
  font-size: clamp(14px, 1.2vw, 23.74px);
  color: #000;
}

.hero__trust-line{
  height: 4px;
  width: 53px;
  background: var(--c-primary);
  border-radius: 4px;
  margin-bottom: 18px;
}
.hero__partners {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(22px, 3vw, 46px);
  flex-wrap: wrap;
  max-width: 1112px;
}

.hero__partner-logo {
  height: auto;
  width: auto;
  max-height: clamp(34px, 4.2vw, 58px);
  max-width: clamp(88px, 13vw, 170px);
  object-fit: contain;
  opacity: 0.85;
  filter: grayscale(100%);
  transition: opacity 0.3s, filter 0.3s;
}

.hero__partner-logo:hover {
  opacity: 1;
  filter: grayscale(0%);
}

/* ----------------------------------------------------------------
   8. SERVICES
---------------------------------------------------------------- */
.services {
  padding: var(--section-pad-v) 0;
  background: #fff;
}

.services .section-label {
  margin-bottom: 16px;
}

.services__heading {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-variation-settings: 'opsz' 14, 'wdth' 100;
  font-weight: 600;
  font-size: clamp(36px, 4.5vw, 60px);
  color: #36289c;
  line-height: 1.08;
  letter-spacing: -1.5px;
  text-align: center;
  margin-bottom: 16px;
}

.services__subtitle {
  font-family: 'Poppins', sans-serif;
  font-weight: 300;
  font-size: clamp(15px, 1.3vw, 18px);
  color: rgba(55, 55, 55, 0.52);
  text-align: center;
  max-width: 554px;
  margin: 0 auto clamp(48px, 5vw, 72px);
  line-height: 1.75;
}

.services__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr) minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr) minmax(0, 1fr);
  gap: 23px;
  align-items: stretch;
}

.service-card--large {
  grid-column: 1;
  grid-row: 1 / -1;
}

.services__column {
  display: grid;
  grid-template-rows: minmax(0, 1fr) minmax(0, 1fr);
  gap: 23px;
  min-height: 0;
}

.services__grid > .services__column:nth-child(2) {
  grid-column: 2;
  grid-row: 1 / -1;
}

.services__grid > .services__column:nth-child(3) {
  grid-column: 3;
  grid-row: 1 / -1;
}

/* Service cards */
.service-card {
  background: var(--c-card-bg);
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.service-card__image-wrap {
  width: 100%;
  overflow: hidden;
  flex-shrink: 0;
  border-radius: 18px;
}

.service-card__image-wrap--large {
  height: clamp(200px, 24vw, 271px);
}

.service-card__image-wrap--small {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: 100%;
  min-height: clamp(200px, 22vw, 320px);
  overflow: hidden;
}

.service-card--small {
  height: 100%;
  background: transparent;
  border-radius: 18px;
  overflow: hidden;
}

.service-card--small .service-card__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-card--small .service-card__image-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    180deg,
    rgba(247, 247, 247, 0.05) 0%,
    rgba(247, 247, 247, 0.45) 38%,
    #f7f7f7 72%
  );
  pointer-events: none;
}

.service-card__image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(247, 247, 247, 0.27) 4.57%, #F7F7F7 44.86%);
  pointer-events: none;
}

.service-card__body {
  padding: 23px 32px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.service-card--small .service-card__body {
  position: relative;
  z-index: 2;
  flex: 0 0 auto;
  padding: clamp(16px, 2vw, 24px);
  background: transparent;
}

.service-card__tag {
  font-family: 'Space Mono', monospace;
  font-weight: 700;
  font-size: 10px;
  color: var(--c-blue-accent);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.service-card__title {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-variation-settings: 'opsz' 14, 'wdth' 100;
  font-weight: 600;
  font-size: clamp(16px, 1.6vw, 22px);
  color: var(--c-primary);
  line-height: 1.3;
}

.service-card--large .service-card__title {
  font-size: clamp(18px, 1.8vw, 24px);
}

.service-card__desc {
  font-size: 14px;
  color: #313131;
  line-height: 1.7;
}

.service-card--small .service-card__desc {
  flex: 0 0 auto;
}

.service-card__footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin-top: auto;
  padding-top: 8px;
}

.service-card--small .service-card__footer {
  justify-content: flex-start;
  margin-top: 12px;
  padding-top: 0;
}

.service-card__techs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 4px 0 12px;
}

.tech-pill {
  font-family: 'Space Mono', monospace;
  font-size: 12px;
  font-weight: 400;
  padding: 4px 10px;
  border-radius: 6px;
  line-height: 1.65;
}

.tech-pill--green {
  background: rgba(0, 229, 160, 0.10);
  border: 1px solid rgba(0, 229, 160, 0.15);
  color: #080808;
}

.tech-pill--blue {
  background: rgba(79, 142, 255, 0.10);
  border: 1px solid rgba(79, 142, 255, 0.15);
  color: #000;
}

.btn--outline-compact {
  min-width: 0;
  width: 100%;
  max-width: 191px;
  height: auto;
  min-height: 52px;
  padding: 10px 14px;
  font-size: 15px;
}

/* ----------------------------------------------------------------
   9. ABOUT
---------------------------------------------------------------- */
.about {
  position: relative;
  background-image: url('../assets/img/about-bg.png');
  background-size: cover;
  background-position: center;
  padding: 47px 0 48px;
  overflow: hidden;
}

.about__overlay {
  position: absolute;
  inset: 0;
  background: var(--c-about-overlay);
  z-index: 0;
}

.about__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(784px, 1fr) minmax(0, 516px);
  gap: 11px;
  align-items: stretch;
}

.about__right {
  display: flex;
  min-height: 0;
  max-width: 616px;
  width: 100%;
  justify-self: end;
}

.about__left {
  padding: 0;
}

.about__left .section-label {
  margin-bottom: 24px;
}

.about__title {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-variation-settings: 'opsz' 14, 'wdth' 100;
  font-weight: 600;
  font-size: clamp(36px, 5vw, 76px);
  color: #fff;
  line-height: 1.1;
  margin-bottom: clamp(20px, 2.5vw, 32px);
}

.about__desc {
  font-size: clamp(14px, 1.4vw, 18px);
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.7;
  margin-bottom: 16px;
}

.about__desc strong {
  color: #fff;
  font-weight: 600;
}

.about__title .text-gradient {
  font-weight: 800;
}

.about__left .btn--light {
  margin-top: 16px;
}

.about__laptop-wrap {
  flex: 1;
  width: 100%;
  max-width: 616px;
  min-height: 100%;
  border-radius: 37px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.05);
}

.about__laptop {
  width: 100%;
  max-width: 616px;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 32px;
  display: block;
}

/* ----------------------------------------------------------------
   10. METHODOLOGY
---------------------------------------------------------------- */
.methodology {
  position: relative;
  padding: var(--section-pad-v) 0;
  background-color: #fff;
  background-image: url('../assets/img/bg-methodology.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  text-align: center;
  overflow: hidden;
}

.methodology .section-label__text {
  color: var(--c-primary);
}

.methodology__title {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-variation-settings: 'opsz' 14, 'wdth' 100;
  font-weight: 800;
  font-size: clamp(36px, 5vw, 60px);
  color: var(--c-primary-deep);
  line-height: 1.15;
  margin-bottom: 16px;
}

.methodology__subtitle {
  font-size: clamp(15px, 1.3vw, 18px);
  font-weight: 300;
  color: rgba(49, 49, 49, 0.68);
  max-width: 600px;
  margin: 0 auto clamp(48px, 6vw, 80px);
  line-height: 1.75;
}

.methodology__steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(24px, 4vw, 60px);
}

.methodology__line {
  position: absolute;
  top: 76px;
  left: calc(100% / 6);
  right: calc(100% / 6);
  height: 1px;
  background: rgba(26, 9, 142, 0.18);
  z-index: 0;
}

.methodology__step {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 48px 32px 40px;
}

.step__circle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #0f1a2e;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.step__num {
  font-family: 'Space Mono', monospace;
  font-weight: 700;
  font-size: 14px;
  color: #fff;
}

.step__title {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-variation-settings: 'opsz' 14, 'wdth' 100;
  font-weight: 600;
  font-size: clamp(15px, 1.3vw, 18px);
  color: #1A098E;
  line-height: 1.3;
}

.step__desc {
  font-size: 14px;
  color: #3A3A3A85;
  line-height: 1.7;
  max-width: 320px;
  margin: 0 auto;
}

/* ----------------------------------------------------------------
   11. PROJECTS
---------------------------------------------------------------- */
.projects {
  padding: var(--section-pad-v) 0;
  background: #fff;
}

.projects__title {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-variation-settings: 'opsz' 14, 'wdth' 100;
  font-weight: 800;
  font-size: clamp(36px, 4.5vw, 60px);
  color: var(--c-primary);
  text-align: center;
  margin-bottom: 16px;
  line-height: 1.08;
  letter-spacing: -1.5px;
}

.projects__subtitle {
  font-family: 'Poppins', sans-serif;
  font-weight: 300;
  font-size: clamp(15px, 1.3vw, 18px);
  color: rgba(75, 75, 77, 0.52);
  text-align: center;
  max-width: 600px;
  margin: 0 auto clamp(40px, 5vw, 64px);
  line-height: 1.75;
}

.projects__grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  column-gap: clamp(20px, 3.5vw, 51px);
  row-gap: clamp(20px, 2.5vw, 38px);
  isolation: isolate;
}

.projects__grid::before {
  content: '';
  position: absolute;
  left: -20%;
  top: 50%;
  transform: translateY(-50%);
  width: clamp(220px, 34vw, 480px);
  height: 100%;
  background-image: url('../assets/img/bg-realisations.png');
  background-repeat: no-repeat;
  background-position: left center;
  background-size: contain;
  mix-blend-mode: lighten;
  pointer-events: none;
  z-index: 0;
}

.project-card {
  position: relative;
  z-index: 1;
  background: var(--c-card-bg-2);
  border-radius: var(--r-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.project-card__image-wrap {
  position: relative;
  height: clamp(140px, 14vw, 220px);
  overflow: hidden;
}

.project-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-card__image-fade {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(to bottom, transparent, var(--c-card-bg-2));
  pointer-events: none;
}

.project-card__body {
  padding: clamp(14px, 1.8vw, 24px);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.project-card__date {
  font-family: 'Space Mono', monospace;
  font-weight: 700;
  font-size: 10px;
  color: var(--c-text-date);
  letter-spacing: 0.5px;
}

.project-card__title {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-variation-settings: 'opsz' 14, 'wdth' 100;
  font-weight: 600;
  font-size: clamp(14px, 1.3vw, 18px);
  color: var(--c-primary);
  line-height: 1.3;
}

.project-card__desc {
  font-size: clamp(12px, 0.95vw, 14px);
  color: var(--c-text-muted-2);
  line-height: 1.6;
}

/* ----------------------------------------------------------------
   12. FAQ
---------------------------------------------------------------- */
.faq {
  background: var(--c-primary-deep);
  padding: var(--section-pad-v) clamp(24px, 18vw, 308px);
}

.faq__inner {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
  max-width: none;
  padding: 0;
}

.faq__title {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-variation-settings: 'opsz' 14, 'wdth' 100;
  font-weight: 700;
  font-size: clamp(28px, 3.5vw, 44px);
  color: #fff;
  line-height: 1.2;
  margin: 20px 0 16px;
}

.faq__subtitle {
  font-size: clamp(14px, 1.2vw, 16px);
  color: var(--c-text-faq-sub);
  line-height: 1.6;
  margin-bottom: 32px;
}

.faq__cta {
  display: inline-flex;
}

/* Accordion */
.faq__list {
  display: flex;
  flex-direction: column;
}

.faq__item {
  border-bottom: 1px solid var(--c-border-faq);
}

.faq__item:first-child {
  border-top: 1px solid var(--c-border-faq);
}

.faq__question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 0;
  font-family: 'Bricolage Grotesque', sans-serif;
  font-variation-settings: 'opsz' 14, 'wdth' 100;
  font-weight: 500;
  font-size: clamp(14px, 1.2vw, 17px);
  color: #fff;
  text-align: left;
  cursor: pointer;
  background: none;
  border: none;
  transition: color 0.2s;
}

.faq__question:hover {
  color: rgba(255,255,255,0.8);
}

.faq__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.4);
  font-size: 20px;
  color: #fff;
  flex-shrink: 0;
  transition: transform 0.3s, background 0.3s;
  line-height: 1;
}

.faq__question[aria-expanded="true"] .faq__icon {
  transform: rotate(45deg);
  background: rgba(255,255,255,0.1);
}

.faq__answer {
  padding: 0 0 20px 0;
  font-size: clamp(13px, 1.1vw, 15px);
  color: var(--c-text-faq-sub);
  line-height: 1.7;
}

.faq__answer[hidden] {
  display: none;
}

/* ----------------------------------------------------------------
   13. CONTACT
---------------------------------------------------------------- */
.contact {
  padding: var(--section-pad-v) 0;
  background: #fff;
}

.contact__title {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-variation-settings: 'opsz' 14, 'wdth' 100;
  font-weight: 700;
  font-size: clamp(28px, 3.5vw, 44px);
  color: var(--c-primary);
  text-align: center;
  margin-bottom: clamp(40px, 5vw, 64px);
}

.contact__inner {
  max-width: 100%;
}

.contact__upper {
  display: grid;
  grid-template-columns: 1fr 0.8fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: stretch;
  margin-bottom: 16px;
}

.contact__fields {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.contact__photo-wrap {
  display: flex;
  align-self: stretch;
  min-height: 100%;
  height: 100%;
}

/* Form */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-field--full {
  grid-column: 1 / -1;
  margin-bottom: 16px;
}

.form-field--trap {
  display: none;
}

.form-label {
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
  font-size: 13px;
  color: var(--c-text-muted);
}

.form-input {
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  color: var(--c-text-dark);
  background: var(--c-input-bg);
  border: 1px solid var(--c-border-input);
  border-radius: var(--r-input);
  padding: 14px 16px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  width: 100%;
}

.form-input:focus {
  border-color: var(--c-primary);
  box-shadow: 0 0 0 3px rgba(26, 9, 142, 0.08);
}

.form-input.is-invalid {
  border-color: #d92d20;
  box-shadow: 0 0 0 3px rgba(217, 45, 32, 0.08);
}

.form-input::placeholder {
  color: rgba(49,49,49,0.35);
}

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

/* Service tags */
.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}

.service-tag {
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  font-weight: 400;
  color: var(--c-text-dark);
  background: #fff;
  border: 1px solid var(--c-border-input);
  border-radius: 999px;
  padding: 8px 16px;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.service-tag:hover,
.service-tag.active {
  background: var(--c-primary);
  border-color: var(--c-primary);
  color: #fff;
}

.form-submit {
  margin-top: 8px;
}

.form-field--captcha {
  margin-bottom: 12px;
}

.captcha-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.captcha-question {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 16px;
  border-radius: var(--r-input);
  background: rgba(26, 9, 142, 0.08);
  color: var(--c-primary);
  font-family: 'Space Mono', monospace;
  font-size: 14px;
  font-weight: 700;
}

.captcha-input {
  max-width: 160px;
}

.form-feedback {
  min-height: 22px;
  margin-bottom: 12px;
  font-size: 13px;
  line-height: 1.5;
  color: rgba(49, 49, 49, 0.68);
}

.form-feedback--error {
  color: #b42318;
}

.form-feedback--success {
  color: var(--c-primary);
}

.btn--submit:disabled {
  cursor: not-allowed;
  opacity: 0.75;
}


/* Team photo — hauteur = colonne gauche (contact__fields) */
.contact__photo-container {
  flex: 1;
  display: flex;
  width: 100%;
  height: 100%;
  min-height: 100%;
  background: #f6f6f6;
  border-radius: 47px;
  padding: 10px;
  overflow: hidden;
}

.contact__photo {
  width: 100%;
  height: 100%;
  min-height: 100%;
  border-radius: 32px;
  object-fit: cover;
  object-position: center top;
  display: block;
}

/* ----------------------------------------------------------------
   14. FOOTER
---------------------------------------------------------------- */
.footer {
  background: var(--c-footer-bg);
}

.footer__top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: clamp(24px, 3vw, 48px);
  padding-top: clamp(48px, 6vw, 80px);
  padding-bottom: clamp(48px, 6vw, 80px);
}

.footer__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

.footer__logo-img {
  height: 43px;
  width: auto;
  object-fit: contain;
}

.footer__desc {
  font-size: clamp(12px, 1vw, 14px);
  color: var(--c-text-faq-sub);
  line-height: 1.7;
  margin-bottom: 24px;
  max-width: 320px;
}

.footer__social {
  display: flex;
  gap: 10px;
}

.footer__social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 35px;
  height: 35px;
  border: 1px solid #D9D9D9;
  border-radius: 8px;
  opacity: 0.7;
  transition: opacity 0.2s;
  overflow: hidden;
}

.footer__social-link:hover {
  opacity: 1;
}

.footer__social-link img {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.footer__col-title {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 14px;
  color: #fff;
  margin-bottom: 20px;
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer__link {
  font-size: clamp(12px, 1vw, 14px);
  color: var(--c-text-faq-sub);
  transition: color 0.2s;
}

.footer__link:hover {
  color: rgba(237, 242, 255, 0.9);
}

.footer__contact-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 24px;
}

.footer__contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: clamp(12px, 1vw, 13px);
  color: var(--c-text-faq-sub);
  line-height: 1.5;
}

.footer__contact-icon {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  margin-top: 2px;
}

/* Footer CTA button */
.footer__cta {
  font-size: 15px;
  padding: 9px 21px 9px 9px;
}

.footer__cta .btn__arrow-box {
  /* width: 28px;
  height: 28px; */
}

.footer__cta .btn__arrow-icon {
  fill: #000;
  transition: fill 0.3s;
}

.footer__cta:hover .btn__arrow-icon {
  fill: #fff;
}

/* Bottom bar */
.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 20px;
  padding-bottom: 24px;
  border-top: 1px solid rgba(255,255,255,0.06);
  flex-wrap: wrap;
  gap: 12px;
}

.footer__copy {
  font-size: 12px;
  color: var(--c-text-faq-sub);
}

.footer__legal {
  display: flex;
  gap: 24px;
}

.footer__legal-link {
  font-size: 12px;
  color: var(--c-text-faq-sub);
  transition: color 0.2s;
}

.footer__legal-link:hover {
  color: rgba(237, 242, 255, 0.9);
}

/* =================================================================
   15. RESPONSIVE — système mobile-first moderne
   Breakpoints : 1280 | 1200 | 1024 | 992 | 768 | 576 | 400
================================================================ */

/* —— Large laptop (≤ 1280px) —— */
@media (max-width: 1280px) {
  .about__inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, 616px);
    gap: clamp(24px, 5vw, 80px);
  }

  .footer__top {
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  }
}

/* —— Desktop compact (≤ 1200px) —— */
@media (max-width: 1200px) {
  .navbar__inner {
    padding: 14px 24px;
  }

  .navbar__list {
    padding: 12px 14px;
  }

  .navbar__link {
    font-size: 13px;
    padding: 7px 10px;
  }

  .navbar__cta {
    font-size: 13px;
    padding: 8px 16px;
  }

  .hero__ellipse--left {
    width: 480px;
    height: 600px;
    left: -180px;
    bottom: -160px;
  }

  .hero__ellipse--right {
    width: 520px;
    height: 680px;
    right: -180px;
    top: -220px;
  }
}

/* —— Tablet landscape (≤ 1024px) —— */
@media (max-width: 1024px) {
  :root {
    --section-pad-v: clamp(48px, 7vw, 88px);
    --container-pad: clamp(20px, 4vw, 40px);
  }

  .services__grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
    gap: 18px;
  }

  .service-card--large {
    grid-column: 1 / -1;
    grid-row: auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .service-card--large .service-card__image-wrap--large {
    height: 100%;
    min-height: 240px;
  }

  .services__grid > .services__column:nth-child(2),
  .services__grid > .services__column:nth-child(3) {
    grid-column: auto;
    grid-row: auto;
  }

  .services__column {
    gap: 18px;
  }

  .about__inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .about__left {
    padding: 0;
  }

  .about__right {
    max-width: 100%;
    justify-self: stretch;
    min-height: clamp(260px, 42vw, 380px);
  }

  .footer__top {
    grid-template-columns: 1fr 1fr;
    row-gap: 36px;
  }

  .footer__col--brand {
    grid-column: 1 / -1;
  }

  .faq {
    padding: var(--section-pad-v) clamp(24px, 8vw, 80px);
  }
}

/* —— Tablet (≤ 992px) —— */
@media (max-width: 992px) {
  /* Navbar mobile */
  .navbar {
    top: 12px;
    padding: 0 16px;
  }

  .navbar__inner {
    padding: 12px 16px;
    border-radius: 20px;
  }

  .navbar__nav {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    flex: none;
    flex-direction: column;
    align-items: stretch;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 12px 40px rgba(26, 9, 142, 0.12), 0 4px 16px rgba(0, 0, 0, 0.08);
    padding: 12px;
    z-index: 999;
  }

  .navbar__nav.open {
    display: flex;
  }

  .navbar__list {
    flex-direction: column;
    width: 100%;
    background: #e7e7e7;
    border-radius: 14px;
    padding: 8px;
    gap: 4px;
  }

  .navbar__link {
    display: block;
    width: 100%;
    padding: 12px 16px;
    text-align: center;
    border-radius: 10px;
  }

  .navbar__burger {
    display: flex;
    margin-left: auto;
    flex-shrink: 0;
  }

  .navbar__cta {
    display: none;
  }

  .navbar__cta-mobile {
    display: inline-flex;
    width: 100%;
    justify-content: center;
    margin-top: 8px;
    font-size: 14px;
    padding: 12px 20px;
    border-radius: 15px;
  }

  /* Hero */
  .hero {
    min-height: auto;
    margin-top: -80px;
    padding: calc(64px + 24px) var(--container-pad) clamp(48px, 8vw, 72px);
  }

  .hero__ellipse--left,
  .hero__ellipse--right {
    opacity: 0.55;
  }

  .hero__title {
    font-size: clamp(36px, 8vw, 64px);
    margin-bottom: clamp(1.25rem, 4vw, 2rem);
  }

  .hero__title-accent {
    font-size: clamp(36px, 8vw, 64px);
  }

  .hero__subtitle {
    margin-bottom: clamp(1.5rem, 5vw, 2.25rem);
  }


  .hero__trust {
    margin-top: clamp(28px, 5vw, 48px);
    gap: 20px;
  }

  /* About */
  .about {
    padding-block: clamp(32px, 6vw, 47px);
  }

  .about__right {
    order: -1;
  }

  .about__title {
    font-size: clamp(32px, 7vw, 52px);
  }

  /* Methodology */
  .methodology__steps {
    grid-template-columns: 1fr;
    gap: 32px;
    max-width: 420px;
    margin: 0 auto;
  }

  .methodology__line {
    display: none;
  }

  .methodology__step {
    padding: 32px 20px 28px;
  }

  /* Projects */
  .projects__grid {
    grid-template-columns: repeat(2, 1fr);
    column-gap: 20px;
    row-gap: 24px;
  }

  .projects__grid::before {
    width: clamp(180px, 28vw, 360px);
    height: 80%;
    top: 0;
    transform: none;
    background-position: left top;
  }

  /* FAQ */
  .faq__inner {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 0;
  }

  .faq__left {
    text-align: center;
  }

  .faq__cta {
    margin: 0 auto;
  }

  /* Contact */
  .contact__upper {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .contact__photo-wrap {
    order: -1;
    min-height: clamp(260px, 42vw, 380px);
    height: auto;
  }

  .contact__photo-container,
  .contact__photo {
    min-height: clamp(260px, 42vw, 380px);
  }
}

/* —— Mobile (≤ 768px) —— */
@media (max-width: 768px) {
  :root {
    --section-pad-v: clamp(40px, 10vw, 64px);
    --container-pad: clamp(16px, 4vw, 24px);
  }

  .section-label {
    margin-bottom: clamp(16px, 4vw, 28px);
  }

  /* Navbar */
  .navbar {
    top: 8px;
    padding: 0 12px;
  }

  .navbar__inner {
    padding: 10px 14px;
    gap: 10px;
    border-radius: 18px;
  }

  .navbar__logo-img {
    height: 32px;
  }

  /* Hero */
  .hero {
    margin-top: -72px;
    padding-top: calc(52px + 20px);
    padding-bottom: 48px;
  }

  .hero__ellipse--left,
  .hero__ellipse--right {
    display: none;
  }

  .hero__content {
    max-width: 22rem;
    margin-inline: auto;
  }

  .hero__title {
    font-size: clamp(1.875rem, 8.2vw, 2.625rem);
    gap: 0.04em;
    line-height: 1.05;
    letter-spacing: 0.02em;
    text-wrap: balance;
    margin-bottom: 1.5rem;
  }

  .hero__title-accent {
    font-size: 1.05em;
  }

  .hero__subtitle {
    font-size: clamp(0.875rem, 3.6vw, 1.0625rem);
    line-height: 1.55;
    max-width: 20rem;
    margin-bottom: 1.75rem;
  }

  .hero__partners {
    gap: 20px 24px;
  }

  .hero__partner-logo {
    max-height: 36px;
    max-width: 120px;
  }

  /* Services */
  .services__heading,
  .projects__title,
  .methodology__title {
    font-size: clamp(28px, 7vw, 40px);
    letter-spacing: -0.5px;
  }

  .services__subtitle,
  .projects__subtitle,
  .methodology__subtitle {
    margin-bottom: clamp(32px, 6vw, 48px);
  }

  .services__grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    gap: 16px;
  }

  .service-card--large {
    grid-column: auto;
    grid-row: auto;
    display: flex;
    flex-direction: column;
  }

  .service-card--large .service-card__image-wrap--large {
    height: clamp(180px, 42vw, 260px);
  }

  .services__column {
    grid-template-rows: auto;
    gap: 16px;
  }

  .service-card__image-wrap--small {
    min-height: clamp(220px, 55vw, 300px);
  }

  .service-card__body {
    padding: clamp(14px, 3vw, 20px);
  }

  .btn--outline {
    min-width: 0;
    width: 100%;
    max-width: 100%;
    height: auto;
    min-height: 52px;
    font-size: 15px;
  }

  /* About */
  .about {
    padding-block: 40px;
  }

  .about__title {
    font-size: clamp(28px, 8vw, 40px);
  }

  .about__desc {
    font-size: 15px;
  }

  .about__left .btn--light {
    width: 100%;
    justify-content: center;
  }

  /* Projects */
  .projects__grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .projects__grid::before {
    display: none;
  }

  .project-card__image-wrap {
    height: clamp(160px, 40vw, 200px);
  }

  /* FAQ */
  .faq {
    padding: var(--section-pad-v) var(--container-pad);
  }

  .faq__title {
    font-size: clamp(24px, 6vw, 32px);
  }

  .faq__question {
    padding: 18px 0;
    font-size: 15px;
  }

  /* Contact */
  .contact__title {
    font-size: clamp(24px, 6vw, 32px);
    margin-bottom: clamp(28px, 5vw, 40px);
  }

  .form-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .form-field--full {
    margin-bottom: 12px;
  }

  .service-tags {
    gap: 8px;
  }

  .service-tag {
    font-size: 12px;
    padding: 8px 12px;
  }

  .form-textarea {
    min-height: 120px;
  }

  .btn--submit {
    width: 100%;
    justify-content: center;
  }

  .contact__photo-wrap {
    min-height: clamp(220px, 50vw, 320px);
  }

  .contact__photo-container,
  .contact__photo {
    min-height: clamp(220px, 50vw, 320px);
    border-radius: 24px;
  }

  /* Footer */
  .footer__top {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-top: 48px;
    padding-bottom: 48px;
  }

  .footer__col--brand {
    grid-column: auto;
  }

  .footer__desc {
    max-width: none;
  }

  .footer__cta {
    width: 100%;
    justify-content: center;
  }

  .footer__bottom {
    flex-direction: column;
    text-align: center;
    gap: 16px;
  }

  .footer__legal {
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
  }
}

/* —— Small mobile (≤ 576px) —— */
@media (max-width: 576px) {
  .navbar__inner {
    padding: 8px 12px;
    border-radius: 16px;
  }

  .navbar__link {
    font-size: 14px;
    padding: 10px 12px;
  }

  .navbar__cta-mobile {
    font-size: 13px;
    padding: 10px 16px;
  }

  .hero__title {
    font-size: clamp(1.75rem, 8.5vw, 2.25rem);
    gap: 0.03em;
    line-height: 1.05;
    margin-bottom: 1.375rem;
  }

  .hero__subtitle {
    max-width: 18rem;
    margin-bottom: 1.625rem;
  }


  .hero__partners {
    gap: 14px 16px;
  }

  .hero__partner-logo {
    max-height: 28px;
    max-width: 100px;
  }

  .service-card--large .service-card__image-wrap--large {
    min-height: 200px;
  }

  .about__laptop-wrap {
    border-radius: 24px;
  }

  .about__laptop {
    border-radius: 18px;
  }

  .methodology__step {
    padding: 24px 16px 20px;
  }

  .contact__photo-container {
    padding: 6px;
    border-radius: 20px;
  }

  .contact__photo {
    border-radius: 16px;
  }
}

/* —— Extra small (≤ 400px) —— */
@media (max-width: 400px) {
  .hero__trust-label {
    font-size: 13px;
  }

  .hero__partner-logo {
    max-height: 24px;
    max-width: 88px;
  }

  .service-card__tag {
    font-size: 9px;
  }

  .footer__social-link {
    width: 32px;
    height: 32px;
  }
}
