/* EXTILINE AI — refreshed projects / portfolio page */
.ext-projects-page {
  background: #f4f7fc;
  color: #0b1f3a;
}

/* Intro hero */
.projects-hero {
  padding: 76px 0 70px;
}
.projects-hero h1 {
  max-width: 850px;
  margin: 18px 0 16px;
  color: #fff;
  font-family: Manrope, "DM Sans", sans-serif;
  font-size: clamp(40px, 6.2vw, 68px);
  font-weight: 850;
  line-height: 1.04;
  letter-spacing: -.055em;
}
.projects-hero h1 span {
  color: #8db9ff;
}
.projects-hero p {
  max-width: 760px;
  margin: 0;
  color: rgba(239, 246, 255, .8);
  font-size: 15px;
  line-height: 1.8;
}
.projects-hero-points {
  display: flex;
  align-items: center;
  gap: 13px;
  flex-wrap: wrap;
  margin-top: 25px;
  color: #d9e8ff;
  font-size: 12px;
  font-weight: 750;
}
.projects-hero-points i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #6ea6ff;
}

/* Portfolio section */
.projects-main-section {
  padding: 66px 0 76px;
  background:
    radial-gradient(circle at 7% 8%, rgba(37, 99, 235, .075), transparent 26%),
    radial-gradient(circle at 94% 65%, rgba(11, 31, 58, .045), transparent 25%),
    #f5f8fd;
}
.projects-heading-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
}
.projects-kicker {
  display: inline-block;
  color: #2563eb;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .17em;
}
.projects-heading-row h2 {
  margin: 10px 0 9px;
  color: #0b1f3a;
  font-family: Manrope, "DM Sans", sans-serif;
  font-size: clamp(28px, 3.6vw, 42px);
  font-weight: 850;
  line-height: 1.13;
  letter-spacing: -.045em;
}
.projects-intro {
  max-width: 690px;
  margin: 0;
  color: #63758d;
  font-size: 14px;
  line-height: 1.75;
}
.projects-count {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
  min-width: 150px;
  padding: 13px 16px;
  border: 1px solid #dce6f2;
  border-radius: 15px;
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 10px 28px rgba(11, 31, 58, .055);
}
.projects-count strong {
  color: #2563eb;
  font-family: Manrope, sans-serif;
  font-size: 30px;
  font-weight: 900;
  line-height: 1;
}
.projects-count span {
  color: #71839a;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.5;
  letter-spacing: .13em;
}

/* Search row */
.projects-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 30px 0 20px;
}
.projects-search {
  display: flex;
  align-items: center;
  gap: 12px;
  width: min(510px, 100%);
  min-height: 50px;
  padding: 0 16px;
  border: 1px solid #dbe5f1;
  border-radius: 13px;
  background: #fff;
  color: #7d91aa;
  box-shadow: 0 7px 22px rgba(11, 31, 58, .045);
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.projects-search:focus-within {
  border-color: #8cb4f5;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, .09), 0 9px 25px rgba(11, 31, 58, .06);
}
.projects-search svg {
  display: block;
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  stroke: currentColor;
}
.projects-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #0b1f3a;
  font: inherit;
  font-size: 13px;
}
.projects-search input::placeholder {
  color: #9aa8b9;
}
.projects-live-label {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #72849b;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .15em;
  white-space: nowrap;
}
.projects-live-label i,
.projects-note span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #2563eb;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, .1);
}

