:root {
  --color-black: #000000;
  --color-white: #ffffff;
  --font-maison-neue: "Space Grotesk", sans-serif;
  --color-text: var(--color-white);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

*:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 0px;
}

html,
body {
  width: 100%;
  min-height: 100vh;
  -webkit-text-size-adjust: 100%;
  background-color: var(--color-black);
}

body {
  font-family: var(--font-maison-neue);
  color: var(--color-text);
  font-weight: 500;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
}

.hero-descriptor {
  position: absolute;
  top: 40px;
  left: 60px;
  font-family: "Source Code Pro", monospace;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.7;
  color: #ffffff;
  opacity: 0.5;
  letter-spacing: 0.04em;
  z-index: 5;
  pointer-events: none;
}

.menu-btn {
  position: absolute;
  top: 40px;
  right: 60px;
  font-family: "Source Code Pro", monospace;
  font-size: 15px;
  font-weight: 500;
  color: #ffffff;
  background: transparent;
  border: 1.5px solid #ffffff;
  padding: 10px 18px;
  letter-spacing: 0.05em;
  z-index: 5;
  cursor: pointer;
  overflow: hidden;
  transition: color 0.3s ease, border-color 0.3s ease;
}

.menu-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -15%;
  width: 0%;
  height: 100%;
  background: #ffffff;
  transform: skewX(-12deg);
  transform-origin: left center;
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: -1;
}

.menu-btn:hover::before {
  width: 130%;
}

.menu-btn:hover {
  color: #000000;
  border-color: #ffffff;
}

.globe-page__scroll-btn {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.6);
  background: transparent;
  color: rgba(255, 255, 255, 0.6);
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.3s ease, color 0.3s ease, background 0.3s ease, opacity 0.4s ease;
  animation: bounce-scroll 2s ease-in-out infinite;
  z-index: 10;
}

.globe-page__scroll-btn.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.globe-page__scroll-btn:hover {
  border-color: #ffffff;
  color: #000000;
  background: #ffffff;
}

@keyframes bounce-scroll {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(8px); }
}

.globe-page {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
  position: relative;
}

.globe-page__text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 60px 64px;
}

.globe-page__label {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 28px;
}

.globe-page__title {
  font-size: clamp(2.4rem, 4vw, 4.2rem);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: #ffffff;
  min-height: 4.48em;
}

