:root {
  --ink: #000000;
  --muted: #000000;
  --line: rgba(15, 23, 42, 0.233);
  --soft: #f4f7fb;

  /* Rabiona sky-blue */
  --brand: #2ea8ff;
  --brand2: #0a6ecb;

  --radius: 18px;
  --shadow: 0 18px 45px rgba(2, 12, 27, 0.1);
}

* {
  box-sizing: border-box;
}
html,
body {
  height: 100%;
}
body {
  margin: 0;
  font-family:
    Inter,
    system-ui,
    -apple-system,
    Segoe UI,
    Roboto,
    Arial,
    sans-serif;
  color: var(--ink);
  background: #fff;
}

img {
  display: block;
  max-width: 100%;
}
a {
  color: inherit;
  text-decoration: none;
}
a:hover {
  text-decoration: none;
}
.wrap {
  width: min(1180px, 92%);
  margin-inline: auto;
}

.muted {
  color: var(--muted);
}
.dot {
  opacity: 0.6;
  padding: 0 10px;
}

/* Topbar */
.topbar {
  background: #100577;
  color: rgb(255, 255, 255);
  font-size: 11px;
}
.topbar__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 7px 7px;
}
.topbar a {
  color: rgb(255, 255, 255);
}
.topbar a:hover {
  color: #f50000;
}
.topbar__cta {
  display: inline-flex;
  padding: 6px 6px;
  border-radius: 100px;
  background: rgba(0, 0, 0, 0.18);
  border: 1px solid rgb(28, 161, 255);
  font-weight: 500;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgb(255, 255, 255);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand__logo {
  width: 44px;
  height: 44px;
  object-fit: contain;
}
.brand__name {
  font-weight: 900;
  letter-spacing: -0.02em;
  font-size: 14px;
}
.brand__tag {
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}

/* Nav */
.nav {
  display: flex;
  align-items: center;
  gap: 14px;
}
.nav__link {
  font-weight: 700;
  color: rgb(34, 0, 156);

  padding: 10px 10px;
  border-radius: 12px;
}
.nav__link:hover {
  background: rgba(46, 168, 255, 0.938);
  color: var(--ink);
}
.nav__link.is-active {
  color: var(--ink);
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: transparent;
  border-radius: 14px;
  padding: 10px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 5px 0;
  background: rgb(16, 81, 233);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 14px;
  padding: 13px 16px;
  font-weight: 800;
  border: 1px solid transparent;
  cursor: pointer;
}
.btn--primary {
  background: var(--brand);
  color: #000000;
  box-shadow: 0 14px 40px rgba(255, 14, 14, 0);
}
.btn--primary:hover {
  filter: brightness(0.98);
}
.btn--ghost {
  background: transparent;
  border-color: var(--line);
  color: rgb(0, 0, 0);
}
.btn--ghost:hover {
  border-color: rgba(253, 252, 255, 0.986);
  background: rgba(255, 46, 46, 0);
}
.btn--sm {
  padding: 10px 12px;
  border-radius: 12px;
}
.btn--light {
  border-color: rgb(202, 62, 62);
  color: #000200;
}

/* Hero */
.hero {
  background: linear-gradient(180deg, #280ad3 0%, #f6f9ff 100%);
  border-bottom: 1px solid var(--line);
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 34px;
  padding: 54px 0 40px;
}
.kicker {
  display: inline-block;
  font-weight: 900;
  color: var(--brand2);
  background: rgb(255, 255, 255);
  border: 1px solid rgb(255, 46, 192);
  padding: 8px 12px;
  border-radius: 999px;
  margin: 0 0 14px;
}
.hero h1 {
  margin: 0 0 14px;
  font-size: clamp(34px, 4.4vw, 56px);
  line-height: 1.03;
  letter-spacing: -0.03em;
}
.lead {
  margin: 0 0 22px;
  max-width: 60ch;
  font-size: 16.5px;
  line-height: 1.65;
  color: rgb(255, 255, 255);
}
.hero__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.hero__actions{
  align-items: center;
  }

.hero__stats {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.stat {
  background: #b6fdff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px 16px;
  box-shadow: 0 14px 40px rgba(252, 0, 0, 0.295);
}
.stat__num {
  font-weight: 900;
  font-size: 20px;
}
.stat__label {
  margin-top: 6px;
  font-weight: 700;
  color: var(--muted);
  font-size: 13px;
}

/* Hero visual and "blue bag" */
.hero__visual {
  position: relative;
  min-height: 480px;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #dfefff;
}
.hero__shape {
  position: absolute;
  inset: -12% -35% -12% 38%;
  background: linear-gradient(180deg, var(--brand) 0%, var(--brand2) 100%);
  transform: skewX(-10deg);
  border-radius: 42px;
  opacity: 0.95;
  z-index: 1;
}
.hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 2;
  transform: scale(1.02);
}

/* Sections */
.section {
  padding: 56px 0;
}
.section--soft {
  background: var(--soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.section__top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 12px;
}
.section__title {
  margin: 0;
  font-size: 28px;
  letter-spacing: -0.02em;
}
.section__lead {
  margin: 10px 0 18px;
  color: var (--ink);
  line-height: 1.7;
}
.section__actions {
  display: flex;
  gap: 10px;
  align-items: center;
}
.text-link {
  color: var(--brand2);
  font-weight: 800;
}
.text-link:hover {
  text-decoration: underline;
}

/* Horizontal scroll lists (JB-like) */
.hscroll {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(280px, 1fr);
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 8px;
}
.hscroll > * {
  scroll-snap-align: start;
}

/* Icon buttons for sliders */
.icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, 0.14);
  background: #fff;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
}
.icon-btn:hover {
  border-color: rgba(46, 168, 255, 0.45);
  background: rgba(46, 168, 255, 0.06);
}

/* Gallery tiles */
.tile {
  background: #dee0eb;
  border: 1px solid var(--line);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 18px 45px rgba(0, 26, 255, 0.705);
}
.tile img {
  width: 100%;
  height: 190px;
  object-fit: cover;
}
.tile__body {
  padding: 14px;
}
.tile__body h3 {
  margin: 0 0 6px;
  letter-spacing: -0.01em;
  font-size: 16px;
}
.tile__body p {
  margin: 0;
  color: rgb(0, 0, 0);
  line-height: 1.6;
  font-size: 14px;
}

/* About split */
.split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 18px;
  align-items: start;
}
.split__main h2 {
  margin: 0 0 10px;
  letter-spacing: -0.02em;
  font-size: 30px;
}
.split__main p {
  margin: 0 0 12px;
  color: rgb(0, 0, 0);
  line-height: 1.75;
}
.facts {
  margin: 12px 0 0;
  padding: 0 0 0 18px;
  color: rgb(0, 0, 0);
  line-height: 1.7;
}
.cta-row {
  margin-top: 16px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 18px;
  box-shadow: 0 18px 40px rgba(2, 12, 27, 0.06);
}
.panel h3 {
  margin: 0 0 12px;
}
.panel__note {
  margin: 14px 0 0;
  color: var(--muted);
  line-height: 1.6;
  font-size: 14px;
}

