:root{
  --bg: #0f1b18;
  --surface: #142622;
  --surface2: #0f201c;
  --card: rgba(242,234,223,0.08);
  --card2: rgba(242,234,223,0.10);
  --stroke: rgba(242,234,223,0.14);

  --text: #f2eadf;
  --muted: rgba(242,234,223,0.72);

  --accent: #cdbba3;
  --accent2: #86a49a;
  --ink: #081110;

  --shadow: 0 18px 46px rgba(0,0,0,0.40);
  --shadow2: 0 10px 22px rgba(0,0,0,0.26);

  --r: 18px;
  --r2: 22px;

  --max: 1120px;
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin: 0;
  color: var(--text);
  background: radial-gradient(1100px 700px at 15% 10%, rgba(134,164,154,0.16), transparent 55%),
              radial-gradient(900px 500px at 85% 20%, rgba(205,187,163,0.14), transparent 52%),
              radial-gradient(900px 600px at 55% 90%, rgba(205,187,163,0.10), transparent 56%),
              linear-gradient(180deg, var(--bg), #081310 60%, #07110f);
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans", "Liberation Sans", sans-serif;
  line-height: 1.45;
}

a{ color: inherit; }
img{ max-width: 100%; display: block; }

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

.sr{
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.skip{
  position: absolute;
  left: 14px;
  top: 14px;
  transform: translateY(-140%);
  background: rgba(242,234,223,0.14);
  border: 1px solid var(--stroke);
  padding: 10px 12px;
  border-radius: 12px;
  text-decoration: none;
  transition: transform 180ms ease;
  z-index: 9999;
}
.skip:focus{ transform: translateY(0); outline: none; }

.topbar{
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(10px);
  background: rgba(8,17,15,0.58);
  border-bottom: 1px solid rgba(242,234,223,0.10);
  transition: box-shadow 160ms ease, border-color 160ms ease, background 160ms ease;
}
.topbar.isElevated{
  box-shadow: 0 14px 40px rgba(0,0,0,0.34);
  border-color: rgba(242,234,223,0.14);
  background: rgba(8,17,15,0.68);
}

.topbar__inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 14px;
}

.brand{
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  min-width: 220px;
}
.brand__mark{
  width: 38px;
  height: 38px;
  border-radius: 14px;
  background: radial-gradient(circle at 30% 30%, rgba(205,187,163,0.85), rgba(134,164,154,0.55));
  box-shadow: 0 10px 22px rgba(0,0,0,0.30);
  border: 1px solid rgba(242,234,223,0.10);
}
.brand__text{ display: grid; gap: 2px; }
.brand__name{ font-weight: 720; letter-spacing: 0.2px; }
.brand__role{ color: var(--muted); font-size: 13px; }

.nav{ display: flex; align-items: center; }
.nav__toggle{
  display: none;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 42px;
  border-radius: 14px;
  border: 1px solid rgba(242,234,223,0.12);
  background: rgba(242,234,223,0.06);
  color: var(--text);
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}
.nav__toggle:hover{ transform: translateY(-1px); background: rgba(242,234,223,0.09); border-color: rgba(242,234,223,0.18); }
.nav__toggleLines{
  width: 18px;
  height: 12px;
  display: block;
  position: relative;
}
.nav__toggleLines::before,
.nav__toggleLines::after{
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  border-radius: 2px;
  background: rgba(242,234,223,0.86);
  transition: transform 180ms ease, top 180ms ease, opacity 180ms ease;
}
.nav__toggleLines::before{ top: 2px; }
.nav__toggleLines::after{ top: 8px; }

.nav__menu{
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav__link{
  text-decoration: none;
  padding: 10px 12px;
  border-radius: 14px;
  color: rgba(242,234,223,0.84);
  border: 1px solid transparent;
  transition: background 160ms ease, transform 160ms ease, border-color 160ms ease, color 160ms ease;
}
.nav__link:hover{
  background: rgba(242,234,223,0.06);
  border-color: rgba(242,234,223,0.10);
  transform: translateY(-1px);
  color: var(--text);
}
.nav__link.isActive{
  background: rgba(205,187,163,0.12);
  border-color: rgba(205,187,163,0.22);
  color: var(--text);
}

.nav__cta{
  text-decoration: none;
  padding: 10px 14px;
  border-radius: 14px;
  background: rgba(205,187,163,0.16);
  border: 1px solid rgba(205,187,163,0.22);
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}
.nav__cta:hover{ transform: translateY(-1px); background: rgba(205,187,163,0.20); border-color: rgba(205,187,163,0.30); }

.dropdown{ position: relative; }
.dropdown__btn{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid transparent;
  background: transparent;
  color: rgba(242,234,223,0.84);
  cursor: pointer;
  transition: background 160ms ease, transform 160ms ease, border-color 160ms ease, color 160ms ease;
}
.dropdown__btn:hover{
  background: rgba(242,234,223,0.06);
  border-color: rgba(242,234,223,0.10);
  transform: translateY(-1px);
  color: var(--text);
}
.dropdown__panel{
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  width: 220px;
  padding: 10px;
  border-radius: 16px;
  background: rgba(8,17,15,0.78);
  border: 1px solid rgba(242,234,223,0.14);
  box-shadow: var(--shadow2);
  backdrop-filter: blur(12px);
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  transition: opacity 170ms ease, transform 170ms ease;
}
.dropdown.isOpen .dropdown__panel{
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.dropdown__item{
  display: block;
  padding: 10px 10px;
  border-radius: 12px;
  text-decoration: none;
  color: rgba(242,234,223,0.86);
  border: 1px solid transparent;
  transition: background 140ms ease, border-color 140ms ease, transform 140ms ease;
}
.dropdown__item:hover{
  background: rgba(242,234,223,0.06);
  border-color: rgba(242,234,223,0.10);
  transform: translateY(-1px);
}

.hero{
  position: relative;
  overflow: clip;
  padding: 64px 0 34px;
}
.hero__grid{
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 155px;
  align-items: start;
}
.hero__bg{
  position: absolute;
  inset: -30px -30px auto -30px;
  height: 320px;
  background: radial-gradient(420px 220px at 25% 35%, rgba(205,187,163,0.20), transparent 60%),
              radial-gradient(480px 260px at 70% 30%, rgba(134,164,154,0.18), transparent 62%);
  pointer-events: none;
  filter: blur(0.2px);
}

.kicker{
  display: inline-flex;
  gap: 10px;
  align-items: center;
  color: rgba(242,234,223,0.74);
  margin: 0 0 12px 0;
  letter-spacing: 0.12px;
}
.h1{
  margin: 0 0 10px 0;
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1.05;
  letter-spacing: -0.6px;
}
.lead{
  margin: 0 0 18px 0;
  color: rgba(242,234,223,0.78);
  font-size: 16px;
  max-width: 56ch;
}
.hero__actions{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 22px;
}

.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 16px;
  text-decoration: none;
  border: 1px solid rgba(242,234,223,0.14);
  background: rgba(242,234,223,0.06);
  color: var(--text);
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
  box-shadow: 0 10px 22px rgba(0,0,0,0.22);
}
.btn:hover{
  transform: translateY(-2px);
  background: rgba(242,234,223,0.08);
  border-color: rgba(242,234,223,0.20);
}
.btn--primary{
  background: linear-gradient(180deg, rgba(205,187,163,0.30), rgba(205,187,163,0.16));
  border-color: rgba(205,187,163,0.28);
  color: var(--text);
}
.btn--primary:hover{ background: linear-gradient(180deg, rgba(205,187,163,0.34), rgba(205,187,163,0.18)); border-color: rgba(205,187,163,0.36); }
.btn--ghost{ background: transparent; box-shadow: none; }
.btn--ghost:hover{ background: rgba(242,234,223,0.06); }
.btn--soft{ background: rgba(134,164,154,0.14); border-color: rgba(134,164,154,0.22); }
.btn--small{ padding: 10px 12px; border-radius: 14px; box-shadow: none; }

.hero__metrics{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 16px;
}
.metric{
  border-radius: 18px;
  border: 1px solid rgba(242,234,223,0.12);
  background: rgba(242,234,223,0.05);
  padding: 14px;
  position: relative;
  overflow: hidden;
}
.metric::after{
  content: "";
  position: absolute;
  inset: -30px -30px auto auto;
  width: 120px;
  height: 120px;
  background: radial-gradient(circle at 30% 30%, rgba(205,187,163,0.18), transparent 60%);
  transform: rotate(15deg);
}
.metric__value{ font-weight: 780; font-size: 20px; letter-spacing: -0.2px; }
.metric__label{ color: var(--muted); font-size: 12px; margin-top: 4px; }

.hero__card{
  border-radius: var(--r2);
  border: 1px solid rgba(242,234,223,0.14);
  background: linear-gradient(180deg, rgba(242,234,223,0.07), rgba(242,234,223,0.04));
  box-shadow: var(--shadow);
  overflow: hidden;
  position: relative;
}
.profile{ padding: 18px; }
.profile__avatar{
  width: 96px;
  height: 96px;
  border-radius: 26px;
  border: 1px solid rgba(242,234,223,0.12);
  background: rgba(242,234,223,0.05);
  display: grid;
  place-items: center;
  overflow: hidden;
}
.profile__avatar img{
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.profile__meta{ margin-top: 12px; }
.profile__title{ font-weight: 760; letter-spacing: 0.1px; }
.profile__subtitle{ color: var(--muted); margin-top: 4px; font-size: 13px; }

.chips{ display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.chip{
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid rgba(242,234,223,0.12);
  background: rgba(242,234,223,0.05);
  color: rgba(242,234,223,0.80);
  font-size: 12px;
}

.profile__highlights{
  margin-top: 14px;
  display: grid;
  gap: 10px;
}
.hl{
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 10px 10px;
  border-radius: 16px;
  border: 1px solid rgba(242,234,223,0.10);
  background: rgba(242,234,223,0.04);
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}
.hl:hover{
  transform: translateY(-1px);
  background: rgba(242,234,223,0.06);
  border-color: rgba(242,234,223,0.14);
}
.hl__icon{
  width: 36px;
  height: 36px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(205,187,163,0.16);
  border: 1px solid rgba(205,187,163,0.22);
}
.hl__t{ font-weight: 720; font-size: 13px; }
.hl__d{ color: var(--muted); font-size: 12px; margin-top: 2px; }

.profile__footer{
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(242,234,223,0.10);
}
.dot{
  width: 4px;
  height: 4px;
  border-radius: 99px;
  background: rgba(242,234,223,0.38);
}

.section{ padding: 62px 0; }
.section--alt{
  background: linear-gradient(180deg, rgba(242,234,223,0.03), rgba(242,234,223,0.01));
  border-top: 1px solid rgba(242,234,223,0.06);
  border-bottom: 1px solid rgba(242,234,223,0.06);
}
.section__head{ margin-bottom: 18px; }
.h2{
  margin: 0 0 6px 0;
  font-size: clamp(22px, 2.4vw, 30px);
  letter-spacing: -0.3px;
}
.h3{
  margin: 0 0 8px 0;
  font-size: 18px;
  letter-spacing: -0.2px;
}
.sub{ margin: 0; color: var(--muted); max-width: 70ch; }
.p{ margin: 0; color: rgba(242,234,223,0.80); }
.muted{ color: var(--muted); }
.small{ font-size: 12px; }

.card{
  border-radius: var(--r2);
  border: 1px solid rgba(242,234,223,0.12);
  background: rgba(242,234,223,0.05);
  box-shadow: 0 14px 34px rgba(0,0,0,0.24);
  padding: 18px;
}
.grid2{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.list{
  margin: 10px 0 0 0;
  padding-left: 18px;
  color: rgba(242,234,223,0.80);
}
.list li{ margin: 6px 0; }
.list--tight li{ margin: 4px 0; }

.badges{ display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.badge{
  font-size: 12px;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid rgba(134,164,154,0.20);
  background: rgba(134,164,154,0.12);
  color: rgba(242,234,223,0.84);
}

.cards3{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.project{
  position: relative;
  overflow: hidden;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}
.project::after{
  content: "";
  position: absolute;
  inset: -60px -60px auto auto;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle at 30% 30%, rgba(205,187,163,0.16), transparent 64%);
  transform: rotate(12deg);
  pointer-events: none;
}
.project:hover{
  transform: translateY(-4px);
  border-color: rgba(242,234,223,0.18);
  background: rgba(242,234,223,0.06);
}
.project__top{ display: flex; gap: 12px; align-items: center; }
.icon{
  width: 44px;
  height: 44px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: rgba(205,187,163,0.16);
  border: 1px solid rgba(205,187,163,0.22);
}
.project__tags{ display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.tag{
  font-size: 12px;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid rgba(242,234,223,0.12);
  background: rgba(242,234,223,0.04);
  color: rgba(242,234,223,0.80);
}
.project__actions{ display: flex; gap: 10px; margin-top: 14px; }

.skillgrid{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.skillcard{
  border-radius: var(--r2);
  border: 1px solid rgba(242,234,223,0.12);
  background: rgba(242,234,223,0.05);
  padding: 16px;
  box-shadow: 0 14px 34px rgba(0,0,0,0.22);
}
.skillcard__row{
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.skillcard__name{ font-weight: 740; }
.skillcard__lvl{ color: var(--muted); font-size: 12px; }
.bar{
  height: 10px;
  border-radius: 999px;
  background: rgba(242,234,223,0.06);
  border: 1px solid rgba(242,234,223,0.10);
  overflow: hidden;
}
.bar span{
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(205,187,163,0.78), rgba(134,164,154,0.70));
  width: 0%;
  transition: width 900ms ease;
}

.timeline{ display: grid; gap: 14px; }
.titem{
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 12px;
  align-items: start;
}
.titem__dot{
  width: 14px;
  height: 14px;
  border-radius: 99px;
  margin-top: 18px;
  background: rgba(205,187,163,0.60);
  border: 1px solid rgba(205,187,163,0.30);
  box-shadow: 0 10px 20px rgba(0,0,0,0.18);
}
.titem__card{
  border-radius: var(--r2);
  border: 1px solid rgba(242,234,223,0.12);
  background: rgba(242,234,223,0.05);
  padding: 16px;
}
.titem__top{
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
}
.titem__role{ font-weight: 760; }
.titem__time{ color: var(--muted); font-size: 12px; }
.titem__place{ margin-top: 4px; color: rgba(242,234,223,0.78); }

.contact{
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 14px;
}
.stack{ display: grid; gap: 14px; }

.form{ display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field{ display: grid; gap: 8px; }
.field--full{ grid-column: 1 / -1; }
.field__label{ color: rgba(242,234,223,0.78); font-size: 12px; }
.field__input{
  width: 100%;
  border-radius: 16px;
  border: 1px solid rgba(242,234,223,0.12);
  background: rgba(8,17,15,0.34);
  color: var(--text);
  padding: 12px 12px;
  outline: none;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}
.field__input:focus{
  border-color: rgba(205,187,163,0.34);
  background: rgba(8,17,15,0.44);
}
.field__area{ resize: vertical; min-height: 120px; }

.kv{
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(242,234,223,0.08);
}
.kv:last-child{ border-bottom: 0; }
.kv__k{ color: var(--muted); font-size: 12px; padding-top: 2px; }
.kv__v{ color: rgba(242,234,223,0.86); }

.link{
  color: rgba(205,187,163,0.92);
  text-decoration: none;
  border-bottom: 1px solid rgba(205,187,163,0.30);
  transition: border-color 160ms ease, color 160ms ease;
}
.link:hover{ color: rgba(242,234,223,0.92); border-color: rgba(242,234,223,0.28); }

.mini{ display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.mini__pill{
  font-size: 12px;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid rgba(242,234,223,0.12);
  background: rgba(242,234,223,0.04);
  color: rgba(242,234,223,0.80);
}

.footer{
  padding: 26px 0 34px;
  border-top: 1px solid rgba(242,234,223,0.08);
  background: rgba(8,17,15,0.36);
}
.footer__inner{
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.reveal{
  opacity: 0;
  transform: translateY(14px) scale(0.985);
  transition: opacity 520ms ease, transform 520ms ease;
  transition-delay: var(--d, 0ms);
}
.reveal.isIn{
  opacity: 1;
  transform: translateY(0) scale(1);
}

.cursorBlob{
  position: fixed;
  left: 0;
  top: 0;
  width: 260px;
  height: 260px;
  border-radius: 999px;
  pointer-events: none;
  background: radial-gradient(circle at 30% 30%, rgba(205,187,163,0.18), transparent 60%),
              radial-gradient(circle at 70% 70%, rgba(134,164,154,0.16), transparent 62%);
  filter: blur(18px);
  transform: translate(-50%, -50%);
  opacity: 0.85;
  mix-blend-mode: screen;
  transition: opacity 220ms ease;
}

@media (max-width: 980px){
  .hero__grid{ grid-template-columns: 1fr; }
  .hero{ padding-top: 52px; }
  .skillgrid{ grid-template-columns: repeat(2, 1fr); }
  .cards3{ grid-template-columns: 1fr; }
  .grid2{ grid-template-columns: 1fr; }
  .contact{ grid-template-columns: 1fr; }
  .brand{ min-width: 0; }
}

@media (max-width: 760px){
  .nav__toggle{ display: inline-flex; }
  .nav__menu{
    position: absolute;
    right: 20px;
    top: 64px;
    width: min(360px, calc(100vw - 40px));
    display: grid;
    gap: 8px;
    padding: 12px;
    border-radius: 18px;
    background: rgba(8,17,15,0.82);
    border: 1px solid rgba(242,234,223,0.14);
    box-shadow: var(--shadow2);
    backdrop-filter: blur(12px);
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
    transition: opacity 170ms ease, transform 170ms ease;
  }
  .nav.isOpen .nav__menu{
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
  .nav__cta{ text-align: center; }
  .dropdown__panel{
    position: static;
    width: 100%;
    margin-top: 8px;
    opacity: 1;
    transform: none;
    pointer-events: auto;
    display: none;
  }
  .dropdown.isOpen .dropdown__panel{ display: grid; }
  .form{ grid-template-columns: 1fr; }
  .hero__metrics{ grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  .reveal{ transition: none; }
  .btn, .nav__link, .project, .hl, .dropdown__panel, .nav__menu{ transition: none; }
  .cursorBlob{ display: none; }
}