.globe-page__country {
  background: linear-gradient(
    90deg,
    #50b4ff,
    #78ffdc,
    #ffffff,
    #78ffdc,
    #50b4ff
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  animation: gradient-flow 4s linear infinite;
}

@keyframes gradient-flow {
  to {
    background-position: 200% center;
  }
}

.tw-cursor::after {
  content: '|';
  margin-left: 2px;
  color: rgba(255, 255, 255, 0.7);
  -webkit-text-fill-color: rgba(255, 255, 255, 0.7);
  animation: cursor-blink 0.7s step-end infinite;
}

@keyframes cursor-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.globe-page__right {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.m-flex-bloc-home-globe__globe {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.scene-container {
  position: relative;
  width: min(48vw, 760px);
  height: min(48vw, 760px);
}

.scene-container canvas {
  display: block;
  touch-action: none;
  width: 100% !important;
  height: 100% !important;
}

.scene-nav-info {
  display: none;
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 10;
  font-size: 12px;
  color: #fff;
  background: rgba(0, 0, 0, 0.6);
  padding: 6px 10px;
  border-radius: 4px;
  pointer-events: none;
}

.float-tooltip-kap {
  display: none;
  position: absolute;
  z-index: 10;
  pointer-events: none;
  background: #fff;
  color: #000;
  padding: 6px 10px;
  border-radius: 4px;
  font-size: 12px;
  white-space: nowrap;
}

.scene-container > canvas {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
}

.scene-markers {
  overflow: hidden;
  position: absolute;
  top: 0;
  pointer-events: none;
  width: 586px;
  height: 602px;
  z-index: 2;
}

.scene-markers > div {
  width: 12px;
  height: 12px;
  box-sizing: border-box;
  position: absolute;
  transform: translate(-50%, -50%);
}

.scene-markers > div span {
  font-size: 12px;
  font-weight: bold;
  line-height: 12px;
  display: block;
  text-align: center;
}

.projects-list {
  background: #000000;
  padding: 60px 80px 120px;
  position: relative;
}

.projects-filters {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 48px;
}

.projects-filters__group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.projects-filters__label {
  font-family: "Source Code Pro", monospace;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.25);
}

.projects-filters__bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.projects-filters__btn {
  font-family: "Source Code Pro", monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 6px 14px;
  cursor: pointer;
  transition: color 0.25s ease, border-color 0.25s ease, background 0.25s ease;
  white-space: nowrap;
}

.projects-filters__btn:hover {
  color: rgba(255, 255, 255, 0.8);
  border-color: rgba(255, 255, 255, 0.4);
}

.projects-filters__btn.is-active {
  color: #000000;
  background: #ffffff;
  border-color: #ffffff;
}

/* Barre service : bordures dégradées */
.projects-filters__bar--service .projects-filters__btn {
  border: none;
  position: relative;
  background: transparent;
  color: rgba(255, 255, 255, 0.65);
}

.projects-filters__bar--service .projects-filters__btn::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 2px;
  background: conic-gradient(from var(--angle, 0deg), #50b4ff, #78ffdc, #ffffff, #b97dff, #50b4ff);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  padding: 1px;
  opacity: 0.65;
  animation: border-spin 3s linear infinite;
  transition: opacity 0.25s ease;
}

.projects-filters__bar--service .projects-filters__btn:hover::before {
  opacity: 1;
  animation-duration: 1.5s;
}

@property --angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

@keyframes border-spin {
  to { --angle: 360deg; }
}

.projects-filters__bar--service .projects-filters__btn:hover {
  color: rgba(255, 255, 255, 0.9);
}

.projects-filters__bar--service .projects-filters__btn.is-active {
  color: #000000;
  background: #ffffff;
}

.projects-filters__bar--service .projects-filters__btn.is-active::before {
  opacity: 0;
}

.projects-list__item.is-hidden-filter {
  display: none;
}

.projects-list__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  font-family: "Source Code Pro", monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
  margin-bottom: 0;
}

.projects-list__item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 28px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  text-decoration: none;
  cursor: pointer;
  transition: padding-left 0.3s ease;
  position: relative;
}

.projects-list__item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, rgba(80,180,255,0.06), transparent);
  transition: width 0.4s ease;
  pointer-events: none;
}

.projects-list__item:hover::before {
  width: 100%;
}

.projects-list__item:hover {
  padding-left: 18px;
}

.projects-list__name {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.4rem, 2.4vw, 2.2rem);
  font-weight: 500;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: background 0.3s ease, -webkit-text-fill-color 0.3s ease;
}

.projects-list__item:hover .projects-list__name {
  background: linear-gradient(90deg, #50b4ff, #78ffdc, #ffffff);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.projects-list__name i {
  font-size: 0.55em;
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.projects-list__item:hover .projects-list__name i {
  opacity: 1;
  transform: translateX(0);
}

.projects-list__year {
  font-family: "Source Code Pro", monospace;
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.35);
  letter-spacing: 0.05em;
  transition: color 0.3s ease;
}

.projects-list__item:hover .projects-list__year {
  color: rgba(255, 255, 255, 0.7);
}

.projects-list__hover-img {
  position: fixed;
  width: 320px;
  height: 210px;
  pointer-events: none;
  z-index: 500;
  transform: translate(-50%, -120%);
  opacity: 0;
  transition: opacity 0.25s ease;
  border-radius: 4px;
  overflow: hidden;
}

.projects-list__hover-img.is-visible {
  opacity: 1;
}

.projects-list__hover-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.reviews-section {
  background: #000000;
  padding: 120px 80px 100px;
  overflow: hidden;
}

.reviews-section__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 52px;
}

.reviews-section__label-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.reviews-section__label {
  font-family: "Source Code Pro", monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
}

