:root{
  --bg: #e9e9e9;
  --light: #dcdcdc;
  --dark: #0b0b0b;
  --text: #111;
  --muted: #6c6c6c;
  --panel: #1f1f1f;
  --border: #111;
  --max: 1100px;
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
}

/* Top bar */
.topbar{
  position: absolute;
  inset: 0 0 auto 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 28px;
  z-index: 20;
}
.brand__logo{ height: 30px; width: auto; }

.nav{
  display: flex;
  gap: 26px;
  align-items: center;
}
.nav a{
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
}
.btn{
  display: inline-block;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid #fff;
  color: #111 !important;
  background: #fff;
  text-decoration: none;
  font-weight: 600;
}
.btn--solid{
  border-color: var(--border);
  background: #111;
  color: #fff !important;
}

.nav-toggle{
  display: none;
  border: 1px solid rgba(255,255,255,.5);
  background: transparent;
  color: #fff;
  padding: 8px 12px;
  border-radius: 10px;
}

/* HERO */
.hero{
  position: relative;
  min-height: 78vh;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  align-items: center;
  padding: 110px 28px 40px;
  background: var(--light);
  overflow: hidden;
}
.hero::after{
  content: "";
  position: absolute;
  inset: 0;
  background: var(--dark);
  clip-path: polygon(58% 0, 100% 0, 100% 100%, 46% 100%);
  z-index: 0;
}
.hero > *{ position: relative; z-index: 1; }

.hero__content{
  max-width: 560px;
  padding-left: 70px;
}
.hero__hello{
  margin: 0 0 14px;
  font-size: 18px;
  font-weight: 700;
}
.hero__name{
  margin: 0;
  font-size: 56px;
  letter-spacing: -0.5px;
  font-weight: 800;
}
.hero__role{
  margin: 10px 0 28px;
  color: var(--muted);
  font-weight: 600;
}

.hero__social{
  display: flex;
  gap: 14px;
  margin-top: 12px;
}
.icon{
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(0,0,0,.08);
  display: grid;
  place-items: center;
}
.icon img{ width: 18px; height: 18px; opacity: .9; }

.hero__photo{
  display: grid;
  place-items: center;
  padding-right: 40px;
}
.hero__photo img{
  width: min(420px, 78%);
  height: auto;
  filter: drop-shadow(0 18px 40px rgba(0,0,0,.35));
  border-radius: 16px;
}

/* Callout strip */
.callout{
  position: relative;
  background: #222;
  color: #fff;
  padding: 34px 28px;
  overflow: hidden;
}
.callout__text{
  max-width: var(--max);
  margin: 0 auto;
}
.callout h2{
  margin: 0 0 10px;
  text-transform: uppercase;
  letter-spacing: 5px;
  font-size: 14px;
}
.callout p{
  max-width: 820px;
  margin: 0 0 18px;
  line-height: 1.6;
  color: rgba(255,255,255,.85);
  font-size: 13px;
}
.link{
  color: #fff;
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,.65);
  padding-bottom: 4px;
  font-weight: 600;
}
.callout__mark{
  position: absolute;
  right: 40px;
  bottom: -20px;
  font-size: 220px;
  font-weight: 800;
  color: rgba(255,255,255,.06);
  user-select: none;
}

