/* Pop-up (project modal) styles, shared with the work samples page. */
.project-modal {
    
  --ink: #050810;
  --ink2: #0a101c;
  --ink3: #101827;
  --line: #1c2738;
  --line-soft: rgba(255, 255, 255, 0.08);

  --paper: #f6f8fc;
  --paper2: #edf2fa;

  --blue: #2069ff;
  --blue-light: #6d9dff;
  --blue-dark: #1550cc;
  --tint: #eaf1ff;

  --txt: #edf2fb;
  --mut: #94a0b4;
  --dk: #0d1424;
  --white: #ffffff;

  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 24px;

  --shadow-dark: 0 25px 70px rgba(0, 0, 0, 0.28);
  --shadow-light: 0 20px 50px rgba(20, 50, 100, 0.1);

  box-sizing: border-box;
}

body.modal-open {
  overflow: hidden;
}
.project-modal {
  position: fixed;

  inset: 0;

  z-index: 5000;

  display: flex;

  align-items: center;
  justify-content: center;

  padding: 28px;

  visibility: hidden;
  opacity: 0;

  pointer-events: none;

  transition:
    opacity 0.25s ease,
    visibility 0.25s ease;
}
.project-modal.is-open {
  visibility: visible;

  opacity: 1;

  pointer-events: auto;
}
.project-modal-backdrop {
  position: absolute;

  inset: 0;

  background:
    rgba(2, 6, 14, 0.82);

  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.project-modal-panel {
  position: relative;

  z-index: 2;

  width: min(980px, 100%);

  max-height: 92vh;

  overflow: hidden;

  border:
    1px solid rgba(255, 255, 255, 0.1);

  border-radius: 24px;

  background: #0b111d;

  color: #edf2fb;

  box-shadow:
    0 35px 100px rgba(0, 0, 0, 0.5);

  transform:
    translateY(18px)
    scale(0.98);

  transition:
    transform 0.3s ease;
}
.project-modal.is-open .project-modal-panel {
  transform:
    translateY(0)
    scale(1);
}
.project-modal-close {
  position: absolute;

  z-index: 5;

  top: 18px;
  right: 18px;

  width: 42px;
  height: 42px;

  display: grid;
  place-items: center;

  border:
    1px solid rgba(255, 255, 255, 0.12);

  border-radius: 50%;

  background:
    rgba(5, 8, 16, 0.72);

  color: #fff;

  font-size: 27px;
  line-height: 1;

  cursor: pointer;

  transition:
    transform 0.2s ease,
    background 0.2s ease;
}
.project-modal-close:hover {
  transform: rotate(90deg);

  background: var(--blue);
}
.project-modal-body {
  max-height: 92vh;

  overflow-y: auto;

  padding: 38px;

  scrollbar-width: thin;

  scrollbar-color:
    #315ea9
    transparent;
}
.project-modal-header {
  padding:
    5px
    55px
    28px
    0;
}
.project-modal-label,
.project-modal-kicker {
  display: inline-block;

  margin-bottom: 10px;

  color: var(--blue-light);

  font-size: 10px;
  font-weight: 800;

  letter-spacing: 0.18em;
}
.project-modal-header h2 {
  margin: 0;

  max-width: 760px;

  color: #fff;

  font-size:
    clamp(28px, 4vw, 48px);

  line-height: 1.08;
}
.lontor-hero-image {
  display: grid;

  place-items: center;

  min-height: 240px;

  margin-bottom: 36px;

  padding: 30px;

  border:
    1px solid rgba(255, 255, 255, 0.08);

  border-radius: 20px;

  background:
    linear-gradient(
      145deg,
      #fff,
      #edf2fa
    );
}
.lontor-hero-image img {
  width: min(280px, 75%);

  max-height: 170px;

  object-fit: contain;
}
.lontor-section {
  padding: 30px 0;

  border-top:
    1px solid rgba(255, 255, 255, 0.08);
}
.lontor-section:first-of-type {
  border-top: 0;
}
.lontor-section h3 {
  margin: 0 0 14px;

  color: #fff;

  font-size:
    clamp(22px, 3vw, 31px);

  line-height: 1.15;
}
.lontor-section h4 {
  margin: 0 0 8px;

  color: #fff;

  font-size: 15px;
}
.lontor-section p {
  margin-bottom: 0;

  max-width: 75ch;

  color: #9aa7bb;

  font-size: 14px;

  line-height: 1.8;
}
.lontor-copy-grid {
  display: grid;

  grid-template-columns:
    repeat(2, minmax(0, 1fr));

  gap: 24px;
}
.lontor-copy-grid > div {
  padding: 22px;

  border:
    1px solid rgba(255, 255, 255, 0.08);

  border-radius: 16px;

  background:
    rgba(255, 255, 255, 0.025);
}
.lontor-stats {
  display: grid;

  grid-template-columns:
    repeat(4, minmax(0, 1fr));

  gap: 12px;

  margin-top: 20px;
}
.lontor-stat {
  min-height: 130px;

  padding: 22px 16px;

  border:
    1px solid rgba(255, 255, 255, 0.08);

  border-radius: 16px;

  background:
    linear-gradient(
      145deg,
      rgba(32, 105, 255, 0.12),
      rgba(255, 255, 255, 0.025)
    );
}
.lontor-stat strong {
  display: block;

  margin-bottom: 7px;

  color: #fff;

  font-size:
    clamp(23px, 3vw, 34px);

  line-height: 1;
}
.lontor-stat span {
  color: #8997ad;

  font-size: 10px;

  line-height: 1.5;
}
.lontor-opportunity {
  margin-top: 14px;

  padding: 20px;

  border-left:
    3px solid var(--blue);

  border-radius:
    0 14px 14px 0;

  background:
    rgba(32, 105, 255, 0.07);
}
.lontor-opportunity strong {
  display: block;

  margin-bottom: 5px;

  color: #fff;

  font-size: 14px;
}
.lontor-opportunity p {
  font-size: 12px;
}
.lontor-image-placeholder {
  min-height: 330px;

  display: flex;

  align-items: center;
  justify-content: center;

  padding: 30px;

  border:
    1px dashed rgba(109, 157, 255, 0.45);

  border-radius: 18px;

  background:
    linear-gradient(
      145deg,
      rgba(32, 105, 255, 0.08),
      rgba(255, 255, 255, 0.02)
    );

  text-align: center;
}
.lontor-image-placeholder span {
  max-width: 320px;

  color: #718097;

  font-size: 11px;
  font-weight: 700;

  letter-spacing: 0.08em;
}
.lontor-beyond {
  background:
    linear-gradient(
      90deg,
      rgba(32, 105, 255, 0.06),
      transparent
    );

  padding-left: 22px;

  border-left:
    3px solid var(--blue);
}
.lontor-modal-actions {
  display: flex;

  flex-wrap: wrap;

  gap: 10px;

  padding-top: 8px;
}
.lontor-articles {
  display: grid;

  grid-template-columns:
    repeat(2, minmax(0, 1fr));

  gap: 14px;

  margin-top: 28px;
}
.lontor-article-card {
  position: relative;

  display: flex;

  gap: 16px;

  padding: 22px;

  border:
    1px solid rgba(255, 255, 255, 0.09);

  border-radius: 18px;

  background:
    linear-gradient(
      145deg,
      rgba(32, 105, 255, 0.11),
      rgba(255, 255, 255, 0.025)
    );

  overflow: hidden;

  transition:
    transform 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease;
}
.lontor-article-card::before {
  content: "";

  position: absolute;

  width: 130px;
  height: 130px;

  right: -65px;
  top: -65px;

  border-radius: 50%;

  background:
    rgba(32, 105, 255, 0.08);

  pointer-events: none;
}
.lontor-article-card:hover {
  transform: translateY(-5px);

  border-color:
    rgba(91, 145, 255, 0.42);

  box-shadow:
    0 20px 45px rgba(0, 0, 0, 0.24);
}
.lontor-article-icon {
  position: relative;

  z-index: 2;

  flex-shrink: 0;

  width: 42px;
  height: 42px;

  display: grid;
  place-items: center;

  border-radius: 12px;

  background:
    linear-gradient(
      135deg,
      var(--blue),
      var(--blue-dark)
    );

  color: #fff;

  font-size: 18px;
  font-weight: 800;

  box-shadow:
    0 10px 25px rgba(32, 105, 255, 0.25);
}
.lontor-article-content {
  position: relative;

  z-index: 2;

  min-width: 0;
}
.lontor-article-content > span {
  display: block;

  margin-bottom: 7px;

  color: var(--blue-light);

  font-size: 8px;
  font-weight: 800;

  letter-spacing: 0.16em;
}
.lontor-article-content h3 {
  margin: 0 0 9px;

  color: #fff;

  font-size: 15px;

  line-height: 1.35;
}
.lontor-article-content p {
  margin: 0 0 15px;

  color: #8997ad;

  font-size: 11px;

  line-height: 1.65;
}
.lontor-article-link {
  display: inline-flex;

  align-items: center;

  gap: 6px;

  color: #b8ceff;

  font-size: 10px;
  font-weight: 800;

  transition:
    color 0.2s ease,
    gap 0.2s ease;
}
.lontor-article-link span {
  font-size: 13px;
}
.lontor-article-link:hover {
  color: #fff;

  gap: 9px;
}
@media (max-width: 700px) {
.project-modal {
    padding: 10px;
  }
.project-modal-panel {
    max-height: 95vh;

    border-radius: 19px;
  }
.project-modal-body {
    max-height: 95vh;

    padding:
      25px 18px;
  }
.project-modal-close {
    top: 12px;
    right: 12px;

    width: 38px;
    height: 38px;
  }
.project-modal-header {
    padding-right: 48px;
  }
.lontor-hero-image {
    min-height: 180px;

    margin-bottom: 22px;

    padding: 20px;
  }
.lontor-copy-grid,
  .lontor-stats {
    grid-template-columns:
      1fr 1fr;
  }
.lontor-section {
    padding: 24px 0;
  }
.lontor-section p {
    font-size: 12px;
  }
.lontor-stat {
    min-height: 110px;

    padding: 17px 13px;
  }
.lontor-image-placeholder {
    min-height: 230px;
  }
.lontor-modal-actions .btn {
    flex: 1;
  }
.lontor-articles {
    grid-template-columns: 1fr;

    gap: 11px;
  }
.lontor-article-card {
    padding: 18px;

    gap: 13px;
  }
.lontor-article-icon {
    width: 38px;
    height: 38px;

    border-radius: 10px;

    font-size: 16px;
  }
.lontor-article-content h3 {
    font-size: 14px;
  }
.lontor-article-content p {
    font-size: 10px;
  }
.lontor-article-link {
    font-size: 9px;
  }
}
@media (max-width: 430px) {
.lontor-copy-grid,
  .lontor-stats {
    grid-template-columns: 1fr;
  }
.lontor-stat {
    min-height: auto;
  }
.lontor-modal-actions {
    flex-direction: column;
  }
.lontor-modal-actions .btn {
    width: 100%;
  }
.lontor-article-card {
    padding: 16px;
  }
.lontor-article-icon {
    width: 34px;
    height: 34px;

    font-size: 14px;
  }
.lontor-article-content h3 {
    font-size: 13px;
  }
}
.gallery {
  position: relative;
  margin-top: 18px;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--ink2);
  border: 1px solid var(--line);
}
.gallery-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.gallery-track::-webkit-scrollbar { display: none; }
.gallery-track:focus-visible {
  outline: 2px solid var(--blue-light);
  outline-offset: -2px;
}
.gallery-slide {
  flex: 0 0 100%;
  margin: 0;
  display: grid;
  place-items: center;
  scroll-snap-align: center;
  scroll-snap-stop: always;
  padding: 12px;
}
.gallery-slide img,
.gallery-slide video {
  display: block;
  width: 100%;
  max-height: min(70vh, 640px);
  object-fit: contain;
  border-radius: var(--radius-sm);
  background: #000;
}
.gallery-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border: 1px solid var(--line-soft);
  border-radius: 50%;
  background: rgba(5, 8, 16, 0.72);
  color: var(--white);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  backdrop-filter: blur(6px);
}
.gallery-btn:hover { background: var(--blue); }
.gallery-btn:focus-visible { outline: 2px solid var(--blue-light); outline-offset: 2px; }
.gallery-btn:disabled { opacity: 0.3; cursor: default; background: rgba(5, 8, 16, 0.72); }
.gallery-prev { left: 10px; }
.gallery-next { right: 10px; }
.gallery-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 0 0 12px;
}
.gallery-dots i {
  width: 8px;
  height: 8px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.25);
  transition: width 0.2s, background 0.2s;
}
.gallery-dots i.is-active { width: 22px; background: var(--blue-light); }
.gallery.is-single .gallery-btn,
.gallery.is-single .gallery-dots { display: none; }
@media (hover: none) and (pointer: coarse) {
.gallery-btn { display: none; }
}
@media (prefers-reduced-motion: reduce) {
.gallery-track { scroll-behavior: auto; }
}
@media (min-width: 701px) {
.lontor-stats.lontor-stats-two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.project-modal-label,
.project-modal-kicker {
  font-size: 17px;
  font-weight: 900;
  letter-spacing: 0.08em;
}
.project-modal-header h2 {
  font-size: clamp(32px, 4.5vw, 52px);
  font-weight: 900;
  line-height: 1.08;
}
.lontor-section h3 {
  font-size: clamp(25px, 3.2vw, 34px);
  font-weight: 900;
}
.lontor-section h4 {
  font-size: 17px;
  font-weight: 900;
}
.lontor-section p {
  font-size: 16px;
  line-height: 1.85;
}
.lontor-stat strong {
  font-size: clamp(26px, 3.2vw, 37px);
  font-weight: 900;
}
.lontor-stat span {
  font-size: 12px;
  font-weight: 600;
}
.lontor-opportunity strong {
  font-size: 16px;
  font-weight: 900;
}
.lontor-opportunity p {
  font-size: 14px;
}
.lontor-image-placeholder span {
  font-size: 12px;
  font-weight: 800;
}
.lontor-article-content > span {
  font-size: 10px;
  font-weight: 900;
}
.lontor-article-content h3 {
  font-size: 17px;
  font-weight: 900;
}
.lontor-article-content p {
  font-size: 13px;
  line-height: 1.75;
}
.lontor-article-link {
  font-size: 12px;
  font-weight: 900;
}
.gallery-btn {
  font-size: 27px;
  font-weight: 900;
}
@media (max-width: 620px) {
.project-modal-header h2 {
    font-size: 34px;
    font-weight: 900;
  }
.project-modal-label,
  .project-modal-kicker {
    font-size: 10px;
    font-weight: 900;
  }
.lontor-section h3 {
    font-size: 25px;
    font-weight: 900;
  }
.lontor-section h4 {
    font-size: 16px;
    font-weight: 900;
  }
.lontor-section p {
    font-size: 14px;
    line-height: 1.8;
  }
.lontor-stat strong {
    font-size: 27px;
    font-weight: 900;
  }
.lontor-stat span {
    font-size: 11px;
  }
.lontor-opportunity strong {
    font-size: 15px;
    font-weight: 900;
  }
.lontor-opportunity p {
    font-size: 13px;
  }
.lontor-article-content h3 {
    font-size: 16px;
    font-weight: 900;
  }
.lontor-article-content p {
    font-size: 12px;
  }
.lontor-article-link {
    font-size: 11px;
    font-weight: 900;
  }
}
@media (max-width: 380px) {
.project-modal-header h2 {
    font-size: 31px;
  }
.lontor-section h3 {
    font-size: 23px;
  }
}



/* YouTube / embedded video slides and fallback link */
.gallery-slide iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: var(--radius-sm);
  background: #000;
}

.video-fallback {
  margin: 10px 0 0;
  font-size: 13px;
}

.video-fallback a {
  color: var(--blue-light);
  text-decoration: none;
}

.video-fallback a:hover { text-decoration: underline; }

/* Placeholder box for images and videos you have not added yet */
.gallery-placeholder {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 6px;
  width: 100%;
  aspect-ratio: 16 / 10;
  padding: 20px;
  border: 1.5px dashed rgba(255, 255, 255, 0.28);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.03);
  color: rgba(255, 255, 255, 0.7);
  text-align: center;
}

.gallery-placeholder strong { font-size: 16px; color: #fff; }
.gallery-placeholder span { font-size: 13px; }
