@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&family=DM+Serif+Display:ital@0;1&display=swap');

/* ── RESET & BASE ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'DM Sans', sans-serif;
  background: #f5f4f0;
  color: #1a1a1a;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
img { display: block; width: 100%; }

/* ── TYPOGRAPHY ── */
.dm-serif { font-family: 'DM Serif Display', serif; }

/* ── HEADER ── */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(245,244,240,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  transition: box-shadow .3s;
}
.site-header.raised { box-shadow: 0 2px 20px rgba(0,0,0,0.08); }
.header-inner {
  max-width: 1360px; margin: 0 auto;
  padding: 0 32px; height: 64px;
  display: flex; align-items: center; justify-content: space-between;
}
.logo {
  font-family: 'DM Serif Display', serif;
  font-size: 1.5rem; letter-spacing: -0.5px;
  font-weight: 400; color: #1a1a1a;
  display: flex; align-items: center;
}
.logo-img {
  height: 40px; width: auto;
  object-fit: contain; display: block;
  flex-shrink: 0;
}
.logo-img--footer {
  height: 32px;
  filter: brightness(0) invert(1);
}
.logo-wordmark {
  font-family: 'DM Sans', sans-serif;
  font-size: 1.1rem; font-weight: 700;
  letter-spacing: -0.3px; white-space: nowrap;
  background: linear-gradient(135deg, #0057ff 0%, #00b4d8 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.logo-z { color: #0057ff; }
.logo-dot { color: #0057ff; }
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a {
  font-size: 0.9rem; font-weight: 500;
  color: #555; transition: color .2s;
  letter-spacing: 0.1px;
}
.nav-links a:hover { color: #1a1a1a; }
.nav-hire {
  background: #1a1a1a; color: #fff !important;
  padding: 9px 20px; border-radius: 100px;
  font-weight: 600 !important; font-size: 0.85rem !important;
  transition: background .2s, transform .2s !important;
}
.nav-hire:hover { background: #0057ff !important; transform: translateY(-1px); }
.burger {
  display: none; flex-direction: column; gap: 6px;
  background: none; border: none; cursor: pointer; padding: 4px;
}
.burger span {
  display: block; width: 22px; height: 1.5px;
  background: #1a1a1a; border-radius: 2px;
  transition: all .3s;
}
.burger.open span:first-child { transform: translateY(7.5px) rotate(45deg); }
.burger.open span:last-child { transform: translateY(-7.5px) rotate(-45deg); }

/* ── MOBILE NAV ── */
.mobile-nav {
  position: fixed; top: 64px; left: 0; right: 0; z-index: 99;
  background: #f5f4f0; border-bottom: 1px solid rgba(0,0,0,0.08);
  display: flex; flex-direction: column;
  padding: 20px 32px 28px;
  transform: translateY(-110%); transition: transform .35s cubic-bezier(.4,0,.2,1);
  pointer-events: none;
}
.mobile-nav.open { transform: translateY(0); pointer-events: all; }
.mnav-link {
  padding: 14px 0; font-size: 1.1rem; font-weight: 500;
  border-bottom: 1px solid rgba(0,0,0,0.06); color: #555;
  transition: color .2s;
}
.mnav-link:last-child { border-bottom: none; }
.mnav-link.highlight { color: #0057ff; font-weight: 600; }

/* ── HERO ── */
.hero {
  padding: 148px 32px 80px;
  max-width: 1360px; margin: 0 auto;
  position: relative; overflow: hidden;
}

/* Animated blobs */
.hero-bg { position: absolute; inset: -50%; pointer-events: none; overflow: hidden; }
.hblob {
  position: absolute; border-radius: 50%;
  filter: blur(100px); opacity: 0;
  animation: heroFadeIn 1.2s ease forwards;
}
.b1 {
  width: 620px; height: 620px;
  background: radial-gradient(circle, #3b82f6 0%, #0057ff 60%, transparent 100%);
  top: -120px; left: -180px; opacity: 0;
  animation: heroFadeIn 1.2s 0.2s ease forwards, blobDrift1 14s 1.4s ease-in-out infinite;
}
.b2 {
  width: 480px; height: 480px;
  background: radial-gradient(circle, #8b5cf6 0%, #6d28d9 60%, transparent 100%);
  top: -60px; right: -120px; opacity: 0;
  animation: heroFadeIn 1.2s 0.4s ease forwards, blobDrift2 17s 1.6s ease-in-out infinite;
}
.b3 {
  width: 380px; height: 380px;
  background: radial-gradient(circle, #06b6d4 0%, #0284c7 60%, transparent 100%);
  bottom: 40px; left: 35%; opacity: 0;
  animation: heroFadeIn 1.2s 0.6s ease forwards, blobDrift3 11s 1.8s ease-in-out infinite;
}
.b4 {
  width: 260px; height: 260px;
  background: radial-gradient(circle, #f59e0b 0%, #ef4444 60%, transparent 100%);
  top: 45%; right: 8%; opacity: 0;
  animation: heroFadeIn 1.2s 0.8s ease forwards, blobDrift4 15s 2s ease-in-out infinite;
}
@keyframes heroFadeIn { to { opacity: 1; } }
.b1 { --final-opacity: 0.2; } .b2 { --final-opacity: 0.14; } .b3 { --final-opacity: 0.16; } .b4 { --final-opacity: 0.09; }
/* override final opacity per blob */
.b1 { animation: b1fadeIn 1.2s 0.2s ease forwards, blobDrift1 14s 1.4s ease-in-out infinite; }
.b2 { animation: b2fadeIn 1.2s 0.4s ease forwards, blobDrift2 17s 1.6s ease-in-out infinite; }
.b3 { animation: b3fadeIn 1.2s 0.6s ease forwards, blobDrift3 11s 1.8s ease-in-out infinite; }
.b4 { animation: b4fadeIn 1.2s 0.8s ease forwards, blobDrift4 15s 2s ease-in-out infinite; }
@keyframes b1fadeIn { to { opacity: 0.2; } }
@keyframes b2fadeIn { to { opacity: 0.14; } }
@keyframes b3fadeIn { to { opacity: 0.16; } }
@keyframes b4fadeIn { to { opacity: 0.09; } }
@keyframes blobDrift1 {
  0%,100% { transform: translate(0,0) scale(1); }
  35% { transform: translate(50px,-40px) scale(1.07); }
  70% { transform: translate(-25px,45px) scale(0.95); }
}
@keyframes blobDrift2 {
  0%,100% { transform: translate(0,0) scale(1); }
  30% { transform: translate(-40px,30px) scale(1.05); }
  65% { transform: translate(25px,-30px) scale(0.97); }
}
@keyframes blobDrift3 {
  0%,100% { transform: translate(0,0) scale(1); }
  50% { transform: translate(-50px,-35px) scale(1.1); }
}
@keyframes blobDrift4 {
  0%,100% { transform: translate(0,0) scale(1); }
  40% { transform: translate(35px,-45px) scale(1.12); }
  75% { transform: translate(-15px,25px) scale(0.92); }
}

/* Hero content entrance animations */
.hero-kicker  { animation: heroSlideUp 0.7s cubic-bezier(.4,0,.2,1) 0.15s both; }
.hero-title   { animation: heroSlideUp 0.7s cubic-bezier(.4,0,.2,1) 0.30s both; }
.hero-body    { animation: heroSlideUp 0.7s cubic-bezier(.4,0,.2,1) 0.48s both; }
.hero-meta    { animation: heroSlideUp 0.7s cubic-bezier(.4,0,.2,1) 0.65s both; }
.hero-scroll-hint { animation: heroSlideUp 0.7s cubic-bezier(.4,0,.2,1) 0.85s both; }
@keyframes heroSlideUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-kicker {
  display: inline-block;
  font-size: 0.78rem; font-weight: 600; letter-spacing: 1.5px;
  text-transform: uppercase; color: #888;
  margin-bottom: 24px;
}
.hero-title {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(2.8rem, 6vw, 5.5rem);
  line-height: 1.08; letter-spacing: -1.5px;
  color: #1a1a1a; margin-bottom: 24px;
  max-width: 780px;
}
.hero-title em { font-style: italic; color: #0057ff; }
.hero-body {
  font-size: clamp(1rem, 1.5vw, 1.1rem);
  color: #666; line-height: 1.7; max-width: 560px; margin-bottom: 48px;
}
.hero-meta {
  display: flex; align-items: center; gap: 28px;
  flex-wrap: wrap;
}
.hmeta-item { display: flex; flex-direction: column; gap: 2px; }
.hmeta-item strong {
  font-family: 'DM Serif Display', serif;
  font-size: 2rem; line-height: 1; color: #1a1a1a;
}
.hmeta-item span { font-size: 0.78rem; font-weight: 500; color: #888; letter-spacing: 0.3px; }
.hmeta-div { width: 1px; height: 40px; background: #ddd; }

/* Scroll hint + arrow */
.hero-scroll-hint {
  margin-top: 60px; display: flex; flex-direction: column;
  align-items: flex-start; gap: 10px;
}
.scroll-label {
  font-size: 0.78rem; font-weight: 500; letter-spacing: 0.5px;
  color: #bbb; text-transform: uppercase;
}
.scroll-arrow-btn {
  width: 40px; height: 40px; border-radius: 50%;
  border: 1.5px solid rgba(0,0,0,0.12); background: transparent;
  display: flex; align-items: center; justify-content: center;
  color: #999; cursor: pointer;
  animation: arrowBounce 2.2s ease-in-out infinite;
  transition: border-color .2s, color .2s;
}
.scroll-arrow-btn:hover { border-color: #0057ff; color: #0057ff; }
@keyframes arrowBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(7px); }
}

/* ── FILTER BAR ── */
.filter-bar {
  position: sticky; top: 64px; z-index: 90;
  background: rgba(245,244,240,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0,0,0,0.07);
}
.filter-bar-inner {
  max-width: 1360px; margin: 0 auto; padding: 0 32px;
  height: 56px; display: flex; align-items: center;
  justify-content: space-between; gap: 20px;
}
.filter-pills { display: flex; align-items: center; gap: 6px; overflow-x: auto; padding-bottom: 2px; }
.filter-pills::-webkit-scrollbar { display: none; }
.fpill {
  flex-shrink: 0; white-space: nowrap;
  background: none; border: 1px solid #ddd;
  color: #666; padding: 6px 14px; border-radius: 100px;
  font-size: 0.8rem; font-weight: 500; font-family: 'DM Sans', sans-serif;
  cursor: pointer; transition: all .2s;
}
.fpill:hover { border-color: #1a1a1a; color: #1a1a1a; }
.fpill.active {
  background: #1a1a1a; border-color: #1a1a1a;
  color: #fff;
}
.search-wrap {
  position: relative; flex-shrink: 0; display: flex; align-items: center;
}
.search-wrap input {
  background: #fff; border: 1px solid #e0e0e0;
  color: #1a1a1a; padding: 7px 32px 7px 14px;
  border-radius: 100px; font-size: 0.82rem;
  font-family: 'DM Sans', sans-serif; outline: none;
  width: 200px; transition: border-color .2s, width .3s;
}
.search-wrap input:focus { border-color: #1a1a1a; width: 240px; }
.search-wrap input::placeholder { color: #bbb; }
.sclear {
  position: absolute; right: 10px; background: none; border: none;
  color: #aaa; cursor: pointer; font-size: 0.75rem;
  display: flex; align-items: center; justify-content: center;
}
.sclear:hover { color: #1a1a1a; }

/* ── WORK GRID ── */
.work-section { max-width: 1360px; margin: 0 auto; padding: 48px 32px 100px; }
.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* ── PROJECT CARD ── */
.pcard {
  background: #fff; border-radius: 16px;
  overflow: hidden; cursor: pointer;
  transition: transform .3s cubic-bezier(.4,0,.2,1), box-shadow .3s;
  opacity: 0; transform: translateY(24px);
}
.pcard.visible { opacity: 1; transform: translateY(0); }
.pcard:hover { transform: translateY(-4px); box-shadow: 0 16px 48px rgba(0,0,0,0.12); }
.pcard-img {
  aspect-ratio: 4/3; overflow: hidden; position: relative;
}
.pcard-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s cubic-bezier(.4,0,.2,1);
}
.pcard:hover .pcard-img img { transform: scale(1.04); }
.pcard-overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0); display: flex;
  align-items: flex-end; padding: 16px;
  transition: background .3s;
}
.pcard:hover .pcard-overlay { background: rgba(0,0,0,0.25); }
.pcard-visit {
  background: #fff; color: #1a1a1a;
  padding: 8px 16px; border-radius: 100px;
  font-size: 0.8rem; font-weight: 600;
  opacity: 0; transform: translateY(8px);
  transition: all .3s; border: none; cursor: pointer;
}
.pcard:hover .pcard-visit { opacity: 1; transform: translateY(0); }
.pcard-body { padding: 20px 22px 22px; }
.pcard-cat {
  font-size: 0.72rem; font-weight: 600;
  letter-spacing: 1px; text-transform: uppercase;
  color: #0057ff; margin-bottom: 8px;
}
.pcard-name {
  font-size: 1.15rem; font-weight: 700;
  color: #1a1a1a; margin-bottom: 8px; letter-spacing: -0.3px;
  line-height: 1.3;
}
.pcard-desc {
  font-size: 0.85rem; color: #777; line-height: 1.6;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

/* ── NO RESULTS ── */
.no-results {
  display: none; text-align: center; padding: 80px 20px; color: #999;
}
.no-results p { font-size: 1.1rem; margin-bottom: 16px; }
.no-results button {
  background: #1a1a1a; color: #fff;
  padding: 10px 24px; border-radius: 100px;
  border: none; cursor: pointer; font-size: 0.9rem; font-family: 'DM Sans',sans-serif;
}

/* ── ABOUT ── */
.about-section {
  border-top: 1px solid rgba(0,0,0,0.08);
  padding: 100px 32px;
  background: #1a1a1a; color: #f5f4f0;
}
.about-inner {
  max-width: 1360px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1.2fr; gap: 80px; align-items: start;
}
.about-kicker {
  font-size: 0.78rem; font-weight: 600; letter-spacing: 1.5px;
  text-transform: uppercase; color: #888; margin-bottom: 20px;
}
.about-title {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(2.2rem, 4vw, 3.6rem);
  line-height: 1.1; letter-spacing: -1px;
  color: #f5f4f0;
}
.about-title em { color: #0057ff; font-style: italic; }
.about-right p {
  font-size: 1rem; line-height: 1.75; color: #aaa; margin-bottom: 32px;
}
.about-pills {
  display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 36px;
}
.about-pills span {
  border: 1px solid rgba(255,255,255,0.15);
  color: #ccc; padding: 8px 16px; border-radius: 100px;
  font-size: 0.82rem; font-weight: 500;
}
.about-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.btn-outline {
  border: 1px solid rgba(255,255,255,0.25); color: #fff;
  padding: 12px 26px; border-radius: 100px;
  font-size: 0.9rem; font-weight: 500; transition: all .2s;
}
.btn-outline:hover { border-color: #fff; background: rgba(255,255,255,0.06); }
.btn-solid {
  background: #0057ff; color: #fff;
  padding: 12px 26px; border-radius: 100px;
  font-size: 0.9rem; font-weight: 600; transition: all .2s;
}
.btn-solid:hover { background: #0040cc; transform: translateY(-1px); }

/* ── FOOTER ── */
.site-footer {
  background: #111; border-top: 1px solid rgba(255,255,255,0.06);
  padding: 28px 32px;
}
.footer-inner {
  max-width: 1360px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px;
}
.site-footer .logo { color: #fff; font-size: 1.2rem; }
.site-footer p { font-size: 0.8rem; color: #555; }
.footer-links { display: flex; gap: 20px; }
.footer-links a { font-size: 0.82rem; color: #555; transition: color .2s; }
.footer-links a:hover { color: #fff; }

/* ── LIGHTBOX ── */
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  opacity: 0; pointer-events: none; transition: opacity .3s;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.lightbox.open { opacity: 1; pointer-events: all; }
.lb-overlay {
  position: absolute; inset: 0;
  background: rgba(10,10,10,0.7);
  backdrop-filter: blur(6px);
}
.lb-panel {
  position: relative; z-index: 1;
  background: #fff; border-radius: 20px;
  max-width: 720px; width: 100%; max-height: 90vh;
  overflow-y: auto; transform: scale(.96) translateY(16px);
  transition: transform .3s cubic-bezier(.4,0,.2,1);
  scrollbar-width: thin;
}
.lightbox.open .lb-panel { transform: scale(1) translateY(0); }
.lb-close {
  position: absolute; top: 12px; right: 12px;
  background: rgba(0,0,0,0.45); border: none; border-radius: 50%;
  width: 34px; height: 34px; display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem; cursor: pointer; color: #fff; transition: all .2s;
  z-index: 3; backdrop-filter: blur(4px);
}
.lb-close:hover { background: rgba(0,0,0,0.75); }
.lb-img-wrap { aspect-ratio: 16/9; overflow: hidden; border-radius: 16px 16px 0 0; }
.lb-img-wrap img { width: 100%; height: 100%; object-fit: cover; }
.lb-content { padding: 28px 32px 36px; }
.lb-cat {
  font-size: 0.72rem; font-weight: 700;
  letter-spacing: 1.2px; text-transform: uppercase;
  color: #0057ff; margin-bottom: 10px;
}
.lb-name {
  font-family: 'DM Serif Display', serif;
  font-size: 2rem; letter-spacing: -0.5px;
  color: #1a1a1a; margin-bottom: 6px; line-height: 1.1;
}
.lb-url {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 0.82rem; color: #0057ff; margin-bottom: 18px;
  border-bottom: 1px solid rgba(0,87,255,0.2);
  padding-bottom: 2px; transition: border-color .2s;
}
.lb-url:hover { border-color: #0057ff; }
.lb-desc {
  font-size: 0.97rem; line-height: 1.75; color: #555; margin-bottom: 24px;
}
.lb-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.lb-tag {
  background: #f5f4f0; color: #555;
  padding: 6px 14px; border-radius: 100px;
  font-size: 0.78rem; font-weight: 500;
}
.lb-cta {
  display: block; width: 100%; text-align: center;
  background: #1a1a1a; color: #fff;
  padding: 15px; border-radius: 100px;
  font-size: 0.95rem; font-weight: 600;
  font-family: 'DM Sans', sans-serif;
  border: none; cursor: pointer; transition: background .2s;
}
.lb-cta:hover { background: #0057ff; }
.lb-private { color: #888 !important; border-bottom-color: rgba(0,0,0,0.1) !important; font-style: italic; }
.lb-private-note {
  background: #f5f4f0; border: 1px solid #e8e8e8;
  color: #888; border-radius: 12px; padding: 14px 18px;
  font-size: 0.85rem; text-align: center;
}
.pcard-private {
  background: rgba(255,255,255,0.92); color: #555;
  padding: 7px 14px; border-radius: 100px;
  font-size: 0.78rem; font-weight: 600;
  opacity: 0; transform: translateY(8px);
  transition: all .3s; backdrop-filter: blur(4px);
}
.pcard:hover .pcard-private { opacity: 1; transform: translateY(0); }

/* ── TRANSITIONS ── */
.pcard { transition: opacity .5s ease, transform .5s ease, box-shadow .3s; }

/* ── RESPONSIVE ── */
@media (max-width: 1100px) {
  .work-grid { grid-template-columns: repeat(2, 1fr); }
  .about-inner { grid-template-columns: 1fr; gap: 40px; }
  .about-title { font-size: 2.6rem; }
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .burger { display: flex; }
  .hero { padding: 120px 20px 60px; }
  .filter-bar-inner { padding: 0 20px; }
  .search-wrap { display: none; }
  .work-section { padding: 32px 16px 80px; }
  .work-grid { grid-template-columns: 1fr; gap: 16px; }
  .about-section { padding: 70px 20px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .lb-content { padding: 20px 22px 28px; }
  .lb-name { font-size: 1.6rem; }
}
@media (max-width: 480px) {
  .hero-title { font-size: 2.4rem; }
  .hero-meta { gap: 16px; }
  .hmeta-item strong { font-size: 1.6rem; }
  .logo-wordmark { display: none; }   /* show icon only on tiny screens */
  .logo-img { height: 34px; }
}
