:root {
  --bg: #f4fbff;
  --bg-soft: #eaf7fd;
  --surface: #ffffff;
  --surface-2: #f9fdff;
  --text: #123247;
  --muted: #5d7482;
  --line: #d5ebf7;
  --dark: #123247;
  --dark-2: #1a425b;
  --accent: #35aae1;
  --accent-2: #fcca00;
  --accent-soft: #fff5c7;
  --hero-image: url('assets/hero-jpm-bg.jpg');
  --shadow: 0 24px 70px rgba(18, 50, 71, 0.10);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --container: 1220px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, sans-serif;
  background: radial-gradient(circle at top right, rgba(53, 170, 225, 0.10), transparent 22%), radial-gradient(circle at left, rgba(252, 202, 0, 0.10), transparent 18%), var(--bg);
  color: var(--text);
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }

.container {
  width: min(calc(100% - 32px), var(--container));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(16px);
  background: rgba(244, 251, 255, 0.82);
  border-bottom: 1px solid rgba(213, 235, 247, 0.92);
}
.site-header--overlay {
  background: rgba(244, 251, 255, 0.72);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 84px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
}

.brand__logo {
  display: block;
  height: 52px;
  width: auto;
}

.nav__links {
  display: flex;
  gap: 24px;
  color: var(--muted);
}

.nav__links a:hover { color: var(--text); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  transition: .25s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn--sm { min-height: 44px; padding: 0 18px; }
.btn--dark {
  background: var(--dark);
  color: white;
  box-shadow: 0 16px 40px rgba(18, 50, 71, 0.18);
}
.btn--light {
  background: rgba(255,255,255,0.8);
  color: var(--text);
  border-color: var(--line);
}

.hero {
  padding: 64px 0 32px;
}
.hero--parallax {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  isolation: isolate;
  overflow: clip;
  padding: 120px 0 64px;
}
.hero__bg,
.hero__overlay {
  position: absolute;
  inset: 0;
}
.hero__bg {
  background-image: var(--hero-image);
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  transform: translateY(var(--parallax-offset, 0px)) scale(1.08);
  will-change: transform;
}
.hero__overlay {
  background:
    linear-gradient(180deg, rgba(18, 50, 71, 0.55) 0%, rgba(18, 50, 71, 0.40) 35%, rgba(244, 251, 255, 0.10) 75%, rgba(244, 251, 255, 0.0) 100%),
    linear-gradient(90deg, rgba(18, 50, 71, 0.54) 0%, rgba(18, 50, 71, 0.18) 52%, rgba(18, 50, 71, 0.06) 100%);
}
.hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 32px;
  align-items: end;
}
.hero__content,
.hero__visual,
.hero__panel,
.service-card,
.project-card,
.process-panel,
.contact-panel,
.feature-card,
.mini-card {
  border-radius: var(--radius-xl);
}
.eyebrow {
  display: inline-block;
  margin-bottom: 18px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .24em;
  color: var(--accent);
}
.eyebrow--light { color: #a9ddf4; }
.hero__panel {
  max-width: 760px;
  padding: 34px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.14);
  box-shadow: 0 28px 80px rgba(9, 27, 39, 0.24);
  backdrop-filter: blur(10px);
}
.hero h1 {
  margin: 0;
  font-size: clamp(3rem, 6vw, 5.8rem);
  line-height: .95;
  letter-spacing: -0.05em;
  max-width: 12ch;
  color: #ffffff;
}
.hero__lead {
  max-width: 720px;
  margin: 24px 0 0;
  font-size: 1.15rem;
  line-height: 1.8;
  color: rgba(255,255,255,0.82);
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}
.hero__stats {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  padding: 0;
  margin: 42px 0 0;
}
.hero__stats li {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 22px;
  padding: 18px;
  backdrop-filter: blur(6px);
}
.hero__stats strong {
  display: block;
  font-size: 1rem;
  color: #ffffff;
}
.hero__stats span {
  display: block;
  margin-top: 6px;
  color: rgba(255,255,255,0.76);
  font-size: .96rem;
}