.mini-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.mini {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px;
  background: #e9163259;
}
.mini__num {
  font-weight: 900;
  font-size: 18px;
}
.mini__label {
  margin-top: 6px;
  color: var(--muted);
  font-weight: 700;
  font-size: 12px;
}

/* Services */
.svc {
  display: flex;
  gap: 12px;
  padding: 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 12px 30px rgba(2, 12, 27, 0.05);
}
.svc:hover {
  border-color: rgba(46, 168, 255, 0.45);
  background: rgba(46, 168, 255, 0.05);
}
.svc__icon {
  font-size: 24px;
}
.svc__body h3 {
  margin: 0 0 6px;
  font-size: 16px;
}
.svc__body p {
  margin: 0;
  color: rgb(0, 0, 0);
  line-height: 1.6;
  font-size: 14px;
}

/* References cards */
.ref {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.08);
}
.ref img {
  width: 100%;
  height: 210px;
  object-fit: cover;
}
.ref__body {
  padding: 16px;
}
.ref__body h3 {
  margin: 0 0 6px;
  letter-spacing: -0.01em;
  font-size: 16px;
}
.ref__body p {
  margin: 0 0 12px;
  color: rgb(0, 0, 0);
  line-height: 1.6;
  font-size: 14px;
}
.ref__links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* Banner */
.banner {
  background: linear-gradient(180deg, var(--brand2) 0%, #083c72 100%);
  color: #fff;
}
.banner__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 38px 0;
}
.banner__copy h2 {
  margin: 0 0 8px;
  letter-spacing: -0.02em;
}
.banner__copy p {
  margin: 0;
  color: rgb(255, 255, 255);
  line-height: 1.7;
  max-width: 80ch;
}

