/* ============================================================
   Anie Ajamian — Portfolio
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Petrona:wght@400;500;600&family=Karla:wght@400;500;600;700&display=swap');

:root{
  --bg: #FFFFFF;
  --bg-alt: #F5F5F5;
  --ink: #333333;
  --ink-soft: #29282C;
  --muted: #6B6A68;
  --line: #E5E5E5;
  --accent: #0383E6;
  --accent-soft: #E3F1FC;
  --white: #FFFFFF;
  --max: 1120px;
  --radius: 4px;
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }

body{
  margin: 0;
  background: var(--bg);
  color: var(--ink-soft);
  font-family: 'Karla', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .display{
  font-family: 'Petrona', Georgia, serif;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0;
}

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

.wrap{
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 32px;
}

/* ---------- Nav ---------- */
header.site-nav{
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav-inner{
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 32px;
  max-width: var(--max);
  margin: 0 auto;
}
.nav-logo{
  display: flex;
  align-items: center;
}
.nav-mark-wrap{
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.nav-mark{
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.nav-right{
  display: flex;
  align-items: center;
  gap: 36px;
}
.nav-links{
  display: flex;
  gap: 36px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.nav-links a{
  color: var(--ink-soft);
  transition: color .15s ease;
}
.nav-links a:hover, .nav-links a.active{
  color: var(--accent);
}
.nav-toggle{ display: none; }

/* ---------- Hero ---------- */
.hero{
  padding-top: 96px;
  padding-bottom: 64px;
}
.hero-eyebrow{
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}
.hero h1{
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.08;
  max-width: 880px;
}
.hero .lede{
  margin-top: 24px;
  font-size: 20px;
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 620px;
}
.btn{
  display: inline-block;
  padding: 13px 26px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: all .15s ease;
  border: 1px solid var(--ink);
}
.btn-primary{
  background: var(--ink);
  color: var(--bg);
}
.btn-primary:hover{ background: var(--accent); border-color: var(--accent); }
.btn-ghost{
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}
.btn-ghost:hover{ border-color: var(--ink); }
.btn.nav-cta{
  padding: 9px 18px;
  font-size: 13px;
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}
.btn.nav-cta:hover{ background: #026bc2; border-color: #026bc2; }

/* ---------- Section headings ---------- */
.section-head{
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin: 88px 0 36px;
  gap: 24px;
  flex-wrap: wrap;
}
.section-head h2{
  font-size: clamp(24px, 3vw, 32px);
}
.section-sub{
  color: var(--muted);
  font-size: 15px;
  max-width: 420px;
}

/* ---------- Work grid ---------- */
.work-grid{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  margin-bottom: 40px;
}
@media (max-width: 760px){
  .work-grid{ grid-template-columns: 1fr; }
}
.work-card{
  display: block;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
}
.work-card:hover{
  transform: translateY(-3px);
  box-shadow: 0 18px 34px -18px rgba(41,40,44,0.18);
}
.work-card .thumb{
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--bg-alt);
}
.work-card .thumb img{
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .4s ease;
}
.work-card:hover .thumb img{ transform: scale(1.04); }
.work-card .body{ padding: 22px 24px 26px; }
.work-card .tag{
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  margin-bottom: 10px;
  display: block;
}
.work-card h3{
  font-size: 21px;
  margin-bottom: 8px;
  line-height: 1.3;
}
.work-card p{
  color: var(--muted);
  font-size: 15px;
  margin: 0;
}

/* ---------- Footer ---------- */
footer.site-footer{
  border-top: 1px solid var(--line);
  margin-top: 120px;
  padding: 56px 0;
}
.footer-inner{
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-inner .display{
  font-size: 22px;
}
.footer-links{
  display: flex;
  gap: 28px;
  font-size: 14px;
  color: var(--ink-soft);
}
.footer-copy{
  color: var(--muted);
  font-size: 13px;
  margin-top: 28px;
}

/* ---------- About / general content ---------- */
.page-hero{
  padding-top: 72px;
  padding-bottom: 24px;
}
.page-hero .hero-eyebrow{ margin-bottom: 16px; }
.page-hero h1{ font-size: clamp(32px, 4.4vw, 48px); }

.about-layout{
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 64px;
  margin: 48px 0 40px;
  align-items: start;
}
@media (max-width: 800px){
  .about-layout{ grid-template-columns: 1fr; }
}
.about-photo img{
  border-radius: var(--radius);
  border: 1px solid var(--line);
}
.about-copy p{
  font-size: 18px;
  color: var(--ink-soft);
  margin: 0 0 22px;
  max-width: 620px;
}
.about-copy p:first-child{
  font-size: 22px;
  color: var(--ink);
  font-family: 'Petrona', serif;
  font-weight: 400;
  line-height: 1.45;
}

.chip-row{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}
.chip{
  border: 1px solid var(--line);
  background: var(--white);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-soft);
}

/* ---------- Resume ---------- */
.resume-block{ margin-bottom: 52px; }
.resume-block h2{
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  font-family: 'Karla', sans-serif;
  font-weight: 700;
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.job{ margin-bottom: 36px; }
.job-head{
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px 20px;
  margin-bottom: 4px;
}
.job-company{
  font-family: 'Karla', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: normal;
  color: var(--accent);
}
.job-meta{
  font-size: 13px;
  color: var(--muted);
  white-space: nowrap;
}
.job-role{
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 14px;
}
.job ul{ margin: 0; padding-left: 20px; color: var(--ink-soft); }
.job li{ margin-bottom: 11px; font-size: 15.5px; line-height: 1.6; }
.job li:last-child{ margin-bottom: 0; }

.edu-item{ margin-bottom: 14px; font-size: 15.5px; color: var(--ink-soft); }
.edu-item strong{ color: var(--ink); }

.print-note{
  font-size: 13px;
  color: var(--muted);
  margin-top: -8px;
  margin-bottom: 40px;
}

@media print{
  header.site-nav, footer.site-footer, .print-note{ display: none !important; }
  body{ font-size: 12px; }
}

@media (max-width: 600px){
  .wrap{ padding: 0 20px; }
  .hero{ padding-top: 48px; padding-bottom: 40px; }
  .page-hero{ padding-top: 36px; padding-bottom: 20px; }
  .nav-inner{ padding: 16px 20px; }
  .nav-mark-wrap{ width: 26px; height: 26px; }
  .nav-toggle{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 32px;
    height: 32px;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
  }
  .nav-toggle span{
    display: block;
    width: 22px;
    height: 2px;
    background: var(--ink);
    transition: transform .2s ease, opacity .2s ease;
  }
  .nav-inner.nav-open .nav-toggle span:nth-child(1){ transform: translateY(7px) rotate(45deg); }
  .nav-inner.nav-open .nav-toggle span:nth-child(2){ opacity: 0; }
  .nav-inner.nav-open .nav-toggle span:nth-child(3){ transform: translateY(-7px) rotate(-45deg); }
  .nav-right{
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: center;
    gap: 32px;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    padding: 28px 20px 32px;
  }
  .nav-inner.nav-open .nav-right{ display: flex; }
  .nav-links{
    flex-direction: column;
    align-items: center;
    gap: 20px;
    font-family: 'Petrona', Georgia, serif;
    font-size: 20px;
    font-weight: 500;
    text-transform: none;
    letter-spacing: normal;
  }
  .btn.nav-cta{ width: auto; min-width: 180px; text-align: center; padding: 12px 18px; font-size: 14px; }
  .project-nav{ flex-wrap: wrap; gap: 24px; }
}

/* ---------- Project page ---------- */
.back-link{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-soft);
  margin: 40px 0 28px;
}
.back-link:hover{ color: var(--accent); }

.proj-meta{
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  margin: 32px 0 44px;
  padding: 28px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.proj-meta div{ min-width: 130px; }
.proj-meta .label{
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--muted);
  margin-bottom: 6px;
}
.proj-meta .val{
  font-size: 15px;
  font-weight: 600;
}

.hero-img{
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  margin-bottom: 8px;
}
.img-zoom-wrap{
  position: relative;
  cursor: zoom-in;
}
.img-zoom-wrap img{
  transition: opacity .15s ease;
}
.img-zoom-wrap:hover img{
  opacity: 0.9;
}
.zoom-badge{
  position: absolute;
  bottom: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(20,20,20,0.55);
  color: var(--white);
  border-radius: 999px;
  pointer-events: none;
  transition: background .15s ease;
}
.img-zoom-wrap:hover .zoom-badge{ background: rgba(20,20,20,0.8); }

.proj-content{
  margin-top: 72px;
  max-width: 700px;
}
.proj-content h2{
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  font-family: 'Karla', sans-serif;
  font-weight: 700;
  margin: 56px 0 20px;
}
.proj-content h2:first-child{ margin-top: 0; }
.proj-body p{
  font-size: 17px;
  color: var(--ink-soft);
  margin: 0 0 20px;
  max-width: 660px;
}
.proj-body ul{
  margin: 0 0 20px;
  padding-left: 20px;
  color: var(--ink-soft);
  max-width: 660px;
}
.proj-body li{ margin-bottom: 9px; font-size: 16.5px; }
.proj-body img{
  border-radius: var(--radius);
  border: 1px solid var(--line);
  margin: 8px 0 28px;
}
.img-caption{
  font-size: 13px;
  color: var(--muted);
  margin-top: -20px;
  margin-bottom: 28px;
}

.screen-row{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  margin: 8px 0 28px;
}
.screen-row .screen-item{
  min-width: 0;
}
.screen-row img{
  margin: 0 0 8px;
}
.screen-row .img-caption{
  margin: 0;
}
.screen-solo{
  max-width: 338px;
  margin: 8px 0 28px;
}
.screen-solo img{
  margin: 0 0 8px;
}
.screen-solo .img-caption{
  margin: 0;
}

.pull{
  font-family: 'Petrona', serif;
  font-size: 26px;
  line-height: 1.45;
  color: var(--ink);
  border-left: 3px solid var(--accent);
  padding-left: 24px;
  margin: 12px 0 32px;
  max-width: 620px;
}

.stat-row{
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  margin: 8px 0 32px;
}
.stat{ min-width: 140px; }
.stat .num{
  font-family: 'Petrona', serif;
  font-size: 40px;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 8px;
}
.stat .label{
  font-size: 14px;
  color: var(--ink-soft);
  max-width: 180px;
}

.project-nav{
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  margin-top: 96px;
  padding-top: 40px;
}
.project-nav a{
  font-family: 'Petrona', serif;
  font-size: 22px;
}
.project-nav .label{
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  font-family: 'Karla', sans-serif;
  font-weight: 600;
  margin-bottom: 8px;
}

/* ---------- Lightbox ---------- */
.lightbox{
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  background: rgba(20,20,20,0.92);
  opacity: 0;
  visibility: hidden;
  transition: opacity .2s ease;
}
.lightbox.is-open{
  opacity: 1;
  visibility: visible;
}
.lightbox img{
  max-width: 100%;
  max-height: 100%;
  border-radius: var(--radius);
  box-shadow: 0 30px 60px -20px rgba(0,0,0,0.5);
}
.lightbox-close{
  position: absolute;
  top: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.1);
  border: none;
  border-radius: 999px;
  color: var(--white);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  transition: background .15s ease;
}
.lightbox-close:hover{ background: rgba(255,255,255,0.2); }
@media (max-width: 600px){
  .lightbox{ padding: 20px; }
  .lightbox-close{ top: 16px; right: 16px; width: 38px; height: 38px; font-size: 18px; }
}
.project-nav .next{ text-align: right; }
