/* Native Elementor homepage — every visible block remains selectable/editable. */
body.page-id-5 {
  margin: 0;
  background: #f2eee7;
  color: #191b19;
  font-family: 'Poltawski Nowy', Arial, sans-serif;
}

body.page-id-5 .elementor-5,
body.page-id-5 .elementor-5 > .elementor-element,
body.page-id-5 .elementor-widget,
body.page-id-5 .elementor-widget-container { margin: 0; }

body.page-id-5 .elementor-element.e-con {
  --padding-top: 0;
  --padding-right: 0;
  --padding-bottom: 0;
  --padding-left: 0;
  --margin-top: 0;
  --margin-right: 0;
  --margin-bottom: 0;
  --margin-left: 0;
  --gap: 0;
  max-width: none;
}

body.page-id-5 .elementor-widget-heading .elementor-heading-title,
body.page-id-5 .elementor-widget-text-editor p { margin: 0; }

.h77-e-light-panel {
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.95);
  border-radius: clamp(16px, 1.7vw, 24px);
  background: rgba(255,253,248,.50);
  box-shadow: inset 0 0 0 1px rgba(84,74,60,.10), 0 9px 28px rgba(38,31,22,.08);
}

/* Hero — 540px at the 1024px reference canvas. */
.elementor-element.h77-e-hero {
  position: relative;
  width: 100%;
  height: min(52.734vw, 760px);
  min-height: 540px;
  overflow: hidden;
  color: #fff;
  background-position: center 57% !important;
}

.h77-e-hero::before {
  content: '';
  position: absolute;
  z-index: 0;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(7,12,11,.76) 0%, rgba(7,12,11,.50) 31%, rgba(7,12,11,.07) 69%),
    linear-gradient(0deg, rgba(7,11,10,.28), transparent 40%);
}

.h77-e-hero > .e-con-inner,
.h77-e-hero > .elementor-element { position: relative; z-index: 1; }

.elementor-element.h77-e-header {
  position: absolute;
  z-index: 4;
  top: clamp(25px, 2.65vw, 38px);
  left: 50%;
  width: min(calc(100% - 32px), 1400px);
  min-height: clamp(54px, 6.35vw, 90px);
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  transform: translateX(-50%);
}

.elementor-widget.h77-e-logo { width: clamp(168px, 18vw, 250px); margin-left: clamp(22px, 3.7vw, 53px) !important; flex: 0 0 auto; }
.h77-e-logo a { width: 100%; display: block; }
.h77-e-logo img { width: 100% !important; height: auto; display: block; }

.elementor-element.h77-e-nav {
  width: min(60%, 865px);
  min-height: clamp(64px, 6.3vw, 90px);
  padding: clamp(6px, .7vw, 10px) clamp(8px, .8vw, 12px) clamp(6px, .7vw, 10px) clamp(20px, 2.2vw, 32px) !important;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: clamp(4px, .5vw, 8px);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.42);
  border-radius: 999px;
  background: linear-gradient(115deg, rgba(255,255,255,.19), rgba(255,255,255,.07));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.28), 0 10px 30px rgba(4,12,10,.18);
  backdrop-filter: blur(16px) saturate(125%);
  -webkit-backdrop-filter: blur(16px) saturate(125%);
}

.elementor-widget.h77-e-nav-item { width: auto; flex: 0 0 auto; }
.h77-e-nav-item .elementor-button {
  min-width: 0;
  padding: 10px clamp(7px, .7vw, 12px);
  color: rgba(255,255,255,.92);
  background: transparent;
  border: 0;
  border-radius: 999px;
  box-shadow: none;
  font-family: 'Poltawski Nowy', Arial, sans-serif;
  font-size: clamp(9px, .89vw, 13px);
  font-weight: 300;
  line-height: 1;
  white-space: nowrap;
  transition: color .22s ease, background-color .22s ease, box-shadow .22s ease;
}