.reviews-section__verified {
  font-family: "Source Code Pro", monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: #78ffdc;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(120, 255, 220, 0.35);
  background: rgba(120, 255, 220, 0.07);
  padding: 4px 10px;
  border-radius: 20px;
}

.reviews-section__meta {
  display: flex;
  align-items: center;
  gap: 10px;
}

.reviews-section__score {
  font-family: "Space Grotesk", sans-serif;
  font-size: 28px;
  font-weight: 500;
  color: #ffffff;
  line-height: 1;
}

.reviews-section__stars {
  display: flex;
  gap: 3px;
  color: #78ffdc;
  font-size: 13px;
}

.reviews-section__count {
  font-family: "Source Code Pro", monospace;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.3);
  letter-spacing: 0.06em;
}

.reviews-track {
  display: flex;
  gap: 24px;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.review-card {
  flex: 0 0 calc(33.333% - 16px);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 36px 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: border-color 0.3s ease, background 0.3s ease;
}

.review-card:hover {
  border-color: rgba(120, 255, 220, 0.25);
  background: rgba(80, 180, 255, 0.04);
}

.review-card__stars {
  display: flex;
  gap: 4px;
  font-size: 12px;
  color: #78ffdc;
}

.review-card__quote {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(0.95rem, 1.2vw, 1.1rem);
  font-weight: 500;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.85);
  margin: 0;
  flex: 1;
}

.review-card__footer {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.review-card__name {
  font-family: "Source Code Pro", monospace;
  font-size: 12px;
  font-weight: 500;
  color: #ffffff;
  letter-spacing: 0.04em;
}

.review-card__company {
  font-family: "Source Code Pro", monospace;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.3);
  letter-spacing: 0.06em;
}

.reviews-section__nav {
  display: flex;
  gap: 12px;
  margin-top: 40px;
}

.reviews-nav-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: transparent;
  color: rgba(255, 255, 255, 0.5);
  font-size: 15px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.25s ease, color 0.25s ease, background 0.25s ease;
}

.reviews-nav-btn:hover {
  border-color: #ffffff;
  color: #000000;
  background: #ffffff;
}

.ticker-section--separator {
  width: 110% !important;
  margin-left: -5% !important;
  margin-top: -30px !important;
  margin-bottom: -30px !important;
  padding: 28px 0 !important;
  transform: rotate(-2deg) !important;
  overflow: hidden;
  position: relative;
  z-index: 2;
  background-color: #000 !important;
}

.ticker-section--separator .ticker-list li {
  color: #ffffff;
  opacity: 0.5;
}

.ticker-section--separator .ticker-sep {
  color: #78ffdc;
}

.contact-cta {
  background: #000000;
  padding: 100px 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.contact-cta__inner {
  display: flex;
  flex-direction: column;
  gap: 24px;
  z-index: 1;
}

.contact-cta__label {
  font-family: "Source Code Pro", monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.3);
}

.contact-cta__title {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(3rem, 6vw, 7rem);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: #ffffff;
  margin: 0;
}

.contact-cta__sub {
  font-family: "Source Code Pro", monospace;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.3);
  letter-spacing: 0.08em;
  margin: 0;
}

.contact-cta__btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: "Source Code Pro", monospace;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-decoration: none;
  color: #000000;
  background: #ffffff;
  padding: 16px 28px;
  width: fit-content;
  position: relative;
  overflow: hidden;
  transition: color 0.35s ease;
}

.contact-cta__btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #50b4ff, #78ffdc);
  transform: translateX(-101%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 0;
}

.contact-cta__btn:hover::before {
  transform: translateX(0);
}

.contact-cta__btn:hover {
  color: #000000;
}

.contact-cta__btn span,
.contact-cta__btn i {
  position: relative;
  z-index: 1;
}

.contact-cta__btn i {
  transition: transform 0.3s ease;
}

.contact-cta__btn:hover i {
  transform: translateX(5px);
}

.contact-cta__deco {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(80px, 12vw, 180px);
  font-weight: 500;
  color: #ffffff;
  opacity: 0.04;
  letter-spacing: -0.04em;
  user-select: none;
  pointer-events: none;
  white-space: nowrap;
  line-height: 1;
}