/* Contact */
.contact-card {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 18px;
  box-shadow: 0 18px 40px rgba(74, 141, 241, 0.438);
  background: #ddf6ff;
}
.contact-card__cta {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Footer */
.footer {
  background: #1014dd;
  color: rgba(255, 255, 255, 0.9);
  padding: 28px 0 18px;
}
.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
}
.footer__brand {
  font-weight: 900;
  letter-spacing: -0.01em;
}
.footer__muted {
  color: rgba(255, 255, 255, 0.938);
  margin-top: 6px;
}
.footer__links {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.footer__links a {
  color: rgba(255, 255, 255, 0.959);
  font-weight: 800;
}
.footer__links a:hover {
  color: #fff;
}
.footer__bottom {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.973);
}

/* Responsive */
@media (max-width: 980px) {
  .nav {
    display: none;
  }
  .nav-toggle {
    display: block;
  }
  .nav.is-open {
    display: grid;
    position: absolute;
    right: 4%;
    top: 68px;
    width: min(380px, 92vw);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 12px;
    box-shadow: var(--shadow);
  }
  .hero__grid {
    grid-template-columns: 1fr;
    padding: 38px 0 30px;
  }
  .hero__visual {
    min-height: 380px;
  }
  .hero__stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .split {
    grid-template-columns: 1fr;
  }
  .svc-grid {
    grid-template-columns: 1fr;
  }
  .banner__inner {
    flex-direction: column;
    align-items: flex-start;
  }
  .contact-card {
    flex-direction: column;
  }
  .footer__inner {
    flex-direction: column;
  }
}
/* =========================
   HERO OVERLAY (BG + FG IMAGE)
   ========================= */

.hero.hero--overlay {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--line);

  /* IMPORTANT PATH:
     Your CSS is in: assets/css/styles.css
     So background image must be relative to that folder:
     ../../assets/images/... won't work.
     Correct is: ../images/... (one step up from css to assets)
  */
  background-image: url("../images/image/hero.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero.hero--overlay::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(11, 16, 32, 0.82) 0%,
    rgba(11, 16, 32, 0.55) 45%,
    rgba(11, 16, 32, 0.2) 100%
  );
}

.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 34px;
  align-items: center;
  padding: 58px 0 44px;
}

.hero__content h1 {
  color: #fff;
}

.hero__content .lead {
  color: rgb(255, 255, 255);
}

/* Buttons on dark background */
.btn--ghost-on-dark {
  border-color: rgba(255, 255, 255, 0.28) !important;
  color: #fff !important;
}
.btn--ghost-on-dark:hover {
  border-color: rgba(46, 168, 255, 0.55) !important;
  background: rgba(46, 168, 255, 0.12) !important;
}

/* Stats style on dark */
.stat--dark {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(255, 255, 255, 0.4);
}

/* Foreground media block */
/* Foreground media block (CONTAINED) */
.hero__media {
  position: relative;
  height: 480px; /* fixed frame (better than min-height) */
  border-radius: 28px;
  overflow: hidden; /* THIS is what stops overflow */
  isolation: isolate; /* keeps z-index clean */
}

