
:root{
  --bg: #f4f6f8;
  --card: #ffffff;
  --ink: #1f2933;
  --muted: #52606d;
  --brand: #b3001b;
  --nav: #1f2933;
  --soft: #eef2f6;
  --shadow: 0 12px 30px rgba(16,24,40,.08);
  --radius: 16px;
}

*{ box-sizing: border-box; }

/* Fix anchor offsets (sticky topbar + header) */
html{
  scroll-behavior: smooth;
  scroll-padding-top: 120px; /* adjust if header height changes */
}

section[id]{
  scroll-margin-top: 120px;
}


body{
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: transparent;
  color: var(--ink);
  position: relative;
  min-height: 100vh;
}

body::before{
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(135deg,
      #220007 0%,       /* much darker burgundy start */
      #3a000f 25%,      /* deep wine */
      #5a0016 45%,      /* softened bordo (less bright) */
      #2a0008 70%,      /* dark wine */
      #000000 100%      /* black */
    );
  background-attachment: fixed;
}


.no-scroll{ overflow: hidden; }

.topbar{
  background: rgba(0,0,0,.55);
  color: rgba(255,255,255,.92);
  font-size: 13px;
}
.topbar a{ color: rgba(255,255,255,.92); text-decoration: none; font-weight: 700; }
.topbar a:hover{ text-decoration: underline; }
.topbar-inner{
  max-width: 1140px;
  margin: 0 auto;
  padding: 8px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.topbar-left{ display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
.topbar-right{ display:flex; align-items:center; gap:10px; }
.sep{ opacity:.7; }
.dot{ width:8px; height:8px; border-radius:999px; background: var(--brand); display:inline-block; }

.header{
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--nav);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 28px;
}



.brand-text{
  font-family: 'Montserrat', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;

  flex: 1;
  text-align: center;
  padding: 0 14px;
  line-height: 1.1;
}




nav ul{
  list-style: none;
  display: flex;
  gap: 18px;
  margin: 0;
  padding: 0;
}

nav a{
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  opacity: .92;
  letter-spacing: 0;
}


nav a:hover{ opacity: 1; }

.hero{
  background: url("banner.jpg") center/cover no-repeat;
  min-height: 72vh;
  display: grid;
  place-items: center;
  text-align: center;
  color: #fff;
}


.btn-primary{
  display: inline-block;
  margin-top: 18px;
  padding: 12px 22px;
  background: var(--brand);
  color: #111;
  text-decoration: none;
  font-weight: 800;
  border-radius: 12px;
}

section{
  padding: 78px 10%;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(4px);
  margin: 44px auto;
  border-radius: var(--radius);
  max-width: 1140px;
  box-shadow: 0 20px 40px rgba(0,0,0,.6);
  color: #ffffff;
}

h2{ margin: 0 0 18px; font-size: 30px; color: #ffffff; }

.muted{ color: rgba(255,255,255,0.75); }
.tiny{ font-size: 12px; margin-top: 8px; }

.services{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.service-card{
  padding: 22px 18px;
  background: rgba(20,20,20,0.85);
  border-radius: 14px;
  font-weight: 700;
  text-align: center;
  border: 1px solid rgba(255,255,255,.06);
}

.highlights{
  display: grid;
  grid-template-columns: 1.25fr .75fr;
  gap: 16px;
  margin-top: 28px;
}

.highlight{
  background: rgba(20,20,20,0.85);
  border-radius: 14px;
  padding: 18px;
  border: 1px solid rgba(255,255,255,.06);
}

.highlight h3{ margin-top: 0; }

.checklist{
  margin: 0;
  padding-left: 18px;
}

.checklist li{ margin: 10px 0; }

.section-head{
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
}

.pill{
  background: var(--soft);
  padding: 8px 12px;
  border-radius: 999px;
  font-weight: 700;
  color: var(--muted);
  white-space: nowrap;
}

.portfolio-grid{
  margin-top: 26px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
}

.portfolio-card{
  background: rgba(15,15,15,0.85);
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 16px 40px rgba(0,0,0,.6);
  cursor: pointer;
  outline: none;
  transition: transform .18s ease, box-shadow .18s ease;
}

.portfolio-card:focus{
  box-shadow: 0 0 0 4px rgba(245,158,11,.25), 0 12px 30px rgba(16,24,40,.12);
}

.portfolio-card:hover{
  transform: translateY(-4px);
  box-shadow: 0 16px 34px rgba(16,24,40,.12);
}

.portfolio-media{
  position: relative;
  height: 190px;
  background: #0b1220;
}

.portfolio-media img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display:block;
}

.portfolio-badge{
  position: absolute;
  left: 12px;
  top: 12px;
  background: rgba(255,255,255,.92);
  color: #111;
  font-weight: 800;
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 999px;
}

.portfolio-content{
  padding: 16px 16px 14px;
}

.portfolio-content h3{
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.25;
}

.portfolio-cta{
  margin-top: 12px;
  display:flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 800;
}

.arrow{ opacity: .75; }

.contact-form{
  display: grid;
  gap: 10px;
  max-width: 460px;
  margin: 0 auto 22px;
}

.contact-form input,
.contact-form textarea{
  padding: 12px 12px;
  border-radius: 12px;
  border: 1px solid rgba(16,24,40,.16);
  font-size: 1em;
}

.contact-form button{
  padding: 12px;
  background: var(--nav);
  color: white;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 800;
}

.contact-cards{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.contact-card{
  background: rgba(20,20,20,0.85);
  border-radius: 14px;
  padding: 14px 16px;
  border: 1px solid rgba(255,255,255,.06);
}

.contact-k{ color: var(--muted); font-weight: 700; font-size: 12px; }
.contact-v{ font-weight: 800; margin-top: 4px; }





/* Modal */
.modal{
  position: fixed;
  inset: 0;
  display: none;
  z-index: 2000;
}

.modal.open{ display: block; }

.modal-backdrop{
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(2px);
}

.modal-dialog{
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(1080px, calc(100% - 24px));
  max-height: calc(100% - 24px);
  overflow: auto;
  background: var(--card);
  border-radius: 18px;
  box-shadow: 0 30px 80px rgba(0,0,0,.35);
}

.modal-close{
  position: sticky;
  top: 0;
  float: right;
  margin: 14px 14px 0 0;
  border: 0;
  background: var(--soft);
  width: 40px;
  height: 40px;
  border-radius: 12px;
  font-size: 18px;
  cursor: pointer;
}

.modal-body{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  padding: 16px 18px 18px;
}

.modal-hero{
  background: #000;
  border-radius: 16px;
  overflow: hidden;
}


.modal-hero img{
  width: 100%;
  height: auto;
  max-height: 72vh;
  object-fit: contain;
  display:block;
  background: #000;
}


.modal-thumbs{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 10px;
}

.thumb{
  border: 2px solid transparent;
  background: transparent;
  padding: 0;
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
}

.thumb.active{ border-color: rgba(245,158,11,.85); }

.thumb img{
  width: 100%;
  height: 104px;
  object-fit: contain;
  display:block;
  background: #000;
}


.meta{
  background: var(--soft);
  border-radius: 14px;
  padding: 12px 14px;
  display: grid;
  gap: 8px;
  margin: 12px 0 14px;
}

.meta span{ color: var(--muted); font-weight: 700; }

.modal-section{ margin-top: 14px; }
.modal-section h4{ margin: 0 0 10px; }

.bullets{
  margin: 0;
  padding-left: 18px;
}

.bullets li{ margin: 10px 0; }

.modal-actions{
  display: flex;
  gap: 10px;
  margin-top: 18px;
  flex-wrap: wrap;
}

.btn-secondary{
  text-decoration: none;
  background: var(--brand);
  color: #111;
  padding: 12px 16px;
  border-radius: 12px;
  font-weight: 900;
}

.btn-ghost{
  background: var(--soft);
  border: 0;
  padding: 12px 16px;
  border-radius: 12px;
  font-weight: 900;
  cursor: pointer;
}

/* Reveal */
.reveal{ opacity: 0; transform: translateY(10px); transition: opacity .55s ease, transform .55s ease; }
.reveal.in{ opacity: 1; transform: translateY(0); }

/* Responsive */
@media (max-width: 920px){
  .modal-body{ grid-template-columns: 1fr; }
  .modal-hero{ height: 300px; }
  .highlights{ grid-template-columns: 1fr; }
}

@media (max-width: 768px){
  html{ scroll-padding-top: 104px; }
  section[id]{ scroll-margin-top: 104px; }

  
  .topbar-inner{ padding: 8px 18px; }

  nav ul{ flex-direction: column; gap: 10px; }
    section{ padding: 60px 7%; }
}


.modal-hero{ position: relative; }
.nav-btn{
  position:absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 14px;
  background: rgba(255,255,255,.86);
  color: #111;
  font-size: 26px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(0,0,0,.18);
}
.nav-btn:hover{ background: rgba(255,255,255,.95); }
.nav-btn.prev{ left: 10px; }
.nav-btn.next{ right: 10px; }
.img-counter{
  position: absolute;
  left: 12px;
  bottom: 12px;
  background: rgba(0,0,0,.55);
  color: #fff;
  padding: 6px 10px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 12px;
}


/* Elegant bordo glow accents */
.portfolio-card:hover,
.service-card:hover {
  box-shadow: 0 18px 45px rgba(179, 0, 27, 0.35);
  transform: translateY(-4px);
}

/* Refined headings with subtle accent line */
h2 {
  position: relative;
  padding-bottom: 12px;
}

h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, #b3001b, transparent);
  border-radius: 2px;
}

/* Glass navbar for premium feel */
.header {
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

/* Logo subtle glow */
.logo img {
  filter: drop-shadow(0 0 6px rgba(179,0,27,0.4));
}

/* Buttons refined */
.btn-primary {
  background: linear-gradient(135deg, #b3001b, #7a0012);
  color: #ffffff;
  box-shadow: 0 10px 25px rgba(179,0,27,0.35);
}

.btn-primary:hover {
  box-shadow: 0 14px 35px rgba(179,0,27,0.55);
  transform: translateY(-2px);
}

/* Modal buttons match brand */
.btn-secondary {
  background: linear-gradient(135deg, #b3001b, #7a0012);
  color: #ffffff;
}



/* Social buttons in About section */
.contact-social{
  margin-top: 22px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
}


.social-btn{
  padding: 12px 20px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: .5px;
  transition: all .25s ease;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.05);
  color: #ffffff;
}

.social-btn:hover{
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(179,0,27,0.35);
}

.social-btn.whatsapp:hover{
  border-color: #25D366;
}

.social-btn.linkedin:hover{
  border-color: #0A66C2;
}










/* --- V18 Final Refined Logo Accent --- */
.logo{
  position: relative;
  padding: 0;
}

/* wider and stronger left accent */
.logo::before{
  content: "";
  position: absolute;
  left: -14px;
  top: -10px;
  bottom: -10px;
  width: 85%;
  background:
    radial-gradient(85% 140% at 18% 50%,
      rgba(255,255,255,0.16) 0%,
      rgba(255,255,255,0.05) 45%,
      rgba(255,255,255,0.00) 70%),
    linear-gradient(90deg,
      rgba(179,0,27,0.85) 0%,
      rgba(179,0,27,0.55) 45%,
      rgba(179,0,27,0.25) 75%,
      rgba(179,0,27,0.00) 100%);
  border-radius: 14px;
  z-index: 0;
}

/* slightly stronger lift on logo */
.logo img{
  position: relative;
  z-index: 1;
  height: 64px;
  display: block;
  filter:
    drop-shadow(0 10px 22px rgba(0,0,0,0.55))
    brightness(1.08);
}

@media (max-width: 768px){
  .logo img{ height: 56px; }
}


p{ letter-spacing: 0; font-weight: 400; }


/* --- V21: Brand typography (match previous preferred look) --- */
.brand-text{
  font-family: 'Montserrat', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

.brand-title{
  color: rgba(255,255,255,0.92);
  font-weight: 500;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  font-size: 20px;
  line-height: 1.05;
}

.brand-tagline{
  margin-top: 6px;
  color: rgba(255,255,255,0.65);
  font-weight: 300;
  font-size: 14px;
  letter-spacing: .6px;
  font-style: italic;
  line-height: 1.15;
}











@media(max-width:768px){
      }


max-width: 860px;
  padding: 22px 22px;
  z-index: 2;
}

/* Make the hero text feel like a premium overlay card */



@media(max-width:768px){
        }









.hero-engineering{
    position: relative;
    width: 100%;
    height: 85vh;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    justify-content: center;

    /* Fill the "bands" with a cinematic blurred version of the same image */
    background: url('assets/hero_professional.png') center/cover no-repeat;
}

.hero-overlay{
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.15); /* much lighter overlay */
}

.hero-content{
  position: relative;
  z-index: 2;
  text-align: center;
  background: rgba(0,0,0,0.65);
  padding: 18px 32px;
  border-radius: 14px;
  max-width: 900px;
}

.hero-content h2{
  font-size: 38px;
  margin-bottom: 12px;
  font-weight: 500;
}

.hero-content p{
  font-size: 18px;
  opacity: 0.9;
}

@media(max-width:768px){
  .hero-engineering{
    height: 65vh;
    background-size: contain;
  }
  .hero-content h2{
    font-size: 26px;
  }
}


/* ===== Hero Stable Version ===== */

.hero-engineering{
    position: relative;
    width: 100%;
    height: 85vh;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.hero-image{
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain; /* keep full image visible */
    display: block;

    /* subtle separation from the blurred background */
    filter: drop-shadow(0 18px 40px rgba(0,0,0,0.45));
}

.hero-text{
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    text-align: center;
    padding: 28px 20px 34px;
    background: linear-gradient(to top,
        rgba(0,0,0,0.85) 0%,
        rgba(0,0,0,0.65) 40%,
        rgba(0,0,0,0.35) 70%,
        rgba(0,0,0,0.0) 100%);
    backdrop-filter: blur(6px);
}

.hero-text h2{
    font-size: 38px;
    margin-bottom: 12px;
    font-weight: 500;
}

.hero-text p{
    font-size: 18px;
    opacity: 0.9;
}

@media(max-width:768px){
    .hero-engineering{ height: 65vh; }
    .hero-text h2{ font-size: 26px; }
}


.hero-engineering::before{
    content: "";
    position: absolute;
    inset: 0;
    background: url('assets/hero_professional.png') center/cover no-repeat;
    filter: blur(18px) saturate(1.05) brightness(0.95);
    transform: scale(1.08);
    opacity: 0.85;
    z-index: 0;
}

/* keep image and text above */
.hero-image{ z-index: 1; }
.hero-text{ z-index: 2; }


.hero-text h2{
    font-size: 30px;
    font-weight: 500;
    margin: 0 0 8px;
    line-height: 1.2;
    letter-spacing: 0.4px;
}

.hero-text p{
    font-size: 16px;
    margin: 0;
    opacity: 0.85;
}

@media(max-width:768px){
    .hero-text h2{ font-size: 22px; }
    .hero-text p{ font-size: 14px; }
}


/* ===== Portfolio tiles (cover + title + button) ===== */
.portfolio-grid{
  margin-top: 26px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
}

.portfolio-tile{
  position: relative;
  display: block;
  height: 220px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 16px 40px rgba(0,0,0,.6);
  text-decoration: none;
  transform: translateY(0);
  transition: transform .18s ease, box-shadow .18s ease;
}

.portfolio-tile img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(1.08) contrast(1.05);
}

.portfolio-overlay{
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 10px;
  padding: 18px;
  background: linear-gradient(to top, rgba(0,0,0,.78) 0%, rgba(0,0,0,.25) 60%, rgba(0,0,0,0) 100%);
}

.portfolio-overlay h3{
  font-family: 'Montserrat', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 1.1px;
}

.portfolio-btn{
  align-self: flex-start;
  padding: 10px 14px;
  border-radius: 12px;
  background: linear-gradient(135deg, #b3001b, #7a0012);
  color: #fff;
  font-weight: 700;
  letter-spacing: .2px;
  border: 1px solid rgba(255,255,255,0.10);
  box-shadow: 0 10px 25px rgba(179,0,27,0.28);
}

.portfolio-tile:hover{
  transform: translateY(-4px);
  box-shadow: 0 18px 45px rgba(179, 0, 27, 0.28);
}

.portfolio-tile:hover .portfolio-btn{
  box-shadow: 0 14px 35px rgba(179,0,27,0.45);
}

/* ===== Project pages ===== */
.project-head{
  padding: 28px 0 12px;
}

.back-link{
  display: inline-block;
  margin-bottom: 14px;
  color: rgba(255,255,255,0.75);
  text-decoration: none;
}

.back-link:hover{ color: rgba(255,255,255,0.92); }

.project-title{
  margin: 0 0 10px;
  font-size: 34px;
  letter-spacing: .2px;
}

.project-body{
  margin-bottom: 44px;
}

.meta-row{
  display:flex;
  justify-content: space-between;
  gap: 14px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.meta-k{ color: rgba(255,255,255,0.65); font-weight: 600; }
.meta-v{ color: rgba(255,255,255,0.92); text-align: right; }

.meta-list{
  margin: 10px 0 0;
  padding-left: 18px;
  color: rgba(255,255,255,0.88);
}

.gallery-controls{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
}

.gallery-btn{
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.10);
  color: #fff;
  border-radius: 12px;
  padding: 10px 14px;
  cursor: pointer;
}

.gallery-btn:hover{
  box-shadow: 0 10px 25px rgba(179,0,27,0.25);
  transform: translateY(-1px);
}

@media(max-width: 900px){
  .project-title{ font-size: 28px; }
}


/* ===== Fix Project Page Typography & Contrast ===== */

.project-content,
.project-content p,
.project-content li,
.project-content h3{
    color: #111111 !important;
    font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

.project-content ul{
    padding-left: 20px;
}

.project-content li{
    margin-bottom: 6px;
}



/* Project pages: place details under gallery */
.modal-body.project-body{
  grid-template-columns: 1fr;
}

/* Project pages: meta panel darker for readability */
.modal-body.project-body .meta{
  background: rgba(0,0,0,0.55);
  border: 1px solid rgba(255,255,255,0.08);
  padding: 14px 16px;
}

.modal-body.project-body .meta-row{
  border-bottom: 1px solid rgba(255,255,255,0.10);
}

.modal-body.project-body .meta-k{
  color: rgba(255,255,255,0.70);
}

.modal-body.project-body .meta-v{
  color: rgba(255,255,255,0.92);
}




/* ===== Project details readability ===== */
.meta{
  background: rgba(0,0,0,0.55);
  border: 1px solid rgba(255,255,255,0.10);
}

.meta-k{ color: rgba(255,255,255,0.82); }
.meta-v{ color: rgba(255,255,255,0.98); }
.meta-list li{ color: rgba(255,255,255,0.92); }


/* ===== Portfolio tiles: Premium editorial overlay (safe) ===== */
.portfolio-tile{
  position: relative;
  display: block;
  border-radius: 18px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
}

.portfolio-overlay{
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 26px;
  background: linear-gradient(to right,
    rgba(0,0,0,0.62) 0%,
    rgba(0,0,0,0.30) 55%,
    rgba(0,0,0,0.12) 100%);
  transition: background .25s ease;
}

.portfolio-tile:hover .portfolio-overlay{
  background: linear-gradient(to right,
    rgba(0,0,0,0.50) 0%,
    rgba(0,0,0,0.24) 55%,
    rgba(0,0,0,0.10) 100%);
}

.portfolio-overlay h3{
  font-family: 'Montserrat', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-weight: 200;
  text-transform: uppercase;
  letter-spacing: 3.0px;
  font-size: clamp(16px, 1.7vw, 26px);
  line-height: 1.15;
  color: rgba(255,255,255,0.95);
  margin: 0;
  text-align: center;
  max-width: 26ch;
}

.portfolio-overlay h3::before{
  content: "";
  display: block;
  width: 56px;
  height: 1px;
  background: rgba(255,255,255,0.70);
  margin: 0 auto 16px;
}

.portfolio-btn{
  display: inline-block;
  padding: 12px 18px;
  border: 1px solid rgba(255,255,255,0.70);
  background: rgba(0,0,0,0.0);
  color: rgba(255,255,255,0.92);
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  border-radius: 0;
  transition: transform .18s ease, background .18s ease, border-color .18s ease;
}

.portfolio-tile:hover .portfolio-btn{
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.92);
  transform: translateY(-1px);
}


/* ===== Portfolio Title – Roboto Light (Controlled) ===== */
.portfolio-overlay h3{
  font-family: 'Roboto', system-ui, -apple-system, Segoe UI, Arial, sans-serif !important;
  font-weight: 300 !important;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 18px;
  line-height: 1.15;
  color: #ffffff;
  margin: 0 0 10px;
  text-shadow: 0 2px 14px rgba(0,0,0,0.65);
}

.portfolio-overlay h3{
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
}


/* ===== Portfolio Title – Roboto Athletic Refined ===== */
.portfolio-overlay h3{
  font-family: 'Roboto', system-ui, -apple-system, Segoe UI, Arial, sans-serif !important;
  font-weight: 300 !important;
  text-transform: uppercase;
  letter-spacing: 0.6px;   /* more athletic */
  font-size: 20px;         /* slightly larger */
  line-height: 1.12;
  color: #ffffff;
  margin: 0 0 10px;
  text-shadow: 0 2px 14px rgba(0,0,0,0.65);
}


/* ===== Portfolio interactions (V46) ===== */

/* 1) Disable image zoom on hover (some older rules used scale) */
.portfolio-tile img,
.portfolio-tile:hover img{
  transform: none !important;
}

/* 2) Only the button is clickable */
.portfolio-tile{ cursor: default; }
.portfolio-overlay{ pointer-events: none; }
.portfolio-btn{ pointer-events: auto; text-decoration: none; }

/* 3) Button hover: black 100% + › appears */
.portfolio-btn{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border: 1px solid rgba(255,255,255,0.75);
  background: rgba(255,255,255,0.00);
  color: rgba(255,255,255,0.92);
  text-transform: uppercase;
  letter-spacing: 1.2px;
  font-weight: 600;
  font-size: 12px;
  transition: background .18s ease, border-color .18s ease, transform .18s ease;
}

.portfolio-btn::after{
  content: "›";
  font-size: 18px;
  line-height: 1;
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity .18s ease, transform .18s ease;
}

.portfolio-btn:hover{
  background: #000000;
  border-color: rgba(255,255,255,0.92);
  transform: translateY(-1px);
}

.portfolio-btn:hover::after{
  opacity: 1;
  transform: translateX(0);
}


/* ===== Portfolio click behavior harden (V47) ===== */
.portfolio-tile{ cursor: default !important; }
.portfolio-tile *{ cursor: inherit; }
.portfolio-btn{ cursor: pointer !important; }

/* Only button clickable */
.portfolio-overlay{ pointer-events: none !important; }
.portfolio-btn{ pointer-events: auto !important; text-decoration: none !important; }

/* Make sure no whole-card link styling remains */
.portfolio-tile a{ color: inherit; text-decoration: none; }



/* ===== Remove ALL zoom effects (V48) ===== */
.portfolio-tile,
.portfolio-tile img,
.portfolio-tile:hover,
.portfolio-tile:hover img{
  transform: none !important;
  scale: 1 !important;
}

/* ===== Button transformation effect (V48) ===== */

.portfolio-btn{
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border: 1px solid rgba(255,255,255,0.8);
  background: rgba(255,255,255,0.0);
  color: #ffffff;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.2px;
  overflow: hidden;
  transition: background .15s ease, border-color .15s ease;
}

.portfolio-btn .btn-text{
  transition: opacity .15s ease;
}

.portfolio-btn .btn-icon{
  position: absolute;
  opacity: 0;
  font-size: 20px;
  transition: opacity .15s ease;
}

.portfolio-btn:hover{
  background: #000000;
  border-color: #ffffff;
}

.portfolio-btn:hover .btn-text{
  opacity: 0;
}

.portfolio-btn:hover .btn-icon{
  opacity: 1;
}



/* ===== V49 Fix: force black hover + remove legacy arrow pseudo-element ===== */
.portfolio-btn::after{
  content: none !important;   /* remove any previous pseudo arrow */
}

.portfolio-btn:hover{
  background: #000000 !important;
  border-color: #ffffff !important;
  color: #ffffff !important;
}


/* ===== V50 Premium: Button "wipe" fill (left->right) ===== */
.portfolio-btn{
  background: transparent !important;     /* actual fill comes from ::before */
  position: relative !important;
  overflow: hidden !important;
}

.portfolio-btn::before{
  content: "" !important;
  position: absolute !important;
  inset: 0 !important;
  background: #000000 !important;         /* 100% black fill */
  transform: scaleX(0) !important;
  transform-origin: left center !important;
  transition: transform .85s ease !important;  /* ~0.8-0.9s premium */
  z-index: 0 !important;
}

/* keep content above the wipe */
.portfolio-btn .btn-text,
.portfolio-btn .btn-icon{
  position: relative !important;
  z-index: 1 !important;
}

/* animate fill on hover */
.portfolio-btn:hover::before{
  transform: scaleX(1) !important;
}

/* Optional: sync symbol/text fade slightly after animation starts */
.portfolio-btn .btn-text{ transition: opacity .15s ease .12s !important; }
.portfolio-btn .btn-icon{ transition: opacity .15s ease .12s !important; }

/* Keep border crisp while filling */
.portfolio-btn:hover{
  background: transparent !important;
  border-color: #ffffff !important;
}


/* ===== Project gallery (Masonry) ===== */
.project-body{
  display: block; /* ensure single column */
}

.project-gallery{
  margin-top: 18px;
}

.project-gallery.masonry{
  column-count: 2;
  column-gap: 18px;
}

.project-gallery.masonry img{
  width: 100%;
  height: auto;
  display: block;
  margin: 0 0 18px;
  border-radius: 14px;
  break-inside: avoid;
  box-shadow: 0 16px 40px rgba(0,0,0,0.25);
  transition: transform .18s ease, box-shadow .18s ease;
}

.project-gallery.masonry img:hover{
  transform: translateY(-2px);
  box-shadow: 0 22px 52px rgba(0,0,0,0.32);
}

@media (max-width: 980px){
  .project-gallery.masonry{ column-count: 2; }
}
@media (max-width: 640px){
  .project-gallery.masonry{ column-count: 1; }
}

/* Place details under gallery (clean) */
.meta.meta-block{
  margin-top: 18px;
}

/* ===== Lightbox ===== */
#lightbox{
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
}

#lightbox.open{ display: block; }

#lightbox .lb-backdrop{
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.86);
}

#lightbox .lb-shell{
  position: relative;
  width: min(1200px, 92vw);
  height: min(78vh, 720px);
  margin: 10vh auto 0;
  display: grid;
  grid-template-columns: 60px 1fr 60px;
  grid-template-rows: 1fr auto;
  align-items: center;
  gap: 14px;
}

