:root{
  --text:#333; --muted:#444;
  --brand:#244c88;
  --container:1240px;
  --header-h:80px;
  --radius:16px;
}

/* Base */
*{box-sizing:border-box}
html{scroll-behavior:smooth}
@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
}
body{
  margin:0;
  font-family:'Montserrat',system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial,sans-serif;
  font-size:18px; line-height:1.6; color:var(--text);
}
a{color:inherit; text-decoration:none}
img{max-width:100%; height:auto; display:block}

/* Type */
h1 {color:var(--brand); line-height: 1.1; font-size:2.75em; font-weight: 800; margin-bottom: 50px !important;}


h2,h3{text-align:center; margin:0 auto; color:var(--brand);}
h2{font-size:34px; line-height:1.4}
p,h2{max-width:900px; margin-left:auto; margin-right:auto}
h2{max-width:750px;}
h3{font-size:clamp(1.3rem,2vw+.3rem,1.8rem); padding:15px 0 0 0; }
.card h3 {font-size:28px; padding:0 0 10px 0; }

h3 + p {  margin-top: 0; / }

/* Layout */
.container{width:100%; max-width:var(--container); margin:0 auto; padding:0 20px}
.container p{text-align:center}
section{padding:60px 0}
footer{border-top:1px solid rgba(0,0,0,.06); padding:28px 0; color:var(--muted); font-size:16px;}
section[id]{scroll-margin-top:calc(var(--header-h) + 12px)}

/* Buttons */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:.5rem;
  padding:.6rem 1.5rem; min-width:180px; border-radius:999px;
  border:1px solid #d9e3f5; /* fallback */
  border-color:color-mix(in oklab, var(--brand) 60%, white);
  color:var(--text); font-weight:500;
}
.btn:hover{background:color-mix(in oklab, var(--brand) 10%, transparent)}
.hero-buttons{
  display:flex; justify-content:center; flex-wrap:wrap; gap:20px; margin-top:10px; text-align:center
}
.linkedin {background-color: #3166bc; color: #ffffff; border-color:#3166bc;}
.linkedin:hover{background:#4676c3;}

.menu a.presentation:hover {color:#FFFFFF; background:color-mix(in oklab, var(--brand) 50%, white)}
/* Header */
header{
  position:fixed; top:0; left:0; right:0; z-index:50; padding:10px 0;
  background:linear-gradient(to bottom, rgba(255,255,255,1) 0%, rgba(255,255,255,0) 100%);
  backdrop-filter:saturate(140%) blur(10px); color:var(--text)
}
.nav{display:flex; align-items:center; justify-content:space-between; min-height:var(--header-h)}
.menu{display:flex; gap:.75rem; align-items:center}
.menu a{padding:.5rem .75rem; border-radius:.5rem; color:var(--muted)}
.menu a:hover{color:var(--text); background:rgba(56,189,248,.1)}
.menu a.active{color:var(--text); background:rgba(56,189,248,.2)}
.hamburger{display:none; background:none; border:0; padding:.4rem; color:var(--text)}



/* Mobile menu (drawer) */
@media (max-width:820px){
  .hamburger{display:inline-flex}
  .menu{
    position:fixed; top:calc(var(--header-h) + 20px); left:0; right:0; z-index:60;
    background:color-mix(in oklab, var(--brand) 10%, white); border-bottom:1px solid rgba(0,0,0,.06);
    flex-direction:column; padding: 0; gap:0; display:none
  }
  .menu.open{display:flex}
  .menu a{color:var(--text); width:100%; border-radius: 0;text-align: center;
    border-bottom:1px solid rgba(0,0,0,.1);}
  .menu a:hover{color:var(--text); background:rgba(255,255,255,.5)}
	.menu a.presentation {border-radius:0;}
}


/* Grids/cards */
.grid{
  display:grid; grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
  gap:40px; margin-top:50px
}

.card{
  background:rgba(255,255,255,.75); border:1px solid rgba(0,0,0,.1);
	
  border-radius:14px; padding:20px 25px 25px 25px;
	text-align: center;
}

#services .card{
  background:var(--brand); color: #FFFFFF;
}


#services .card h3{ font-size: 24px; line-height: 1.3em; color: #FFFFFF;}

#services .card p{ color: #FFFFFF;}

.undertake {
  background:rgba(255,255,255,.5); border:1px solid rgba(0,0,0,.06);
  border-radius:14px; padding:15px 15px 25px 15px;
max-width: 75%; margin: 40px auto 0;
}

.mission {
  background:color-mix(in oklab, var(--brand) 10%, white); border:1px solid rgba(0,0,0,.06);
  border-radius:14px; padding:10px 25px 15px 25px;
max-width: 75%; margin: 40px auto 0;
}

/* Hero */
.hero{
  position:relative; min-height:50vh; display:flex; align-items:center; text-align:center;
  background:center / cover no-repeat url('images/hero-header.webp')
}
.hero::before{
  content:""; position:absolute; inset:0;
  background:linear-gradient(to bottom, rgba(255,255,255,1), rgba(255,255,255,.75), rgba(255,255,255,.85));
  pointer-events:none
}
.hero .container,.hero .inner{position:relative; z-index:1}

#services{
  position: relative;
  /* two layers: 1) gradient overlay, 2) image */
  background-image:
    linear-gradient(
      to bottom,
      rgba(255,255,255,0.95),
      rgba(255,255,255,0.80),
      rgba(255,255,255,0.95)  ),
    url('images/services_bg.webp');
  background-size: auto, cover;
  background-repeat: no-repeat, no-repeat;
  background-position: center, center;
  background-attachment: scroll, fixed;
  border-block: 1px solid color-mix(in oklab, var(--brand) 20%, white);
}

@media (max-width: 1024px){
  #services{
    background-attachment: scroll, scroll;
  }
}