/* Optional: subtle frame background */
.hero__media {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

/* Blue "bag" shape - keep it inside the frame */
.hero__bag {
  position: absolute;
  inset: -6% -22% -6% 46%;
  transform: skewX(-12deg);
  border-radius: 42px;
  opacity: 0;
  z-index: 1;
}

/* Foreground image - fully contained */
.hero__fg {
  position: absolute;
  inset: 0; /* fill the media box */
  width: 100%;
  height: 100%;
  object-fit: cover; /* cover for a strong look */
  object-position: right center;
  z-index: 2;
  transform: scale(1.02); /* tiny punch */
  /* IMPORTANT: shadows cause overflow-looking edges.
     If you still want shadow, apply it to the container, not the image. */
  filter: none;
}

/* If you want the shadow effect, put it on the container */
.hero__media {
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0);
}

/* =========================
   HERO RESPONSIVE (CLEAN)
   ========================= */

/* Tablet and below */
@media (max-width: 980px) {
  .hero__inner {
    grid-template-columns: 1fr;
    padding: 42px 0 34px;
  }

  .hero__media {
    min-height: 360px;
  }

  .hero__bag {
    inset: -8% -25% -8% 40%;
  }

  .hero__fg {
    object-position: center;
  }
}

/* Small tablets / large phones */
@media (max-width: 768px) {
  /* Keep padding responsibility on .hero__inner (not .hero) */
  .hero__inner {
    padding: 44px 0 30px;
    text-align: left;
  }

  .hero.hero--overlay {
    min-height: 72vh; /* consistent hero height here */
  }

  .hero h1 {
    font-size: 1.85rem;
    line-height: 1.25;
  }

  .hero .lead {
    font-size: 1rem;
    line-height: 1.6;
  }

  .hero__media {
    min-height: 320px;
  }

  /* If you have CTA buttons wrapper, target the REAL class name.
     Replace .hero__actions with whatever wrapper holds your hero buttons. */
  .hero__actions {
    display: flex;
    flex-direction: row;
    gap: 12px;
    align-items: stretch;
  }

  .hero__actions a,
  .hero__actions button {
    width: 100%;
    max-width: 360px;
    min-height: 48px;
  }
  .hero__actions .btn{
    width: 100%;
    max-width: 180px;
  }
}
@media (max-width: 768px){
  .topbar__inner{padding: 10px 10px;}
  .nav-toggle{padding: 12px;}
  .nav-toggle span{height: 2px;}
}

/* Small phones */
@media (max-width: 576px) {
  .hero.hero--overlay {
    min-height: 74vh; /* not conflicting with 768px anymore */
  }

  .hero h1 {
    font-size: 1.6rem;
  }

  .hero__media {
    min-height: 280px;
  }

  /* Optional: tighten the bag so it doesn’t dominate */
  .hero__bag {
    inset: -10% -30% -10% 35%;
  }
}

/* =========================
   NEWS
   ========================= */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.news-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(2, 12, 27, 0.08);
}

.news-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.news-card__body {
  padding: 16px;
}

.news-card__body h3 {
  margin: 0 0 8px;
  font-size: 16px;
}

.news-card__body p {
  margin: 0;
  color: rgba(15, 23, 42, 0.75);
  line-height: 1.6;
  font-size: 14px;
}

.news-card__footer {
  padding: 12px 16px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted);
}
/* =========================
   SERVICES CARDS 
   ========================= */