/* Sections */
.section{
  padding: 80px 28px;
  background: radial-gradient(circle at 50% 10%, #f1f1f1, #dedede 70%);
  text-align: center;
}
.section__titlebox{
  display: inline-block;
  border: 3px solid var(--border);
  padding: 14px 36px;
  margin-bottom: 26px;
}
.section__titlebox h2{
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 7px;
  font-size: 14px;
}
.section__body{
  max-width: var(--max);
  margin: 0 auto;
  line-height: 1.8;
  color: #222;
  font-size: 13px;
}
.narrow{ max-width: 720px; }

.ornament{
  width: 120px;
  height: 14px;
  margin: 36px auto 0;
  position: relative;
}
.ornament::before,
.ornament::after{
  content:"";
  position:absolute;
  top: 50%;
  width: 44px;
  height: 2px;
  background: #111;
  transform: translateY(-50%);
}
.ornament::before{ left: 0; }
.ornament::after{ right: 0; }
.ornament{ border-bottom: 2px solid transparent; }

/* Experience */
.experience{
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  gap: 34px;
  text-align: left;
}
.xp{
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 26px;
  align-items: start;
}
.xp__logo{
  display: grid;
  place-items: center;
  gap: 10px;
}
.xp__logo img{
  width: 160px;
  height: 160px;
  object-fit: contain;
  border-radius: 18px;
  background: transparent;
  padding: 0;
  display: block;
}
.xp__year{
  font-weight: 800;
  letter-spacing: 8px;
  color: #111;
}
.xp__content h3{
  margin: 0 0 10px;
  font-size: 14px;
}
.xp__content p{
  margin: 0 0 12px;
  color: #222;
  font-size: 13px;
  line-height: 1.7;
}
.xp__content ul{
  margin: 0;
  padding-left: 18px;
  color: #222;
  font-size: 13px;
  line-height: 1.7;
}

/* Contact */
.section__lead{
  margin: -6px auto 26px;
  color: #444;
  font-size: 13px;
  max-width: 520px;
}
.contact-form{
  max-width: 520px;
  margin: 0 auto;
  display: grid;
  gap: 16px;
  text-align: left;
}
.contact-form label span{
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #333;
  margin-bottom: 6px;
}
.contact-form input,
.contact-form textarea{
  width: 100%;
  padding: 10px 10px;
  border: 0;
  border-bottom: 2px solid #111;
  background: transparent;
  outline: none;
  font-size: 14px;
}
.contact-form textarea{
  border: 2px solid #111;
  border-top: 0;
  resize: vertical;
  min-height: 140px;
}
.footer{
  padding: 26px 28px;
  background: #dcdcdc;
  text-align: center;
}

/* Responsive */
@media (max-width: 900px){
  .hero{
    grid-template-columns: 1fr;
    padding-top: 120px;
  }
  .hero::after{
    clip-path: polygon(0 40%, 100% 0, 100% 100%, 0 100%);
  }
  .hero__content{ padding-left: 0; text-align: center; margin: 0 auto; }
  .hero__social{ justify-content: center; }
  .hero__photo{ padding-right: 0; margin-top: 22px; }

  .xp{ grid-template-columns: 1fr; text-align: center; }
  .xp__content{ text-align: left; }

  .nav-toggle{ display: inline-block; }
  .nav{
    display: none;
    position: absolute;
    top: 70px;
    right: 20px;
    background: rgba(0,0,0,.92);
    padding: 14px;
    border-radius: 14px;
    flex-direction: column;
    align-items: stretch;
    min-width: 200px;
  }
  .nav.nav--open{ display: flex; }
  .btn{ text-align: center; }
}
/* Smooth sliding motion for buttons/links */
.btn,
.nav a,
.icon,
.contact-form button {
  transition:
    transform 650ms cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 650ms cubic-bezier(0.22, 1, 0.36, 1),
    background-color 650ms cubic-bezier(0.22, 1, 0.36, 1),
    color 650ms cubic-bezier(0.22, 1, 0.36, 1),
    border-color 650ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 650ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

/* Slide on hover + keyboard focus */
.btn:hover,
.btn:focus-visible,
.nav a:hover,
.nav a:focus-visible,
.icon:hover,
.icon:focus-visible,
.contact-form button:hover,
.contact-form button:focus-visible {
  transform: translateX(6px) translateY(-3px);
}

/* Slight "press" feeling */
.btn:active,
.icon:active,
.contact-form button:active {
  transition-duration: 140ms;
  transform: translateX(2px) translateY(-1px);
}

/* Respect reduced-motion */
@media (prefers-reduced-motion: reduce) {
  .btn, .nav a, .icon, .contact-form button {
    transition: none !important;
    transform: none !important;
  }
}
/* ===========================
   Scroll reveal animations
   =========================== */
.reveal{
  opacity: 0;
  transform: translateY(18px);
  filter: blur(2px);
  transition:
    opacity 900ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 900ms cubic-bezier(0.22, 1, 0.36, 1),
    filter 900ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform, filter;
}

.reveal.in-view{
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

/* Small stagger for experience cards (optional, looks nice) */
#experience .xp.reveal:nth-of-type(1){ transition-delay: 80ms; }
#experience .xp.reveal:nth-of-type(2){ transition-delay: 160ms; }

/* Accessibility: respect reduced motion */
@media (prefers-reduced-motion: reduce){
  .reveal{
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    transition: none !important;
  }
}

/* ===========================
   BLOG PAGE
   =========================== */
.blog-page{
  background: #f6f1ff;
}

.blog-main{
  padding-top: 110px;
  padding-bottom: 40px;
}

.topbar--light{
  position: sticky;
  top: 0;
  background: rgba(246, 241, 255, 0.8);
  backdrop-filter: blur(10px);
}

.nav--light a{
  color: #111;
}

.nav--light a.is-active{
  font-weight: 800;
  border-bottom: 2px solid rgba(0,0,0,.6);
  padding-bottom: 4px;
}

.btn--light{
  border-color: #111 !important;
  background: #111 !important;
  color: #fff !important;
}

.nav-toggle--dark{
  border: 1px solid rgba(0,0,0,.5) !important;
  color: #111 !important;
}

.blog-hero {
  position: relative;
  padding: 200px 35px 100px; /* reduced top space */
  text-align: center;
  overflow: hidden;

  background: url("assets/research-law-background.jpg") top center / cover no-repeat;
}

.blog-hero::before {
  content: "";
  position: absolute;
  inset: 0;

  /* dark overlay */
  background: rgba(0, 0, 0, 0.45);

  /* blur effect */
  backdrop-filter: blur(6px);

  z-index: 0;
}

.blog-hero > * {
  position: relative;
  z-index: 1;
  color: #fff; /* makes text white */
}

.blog-subtitle {
  color: #ffffff !important; /* force white */
  text-shadow: 0 3px 10px rgba(0, 0, 0, 0.8); /* glow for readability */
}

.blog-pill{
  display: inline-block;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(90, 61, 200, 0.12);
  color: #3b2aa8;
  font-weight: 700;
  font-size: 12px;
  margin-bottom: 14px;
}

.blog-title{
  margin: 0;
  font-size: clamp(34px, 5vw, 54px);
  letter-spacing: -0.5px;
}

.blog-subtitle{
  margin: 12px auto 22px;
  max-width: 720px;
  color: rgba(0,0,0,.65);
  line-height: 1.6;
}

.blog-search{
  margin: 0 auto;
  max-width: 520px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,.12);
  background: rgba(255,255,255,.7);
}

.blog-search__icon{
  opacity: .6;
}

.blog-search input{
  width: 100%;
  border: 0;
  outline: none;
  background: transparent;
  font-size: 14px;
}

.blog-grid-wrap{
  max-width: 1180px;
  margin: 0 auto;
  padding: 24px 28px 60px;
}

.blog-grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.blog-card{
  display: block;
  text-decoration: none;
  color: inherit;
  background: rgba(255,255,255,.88);
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(0,0,0,.08);
}

.blog-card__img{
  height: 190px;
  background: rgba(0,0,0,.06);
}

.blog-card__img img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.blog-card__body{
  padding: 18px 18px 16px;
}

.blog-card__tag{
  margin: 0 0 10px;
  color: #3b2aa8;
  font-weight: 800;
  font-size: 12px;
}

.blog-card__title-row{
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.blog-card__title{
  margin: 0;
  font-size: 18px;
  line-height: 1.25;
}

.blog-card__arrow{
  font-size: 18px;
  opacity: .7;
}

.blog-card__excerpt{
  margin: 10px 0 16px;
  color: rgba(0,0,0,.65);
  line-height: 1.6;
  font-size: 13px;
}

.blog-card__meta{
  display: flex;
  gap: 10px;
  align-items: center;
}

.blog-card__avatar{
  width: 36px;
  height: 36px;
  border-radius: 999px;
  object-fit: cover;
  background: rgba(0,0,0,.08);
}

.blog-card__author{
  margin: 0;
  font-weight: 800;
  font-size: 12px;
}

.blog-card__date{
  margin: 2px 0 0;
  font-size: 12px;
  color: rgba(0,0,0,.55);
}

.blog-card.is-hidden{
  display: none;
}

@media (max-width: 1000px){
  .blog-grid{ grid-template-columns: 1fr; }
}

.article-body p {
  margin-bottom: 18px;
}