/* Generic two-column layout */
.two-col .container {
  display: grid;
  grid-template-columns: 1fr 1fr; /* 66% / 33% */
  column-gap: 50px;   /* only horizontal spacing */
  row-gap: 0;         /* (optional, defaults to 0) */
  align-items: start;
}

.two-colsplit .container {
  display: grid;
  grid-template-columns: 1fr 2fr; /* 66% / 33% */
  column-gap: 50px;   /* only horizontal spacing */
  row-gap: 0;         /* (optional, defaults to 0) */
  align-items: start;
}

.two-colsplitreverse .container {
  display: grid;
  grid-template-columns: 2fr 1fr; /* 66% / 33% */
  column-gap: 50px;   /* only horizontal spacing */
  row-gap: 0;         /* (optional, defaults to 0) */
  align-items: start;
}

.col p, .col h2, .col h3{
  text-align: left;
}
.col p, .card p{
  font-size: 16px;
}

.study {background: color-mix(in oklab, var(--brand) 5%, white); padding: 20px 30px; border-radius: 10px; border: 1px solid color-mix(in oklab, var(--brand) 20%, white); margin-top: 20px}

.corners {border-radius: 10px}

.profile {margin: -60px auto 20px auto; border-radius: 250px; border: solid 10px #ffffff;}

#contact {background: color-mix(in oklab, var(--brand) 5%, white); padding: 20px 30px; border-radius: 10px; border: 1px solid color-mix(in oklab, var(--brand) 20%, white); margin-top: 20px}

#contact .btn{
  border:1px solid #d9e3f5; /* fallback */
  border-color:color-mix(in oklab, var(--brand) 60%, white);
  color:var(--text); 
background: white;
}
#contact .btn:hover{background:color-mix(in oklab, var(--brand) 10%, transparent)}

/* Mobile: stack into one column */
@media (max-width: 820px) {
  .two-col .container, .two-colsplit .container, .two-colsplitreverse .container {
    grid-template-columns: 1fr; /* full width */
  }
}


/* Mobile tweaks */
@media (max-width:820px){
  section{padding:60px 0}
	h1 {font-size:2.5em;}
	.hero {padding-top: calc(var(--header-h) + 24px); }
	h2{font-size:28px; line-height:1.3}
.undertake, .mission { max-width: 100%; }
	.corners {display: none !important;}
	section{padding:30px 0}
}