.svc-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.svc-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 18px;
  box-shadow: 0 18px 40px rgba(2, 12, 27, 0.06);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.svc-card__top {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.svc-card__icon {
  font-size: 40px;
  line-height: 1;
}

.svc-card h3 {
  margin: 0;
  font-size: 15px;
  letter-spacing: -0.01em;
}

.svc-card p {
  margin: 0;
  color: rgb(0, 0, 0);
  line-height: 1.65;
  font-size: 16px;
}

.svc-card ul {
  margin: 0;
  padding-left: 18px;
  color: rgb(0, 0, 0);
  line-height: 1.6;
  font-size: 15px;
}

@media (max-width: 980px) {
  .svc-grid {
    grid-template-columns: 1fr;
  }
}

/* =========================
   WHY STRIP
   ========================= */
.why-strip {
  background: linear-gradient(180deg, var(--brand2) 0%, #083c72 100%);
  border-radius: 22px;
  padding: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: #fff;
  box-shadow: 0 18px 45px rgba(2, 12, 27, 0.12);
}

.why-strip h2 {
  margin: 0 0 8px;
  font-size: 16px;
  letter-spacing: -0.01em;
}

.why-strip p {
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.7;
  font-size: 14px;
  max-width: 80ch;
}

@media (max-width: 980px) {
  .why-strip {
    flex-direction: column;
    align-items: flex-start;
  }
}
/* =========================
   PROJECTS PAGE
   ========================= */

.h2-lite {
  margin: 0 0 14px;
  font-size: 20px;
  letter-spacing: -0.01em;
}

.filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.filter-btn {
  border: 1px solid var(--line);
  background: #fff;
  padding: 10px 12px;
  border-radius: 999px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.08s ease;
}
.filter-btn:hover {
  transform: translateY(-1px);
}
.filter-btn.is-active {
  background: rgba(46, 168, 255, 0.12);
  border-color: rgba(46, 168, 255, 0.55);
  color: var(--ink);
}

.feature {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 18px 45px rgba(2, 12, 27, 0.08);
}

/* Only apply to direct images (non-slider usage) */
.feature__media > img{
  width:100%;
  height:100%;
  min-height: 320px;
  object-fit: cover;
  display:block;
}


.feature__body {
  padding: 18px;
}
.feature__title {
  margin: 0 0 10px;
  font-size: 18px;
  letter-spacing: -0.01em;
}
.feature__meta {
  margin: 0 0 10px;
  color: rgb(0, 0, 0);
  font-size: 14px;
  line-height: 1.6;
}
.feature__text {
  margin: 0 0 12px;
  color: rgb(0, 0, 0);
  line-height: 1.7;
}
.feature__subhead {
  margin: 14px 0 8px;
  font-size: 14px;
}
.feature__list {
  margin: 0;
  padding-left: 18px;
  color: rgb(0, 0, 0);
  line-height: 1.7;
}
.feature__actions {
  margin-top: 14px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.project-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 18px 45px rgba(2, 12, 27, 0.06);
  display: flex;
  flex-direction: column;
}

.project-card__media img {
  height: 320px; /* was 200px */
  width: 100%;
  object-fit: cover;
  display: block;
}
.project-card__body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 220px;
}

/* Project cards: fixed media frame */
.project-card__media .pslider{
  height: 320px;
  min-height: 320px;
}

.project-card__body h3 {
  margin: 0;
  font-size: 15.5px;
  letter-spacing: -0.01em;
}

.project-card__meta {
  margin: 0;
  color: rgb(0, 0, 0);
  font-size: 14px;
  line-height: 1.55;
}

.project-card__text {
  margin: 0;
  color: rgb(0, 0, 0);
  font-size: 14.5px;
  line-height: 1.65;
}

.project-card__actions {
  margin-top: auto;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.load-more {
  display: flex;
  justify-content: center;
  margin-top: 18px;
}

@media (max-width: 980px) {
  .feature {
    grid-template-columns: 1fr;
  }
  .projects-grid {
    grid-template-columns: 1fr;
  }
}

/* =========================
   DIALOG (modal replacement)
   ========================= */
.dlg {
  width: min(860px, 92vw);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 0;
  overflow: hidden;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.35);
}

.dlg::backdrop {
  background: rgba(0, 0, 0, 0.55);
}

.dlg__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  background: #0b1020;
  color: #fff;
}