/* IMPORTANT: this element must be a grid on the standalone page. The old
   stylesheet relied on homepage inline CSS, which is not loaded here. */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  gap: 22px;
  margin: 0;
}
.projects-grid .project-review-card[hidden] {
  display: none !important;
}
.projects-grid .project-review-card {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 100%;
  flex-direction: column;
  overflow: hidden;
  padding: 0 !important;
  border: 1px solid #dce5f0;
  border-radius: 19px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(11, 31, 58, .055);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.projects-grid .project-review-card:hover {
  transform: translateY(-5px);
  border-color: #c3d5ed;
  box-shadow: 0 22px 46px rgba(11, 31, 58, .11);
}
.projects-grid .project-visual {
  position: relative;
  isolation: isolate;
  width: 100%;
  height: auto !important;
  aspect-ratio: 1.95 / 1;
  flex: 0 0 auto;
  overflow: hidden;
  background: linear-gradient(135deg, #0b1f3a, #254a78);
}
.projects-grid .project-visual::after {
  position: absolute;
  z-index: 1;
  right: 0;
  bottom: 0;
  left: 0;
  height: 35%;
  background: linear-gradient(180deg, transparent, rgba(5, 20, 39, .28));
  content: "";
  pointer-events: none;
}
.projects-grid .project-image-visual img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform .6s cubic-bezier(.2, .8, .2, 1);
}
.projects-grid .project-review-card:hover .project-image-visual img {
  transform: scale(1.045);
}
.projects-grid .project-badge {
  position: absolute;
  z-index: 2;
  right: auto;
  bottom: 14px;
  left: 15px;
  display: inline-flex;
  align-items: center;
  min-height: 27px;
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 99px;
  background: rgba(7, 25, 48, .78);
  color: #fff;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .12em;
  line-height: 1.2;
  backdrop-filter: blur(9px);
  -webkit-backdrop-filter: blur(9px);
}
.projects-grid .project-review-body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  align-items: flex-start;
  padding: 23px 23px 22px;
}
.projects-grid .project-kicker {
  color: #2563eb;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.4;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.projects-grid .project-review-body h3 {
  margin: 9px 0 10px;
  color: #0b1f3a;
  font-family: Manrope, "DM Sans", sans-serif;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.28;
  letter-spacing: -.03em;
}
.projects-grid .project-review-body p {
  margin: 0;
  color: #63758d;
  font-size: 13px;
  line-height: 1.75;
}
.projects-grid .project-points {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
  margin: 17px 0 0;
}
.projects-grid .project-points span {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  padding: 5px 9px;
  border: 1px solid #e1eaf5;
  border-radius: 7px;
  background: #f5f8fd;
  color: #536b86;
  font-size: 12px;
  font-weight: 750;
  line-height: 1.3;
}
.projects-grid .project-result {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 100%;
  margin-top: auto;
  padding: 14px 14px 13px;
  border: 1px solid #e3ebf6;
  border-radius: 11px;
  background: #f7f9fd;
}
.projects-grid .project-result b {
  color: #254361;
  font-size: 12px;
  font-weight: 850;
  line-height: 1.45;
}
.projects-grid .project-result span {
  color: #75869b;
  font-size: 12px;
  line-height: 1.55;
}
.projects-grid .portfolio-case-link,
.projects-grid .project-action {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 17px;
  color: #2563eb;
  font-size: 12px;
  font-weight: 850;
  line-height: 1.4;
  text-decoration: none;
}
.projects-grid .portfolio-case-link span,
.projects-grid .project-action span {
  transition: transform .2s ease;
}
.projects-grid .portfolio-case-link:hover span,
.projects-grid .project-action:hover span {
  transform: translateX(4px);
}
.projects-grid .portfolio-db-card .project-review-body {
  min-height: 300px;
}

/* Empty state and confidentiality note */
.projects-empty {
  padding: 48px 20px;
  border: 1px dashed #cbd8e8;
  border-radius: 16px;
  background: rgba(255, 255, 255, .78);
  color: #6e8098;
  text-align: center;
}
.projects-empty strong,
.projects-empty span {
  display: block;
}
.projects-empty strong {
  color: #0b1f3a;
  font-size: 15px;
}
.projects-empty span {
  margin-top: 6px;
  font-size: 12px;
}
.projects-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  margin: 30px 0 0;
  color: #78889c;
  text-align: center;
}
.projects-note span {
  flex: 0 0 7px;
}
.projects-note p {
  margin: 0;
  font-size: 12px;
  line-height: 1.6;
}

