/* ============================================
   BASE
============================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Figtree', sans-serif;
  font-weight: 400;
  background: #fff;
  color: #111;
  line-height: 1.6;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
::selection { background: #c084fc; color: #fff; }
::-webkit-scrollbar { width: 3px; }
::-webkit-scrollbar-thumb { background: #ddd; border-radius: 2px; }


/* ============================================
   NAV
============================================ */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1.1rem 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid #f0f0f0;
}
.nav-logo {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: .82rem;
  font-weight: 400;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}
.nav-links a {
  font-size: .9rem;
  color: #555;
  transition: color .2s;
}
.nav-links a:hover { color: #111; }


/* ============================================
   HERO
============================================ */
.hero {
  max-width: 1400px;
  margin: 0 auto;
  padding: 9rem 2rem 3rem;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .78rem;
  font-weight: 500;
  color: #7c3aed;
  background: #f5f3ff;
  padding: .3rem .9rem;
  border-radius: 100px;
  margin-bottom: 2rem;
}
.hero-badge-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #7c3aed;
  animation: pulse 2s infinite;
}
.hero h1 {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: clamp(2.2rem, 5.5vw, 3.8rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -.025em;
  margin-bottom: 1.5rem;
  max-width: 820px;
}
.hero h1 .highlight { color: #7c3aed; }
.hero-sub {
  font-size: 1rem;
  color: #555;
  max-width: 540px;
  margin-bottom: 2.5rem;
}
.hero-actions {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}
.btn-solid,
.btn-email {
  background: #111;
  color: #fff;
  padding: .75rem 1.6rem;
  border-radius: 100px;
  font-size: .9rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  transition: background .2s;
  border: none;
  cursor: pointer;
  font-family: 'Figtree', sans-serif;
  line-height: 1;
}
.btn-solid:hover,
.btn-email:hover { background: #7c3aed; color: #fff; }


/* ============================================
   CAROUSEL
============================================ */
.carousel-wrap {
  overflow: hidden;
  margin: 0 -4rem;
  position: relative;
}
.carousel-wrap::before,
.carousel-wrap::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 80px;
  z-index: 2;
  pointer-events: none;
}
.carousel-wrap::before { left: 0;  background: linear-gradient(to right, #fff, transparent); }
.carousel-wrap::after  { right: 0; background: linear-gradient(to left,  #fff, transparent); }

.carousel-track {
  display: flex;
  gap: 1rem;
  padding: 0 4rem;
  width: max-content;
  animation: scroll 32s linear infinite;
}
.carousel-track:hover { animation-play-state: paused; }

.carousel-card {
  width: 260px;
  height: 185px;
  border-radius: 18px;
  overflow: hidden;
  flex-shrink: 0;
  cursor: pointer;
  transition: transform .3s ease;
}
.carousel-card:hover { transform: translateY(-5px); }
.carousel-card img { width: 100%; height: 100%; object-fit: cover; display: block; }

.carousel-card:nth-child(1), .carousel-card:nth-child(5) { background: #ede9fe; }
.carousel-card:nth-child(2), .carousel-card:nth-child(6) { background: #fef9c3; }
.carousel-card:nth-child(3), .carousel-card:nth-child(7) { background: #dbeafe; }
.carousel-card:nth-child(4), .carousel-card:nth-child(8) { background: #fce7f3; }


/* ============================================
   MAIN CONTENT
============================================ */
main {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

.works { padding: 9rem 0 6rem; }

.section-title {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 500;
  letter-spacing: -.025em;
  margin-bottom: 2rem;
}

.projects-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem 2.5rem;
  align-items: start;
}

.project-card { cursor: pointer; }
.project-card:hover .project-image { opacity: .93; }
.project-card:hover .project-image img { transform: scale(1.03); }

.project-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 1.25rem;
  transition: opacity .2s;
  background: #f0f0f0;
}
.project-image img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  transition: transform .5s ease;
}

.card-craigslist .project-image { background: #e8e3f7; }
.card-westend    .project-image { background: #d6e4f5; }
.card-duolingo   .project-image { background: #f5c842; }
.card-floodrun   .project-image { background: #c8d8ea; }
.card-universe   .project-image { background: #e8e4f0; }

.project-title {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -.01em;
  margin-bottom: .35rem;
}
.project-desc {
  font-size: .9rem;
  color: #777;
  line-height: 1.65;
}


/* ============================================
   ABOUT SECTION
============================================ */
.about-section {
  padding: 7rem 3rem 10rem;
  border-top: 1px solid #f0f0f0;
}

.about-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 3.5rem;
}
.about-label {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 1.4rem;
  font-weight: 600;
  color: #111;
  letter-spacing: -.01em;
}
.about-more {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .85rem;
  font-weight: 500;
  color: #111;
  background: #f2f2f2;
  padding: .55rem 1.2rem;
  border-radius: 100px;
  transition: background .2s, color .2s;
}
.about-more:hover { background: #111; color: #fff; }

.about-reveal-text {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: clamp(1.25rem, 2.2vw, 2rem);
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -.02em;
  max-width: 900px;
  margin-bottom: 5rem;
}
.about-reveal-text .word {
  display: inline-block;
  color: #ddd;
  transition: color 0.35s ease;
  margin-right: 0.22em;
}
.about-reveal-text .word.lit { color: #111; }

.about-body {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}
.about-photo-wrap {
  grid-column: 2 / 3;
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 3/4;
  background: #ede9fe;
}
.about-photo-wrap img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
}
.about-blurb {
  grid-column: 3 / 4;
  align-self: end;
  padding-bottom: 1rem;
  font-size: .97rem;
  color: #444;
  line-height: 1.8;
  max-width: 320px;
}


/* ============================================
   CURTAIN REVEAL WRAPPER
============================================ */
.curtain-reveal {
  position: relative;
  overflow: hidden;
}
.curtain-reveal .curtain {
  position: absolute;
  inset: 0;
  background: #fff;
  z-index: 10;
  pointer-events: none;
  transform: translateY(0%);
  transition: transform 1s cubic-bezier(0.76, 0, 0.24, 1);
}
.curtain-reveal.revealed .curtain {
  transform: translateY(-100%);
}


/* ============================================
   GET IN TOUCH
============================================ */
.get-in-touch {
  background: #160b33;
  color: #fff;
  padding: 6rem 4rem 4rem;
  position: relative;
  overflow: hidden;
}
.get-in-touch::before {
  content: '';
  position: absolute;
  top: -100px; right: -100px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(124,58,237,0.25) 0%, transparent 65%);
  pointer-events: none;
}
.get-in-touch-inner {
  max-width: 1400px;
  margin: 0 auto;
}
.get-in-touch-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 5rem;
  gap: 3rem;
}
.get-in-touch h2 {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: clamp(1.2rem, 2vw, 2rem);
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: -.02em;
  max-width: 640px;
  color: #fff;
}
.get-in-touch h2 .dim { color: #4a3470; }

.git-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1.25rem;
  padding-top: .35rem;
  flex-shrink: 0;
}
.git-btn {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  background: #fff;
  color: #111;
  padding: .85rem 1.8rem;
  border-radius: 100px;
  font-family: 'Figtree', sans-serif;
  font-size: .95rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background .2s, color .2s, transform .2s;
  white-space: nowrap;
}
.git-btn:hover { background: #7c3aed; color: #fff; transform: translateY(-2px); }

.git-available {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-size: .82rem;
  color: #fff;
}
.git-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #22c55e;
  animation: pulse-green 2s infinite;
}

.get-in-touch-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 2.5rem;
  border-top: 1px solid #2e1a5e;
}
.git-email {
  font-family: 'DM Mono', monospace;
  font-size: .85rem;
  color: #fff;
  display: flex;
  align-items: center;
  gap: .6rem;
  transition: color .2s;
}
.git-email:hover { color: #c084fc; }
.git-socials { display: flex; gap: 1.75rem; }
.git-socials a {
  color: #fff;
  font-size: .85rem;
  transition: color .2s;
  display: flex;
  align-items: center;
  gap: .4rem;
}
.git-socials a:hover { color: #c084fc; }


/* ============================================
   FOOTER
============================================ */
footer {
  background: #160b33;
  text-align: center;
  padding: 1.25rem 3rem 2rem;
  font-family: 'DM Mono', monospace;
  font-size: .65rem;
  color: #4a3470;
  letter-spacing: .06em;
  border-top: 1px solid #2e1a5e;
}


/* ============================================
   ANIMATIONS
============================================ */
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: .5; transform: scale(.75); }
}
@keyframes pulse-green {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(34,197,94,0.4); }
  50%       { opacity: .8; box-shadow: 0 0 0 5px rgba(34,197,94,0); }
}
@keyframes scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}


/* ============================================
   RESPONSIVE
============================================ */
@media (max-width: 1000px) {
  .about-body { grid-template-columns: 1fr 1fr; }
  .about-photo-wrap { grid-column: 1 / 2; }
  .about-blurb { grid-column: 2 / 3; }
}

@media (max-width: 900px) {
  .get-in-touch-top { flex-direction: column; gap: 2.5rem; }
  .git-actions { align-items: flex-start; }
}

@media (max-width: 700px) {
  nav { padding: 1rem 1.25rem; }
  .nav-links { gap: 1.1rem; }
  .nav-links a { font-size: .8rem; }

  .hero { padding: 7rem 1.25rem 2rem; }

  /* Stack buttons vertically and stretch full-width so email address is never cut off */
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .btn-solid,
  .btn-email {
    width: 100%;
    justify-content: center;
  }

  main { padding: 0 1.25rem; }
  .projects-grid { grid-template-columns: 1fr; }
  .carousel-wrap { margin: 0 -1.25rem; }
  .carousel-track { padding: 0 1.25rem; }
  .about-section { padding: 5rem 1.5rem 0; }
  .about-body { grid-template-columns: 1fr; }
  .about-photo-wrap, .about-blurb { grid-column: 1 / 2; }
  .get-in-touch { padding: 5rem 1.5rem 3rem; }
  .get-in-touch-bottom { flex-direction: column; gap: 1.5rem; align-items: flex-start; }
}