.dlg__header h3 {
  margin: 0;
  font-size: 15px;
  letter-spacing: -0.01em;
}

.dlg__close {
  border: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
  font-size: 18px;
  padding: 8px 10px;
  border-radius: 12px;
}
.dlg__close:hover {
  background: rgba(255, 255, 255, 0.08);
}

.dlg__body {
  padding: 16px;
  background: #fff;
  color: var(--ink);
}

.dlg__body img {
  width: 100%;
  height: auto;
  border-radius: 14px;
  margin-bottom: 12px;
}

.dlg__body h4 {
  margin: 12px 0 8px;
  font-size: 14px;
}

.dlg__body ul {
  margin: 0;
  padding-left: 18px;
  color: rgba(15, 23, 42, 0.78);
  line-height: 1.7;
}

/* =========================
   ABOUT PAGE HELPERS
   ========================= */
.page-head {
  margin-bottom: 18px;
}
.page-title {
  margin: 0 0 10px;
  font-size: clamp(26px, 3vw, 38px);
  letter-spacing: -0.02em;
}
.page-lead {
  margin: 0;
  max-width: 75ch;
  color: rgb(0, 0, 0);
  line-height: 1.7;
}

.paper {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 18px;
  box-shadow: 0 18px 45px rgba(2, 12, 27, 0.06);
}
.paper p {
  margin: 0;
  color: rgb(0, 0, 0);
  line-height: 1.8;
}

.two-col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.cardx {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 18px;
  box-shadow: 0 18px 45px rgba(2, 12, 27, 0.06);
}
.cardx__title {
  margin: 0 0 8px;
  font-size: 15px;
  letter-spacing: -0.01em;
}
.cardx__text {
  margin: 0;
  color: rgb(0, 0, 0);
  line-height: 1.75;
}

.facts-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.fact {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 14px 16px;
}
.fact__k {
  font-weight: 900;
  font-size: 13px;
  color: rgb(0, 0, 0);
}
.fact__v {
  margin-top: 6px;
  color: rgb(0, 0, 0);
  line-height: 1.5;
  font-size: 13px;
}

@media (max-width: 980px) {
  .two-col {
    grid-template-columns: 1fr;
  }
  .facts-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
/* =========================
   CONTACT PAGE (no bootstrap)
   ========================= */
.contact-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 18px;
  align-items: start;
}

.form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.label {
  font-weight: 800;
  font-size: 13px;
  color: rgba(15, 23, 42, 0.85);
}

.input,
.textarea {
  width: 100%;
  border: 1px solid rgba(15, 23, 42, 0.16);
  border-radius: 14px;
  padding: 12px 12px;
  font: inherit;
  color: var(--ink);
  background: #fff;
  outline: none;
}

.textarea {
  resize: vertical;
  min-height: 160px;
}

.input:focus,
.textarea:focus {
  border-color: rgba(46, 168, 255, 0.65);
  box-shadow: 0 0 0 4px rgba(46, 168, 255, 0.16);
}

.form-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.contact-lines {
  margin-top: 10px;
}
.contact-line {
  margin: 10px 0;
  color: rgba(15, 23, 42, 0.78);
  line-height: 1.6;
}

.map-embed {
  border: 1px solid rgba(46, 168, 255, 0.35);
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 18px 40px rgba(2, 12, 27, 0.06);
}
.map-embed iframe {
  width: 100%;
  height: 260px;
  border: 0;
  display: block;
}

@media (max-width: 980px) {
  .contact-layout {
    grid-template-columns: 1fr;
  }
  .map-embed iframe {
    height: 240px;
  }
}

/* =========================
   UTILITIES
   ========================= */
/* =========================
   CSS-ONLY MOBILE SLIDER
   - Works with 5+ slides
   - No JS
   ========================= */
/* SLIDER SETTINGS */
:root {
  --slides: 5;
  --slideDur: 4.5s; /* each slide shows for 4.5s */
}