.feature-card {
  background: linear-gradient(180deg, var(--dark), var(--dark-2));
  color: white;
  padding: 30px;
  box-shadow: var(--shadow);
}
.feature-card__label {
  margin: 0;
  color: rgba(255,255,255,.55);
  text-transform: uppercase;
  letter-spacing: .24em;
  font-size: 12px;
  font-weight: 700;
}
.feature-card h2 {
  margin: 14px 0 12px;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  line-height: 1.05;
}
.feature-card p:last-child {
  margin: 0;
  color: rgba(255,255,255,.78);
  line-height: 1.8;
}
.mini-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px;
}
.mini-card {
  padding: 22px;
  background: rgba(255,255,255,0.85);
  border: 1px solid var(--line);
}
.mini-card span {
  display: block;
  color: var(--muted);
  font-size: .92rem;
}
.mini-card strong {
  display: block;
  margin-top: 8px;
  font-size: 1.06rem;
}

.section { padding: 72px 0; }
.section--soft { background: linear-gradient(180deg, transparent, rgba(53, 170, 225, 0.06)); }
.section--whiteband {
  background: var(--surface);
  border-top: 1px solid rgba(213, 235, 247, 0.92);
  border-bottom: 1px solid rgba(213, 235, 247, 0.92);
}
.split,
.expertise {
  display: grid;
  grid-template-columns: .95fr 1.05fr;
  gap: 32px;
  align-items: start;
}
.section-heading h2,
.expertise h2,
.process-panel h2,
.contact-panel h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.8rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
  max-width: 13ch;
}
.section-copy p,
.expertise p {
  margin: 0 0 16px;
  color: var(--muted);
  line-height: 1.9;
  font-size: 1.03rem;
}

.cards-grid,
.gallery-grid,
.process-grid {
  display: grid;
  gap: 22px;
}
.cards-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 30px;
}
.service-card {
  padding: 28px;
  background: rgba(255,255,255,0.82);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.service-card__icon {
  width: 54px;
  height: 54px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(53, 170, 225, 0.18), rgba(252,202,0,.12));
  border: 1px solid rgba(53, 170, 225, 0.14);
}
.service-card h3 {
  margin: 22px 0 12px;
  font-size: 1.4rem;
}
.service-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

