:root{
  --container: 1100px;
  --text: #111;
  --muted: #666;
  --border: #e9e9e9;
  --bg: #fff;
}

*{ box-sizing: border-box; }
html, body{ height: 100%; }
body{
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial;
  color: var(--text);
  background: var(--bg);
}

a{ color: inherit; text-decoration: none; }
img{ max-width: 100%; display: block; }
.container{
  width: min(var(--container), calc(100% - 48px));
  margin: 0 auto;
}

/* ===== Header ===== */
.site-header{
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.header-inner{
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand-mark{ font-weight: 700; }

.nav{
  display: flex;
  gap: 18px;
  align-items: center;
}
.nav-link{
  font-size: 13px;
  color: #333;
  padding: 8px 10px;
  border-radius: 999px;
}
.nav-link:hover{ background: #f4f4f4; }

.menu-btn{
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
}
.menu-lines{
  display: inline-block;
  width: 18px;
  height: 2px;
  background: #111;
  position: relative;
}
.menu-lines::before,
.menu-lines::after{
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: #111;
}
.menu-lines::before{ top: -6px; }
.menu-lines::after{ top: 6px; }

/* ===== HOME ===== */
.hero{
  position: relative;
  height: 340px;
  overflow: hidden;
}
.hero-bg{
  position: absolute;
  inset: 0;
  background:
    radial-gradient(70% 120% at 45% 55%, rgba(255,255,255,0.12) 0%, rgba(255,255,255,0) 40%),
    linear-gradient(115deg, #6f93ff 0%, #6b72ff 35%, #5a6bdc 45%, #d64a57 78%, #d84a4a 100%);
  transform: scale(1.05);
}
.hero-inner{
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
}
.hero-title{
  margin: 0;
  color: #fff;
  letter-spacing: 2px;
  line-height: 0.95;
  font-size: clamp(34px, 5vw, 56px);
  text-transform: uppercase;
  font-family: Wix Madefor Display, sans-serif;
  font-optical-sizing: auto;
  font-weight: 700;
  font-style: normal;
}

.section{ padding: 42px 0 54px; }
.section-title{
  margin: 0 0 18px;
  text-align: center;
  font-size: 18px;
  font-weight: 600;
  color: #222;
}

.grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.card{
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  transition: transform 180ms ease, box-shadow 180ms ease;
}
.card:hover{
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(0,0,0,0.08);
}
.card-media{
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #f2f2f2;
}
.card-media img{
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.card-body{ padding: 14px 14px 16px; }
.card-title{
  margin: 0 0 6px;
  font-size: 13px;
  font-weight: 700;
  color: #222;
  font-family: "Epilogue", sans-serif;
  font-optical-sizing: auto;
  font-style: normal;
}
.card-meta{
  margin: 0;
  font-size: 12px;
  color: var(--muted);
}

/* ===== ABOUT ===== */
.hero2{
  position: relative;
  height: 18px;
  overflow: hidden;
}
.hero-bg2{
  position: absolute;
  inset: 0;
  background:
    radial-gradient(70% 120% at 45% 55%, rgba(255,255,255,0.12) 0%, rgba(255,255,255,0) 40%),
    linear-gradient(115deg, #6f93ff 0%, #6b72ff 35%, #5a6bdc 45%, #86A7FF 78%, #86A7FF 100%);
  transform: scale(1.05);
}

.about{
  position: relative;
  padding: 34px 0 30px;
  overflow: hidden;
}
.about-bg{
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 1px 1px, rgba(0,0,0,0.10) 1px, transparent 1px);
  background-size: 22px 22px;
  opacity: 0.35;
  pointer-events: none;
}
.about-inner{
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 26px;
  align-items: start;
  padding-top: 10px;
}
.kicker{
  font-size: 14px;
  color: #444;
  margin-bottom: 10px;
}
.about-title{
  margin: 0 0 10px;
  font-size: clamp(34px, 4.5vw, 54px);
  font-weight: 700;
  letter-spacing: -0.5px;
  font-family: "Epilogue", sans-serif;
  font-optical-sizing: auto;
  font-style: normal;
}
.about-desc{
  margin: 0 0 18px;
  max-width: 520px;
  color: #555;
  line-height: 1.4;
  font-size: 13.5px;
}
.pill-group{ display: flex; flex-wrap: wrap; gap: 10px; margin: 14px 0 13px; }
.pill{
  border-radius: 999px;
  padding: 10px 16px;
  font-size: 13px;
  border: 1px solid #cfcfcf;
  background: #fff;
  color: #111;
}
.pill-outline{ background: #fff; }
.pill-fill{
  background: #89a7ff;
  border-color: #89a7ff;
  color: #0b1b3a;
}

.programs{ margin-top: 10px; padding-top: 50px; }
.program-icons{
  margin-top: 24px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.app-icon{
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-weight: 800;
  color: #fff;
  user-select: none;
}
.figma{ background: #111; }
.ps{ background: #0b3a67; }
.ai{ background: #2b0f0b; }
.id{ background: #7a1b3f; }
.xd{ background: #5b117a; }

.about-right{
  display: grid;
  gap: 18px;
  justify-items: center;
}
.portrait{
  width: min(320px, 100%);
  aspect-ratio: 1 / 1;
  border-radius: 22px;
  overflow: hidden;
}
.portrait img{
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.skill{
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 12px;
}
.skill-bar{
  height: 40px;
  border-radius: 999px;
  border: 1px solid #d8d8d8;
  background: #fff;
  overflow: hidden;
  position: relative;
}
.skill-fill{
  --w: 50%;
  --c: #777;
  position: absolute;
  inset: 0;
  width: var(--w);
  background: var(--c);
  border-radius: 999px;
}
.skill-label{
  font-size: 13px;
  color: #333;
  white-space: nowrap;
}

.skills{
  width: min(250px, 100%);
  display: grid;
  gap: 12px;
}

.skill-pill{
  --c: #111;
  height: 44px;
  border-radius: 999px;
  border: 2px solid var(--c);
  background: #fff;
  display: grid;
  grid-template-columns: 58px 1fr;
  align-items: center;
  padding: 0 14px 0 8px;
}

.skill-dot{
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--c);
  justify-self: start;
  margin-left: -5px;
}

.skill-text{
  padding-left: 14px;
  font-size: 18px;
  color: #333;
  white-space: nowrap;
}

/* ===== Footer ===== */
.site-footer{
  border-top: 1px solid var(--border);
  padding: 20px 0 34px;
}
.footer-inner{
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 18px;
  align-items: start;
}
.footer-link{
  display: block;
  font-size: 12px;
  color: #333;
  padding: 6px 0;
  text-decoration: underline;
}
.footer-title{
  font-size: 12px;
  color: var(--muted);
  margin-top: 10px;
}
.footer-right{ text-align: right; }

/* ===== Projects page ===== */

.projects-topbar{
  height: 10px;
  background: linear-gradient(90deg, #6f93ff 0%, #6b72ff 35%, #5a6bdc 50%, #d64a57 78%, #d84a4a 100%);
}

.projects-page{
  padding: 26px 0 10px;
}

.proj-section{
  padding: 18px 0 36px;
}

.proj-head{
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 8px 0 10px;
}

.proj-icon{
  --c:#2F6BFF;
  width: 44px;
  height: 44px;
  background: var(--c);
  border-radius: 0 100% 0 0;
}

.proj-title{
  margin: 0;
  font-size: 22px;
  font-weight: 750;
  color: #222;
  font-family: "Epilogue", sans-serif;
  font-optical-sizing: auto;
  font-style: normal;
}

.proj-subtitle{
  margin: 6px 0 0;
  font-size: 12.5px;
  color: #666;
}

.proj-divider{
  --c:#2F6BFF;
  height: 4px;
  background: var(--c);
  opacity: 0.85;
  margin: 10px 0 18px;
}

.proj-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
}

.proj-card{
  background: #fff;
}

.proj-media{
  display: block;
  width: 100%;
  aspect-ratio: 16/7;
  overflow: hidden;
  background: #eee;
}

.proj-media img{
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.proj-body{
  padding-top: 12px;
}

.proj-name{
  margin: 0 0 6px;
  font-size: 14px;
  font-weight: 700;
  color: #222;
  font-family: "Epilogue", sans-serif;
  font-optical-sizing: auto;
  font-style: normal;
}

.proj-meta{
  margin: 0;
  font-size: 12px;
  color: #666;
}

/* ===== Project detail page ===== */

.project-page{
  padding: 22px 0 10px;
}

.project-hero{
  padding: 10px 0 18px;
}

.project-year{
  font-size: 13px;
  font-weight: 700;
  color: #111;
  margin-bottom: 8px;
}

.project-title{
  margin: 0 0 10px;
  font-size: clamp(40px, 3vw, 72px);
  font-weight: 800;
  letter-spacing: -1px;
  font-family: "Epilogue", sans-serif;
  font-optical-sizing: auto;
  font-style: normal;
}

.project-desc{
  margin: 0;
  max-width: 1000px;
  font-size: clamp(18px, 2.2vw, 26px);
  line-height: 1.1;
  color: #111;
}

.gallery-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 18px;
  padding: 18px 0 34px;
  align-items: start;
}

.gallery-item{
  margin: 0;
}

.gallery-item img{
  width: 100%;
  height: auto;
  display: block;
}

.gallery-cap{
  margin-top: 10px;
  font-size: 12px;
  color: #444;
  text-align: center;
}

.gallery-item.is-full{
  grid-column: 1 / -1;
}

.gallery-grid.is-one-col{
  grid-template-columns: 1fr;
}

/* ===== Responsive ===== */
@media (max-width: 960px){
  .grid{ grid-template-columns: 1fr; }
  .about-inner{ grid-template-columns: 1fr; }
  .about-right{ justify-items: start; }
  .skills{ width: 100%; }
}

@media (max-width: 720px){
  .menu-btn{ display: inline-flex; align-items: center; justify-content: center; }

  .nav{
    position: absolute;
    top: 60px;
    right: 24px;
    left: 24px;
    display: grid;
    gap: 8px;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: rgba(255,255,255,0.96);
    backdrop-filter: blur(8px);
    transform: translateY(-10px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 180ms ease, transform 180ms ease;
  }
  .nav.is-open{
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .nav-link{
    padding: 10px 12px;
    background: #f6f6f6;
  }
  .nav-link:hover{ background: #ededed; }

  .hero{ height: 280px; }
  .footer-inner{ grid-template-columns: 1fr; text-align: left; }
  .footer-right{ text-align: left; }
}

@media (max-width: 900px){
  .proj-grid{
    grid-template-columns: 1fr;
  }
  .proj-media{
    aspect-ratio: 16/9;
  }
}

@media (max-width: 900px){
  .gallery-grid{
    grid-template-columns: 1fr;
  }
  .project-desc{
    line-height: 1.2;
  }
}