#lightbox .lb-figure{
  grid-column: 2 / 3;
  grid-row: 1 / 2;
  margin: 0;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 16px;
  overflow: hidden;
}

#lightbox .lb-img{
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

#lightbox .lb-nav{
  width: 48px;
  height: 48px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.22);
  background: rgba(0,0,0,0.35);
  color: rgba(255,255,255,0.9);
  font-size: 34px;
  line-height: 1;
  cursor: pointer;
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
}

#lightbox .lb-nav:hover{
  transform: translateY(-1px);
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.36);
}

#lightbox .lb-prev{ grid-column: 1 / 2; grid-row: 1 / 2; justify-self: center; }
#lightbox .lb-next{ grid-column: 3 / 4; grid-row: 1 / 2; justify-self: center; }

#lightbox .lb-close{
  position: absolute;
  top: -54px;
  right: 0;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.22);
  background: rgba(0,0,0,0.35);
  color: rgba(255,255,255,0.9);
  cursor: pointer;
}

#lightbox .lb-counter{
  grid-column: 2 / 3;
  grid-row: 2 / 3;
  justify-self: center;
  color: rgba(255,255,255,0.75);
  font-size: 13px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  padding: 8px 12px;
}

/* prevent background scroll while lightbox open */
.no-scroll{ overflow: hidden !important; }


