/* AI App Development Services in New York ? 04 Portfolio */

@keyframes cw-mad-france-portfolio-fill {
  from {
    width: 0%;
  }
  to {
    width: 100%;
  }
}

@keyframes cw-mad-france-portfolio-fade {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.cw-mad-france-portfolio {
  background: #f3efe7;
  color: #141210;
  font-family: 'Inter', system-ui, sans-serif;
  width: 100%;
  box-sizing: border-box;
}

.cw-mad-france-portfolio__inner {
  max-width: 1520px;
  margin: 0 auto;
  padding: clamp(64px, 8vw, 110px) clamp(28px, 4vw, 56px);
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.cw-mad-france-portfolio [data-cw-mad-france-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.cw-mad-france-portfolio [data-cw-mad-france-reveal].is-visible {
  opacity: 1;
  transform: none;
}

.cw-mad-france-portfolio__head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
}

.cw-mad-france-portfolio__heading {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cw-mad-france-portfolio__eyebrow {
  margin: 0;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  color: #c8391a;
}

.cw-mad-france-portfolio__title {
  margin: 0;
  font-family: 'Inter Tight', 'Inter', sans-serif;
  font-weight: 800;
  font-size: clamp(34px, 4vw, 56px);
  line-height: 1;
  letter-spacing: -0.035em;
}

.cw-mad-france-portfolio__title-em {
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-weight: 500;
  color: #c8391a;
}

.cw-mad-france-portfolio__tabs {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 5px;
  border-radius: 999px;
  background: #fff;
  overflow-x: auto;
  max-width: 100%;
  scrollbar-width: none;
  box-sizing: border-box;
}

.cw-mad-france-portfolio__tabs::-webkit-scrollbar {
  display: none;
}

.cw-mad-france-portfolio__tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 38px;
  padding: 0 16px;
  margin: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #141210;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  box-sizing: border-box;
  cursor: pointer;
  white-space: nowrap;
  flex: none;
  transition: background 0.25s ease, color 0.25s ease;
  -webkit-tap-highlight-color: transparent;
}

.cw-mad-france-portfolio__tab.is-on {
  background: #141210;
  color: #fff;
}

.cw-mad-france-portfolio__tab:focus-visible {
  outline: 2px solid #c8391a;
  outline-offset: 2px;
}

.cw-mad-france-portfolio__body {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 16px;
  align-items: stretch;
}

/* List */

.cw-mad-france-portfolio__list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cw-mad-france-portfolio__item {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 52px 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border-radius: 18px;
  border: 1.5px solid rgba(20, 18, 16, 0.08);
  background: #fff;
  color: #141210;
  cursor: pointer;
  text-align: left;
  font: inherit;
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.cw-mad-france-portfolio__item[hidden] {
  display: none;
}

.cw-mad-france-portfolio__item.is-on {
  background: #141210;
  border-color: #141210;
  color: #f3efe7;
}

.cw-mad-france-portfolio__item:focus-visible {
  outline: 2px solid #c8391a;
  outline-offset: 2px;
}

.cw-mad-france-portfolio__thumb {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.cw-mad-france-portfolio__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.cw-mad-france-portfolio__item-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.cw-mad-france-portfolio__item-name {
  font-family: 'Inter Tight', 'Inter', sans-serif;
  font-weight: 800;
  font-size: 16px;
}

.cw-mad-france-portfolio__item-kind {
  font-size: 12.5px;
  opacity: 0.75;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cw-mad-france-portfolio__item-cat {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 10px;
  letter-spacing: 0.1em;
  opacity: 0.7;
}

.cw-mad-france-portfolio__item-bar {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 3px;
  width: 0;
  background: #e0431c;
}

.cw-mad-france-portfolio__item.is-on.is-timing .cw-mad-france-portfolio__item-bar {
  animation: cw-mad-france-portfolio-fill var(--cw-mad-france-work-ms, 6000ms) linear both;
}

/* Showcase */

.cw-mad-france-portfolio__stage {
  position: relative;
  min-width: 0;
}

.cw-mad-france-portfolio__show {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  min-height: 500px;
  height: 100%;
  display: flex;
  flex-direction: column;
  color: #fff;
  box-sizing: border-box;
}

.cw-mad-france-portfolio__show[hidden] {
  display: none;
}

.cw-mad-france-portfolio__show.is-on {
  animation: cw-mad-france-portfolio-fade 0.45s ease-out both;
}

.cw-mad-france-portfolio__show--light {
  color: #141210;
}

.cw-mad-france-portfolio__show-dots {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1.5px);
  background-size: 18px 18px;
  pointer-events: none;
}

.cw-mad-france-portfolio__show--light .cw-mad-france-portfolio__show-dots {
  background-image: radial-gradient(rgba(20, 18, 16, 0.08) 1px, transparent 1.5px);
}

.cw-mad-france-portfolio__show-copy {
  position: relative;
  padding: clamp(22px, 3vw, 32px);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cw-mad-france-portfolio__show-top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.cw-mad-france-portfolio__show-cat {
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.3);
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 10.5px;
  letter-spacing: 0.12em;
}

.cw-mad-france-portfolio__show--light .cw-mad-france-portfolio__show-cat {
  background: rgba(20, 18, 16, 0.08);
}

.cw-mad-france-portfolio__show-cta {
  height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  background: #fff;
  color: #141210;
  display: inline-flex;
  align-items: center;
  font-weight: 700;
  font-size: 13.5px;
  text-decoration: none;
}

.cw-mad-france-portfolio__show--light .cw-mad-france-portfolio__show-cta {
  background: #141210;
  color: #fff;
}

.cw-mad-france-portfolio__show-cta:hover,
.cw-mad-france-portfolio__show-cta:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(224, 67, 28, 0.6);
}

.cw-mad-france-portfolio .cw-mad-france-portfolio__show-cta:hover {
  color: #141210;
}

.cw-mad-france-portfolio .cw-mad-france-portfolio__show--light .cw-mad-france-portfolio__show-cta:hover {
  color: #fff;
}

.cw-mad-france-portfolio__show-name {
  margin: 6px 0 0;
  font-family: 'Inter Tight', 'Inter', sans-serif;
  font-weight: 800;
  font-size: clamp(28px, 3.4vw, 44px);
  line-height: 1;
  letter-spacing: -0.03em;
}

.cw-mad-france-portfolio__show-tag {
  margin: 0;
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-size: 17px;
  opacity: 0.9;
}

.cw-mad-france-portfolio__show-did {
  list-style: none;
  margin: 4px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.cw-mad-france-portfolio__show-did li {
  padding: 6px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  font-size: 12.5px;
}

.cw-mad-france-portfolio__show--light .cw-mad-france-portfolio__show-did li {
  background: rgba(20, 18, 16, 0.07);
}

.cw-mad-france-portfolio__phones {
  position: relative;
  flex: 1;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: clamp(10px, 2vw, 22px);
  padding: 0 20px;
}

.cw-mad-france-portfolio__phone {
  width: clamp(130px, 16vw, 190px);
  aspect-ratio: 9 / 19;
  border-radius: 28px;
  background: #0b0a09;
  padding: 6px;
  box-sizing: border-box;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.7);
  transition: transform 0.45s cubic-bezier(0.3, 0.7, 0.2, 1);
}

.cw-mad-france-portfolio__phone--a {
  margin-bottom: -70px;
  transform: rotate(-4deg);
}

.cw-mad-france-portfolio__phone--b {
  margin-bottom: -40px;
  transform: rotate(6deg);
}

.cw-mad-france-portfolio__phone:hover {
  transform: translateY(-14px) rotate(0deg);
}

.cw-mad-france-portfolio__phone img {
  width: 100%;
  height: 100%;
  border-radius: 22px;
  object-fit: cover;
  object-position: top;
  display: block;
}

.cw-mad-france-portfolio .visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (prefers-reduced-motion: reduce) {
  .cw-mad-france-portfolio__show.is-on,
  .cw-mad-france-portfolio__item.is-on.is-timing .cw-mad-france-portfolio__item-bar {
    animation: none;
  }

  .cw-mad-france-portfolio__phone {
    transition: none;
  }
}