.nav-overlay {
  position: fixed;
  top: 0;
  right: 0;
  width: 110vw;
  height: 100vh;
  background: #ffffff;
  clip-path: polygon(8% 0%, 100% 0%, 100% 100%, 0% 100%);
  transform: translateX(110%);
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1000;
  display: flex;
  align-items: center;
  padding-left: 16vw;
}

.nav-overlay.is-open {
  transform: translateX(0);
}

.nav-menu {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.nav-menu a {
  font-family: "Space Grotesk", sans-serif;
  font-size: 52px;
  font-weight: 500;
  line-height: 1.1;
  color: #000000;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 16px;
  opacity: 1;
  will-change: opacity;
  transition: opacity 0.25s ease;
}

.nav-arrow {
  font-size: 0px;
  opacity: 0;
  transform: translateX(-12px);
  transition: opacity 0.3s ease, transform 0.3s ease, font-size 0.3s ease;
  flex-shrink: 0;
}

.nav-menu a:hover .nav-arrow {
  font-size: 0.65em;
  opacity: 1;
  transform: translateX(0);
}

.nav-menu.has-hover a {
  opacity: 0.3;
}

.nav-menu.has-hover a.is-hovered {
  opacity: 1;
}

.nav-close {
  position: absolute;
  top: 32px;
  right: 32px;
  font-family: "Source Code Pro", monospace;
  font-size: 15px;
  font-weight: 500;
  color: #000000;
  background: transparent;
  border: 1.5px solid #000000;
  padding: 10px 18px;
  letter-spacing: 0.05em;
  cursor: pointer;
  overflow: hidden;
  transition: color 0.3s ease;
}

.nav-close::before {
  content: '';
  position: absolute;
  top: 0;
  left: -15%;
  width: 0%;
  height: 100%;
  background: #000000;
  transform: skewX(-12deg);
  transform-origin: left center;
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: -1;
}

.nav-close:hover::before {
  width: 130%;
}

.nav-close:hover {
  color: #ffffff;
}

@media (max-width: 991px) {
  .nav-menu a { font-size: 34px; }
  .nav-brand { font-size: 72px; margin-right: 24px; }
}

@media (max-width: 768px) {
  .menu-btn {
    font-size: 18px;
    padding: 12px 22px;
    top: 28px;
    right: 28px;
  }
  .hero-descriptor {
    display: none;
  }
  .nav-menu a { font-size: 38px; }
  .nav-brand { display: none; }
  .nav-close {
    font-size: 18px;
    padding: 12px 22px;
    top: 28px;
    right: 28px;
  }
}

@media (max-width: 480px) {
  .menu-btn {
    font-size: 16px;
    padding: 11px 20px;
    top: 22px;
    right: 20px;
  }
  .nav-menu a { font-size: 32px; }
  .nav-close {
    font-size: 16px;
    padding: 11px 20px;
    top: 22px;
    right: 20px;
  }
}

.nav-brand {
  position: absolute;
  right: 0;
  margin-right: 70px;
  top: 50%;
  transform: translateY(-50%);
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-family: "Space Grotesk", sans-serif;
  font-size: 120px;
  font-weight: 500;
  color: #000000;
  letter-spacing: -0.02em;
  opacity: 0.1;
  pointer-events: none;
  white-space: nowrap;
  padding-bottom: 20px;
}

/* ── Responsive ── */

@media (max-width: 991px) {
  .globe-page {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .globe-page__text {
    padding: 120px 48px 40px;
  }

  .globe-page__right {
    padding: 0 48px 20px;
    margin-top: -20px;
  }

  .globe-page__scroll-btn {
    left: auto;
    right: 40px;
    transform: none;
    bottom: 32px;
  }

  .scene-container {
    width: min(80vw, 560px);
    height: min(80vw, 560px);
  }

  .projects-list {
    padding: 60px 48px 80px;
  }

  .reviews-section {
    padding: 80px 48px 80px;
  }

  .contact-cta {
    padding: 80px 48px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 40px;
  }

  .contact-cta__inner {
    align-items: center;
    width: 100%;
  }

  .contact-cta__deco {
    display: none;
  }
}

@media (max-width: 768px) {
  .globe-page__text {
    padding: 100px 28px 32px;
  }

  .globe-page__right {
    padding: 0 28px 16px;
    margin-top: -24px;
  }

  .globe-page__scroll-btn {
    right: 28px;
    bottom: 24px;
  }

  .scene-container {
    width: min(90vw, 420px);
    height: min(90vw, 420px);
  }

  .scene-markers {
    width: 100% !important;
    height: 100% !important;
  }

  .projects-list {
    padding: 48px 28px 60px;
  }

  .projects-filters__btn {
    font-size: 10px;
    padding: 5px 10px;
  }

  .projects-list__header {
    display: none;
  }

  .projects-list__item {
    padding: 20px 0;
  }

  .reviews-section {
    padding: 60px 28px 60px;
  }

  .reviews-section__header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 36px;
  }

  .review-card {
    flex: 0 0 calc(100% - 0px);
  }

  .contact-cta {
    padding: 60px 28px;
    justify-content: center;
    text-align: center;
  }

  .contact-cta__inner {
    align-items: center;
  }
}

@media (max-width: 480px) {
  .globe-page__text {
    padding: 90px 20px 24px;
  }

  .globe-page__right {
    padding: 0 20px 12px;
    margin-top: -28px;
  }

  .globe-page__scroll-btn {
    right: 20px;
    bottom: 20px;
  }

  .scene-container {
    width: 92vw;
    height: 92vw;
  }

  .projects-list {
    padding: 36px 20px 48px;
  }

  .reviews-section {
    padding: 48px 20px 48px;
  }

  .contact-cta {
    padding: 48px 20px;
  }

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

/* ── PROJECT MODAL ─────────────────────────────────────────── */
.project-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  pointer-events: none;
  visibility: hidden;
}

.project-modal.is-open {
  pointer-events: all;
  visibility: visible;
}

.project-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  opacity: 0;
  transition: opacity 0.4s ease;
  cursor: pointer;
}