/* ===== About: Founders cards (placeholders with initials) ===== */
.founders{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin: 22px 0 22px;
}

.founder-card{
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 16px;
  border-radius: 16px;
  background: rgba(0,0,0,0.45);
  border: 1px solid rgba(255,255,255,0.10);
  box-shadow: 0 18px 48px rgba(0,0,0,0.35);
  backdrop-filter: blur(6px);
}



.founder-info{ min-width: 0; }

.founder-name{
  margin: 0 0 4px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.2px;
}

.founder-role{
  margin: 0;
  opacity: 0.82;
  font-size: 13px;
}

.founder-cred{
  margin: 8px 0 0;
  opacity: 0.85;
  font-size: 12.5px;
  line-height: 1.35;
}

@media (max-width: 820px){
  .founders{ grid-template-columns: 1fr; }
  
}


/* ===== About: Founder photos portrait 4:5 ===== */

.founder-card{
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 22px 20px;
}

.founder-photo{
  width: 240px;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 10%; /* prioritize face/head */
  border-radius: 14px;
  display: block;
  background: rgba(255,255,255,0.03);
  box-shadow: 0 20px 50px rgba(0,0,0,0.35);
  border: 1px solid rgba(255,255,255,0.10);
  filter: none !important;
  image-rendering: auto;
  transform: translateZ(0);
  backface-visibility: hidden;
}