.h77-e-nav-item .elementor-button:hover,
.h77-e-nav-item .elementor-button:focus-visible {
  color: #fff;
  background: rgba(255,255,255,.11);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.16);
}
.elementor-widget.h77-e-nav-cta { align-self: center; }
body.page-id-5 .elementor-element.h77-e-nav-cta .elementor-button {
  min-height: clamp(44px, 4.2vw, 60px);
  padding-inline: clamp(15px, 1.5vw, 22px);
  display: inline-flex;
  align-items: center;
  background: linear-gradient(135deg, rgba(35,75,64,.78), rgba(13,43,36,.68)) !important;
  border: 1px solid rgba(255,255,255,.50);
  border-radius: 999px !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.28), 0 5px 18px rgba(4,16,13,.18);
}

.elementor-element.h77-e-hero-copy {
  position: absolute;
  z-index: 2;
  left: clamp(54px, 7.9vw, 114px);
  top: clamp(126px, 12.8vw, 184px);
  width: min(47%, 680px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.h77-e-hero-title .elementor-heading-title {
  color: #fff;
  font-family: 'Poltawski Nowy', Georgia, serif;
  font-size: clamp(76px, 7.55vw, 109px);
  font-weight: 400;
  letter-spacing: -.045em;
  line-height: .81;
  text-shadow: 0 2px 25px rgba(0,0,0,.22);
}

.elementor-widget.h77-e-hero-kicker { margin-top: clamp(18px, 2vw, 29px) !important; }
.h77-e-hero-kicker .elementor-heading-title {
  color: #fff;
  font-family: 'Poltawski Nowy', Arial, sans-serif;
  font-size: clamp(12px, 1.22vw, 17px);
  font-weight: 500;
  letter-spacing: .07em;
  line-height: 1.2;
}

.elementor-widget.h77-e-hero-services { margin-top: clamp(8px, .85vw, 12px) !important; }
.h77-e-hero-services, .h77-e-hero-services p {
  color: rgba(255,255,255,.94);
  font-size: clamp(10px, 1.06vw, 15px);
  font-weight: 300;
  line-height: 1.9;
}

.elementor-element.h77-e-hero-actions {
  width: auto;
  margin-top: clamp(16px, 1.7vw, 25px) !important;
  display: flex;
  flex-direction: row;
  gap: clamp(13px, 1.3vw, 19px);
}

.elementor-widget.h77-e-glass-button { width: auto; }
.h77-e-glass-button .elementor-button {
  min-width: clamp(182px, 18vw, 260px);
  min-height: clamp(48px, 4.75vw, 68px);
  padding: 0 clamp(19px, 2vw, 28px);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: linear-gradient(135deg, rgba(255,255,255,.17), rgba(16,30,27,.43));
  border: 1px solid rgba(255,255,255,.90);
  border-radius: clamp(10px, 1.18vw, 17px);
  box-shadow: inset 0 0 18px rgba(255,255,255,.19), 0 0 0 3px rgba(255,255,255,.11), 0 8px 20px rgba(5,11,10,.18);
  font-size: clamp(12px, 1.2vw, 17px);
  font-weight: 300;
}

/* Exact editorial project matrix from the reference. */
.elementor-element.h77-e-projects {
  width: 100%;
  padding: clamp(18px, 1.75vw, 25px) clamp(25px, 2.45vw, 35px) 0 !important;
  background: #f2eee7;
}

.elementor-element.h77-e-project-grid {
  width: 100%;
  display: grid;
  grid-template-columns: 263fr 347fr 333fr;
  grid-template-rows: min(29.69vw, 428px) min(20.61vw, 297px);
  gap: clamp(12px, 1.37vw, 20px);
}

.h77-e-project-grid > .elementor-element { min-width: 0; min-height: 0; }
.h77-e-project-intro { grid-column: 1; grid-row: 1; }
.h77-e-card-feature { grid-column: 2; grid-row: 1; }
.h77-e-project-stack { grid-column: 3; grid-row: 1; }
.h77-e-project-grid > .h77-e-project-card:nth-child(4) { grid-column: 1; grid-row: 2; }
.h77-e-project-grid > .h77-e-project-card:nth-child(5) { grid-column: 2; grid-row: 2; }
.h77-e-project-grid > .h77-e-project-card:nth-child(6) { grid-column: 3; grid-row: 2; }

.elementor-element.h77-e-project-intro {
  padding: clamp(27px, 2.8vw, 40px) clamp(27px, 2.8vw, 40px) clamp(22px, 2.3vw, 34px) !important;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.h77-e-eyebrow .elementor-heading-title {
  color: #1c201e;
  font-family: 'Poltawski Nowy', Arial, sans-serif;
  font-size: clamp(8px, .8vw, 11px);
  font-weight: 600;
  letter-spacing: .11em;
  line-height: 1.2;
}

.elementor-widget.h77-e-project-intro-title { margin-top: clamp(20px, 2.05vw, 30px) !important; }
.h77-e-project-intro-title .elementor-heading-title {
  color: #1b1c1a;
  font-family: 'Poltawski Nowy', Georgia, serif;
  font-size: clamp(38px, 3.9vw, 56px);
  font-weight: 400;
  letter-spacing: -.025em;
  line-height: 1.04;
}

.elementor-widget.h77-e-project-intro-text { margin-top: clamp(20px, 2.1vw, 30px) !important; }
.h77-e-project-intro-text, .h77-e-project-intro-text p {
  color: #4c4943;
  font-size: clamp(9px, .94vw, 13px);
  line-height: 1.85;
}

.elementor-widget.h77-e-text-button { width: auto; margin-top: auto !important; }
.h77-e-text-button .elementor-button {
  padding: 0;
  color: #20221f;
  background: transparent;
  border: 0;
  box-shadow: none;
  font-size: clamp(9px, .93vw, 13px);
  font-weight: 500;
}

.elementor-element.h77-e-project-card {
  position: relative;
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: row;
  align-items: flex-end;
  justify-content: space-between;
  padding: clamp(15px, 1.65vw, 24px) !important;
  color: #fff;
  border: 2px solid rgba(255,255,255,.95);
  border-radius: clamp(15px, 1.7vw, 24px);
  background-position: center !important;
  box-shadow: 0 8px 24px rgba(31,27,21,.15);
}

.h77-e-project-card::before {
  content: '';
  position: absolute;
  z-index: 0;
  inset: 34% 0 0;
  pointer-events: none;
  background: linear-gradient(transparent, rgba(5,8,8,.75));
}

.h77-e-project-card > .elementor-element { position: relative; z-index: 1; }
.elementor-element.h77-e-card-copy { width: auto; flex: 1 1 auto; }
.h77-e-card-title .elementor-heading-title {
  color: #fff;
  font-family: 'Poltawski Nowy', Georgia, serif;
  font-size: clamp(21px, 2.15vw, 31px);
  font-weight: 400;
  line-height: 1;
  text-shadow: 0 2px 10px rgba(0,0,0,.22);
}
.elementor-widget.h77-e-card-meta { margin-top: 5px !important; }
.h77-e-card-meta, .h77-e-card-meta p { color: rgba(255,255,255,.91); font-size: clamp(7px, .77vw, 11px); line-height: 1.2; }
.elementor-widget.h77-e-card-arrow { width: auto; flex: 0 0 auto; }
.h77-e-card-arrow .elementor-button {
  width: clamp(31px, 3vw, 43px);
  height: clamp(31px, 3vw, 43px);
  min-width: 0;
  padding: 0;
  display: grid;
  place-items: center;
  color: #fff;
  background: rgba(16,27,24,.24);
  border: 1px solid rgba(255,255,255,.72);
  border-radius: 50%;
  box-shadow: none;
  font-size: clamp(13px, 1.45vw, 21px);
}

.elementor-element.h77-e-project-stack { display: grid; grid-template-rows: 1.08fr .92fr; gap: clamp(11px, 1.25vw, 18px); }
.h77-e-project-stack > .h77-e-project-card { width: 100%; height: 100%; }

/* Service capability strip. */
.elementor-element.h77-e-capabilities {
  width: auto;
  height: clamp(86px, 8.4vw, 121px);
  margin: clamp(14px, 1.4vw, 20px) clamp(25px, 2.45vw, 35px) 0 !important;
  padding: clamp(13px, 1.25vw, 18px) clamp(10px, 1vw, 15px) !important;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
}

.elementor-element.h77-e-capability {
  min-width: 0;
  padding: 0 clamp(13px, 1.35vw, 20px) !important;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: clamp(11px, 1.15vw, 17px);
  border-right: 1px solid rgba(57,52,45,.18);
}
.h77-e-capability:last-child { border-right: 0; }
.elementor-widget.h77-e-capability-icon { width: clamp(28px, 2.7vw, 39px); flex: 0 0 auto; }
.h77-e-capability-icon img { width: 100% !important; height: auto; display: block; }
.elementor-element.h77-e-capability-copy { width: auto; flex: 1 1 auto; }
.h77-e-capability-title .elementor-heading-title { color: #20221f; font-family: 'Poltawski Nowy', Arial, sans-serif; font-size: clamp(8px, .79vw, 11px); font-weight: 600; line-height: 1.35; }
.elementor-widget.h77-e-capability-text { margin-top: 5px !important; }
.h77-e-capability-text, .h77-e-capability-text p { color: #5a5650; font-size: clamp(6px, .65vw, 9px); line-height: 1.55; }

/* About card. */
.elementor-element.h77-e-about {
  width: auto;
  height: clamp(238px, 23.25vw, 335px);
  margin: clamp(14px, 1.4vw, 20px) clamp(25px, 2.45vw, 35px) 0 !important;
  display: grid;
  grid-template-columns: 42% 58%;
}
.elementor-element.h77-e-about-image { width: 100%; height: 100%; background-position: center !important; }
.elementor-element.h77-e-about-copy { padding: clamp(25px, 2.5vw, 36px) clamp(34px, 3.35vw, 48px) clamp(18px, 1.8vw, 26px) !important; }
.elementor-widget.h77-e-about-title { margin-top: clamp(8px, .8vw, 12px) !important; }
.h77-e-about-title .elementor-heading-title { color: #191b19; font-family: 'Poltawski Nowy', Georgia, serif; font-size: clamp(34px, 3.45vw, 50px); font-weight: 400; letter-spacing: -.025em; line-height: 1; }
.elementor-widget.h77-e-about-text { margin-top: clamp(10px, 1vw, 15px) !important; }
.h77-e-about-text, .h77-e-about-text p { color: #46433e; font-size: clamp(7px, .76vw, 11px); line-height: 1.58; }
.elementor-element.h77-e-about-metrics { margin-top: auto !important; display: grid; grid-template-columns: repeat(4,1fr); }
.elementor-element.h77-e-metric { padding: 0 clamp(11px, 1.25vw, 18px) !important; border-left: 1px solid rgba(57,52,45,.18); }
.h77-e-metric:first-child { padding-left: 0 !important; border-left: 0; }
.h77-e-metric-number .elementor-heading-title { color: #191b19; font-family: 'Poltawski Nowy', Georgia, serif; font-size: clamp(26px, 2.7vw, 39px); font-weight: 400; line-height: 1; }
.elementor-widget.h77-e-metric-label { margin-top: 5px !important; }
.h77-e-metric-label, .h77-e-metric-label p { color: #514d47; font-size: clamp(6px, .62vw, 9px); line-height: 1.3; }

/* Final CTA — the exact end of the supplied homepage reference. */
.elementor-element.h77-e-final-cta {
  width: auto;
  height: clamp(64px, 6.25vw, 90px);
  margin: clamp(14px, 1.4vw, 20px) clamp(25px, 2.45vw, 35px) clamp(16px, 1.6vw, 23px) !important;
  padding: 0 clamp(20px, 2.5vw, 36px) !important;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
}
.h77-e-cta-title .elementor-heading-title { color: #252520; font-family: 'Poltawski Nowy', Georgia, serif; font-size: clamp(24px, 2.55vw, 37px); font-weight: 400; line-height: 1; }
.elementor-widget.h77-e-cta-button { width: auto; }
.h77-e-cta-button .elementor-button {
  min-width: clamp(204px, 20vw, 288px);
  min-height: clamp(45px, 4.5vw, 65px);
  padding: 0 clamp(20px, 2vw, 29px);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: linear-gradient(135deg, #2b5c4c, #0d352d);
  border: 1px solid rgba(255,255,255,.85);
  border-radius: clamp(10px, 1.2vw, 17px);
  box-shadow: inset 0 0 15px rgba(255,255,255,.18), 0 0 0 3px rgba(255,255,255,.57), 0 7px 18px rgba(17,44,37,.19);
  font-size: clamp(10px, 1.05vw, 15px);
  font-weight: 300;
}

/* Keep editor handles usable above decorative overlays. */
.elementor-editor-active .h77-e-hero::before,
.elementor-editor-active .h77-e-project-card::before { pointer-events: none; }
.elementor-editor-active .h77-e-header { z-index: 10; }

@media (max-width: 900px) {
  .elementor-element.h77-e-hero { height: 710px; min-height: 710px; background-position: 62% center !important; }
  .h77-e-header { top: 20px !important; width: calc(100% - 32px) !important; }
  .elementor-widget.h77-e-logo { width: 170px; }
  .elementor-element.h77-e-nav { width: 48px; min-height: 44px; padding: 0 !important; border-radius: 999px; }
  .h77-e-nav::after { content: '☰'; width: 100%; color: #fff; text-align: center; font-size: 20px; }
  .h77-e-nav > .elementor-element { display: none; }
  .elementor-element.h77-e-hero-copy { left: 22px; top: 170px; width: calc(100% - 44px); }
  .h77-e-hero-title .elementor-heading-title { font-size: clamp(62px, 14.5vw, 92px); }
  .h77-e-hero-kicker .elementor-heading-title { font-size: 11px; }
  .h77-e-hero-services, .h77-e-hero-services p { font-size: 10px; }
  .elementor-element.h77-e-projects { padding: 16px 14px 0 !important; }
  .elementor-element.h77-e-project-grid { display: grid; grid-template-columns: 1fr; grid-template-rows: auto; gap: 14px; }
  .h77-e-project-grid > .elementor-element { grid-column: 1 !important; grid-row: auto !important; min-height: 280px; }
  .h77-e-project-intro { min-height: 330px !important; }
  .h77-e-project-stack { min-height: 574px !important; display: grid !important; grid-template-rows: 1fr 1fr; }
  .elementor-element.h77-e-capabilities { height: auto; margin: 14px 14px 0 !important; padding: 10px 18px !important; grid-template-columns: 1fr; }
  .elementor-element.h77-e-capability { min-height: 88px; padding: 12px 4px !important; border-right: 0; border-bottom: 1px solid rgba(57,52,45,.18); }
  .h77-e-capability:last-child { border-bottom: 0; }
  .elementor-element.h77-e-about { height: auto; margin: 14px 14px 0 !important; grid-template-columns: 1fr; }
  .elementor-element.h77-e-about-image { min-height: 340px; }
  .elementor-element.h77-e-about-copy { min-height: 350px; padding: 30px 24px !important; }
  .h77-e-about-title .elementor-heading-title { font-size: 39px; }
  .h77-e-about-text, .h77-e-about-text p { font-size: 10px; }
  .elementor-element.h77-e-final-cta { height: auto; min-height: 145px; margin: 14px 14px 16px !important; padding: 24px !important; flex-direction: column; align-items: flex-start; justify-content: center; gap: 20px; }
  .h77-e-cta-title .elementor-heading-title { font-size: 31px; }
}

@media (max-width: 520px) {
  .elementor-element.h77-e-hero { height: 700px; min-height: 700px; }
  .elementor-element.h77-e-hero-copy { top: 174px; }
  .h77-e-hero-title .elementor-heading-title { font-size: 60px; }
  .elementor-element.h77-e-hero-actions { flex-direction: column; gap: 14px; }
  .h77-e-glass-button .elementor-button { min-width: 205px; }
  .h77-e-project-intro-title .elementor-heading-title { font-size: 43px; }
  .h77-e-card-title .elementor-heading-title { font-size: 27px; }
  .elementor-element.h77-e-about-metrics { grid-template-columns: 1fr 1fr; gap: 20px 0; }
  .h77-e-metric:nth-child(3) { padding-left: 0 !important; border-left: 0; }
}