/* Mobile only */
.hero__slider {
  display: none;
}

@media (max-width: 980px) {
  .hero__slider {
    display: block;
    position: relative;
    height: 360px;
    border-radius: 28px;
    overflow: hidden;
    isolation: isolate;
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.25);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
  }
}

/* Blue bag */
.hero__slider .hero__bag {
  position: absolute;
  inset: -6% -22% -6% 46%;
  background: linear-gradient(180deg, var(--brand) 0%, var(--brand2) 100%);
  transform: skewX(-12deg);
  border-radius: 42px;
  opacity: 0;
  z-index: 1;
}

/* Slides */
.hero__slider .hero__slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 2;
  opacity: 0;
  animation: slideFade calc(var(--slides) * var(--slideDur)) linear infinite;
  will-change: opacity;
}

/* Delay offsets */
.hero__slider .hero__slide.s1 {
  animation-delay: calc(0 * var(--slideDur));
}
.hero__slider .hero__slide.s2 {
  animation-delay: calc(1 * var(--slideDur));
}
.hero__slider .hero__slide.s3 {
  animation-delay: calc(2 * var(--slideDur));
}
.hero__slider .hero__slide.s4 {
  animation-delay: calc(3 * var(--slideDur));
}
.hero__slider .hero__slide.s5 {
  animation-delay: calc(4 * var(--slideDur));
}

/* Fade curve */
@keyframes slideFade {
  0% {
    opacity: 0;
  }
  8% {
    opacity: 1;
  }
  78% {
    opacity: 1;
  }
  92% {
    opacity: 0;
  }
  100% {
    opacity: 0;
  }
}

/* CAPTIONS (synced) */
.hero__highlights {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  z-index: 3;
  pointer-events: none;
}

.hero__hl {
  position: absolute;
  left: 0;
  bottom: 0;
  width: min(520px, 100%);
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(11, 16, 32, 0);
  border: 1px solid rgb(69, 3, 252);
  backdrop-filter: blur(20px);
  color: #000000;

  opacity: 0;
  transform: translateY(10px);
  animation: capFade calc(var(--slides) * var(--slideDur)) linear infinite;
  will-change: opacity, transform;
}

.hero__hl strong {
  display: block;
  font-size: 14px;
}
.hero__hl span {
  display: block;
  margin-top: 4px;
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.82);
}

/* Same delay offsets = perfect sync */
.hero__hl.h1 {
  animation-delay: calc(0 * var(--slideDur));
}
.hero__hl.h2 {
  animation-delay: calc(1 * var(--slideDur));
}
.hero__hl.h3 {
  animation-delay: calc(2 * var(--slideDur));
}
.hero__hl.h4 {
  animation-delay: calc(3 * var(--slideDur));
}
.hero__hl.h5 {
  animation-delay: calc(4 * var(--slideDur));
}

/* Match the slide fade window */
@keyframes capFade {
  0% {
    opacity: 0;
    transform: translateY(10px);
  }
  10% {
    opacity: 1;
    transform: translateY(0);
  }
  76% {
    opacity: 1;
    transform: translateY(0);
  }
  90% {
    opacity: 0;
    transform: translateY(10px);
  }
  100% {
    opacity: 0;
    transform: translateY(10px);
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .hero__slide,
  .hero__hl {
    animation: none;
  }
  .hero__slide.s1 {
    opacity: 1;
  }
  .hero__hl.h1 {
    opacity: 1;
    transform: none;
  }
}
/* Hide on mobile only */
@media (max-width: 980px) {
  .hide-on-mobile {
    display: none !important;
  }
}

/* =========================
   FAQ (no Bootstrap)
   ========================= */
.faq {
  display: grid;
  gap: 12px;
}

.faq__item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 18px 45px rgba(2, 12, 27, 0.06);
}

.faq__h {
  margin: 0;
}

.faq__q {
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  padding: 16px 16px;
  font-weight: 770;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
}

.faq__q:hover {
  background: rgba(46, 168, 255, 0.301);
}