.project-modal.is-open .project-modal__overlay {
  opacity: 1;
}

.project-modal__panel {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  background: #fff;
  color: #000;
  transform: translateY(100%);
  transition: transform 0.45s cubic-bezier(0.77, 0, 0.175, 1);
  display: flex;
  flex-direction: column;
  z-index: 1;
}

.project-modal.is-open .project-modal__panel {
  transform: translateY(0);
}

.project-modal__close {
  position: absolute;
  top: 24px;
  right: 24px;
  background: none;
  border: 1px solid #000;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 16px;
  z-index: 2;
  transition: background 0.2s, color 0.2s;
}

.project-modal__close:hover {
  background: #000;
  color: #fff;
}

.project-modal__scroll {
  overflow-y: auto;
  flex: 1;
  padding: 64px 80px 60px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto 1fr auto;
  gap: 40px 60px;
  align-content: start;
}

.project-modal__header {
  display: flex;
  flex-direction: column;
  gap: 12px;
  grid-column: 1 / -1;
}

.project-modal__meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.5;
}

.project-modal__title {
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 700;
  margin: 0;
  line-height: 1.1;
}

.project-modal__brief {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: start;
}

.project-modal__brief-photo {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.project-modal__brief-text {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  opacity: 0.8;
}

.project-modal__screenshots {
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow-y: auto;
}

.project-modal__screenshots img {
  width: 100%;
  display: block;
}

.project-modal__footer {
  grid-column: 1 / -1;
  padding-top: 8px;
}

.project-modal__btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #000;
  color: #fff;
  padding: 14px 28px;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

.project-modal__btn:hover {
  background: #fff;
  color: #000;
  outline: 1px solid #000;
}

@media (max-width: 768px) {
  .project-modal__scroll {
    grid-template-columns: 1fr;
    padding: 56px 20px 32px;
  }

  .project-modal__footer {
    grid-column: 1;
  }
}