/* Bottom conversion panel */
.projects-cta-section {
  padding: 0 0 76px;
  background: #f5f8fd;
}
.projects-cta-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 36px 40px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 21px;
  background:
    radial-gradient(circle at 86% 12%, rgba(37, 99, 235, .3), transparent 32%),
    linear-gradient(120deg, #07182d, #0b1f3a 65%, #123c68);
  box-shadow: 0 20px 55px rgba(11, 31, 58, .13);
}
.projects-cta-card .projects-kicker {
  color: #9bc0ff;
}
.projects-cta-card h2 {
  margin: 9px 0;
  color: #fff;
  font-family: Manrope, "DM Sans", sans-serif;
  font-size: clamp(24px, 3.5vw, 34px);
  line-height: 1.2;
  letter-spacing: -.035em;
}
.projects-cta-card p {
  max-width: 650px;
  margin: 0;
  color: rgba(238, 246, 255, .74);
  font-size: 13px;
  line-height: 1.7;
}
.projects-cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex: 0 0 auto;
  min-height: 48px;
  padding: 0 19px;
  border: 1px solid #2563eb;
  border-radius: 11px;
  background: #2563eb;
  color: #fff;
  text-decoration: none;
  font-size: 12px;
  font-weight: 850;
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}
.projects-cta-button:hover {
  transform: translateY(-2px);
  background: #3477ed;
  box-shadow: 0 10px 24px rgba(37, 99, 235, .25);
}
.projects-cta-button:focus-visible,
.projects-grid a:focus-visible {
  outline: 3px solid #9bc0ff;
  outline-offset: 3px;
}

@media (max-width: 1020px) {
  .projects-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 19px;
  }
}
@media (max-width: 680px) {
  .projects-hero {
    padding: 50px 0 46px;
  }
  .projects-hero h1 {
    font-size: clamp(36px, 10vw, 49px);
  }
  .projects-hero p {
    font-size: 13px;
  }
  .projects-hero-points {
    gap: 8px;
    font-size: 12px;
  }
  .projects-main-section {
    padding: 43px 0 48px;
  }
  .projects-heading-row {
    align-items: flex-start;
    gap: 16px;
  }
  .projects-heading-row h2 {
    font-size: 28px;
  }
  .projects-intro {
    font-size: 12px;
  }
  .projects-count {
    gap: 8px;
    min-width: 0;
    padding: 9px 10px;
  }
  .projects-count strong {
    font-size: 22px;
  }
  .projects-count span {
    font-size: 12px;
  }
  .projects-toolbar {
    align-items: stretch;
    flex-direction: column;
    gap: 12px;
    margin: 23px 0 17px;
  }
  .projects-search {
    width: 100%;
    min-height: 47px;
  }
  .projects-live-label {
    align-self: flex-end;
  }
  .projects-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }
  .projects-grid .project-visual {
    aspect-ratio: 1.9 / 1;
  }
  .projects-grid .project-review-body {
    padding: 20px 19px 19px;
  }
  .projects-grid .project-review-body h3 {
    font-size: 19px;
  }
  .projects-grid .portfolio-db-card .project-review-body {
    min-height: 0;
  }
  .projects-cta-section {
    padding-bottom: 48px;
  }
  .projects-cta-card {
    align-items: stretch;
    flex-direction: column;
    padding: 26px 21px;
    border-radius: 17px;
  }
  .projects-cta-button {
    width: 100%;
  }
  .projects-note {
    align-items: flex-start;
    justify-content: flex-start;
    text-align: left;
  }
}
@media (prefers-reduced-motion: reduce) {
  .projects-grid .project-image-visual img,
  .projects-grid .portfolio-case-link span,
  .projects-grid .project-action span,
  .projects-cta-button {
    transition: none;
  }
  .projects-grid .project-review-card:hover,
  .projects-cta-button:hover {
    transform: none;
  }
}
