:root{
  --bg:#0b0f16;
  --panel:#111827;
  --line:rgba(255,255,255,.10);
  --text:#ffffff;
  --muted:#d7dfea;
  --red:#c8102e;
}

*{box-sizing:border-box}

html{scroll-behavior:smooth}

body{
  margin:0;
  font-family:Arial,Helvetica,sans-serif;
  background:var(--bg);
  color:var(--text);
  line-height:1.55;
}

a{text-decoration:none;color:inherit}

.container{
  width:min(1200px,calc(100% - 40px));
  margin:0 auto;
}

/* HEADER */
header{
  position:sticky;
  top:0;
  z-index:20;
  background:rgba(11,15,22,.88);
  backdrop-filter:blur(8px);
  border-bottom:1px solid var(--line);
}

.nav{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:16px 0;
  gap:20px;
}

.nav img{
  height:40px;
  width:auto;
}

.nav-links{
  display:flex;
  gap:18px;
  align-items:center;
  flex-wrap:wrap;
}

.nav-links a{
  font-size:14px;
  color:#eef2f6;
}

/* BUTTONS */
.btn{
  display:inline-block;
  background:var(--red);
  color:#fff;
  padding:12px 18px;
  border-radius:4px;
  font-weight:700;
}

.btn.secondary{
  background:transparent;
  border:1px solid rgba(255,255,255,.28);
}

/* HERO (TOP-LEFT + INDENTED) */
.hero{
  min-height:86vh;
  background:url('../images/hero-highres.jpg') center/cover no-repeat;
  position:relative;
  display:flex;
  align-items:flex-start;
  justify-content:flex-start;
}

.hero:before{
  content:'';
  position:absolute;
  inset:0;
  background:linear-gradient(
    90deg,
    rgba(0,0,0,.55) 0%,
    rgba(0,0,0,.35) 40%,
    rgba(0,0,0,.15) 100%
  );
}

.hero .content{
  position:relative;
  z-index:1;
  max-width:650px;

  margin-left:8%;
  margin-top:8vh;

  text-align:left;
}

/* PAGE HERO (FIXED - USES DRAGLINE IMAGE) */
.page-hero{
  padding:84px 0 60px;
  background:url('../images/hero-highres.jpg') center/cover no-repeat;
  position:relative;
}

.page-hero:before{
  content:'';
  position:absolute;
  inset:0;
  background:rgba(0,0,0,.54);
}

.page-hero .inner{
  position:relative;
  z-index:1;
}

/* TEXT */
h1{
  font-size:clamp(38px,6vw,64px);
  line-height:1.02;
  margin:0 0 16px;
}

p.lead{
  font-size:clamp(18px,2vw,22px);
  color:#f0f4f8;
  max-width:620px;
  margin:0 0 26px;
}

/* SECTIONS */
section{padding:72px 0}

.section-title{
  font-size:34px;
  margin:0 0 10px;
}

.section-sub{
  color:var(--muted);
  max-width:830px;
  margin:0 0 24px;
}

/* GRID */
.grid-3{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:24px;
}

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

/* CARDS */
.card,.panel,.project{
  background:rgba(255,255,255,.03);
  border:1px solid var(--line);
  border-radius:8px;
  padding:28px;
}

.icon{
  width:72px;
  height:72px;
  margin-bottom:14px;
}

.icon img{
  width:72px;
  height:72px;
}

/* FOOTER */
footer{
  border-top:1px solid var(--line);
  padding:32px 0;
  background:#090d14;
}

.footer-grid{
  display:grid;
  grid-template-columns:1.2fr .8fr .8fr;
  gap:24px;
}

/* ANIMATION */
.fade-in{
  opacity:0;
  transform:translateY(16px);
  transition:opacity .7s ease, transform .7s ease;
}

.fade-in.visible{
  opacity:1;
  transform:none;
}

/* RESPONSIVE */
@media (max-width: 900px){
  .grid-3,.grid-2,.footer-grid{
    grid-template-columns:1fr 1fr;
  }
}

@media (max-width: 700px){

  .container{
    width:min(1200px,calc(100% - 28px));
    margin:0 auto;
  }

  .hero{
    min-height:72vh;
    background-image:url('../images/hero-mobile.jpg');
  }

  .hero .content{
    margin-left:5%;
    margin-top:6vh;
  }

  .page-hero{
    background-image:url('../images/hero-mobile.jpg');
  }

  h1{font-size:36px}
  p.lead{font-size:16px}

  .grid-3,.grid-2,.footer-grid{
    grid-template-columns:1fr;
  }
}

@media (prefers-reduced-motion: reduce){
  .fade-in,.card,.panel,.project,.btn{
    transition:none;
  }
  .fade-in{
    opacity:1;
    transform:none;
  }
}