:root{
  --bg: #f6fbff;          /* slightly blue-white */
  --fg: #0b1b2b;          /* deep navy for text */
  --muted: #3c5872;       /* muted text */
  --border: #d7e7f6;      /* soft blue border */
  --card: #ffffff;        /* keep cards white */
  --accent: #448ace;      /* from your image */
  --accent-2: #65a4dc;    /* from your image */
  --max: 980px;
}


*{ box-sizing:border-box; }
html,body{ margin:0; padding:0; background:var(--bg); color:var(--fg); font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji"; }
a{ color:inherit; text-decoration:none; }
a:hover{ text-decoration:underline; }

.container{ max-width:var(--max); margin:0 auto; padding:28px 18px; }
.nav{ display:flex; align-items:center; justify-content:space-between; gap:16px; border-bottom:1px solid var(--border); position:sticky; top:0; background:rgba(255,255,255,0.9); backdrop-filter:saturate(180%) blur(10px); }
.brand{ font-weight:700; letter-spacing:0.2px; }
.navlinks{ display:flex; gap:14px; flex-wrap:wrap; }
.navlinks a{ padding:8px 10px; border-radius:10px; }
.navlinks a:hover{ background:var(--card); text-decoration:none; }


.hero{
  position: relative;
  padding: 64px 0 44px;
  border-radius: 24px;
  overflow: hidden;

  background: url("assets/hero-bg.png") center/cover no-repeat;

  min-height: 360px;   /* ← adjust once, done */
}



/* keep content above background */
.hero > *{
  position: relative;
  z-index: 1;
}

/* readability: light background -> dark text */
.hero h1{ color: var(--fg); }
.hero .sub{ color: rgba(11,27,43,0.72); }

/* pills on light background */
.hero .pill{
  background: rgba(255,255,255,0.85);
}

/* buttons look better on light background */
.hero .btn{ background:#fff; }
.hero .btn.primary{ background: var(--accent); color:#fff; }

.hero-inner{
  padding-left: clamp(24px, 6vw, 72px);
  padding-right: clamp(24px, 6vw, 72px);
  padding-top: 0px;
  transform: translateY(-40px);
}

.hero h1{
  margin-bottom: 16px;   /* default is usually too large */
}

.hero .sub{
  margin-top: 0;
}

.hero .pills{
  position: absolute;
  left: 0;
  right: 0;
  bottom: 18px;            /* try 12–24px */

  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: flex-end;

  padding-left: clamp(24px, 6vw, 72px);
  padding-right: clamp(48px, 8vw, 24px);
}


.hero{
  margin-bottom: 28px; /* adjust: 20–36px works well */
}



h1{ font-size:42px; line-height:1.1; margin:0 0 10px; letter-spacing:-0.02em; }
.sub{ font-size:18px; color:var(--muted); margin:0 0 18px; max-width: 70ch; }
.pills{ display:flex; flex-wrap:wrap; gap:8px; margin:18px 0 0; }
.pill{ font-size:13px; padding:7px 10px; border:1px solid var(--border); border-radius:999px; background:#fff; color:var(--muted); }

.grid{ display:grid; grid-template-columns: repeat(12, 1fr); gap:14px; }
.card{ background:var(--card); border:1px solid var(--border); border-radius:16px; padding:16px; }
.card h3{ margin:0 0 8px; }
.card p{ margin:0; color:var(--muted); }

.section{ padding:26px 0; }
.section h2{ margin:0 0 12px; font-size:22px; }
.section p{ margin:0 0 10px; color:var(--muted); max-width: 100ch; }

.kpi{ display:flex; gap:12px; flex-wrap:wrap; margin-top:10px; }
.kpi .tag{ font-size:13px; padding:8px 10px; border:1px dashed var(--border); border-radius:12px; background:#fff; color:var(--muted); }

.project{ display:flex; flex-direction:column; gap:10px; }
.project .meta{ display:flex; gap:10px; flex-wrap:wrap; color:var(--muted); font-size:13px; }
.project .actions{ display:flex; gap:10px; flex-wrap:wrap; margin-top:4px; }
.btn{ display:inline-block; padding:10px 12px; border-radius:12px; border:1px solid var(--border); background:#fff; }
.btn.primary{ background:var(--accent); color:#fff; border-color:transparent; }
.btn:hover{ text-decoration:none; opacity:0.92; }

.media{
  border:1px solid var(--border);
  border-radius:16px;
  background:#fff;
  padding:14px;
  color:var(--muted);
}
.media .box{
  border:1px dashed var(--border);
  border-radius:12px;
  padding:18px;
  text-align:center;
}

.footer{ border-top:1px solid var(--border); padding:22px 0; color:var(--muted); font-size:14px; }
.small{ font-size:13px; color:var(--muted); }

@media (max-width: 720px){
  h1{ font-size:34px; }
  .grid{ gap:10px; }
}


/* Project card split layout: text left, icon right */
.project-row{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.project-copy{ flex: 1; min-width: 0; }

.project-icon{
  flex: 0 0 140px;              /* controls reserved space on the right */
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.project-icon svg{
  width: 120px;                 /* icon size */
  height: auto;
  opacity: 0.9;
}

/* Mobile: stack nicely */
@media (max-width: 720px){
  .project-row{ flex-direction: column; align-items: flex-start; }
  .project-icon{ width: 100%; justify-content: flex-start; }
}

/* Consistent spacing inside project cards */
.card.project h3{
  margin-bottom: 18px;
}

.card.project .meta{
  margin-bottom: 18px;
}

.card.project p{
  margin-bottom: 24px;
}

.card.project .meta{
  font-size: 0.9rem;
  opacity: 0.85;
}

.grid{
  row-gap: 24px;   /* try 24–32px */
}


/* About page layout */
.about-grid{
  display: grid;
  grid-template-columns: 1fr 220px; /* text + small photo column */
  gap: 26px;
  align-items: start;
}

.about-photo{
  display: flex;
  flex-direction: column;
  align-items: center;
}

.portrait{
  width: 180px;
  height: auto;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: #fff;
}

/* Mobile: stack */
@media (max-width: 720px){
  .about-grid{
    grid-template-columns: 1fr;
  }
  .about-photo{
    align-items: flex-start;
  }
  .portrait{
    width: 160px;
  }
}


/* Contact page */
.contact-grid{
  max-width: 72ch;
}

.contact-list{
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
}

.contact-list li{
  margin-bottom: 16px;
}

.contact-list a{
  color: var(--accent);
  text-decoration: none;
}

.contact-list a:hover{
  text-decoration: underline;
}



/* Mobile adjustments */
@media (max-width: 768px) {
  .hero {
    padding-bottom: 24px;
  }

  .hero .pills {
    position: static;          /* remove absolute positioning */
    margin-top: 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-start;
  }

  .hero .pill {
    font-size: 13px;
    padding: 6px 10px;
    white-space: nowrap;
  }
}



.byline {
  font-weight: 500;
  font-size: 18px;          /* was implicit ~14px */
  letter-spacing: 0.02em;
  color: var(--muted);
  margin: 6px 0 14px;
}


.contact-signature {
  margin-top: 24px;
  font-size: 14px;
  color: var(--muted);
}