.founder-name{
  font-size: 17px;
  margin-bottom: 6px;
}

.founder-role{
  font-size: 13px;
  margin-bottom: 6px;
}

.founder-cred{
  font-size: 12.5px;
  line-height: 1.4;
}



/* ===== V56: Founders – larger portraits, no separate card background ===== */
.founders{
  margin-top: 26px;
}

.founder-card{
  background: transparent !important;
  border: 1px solid rgba(255,255,255,0.10) !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  padding: 26px 22px !important;
}

.founder-photo{
  width: 320px !important;           /* ~2x bigger */
  max-width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 18px;
  box-shadow: 0 22px 58px rgba(0,0,0,0.35);
  border: 1px solid rgba(255,255,255,0.10);
}

.founder-bio{
  margin: 12px 0 0;
  opacity: 0.86;
  font-size: 13.5px;
  line-height: 1.55;
}

@media (max-width: 980px){
  .founder-photo{ width: 280px !important; }
}
@media (max-width: 520px){
  .founder-photo{ width: 240px !important; }
}

/* ===== V59: Stable hero image (no zoom/parallax) ===== */
.hero-engineering{ background-attachment: scroll !important; }
.hero-image{ transform: none !important; animation: none !important; filter: none; }


/* ===== V60: Clean full-width hero (no blurred sides, no bottom blur) ===== */
.hero-engineering{
  height: 100vh !important;
  background: none !important;
}

