*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg: #ffffff;
  --ink: #0a0a0a;
  --muted: #6d6d68;
  --line: #ebebe7;
  --soft: #f5f5f2;
  --pad: clamp(16px, 4vw, 56px);
  --ease: cubic-bezier(.2, .8, .2, 1);
}

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Bricolage Grotesque', system-ui, sans-serif;
  overflow-x: hidden;
  min-height: 100vh;
}

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

/* ── Nav ── */
nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px var(--pad);
  background: rgba(255, 255, 255, .86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line);
}

.nav-logo { display: flex; }
.nav-logo svg { width: 28px; height: 28px; }

.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1.5px solid var(--ink);
  border-radius: 99px;
  padding: 9px 16px;
  font-family: 'Unbounded', sans-serif;
  font-size: 11.5px;
  letter-spacing: .03em;
  transition: background .3s, color .3s;
}
.back-btn:hover { background: var(--ink); color: #fff; }

/* ── Hero ── */
.proj-hero {
  padding: clamp(120px, 18vh, 170px) var(--pad) 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.proj-hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 18px;
}

.proj-kicker {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  color: var(--muted);
  animation: fadeUp .8s var(--ease) both;
}

.proj-name {
  font-size: clamp(44px, 7vw, 104px);
  font-weight: 800;
  line-height: .92;
  letter-spacing: -.05em;
  animation: fadeUp .8s .06s var(--ease) both;
}

.proj-tagline {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-size: clamp(24px, 2.6vw, 36px);
  line-height: 1.1;
  color: #3d3d3a;
  max-width: 760px;
  animation: fadeUp .8s .12s var(--ease) both;
}

.proj-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  animation: fadeUp .8s .18s var(--ease) both;
}

.badge {
  font-size: 13px;
  font-weight: 500;
  border: 1px solid #dcdcd7;
  border-radius: 99px;
  padding: 7px 14px;
}

/* browser-framed screenshot */
.proj-preview-wrap {
  width: 100%;
  margin-top: clamp(24px, 4vh, 48px);
  border-radius: 20px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 50px 90px -45px rgba(0, 0, 0, .45);
  animation: fadeUp 1s .24s var(--ease) both;
}
.wbar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: #f1f1ee;
  border-bottom: 1px solid var(--line);
}
.wbar i{position:relative;width:12px;height:12px;border-radius:50%;box-shadow:inset 0 0 0 .5px rgba(0,0,0,.18);flex:none}
.wbar i:nth-child(1){background:#ff5f57}
.wbar i:nth-child(2){background:#febc2e}
.wbar i:nth-child(3){background:#28c840}
.wbar i::after{position:absolute;inset:0;display:grid;place-items:center;font:700 9px/1 -apple-system,system-ui,sans-serif;color:rgba(0,0,0,.55);opacity:0;transition:opacity .15s}
.wbar i:nth-child(1)::after{content:"\00d7";font-size:10px}
.wbar i:nth-child(2)::after{content:"\2212"}
.wbar i:nth-child(3)::after{content:"+"}
.wbar:hover i::after{opacity:1}
.wbar span {
  margin-left: 12px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--muted);
  background: #fff;
  border-radius: 99px;
  padding: 4px 14px;
}
.proj-preview-wrap img { width: 100%; height: auto; }

/* case-study screens (PartBill) */
.shot { margin: 0 0 28px; }
.shot-frame {
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 40px 80px -48px rgba(0, 0, 0, .4);
}
.shot-frame img { display: block; width: 100%; height: auto; }
.shot-frame.paper { padding: 22px 22px 0; }
.shot figcaption { margin-top: 14px; font-size: 15px; line-height: 1.55; color: var(--muted); max-width: 640px; }
.shot-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.shot-pair .shot { margin-bottom: 0; }
@media (max-width: 700px) { .shot-pair { grid-template-columns: 1fr; gap: 28px; } }


/* ── Content ── */
.proj-content {
  max-width: 1000px;
  margin: 0 auto;
  padding: 72px var(--pad) 96px;
}

.proj-section { margin-bottom: 88px; }

.proj-section-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 14px;
}

.proj-section-title {
  font-size: clamp(32px, 3.6vw, 52px);
  font-weight: 800;
  line-height: .95;
  letter-spacing: -.045em;
  margin-bottom: 26px;
}


.proj-desc-text {
  font-size: 18px;
  line-height: 1.7;
  color: #3d3d3a;
  max-width: 760px;
}

/* ── Feature cards ── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.feature-card {
  position: relative;
  top: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 26px;
  transition: top .5s var(--ease);
}
.feature-card:hover { top: -4px; }

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  margin-bottom: 14px;
}
.feature-icon svg { width: 22px; height: 22px; }

.feature-title { font-size: 21px; font-weight: 700; letter-spacing: -.03em; }
.feature-desc { font-size: 15px; line-height: 1.6; color: var(--muted); }

/* ── Tech pills ── */
.tech-grid { display: flex; flex-wrap: wrap; gap: 10px; }

.tech-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 99px;
  padding: 10px 18px 10px 12px;
  font-size: 15px;
  font-weight: 500;
}
.tech-icon { display: grid; place-items: center; }
.tech-icon svg { width: 18px; height: 18px; }

/* ── CTA ── */
.proj-cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  padding-top: 8px;
}

.visit-btn,
.home-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border-radius: 99px;
  padding: 16px 28px;
  font-size: 16px;
  font-weight: 600;
  border: 1.5px solid var(--ink);
  transition: background .3s, color .3s, box-shadow .35s var(--ease);
}
.visit-btn { background: var(--ink); color: #fff; }
.visit-btn:hover { box-shadow: 0 14px 30px -10px rgba(0, 0, 0, .35); }
.home-btn:hover { background: var(--ink); color: #fff; }

/* ── Footer ── */
.proj-footer {
  max-width: 1000px;
  margin: 0 auto;
  padding: 28px var(--pad) 36px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
}

/* ── Reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.reveal.visible { opacity: 1; transform: none; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 700px) {
  .features-grid { grid-template-columns: 1fr; }
  .feature-card { padding: 20px; border-radius: 24px; }
  .proj-content { padding-top: 48px; }
  .proj-section { margin-bottom: 64px; }
  .visit-btn, .home-btn { width: 100%; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}