.faq__icon {
  width: 18px;
  height: 18px;
  display: inline-block;
  position: relative;
  flex: 0 0 auto;
}

.faq__icon::before,
.faq__icon::after {
  content: "";
  position: absolute;
  inset: 50% 0 auto 0;
  height: 2px;
  background: rgb(0, 0, 0);
  transform: translateY(-50%);
  border-radius: 2px;
}
.faq__icon::after {
  inset: 0 50% 0 auto;
  width: 2px;
  height: 18px;
  transform: translateX(-50%);
}

.faq__q[aria-expanded="true"] .faq__icon::after {
  opacity: 0; /* turn + into − */
}

.faq__a {
  padding: 0 16px 16px;
  color: rgb(0, 0, 0);
  line-height: 1.75;
  font-size: 14.5px;
}

.faq__a a {
  color: var(--brand2);
  font-weight: 800;
}
.faq__a a:hover {
  text-decoration: underline;
}

/* =========================
   Project Slider (single container, fade)
   ========================= */
.pslider {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  isolation: isolate;
  background: #0b1020;
  min-height: 320px; /* matches your card media height */
}

.pslide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  transform: scale(1.01);
  transition:
    opacity 0.45s ease,
    transform 0.45s ease;
}

.pslide.is-active {
  opacity: 1;
  transform: scale(1);
}

.pslide img{
  width: 100%;
  height: 100%;         /* key fix */
  object-fit: cover;
  display: block;
}

.pslider, .pslider *{ user-select:none; }
.pslide img{ pointer-events:none; -webkit-user-drag:none; }


/* Buttons */
.pslider__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(0, 52, 221, 0.26);
  color: #fff;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  z-index: 3;
  backdrop-filter: blur(6px);
}

.pslider__btn:hover {
  background: rgba(46, 168, 255, 0.25);
  border-color: rgba(46, 168, 255, 0.55);
}

.pslider__btn.is-prev {
  left: 10px;
}
.pslider__btn.is-next {
  right: 10px;
}

/* Dots */
.pslider__dots {
  position: absolute;
  left: 50%;
  bottom: 10px;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 3;
}

.pdot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: rgb(1, 255, 65);
}

.pdot.is-active {
  background: rgba(255, 255, 255, 0.92);
}
/* Captions for pslider */
.pslider__caps{
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 20px;
  z-index: 2;
  pointer-events: none;
}

.pcap{
  position: absolute;
  left: 0;
  bottom: 0;
  width: min(360px, 100%);
  padding: 12px 12px;
  border-radius: 16px;
  background: rgba(3, 62, 255, 0.377);
  border: 1px solid rgb(252, 252, 252);
  backdrop-filter: blur(14px);
  color: #ffffff;

  opacity: 0;
  transform: translateY(10px);
  transition: opacity .35s ease, transform .35s ease;
}

.pcap strong{display:block; font-size: 14px;}
.pcap span{display:block; margin-top: 4px; font-size: 12.5px; color: rgba(255,255,255,.85);}

.pcap.is-active{
  opacity: 1;
  transform: translateY(0);
}

/* Mobile sizing */
@media (max-width: 768px){
  .pcap{ padding: 10px 12px; }
}
@media (min-width: 980px){
  section[aria-label="Featured projects slider"]{ display:none; }
}

/* Featured case study: give the media a stable, larger frame */
.feature__media{
  position: relative;
  background: #0b1020;
}

/* Desktop: strong case-study visual */
@media (min-width: 981px){
  .feature__media{
    height: 420px;      /* adjust: 380–520 based on taste */
  }
  .feature__media .pslider{
    height: 100%;
    min-height: 0;      /* stop inheriting 320 min-height issues */
    border-radius: 0;   /* optional: feature already clips */
  }
}

/* Mobile: let it be smaller */
@media (max-width: 980px){
  .feature__media .pslider{
    height: 320px;
  }
}

/* =========================
   END OF styles.css
   ========================= */