.gallery-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 26px 0 28px;
}
.filter-btn {
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
  cursor: pointer;
}
.filter-btn.is-active {
  background: var(--dark);
  color: white;
  border-color: var(--dark);
}
.gallery-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.project-card {
  overflow: hidden;
  background: var(--surface-2);
  border: 1px solid var(--line);
  box-shadow: 0 16px 36px rgba(18, 50, 71, 0.06);
}
.project-card.is-hidden { display: none; }
.project-card__visual {
  aspect-ratio: 4 / 5;
  background-size: cover;
  background-position: center;
}
.project-card__visual--1 { background-image: linear-gradient(135deg, rgba(18,50,71,.18), rgba(53,170,225,.34)); }
.project-card__visual--2 { background-image: linear-gradient(135deg, rgba(252,202,0,.16), rgba(18,50,71,.18)); }
.project-card__visual--3 { background-image: linear-gradient(135deg, rgba(18,50,71,.08), rgba(213,235,247,.95)); }
.project-card__visual--4 { background-image: linear-gradient(135deg, rgba(53,170,225,.16), rgba(252,202,0,.20)); }
.project-card__body {
  padding: 24px;
}
.project-card__body span {
  color: var(--muted);
  font-size: .92rem;
}
.project-card__body h3 {
  margin: 10px 0 10px;
  font-size: 1.35rem;
}
.project-card__body p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.process-grid {
  grid-template-columns: 1.08fr .92fr;
}
.process-panel,
.contact-panel {
  padding: 34px;
  border: 1px solid var(--line);
}
.process-panel {
  background: linear-gradient(180deg, var(--dark), var(--dark-2));
  color: white;
  box-shadow: var(--shadow);
}
.contact-panel {
  background: linear-gradient(180deg, rgba(255,255,255,.92), rgba(234,247,253,.96));
}
.process-panel h2 { max-width: 10ch; }
.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 28px;
}
.step {
  padding: 20px;
  border-radius: 22px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
}
.step strong {
  display: block;
  color: #fff1a9;
  font-size: .95rem;
}
.step span {
  display: block;
  margin-top: 10px;
  line-height: 1.6;
}
.contact-list {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
}
.contact-list li {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.contact-list li span { color: var(--muted); }
.contact-list li strong { font-size: 1rem; }

.site-footer {
  border-top: 1px solid rgba(213, 235, 247, 0.92);
  background: rgba(255,255,255,0.7);
}
.footer-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 26px 0;
  color: var(--muted);
  font-size: .95rem;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal--delay { transition-delay: .12s; }
.reveal--delay-2 { transition-delay: .22s; }

@media (max-width: 1100px) {
  .hero__grid,
  .split,
  .expertise,
  .process-grid,
  .cards-grid,
  .gallery-grid {
    grid-template-columns: 1fr 1fr;
  }
  .cards-grid article:last-child,
  .gallery-grid article:last-child { grid-column: span 2; }
}

@media (max-width: 860px) {
  .nav__links,
  .nav .btn--sm { display: none; }
  .hero__grid,
  .split,
  .expertise,
  .process-grid,
  .cards-grid,
  .gallery-grid,
  .steps,
  .hero__stats,
  .mini-grid {
    grid-template-columns: 1fr;
  }
  .cards-grid article:last-child,
  .gallery-grid article:last-child { grid-column: auto; }
  .section,
  .hero { padding: 52px 0; }
  .hero h1 { max-width: 100%; }
  .section-heading h2,
  .expertise h2,
  .process-panel h2,
  .contact-panel h2 { max-width: 100%; }
  .contact-list li,
  .footer-row { flex-direction: column; align-items: flex-start; }
  .brand__logo { height: 46px; }
}


@media (max-width: 980px) {
  .hero--parallax {
    min-height: auto;
    padding: 110px 0 40px;
  }
  .hero__panel {
    padding: 26px;
  }
}

@media (max-width: 720px) {
  .hero__panel {
    padding: 22px;
    border-radius: 24px;
  }
  .hero__overlay {
    background:
      linear-gradient(180deg, rgba(18, 50, 71, 0.62) 0%, rgba(18, 50, 71, 0.48) 42%, rgba(18, 50, 71, 0.28) 100%),
      linear-gradient(90deg, rgba(18, 50, 71, 0.48) 0%, rgba(18, 50, 71, 0.18) 100%);
  }
}


.section-title {
  max-width: 760px;
  margin-bottom: 28px;
}
.section-title h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.35rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
}
.section-title p {
  margin: 14px 0 0;
  color: var(--muted);
  line-height: 1.8;
  font-size: 1.05rem;
}

.projects-grid--six {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.project-card__media {
  aspect-ratio: 4 / 3;
  background:
    linear-gradient(135deg, rgba(18, 50, 71, 0.08), rgba(53, 170, 225, 0.18)),
    radial-gradient(circle at top right, rgba(252, 202, 0, 0.20), transparent 35%),
    #f6fbfe;
  border-bottom: 1px solid var(--line);
}

.project-card__body {
  padding: 20px 22px 24px;
}

.project-card__tag {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--dark);
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.project-card__body h3 {
  margin: 14px 0 10px;
  font-size: 1.25rem;
}

.project-card__body p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.contact-placeholder {
  display: grid;
  gap: 14px;
  margin-top: 22px;
}

.contact-placeholder div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255,255,255,0.7);
  border: 1px solid var(--line);
}

.contact-placeholder span {
  color: var(--muted);
  font-size: .96rem;
}

.contact-placeholder strong {
  color: var(--text);
}