.hero-engineering::before,
.hero-engineering::after{
  content: none !important;
  display: none !important;
}

.hero-image{
  object-fit: cover !important;
  object-position: center !important;
  filter: none !important;
  box-shadow: none !important;
}

.hero-text{
  background: none !important;
  backdrop-filter: none !important;
  padding: 34px 20px 42px !important;
}

@media(max-width:768px){
  .hero-engineering{ height: 100vh !important; }
}


/* ===== V61: Hero full-bleed + slightly shorter + more structural framing ===== */
.hero-engineering{
  height: 88vh !important;
  width: 100vw !important;
  max-width: 100vw !important;
  margin-left: calc(50% - 50vw) !important;
  margin-right: calc(50% - 50vw) !important;
  border-radius: 0 !important;
}

.hero-image{
  width: 100% !important;
  height: 100% !important;
  border-radius: 0 !important;
  object-fit: cover !important;
  /* push framing down a bit to show more building and less sky */
  object-position: center 70% !important;
}

.hero-text{
  /* keep text visible without forcing scroll */
  padding-bottom: 36px !important;
}

@media(max-width: 768px){
  .hero-engineering{ height: 84vh !important; }
  .hero-image{ object-position: center 65% !important; }
}


/* ===== V62 Contact: Formspree + GDPR + AJAX status ===== */
.contact-form{
  display: grid;
  gap: 12px;
}