@media (max-width: 980px) {
  .projects-grid--six {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .projects-grid--six {
    grid-template-columns: 1fr;
  }
}


.section-kicker {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.eyebrow-photos {
  display: inline-flex;
  align-items: center;
  margin-left: 4px;
}

.eyebrow-photos img {
  width: 42px;
  height: 42px;
  object-fit: cover;
  border-radius: 999px;
  border: 2px solid rgba(255,255,255,0.9);
  box-shadow: 0 8px 20px rgba(18, 50, 71, 0.12);
  margin-left: -10px;
}

.eyebrow-photos img:first-child {
  margin-left: 0;
}

.project-card {
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.project-card__link {
  display: block;
  color: inherit;
}

.project-card__image {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform .45s ease;
}

.project-card:hover .project-card__image {
  transform: scale(1.04);
}

.project-card__body {
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(249,253,255,0.98));
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
}

.lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox__backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(8, 18, 26, 0.82);
  cursor: zoom-out;
}

.lightbox__figure {
  position: relative;
  z-index: 1;
  margin: 0;
  max-width: min(1100px, 92vw);
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.lightbox__image {
  display: block;
  max-width: 100%;
  max-height: 80vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 22px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.35);
  background: #fff;
}

.lightbox__caption {
  margin-top: 14px;
  color: #ffffff;
  text-align: center;
  font-weight: 600;
}

.lightbox__close {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 101;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 999px;
  background: rgba(255,255,255,0.14);
  color: #fff;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  backdrop-filter: blur(8px);
}
.lightbox__close:hover {
  background: rgba(255,255,255,0.18);
}

@media (max-width: 640px) {
  .eyebrow-photos img {
    width: 36px;
    height: 36px;
  }

  .lightbox__figure {
    width: min(1000px, calc(100vw - 20px));
  }

  .lightbox__close {
    top: 12px;
    right: 12px;
  }
}

.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255,255,255,0.9);
  padding: 0;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text);
  border-radius: 999px;
}

@media (max-width: 900px) {
  .nav {
    position: relative;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav__cta {
    display: none;
  }

  .nav__links {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    left: 0;
    display: none;
    flex-direction: column;
    gap: 0;
    padding: 10px;
    background: rgba(255,255,255,0.98);
    border: 1px solid var(--line);
    border-radius: 20px;
    box-shadow: var(--shadow);
    z-index: 50;
  }

  .nav__links a {
    padding: 14px 16px;
    border-radius: 14px;
  }

  .nav__links a:hover {
    background: var(--bg-soft);
  }

  .nav__links.is-open {
    display: flex;
  }
}
#expertise {
  scroll-margin-top: 105px;
}
#services {
  scroll-margin-top: 105px;
}
#realisations {
  scroll-margin-top: 105px;
}
#process {
  scroll-margin-top: 105px;
}

#contact {
  scroll-margin-top: 105px;
}
.section--parallax {
  position: relative;
  overflow: clip;
  isolation: isolate;
  padding: 110px 0;
  min-height: 100vh;
}

.section-parallax__bg,
.section-parallax__overlay {
  position: absolute;
  inset: 0;
}

.section-parallax__bg {
  background-image: url('assets/realisations-bg.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transform: translateY(var(--realisations-offset, 0px)) scale(1.08);
  will-change: transform;
  z-index: 0;
}

.section-parallax__overlay {
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(18, 50, 71, 0.72) 0%, rgba(18, 50, 71, 0.52) 45%, rgba(18, 50, 71, 0.62) 100%);
}

.section-parallax__content {
  position: relative;
  z-index: 2;
}

.section--parallax .section-title h2,
.section--parallax .section-title p {
  color: #ffffff;
}

.section--parallax .section-title p {
  color: rgba(255,255,255,0.82);
}

.section--parallax .project-card {
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(8px);
}
.service-card__icon {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background: linear-gradient(135deg, #f4f7f9, #e8eef2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.service-card__icon svg {
  width: 30px;
  height: 30px;
  stroke: #123247;
}
.service-card:hover .service-card__icon {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.service-card:hover .service-card__icon svg {
  stroke: #35aae1;
}