.contact-form .form-grid{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.contact-form .field{
  display: grid;
  gap: 6px;
}

.contact-form .field-full{
  grid-column: 1 / -1;
}

.contact-form label{
  font-size: 12.5px;
  opacity: 0.85;
  letter-spacing: 0.4px;
}

.contact-form input,
.contact-form textarea{
  width: 100%;
  padding: 12px 12px;
  border-radius: 12px;
  background: rgba(0,0,0,0.35);
  border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.92);
  outline: none;
}

.contact-form input:focus,
.contact-form textarea:focus{
  border-color: rgba(255,255,255,0.25);
}

.contact-form .hp{
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.gdpr{
  margin-top: 2px;
}

.gdpr-check{
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 12.5px;
  opacity: 0.9;
  line-height: 1.35;
}

.gdpr-check input{
  margin-top: 2px;
  width: 16px;
  height: 16px;
}

.gdpr-check a{
  color: rgba(255,255,255,0.92);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.btn-submit{
  margin-top: 2px;
}

.form-status{
  min-height: 20px;
  font-size: 12.5px;
  opacity: 0.92;
  margin-top: 2px;
}

.form-status.is-sending{ opacity: 0.75; }
.form-status.is-success{ opacity: 0.95; }
.form-status.is-error{ opacity: 0.95; }

.contact-link{
  color: rgba(255,255,255,0.92);
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 700px){
  .contact-form .form-grid{ grid-template-columns: 1fr; }
}

/* ===== Privacy page ===== */
.privacy-header{
  padding: 110px 0 18px;
}

.container{
  width: min(1100px, 92vw);
  margin: 0 auto;
}

.back-link{
  display: inline-block;
  opacity: 0.85;
  margin-bottom: 10px;
  text-decoration: none;
  color: rgba(255,255,255,0.92);
}

.privacy{
  padding: 10px 0 40px;
}

.privacy-card{
  background: rgba(0,0,0,0.35);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 16px;
  padding: 18px 18px;
  margin: 12px 0;
}

.privacy-card h2{
  margin-top: 0;
}

.privacy-footer{
  padding: 20px 0 40px;
}


/* ===== V63: Founders experience + atestate label ===== */
.founder-exp{
  margin: 12px 0 0;
  opacity: 0.9;
  font-size: 13px;
  line-height: 1.45;
}

.founder-exp strong{
  font-weight: 650;
  opacity: 0.95;
}

.founder-atestate{
  margin: 12px 0 6px;
  font-size: 12px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  opacity: 0.78;
}

.founder-atestate strong{
  font-weight: 650;
}
