/* ===== Reset & Variables ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg: #f5f5f5;
  --text: #1a1a1a;
  --muted: #6b6b6b;
  --purple: #6b4ce0;
  --orange: #e87b35;
  --card: #ffffff;
  --border: #e8e4df;
  --sans: 'DM Sans', system-ui, sans-serif;
  --heading: 'Inter', system-ui, sans-serif;
  --serif: 'DM Serif Display', Georgia, serif;
}

/* ===== Base ===== */
html {
  scroll-behavior: smooth;
  cursor: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20"><circle cx="10" cy="10" r="8" fill="%23e87b35"/></svg>') 10 10, auto;
}

a, button, .btn, .project-card, .nav-logo {
  cursor: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20"><circle cx="10" cy="10" r="8" fill="%232a9d8f"/></svg>') 10 10, pointer;
}

a:active, button:active, .btn:active, .project-card:active, .nav-logo:active {
  cursor: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20"><circle cx="10" cy="10" r="8" fill="%232563eb"/></svg>') 10 10, pointer;
}

body {
  font-family: var(--sans);
  background: var(--bg);
  background-image: radial-gradient(circle, #d0d0d0 1px, transparent 1px);
  background-size: 24px 24px;
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.section { padding: 64px 0; }

.section-label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--muted);
  margin-bottom: 40px;
}

/* ===== Navigation ===== */
.nav {
  position: sticky;
  top: 0;
  background: var(--bg);
  z-index: 100;
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 64px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text);
  background: var(--card);
  border-radius: 100px;
  padding: 6px 20px 6px 6px;
  transition: box-shadow 0.2s;
}

.nav-logo:hover { box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1); }

.nav-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.nav-logo-text { display: flex; flex-direction: column; line-height: 1.3; }

.nav-logo-name {
  font-weight: 700;
  font-size: 0.9rem;
  position: relative;
}

.nav-logo-name::after {
  content: attr(data-hover);
  position: absolute;
  left: 0;
  top: 0;
  opacity: 0;
  transition: opacity 0.2s;
}

.nav-logo:hover .nav-logo-name { color: transparent; }
.nav-logo:hover .nav-logo-name::after { opacity: 1; color: var(--text); }

.nav-logo-role { font-size: 0.75rem; color: var(--muted); }

.nav-links { display: flex; gap: 32px; }

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--text); }

/* ===== Hero ===== */
.hero { padding: 100px 0 80px; }

.hero-headline {
  font-family: var(--heading);
  font-size: clamp(1.4rem, 4vw, 3.2rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
  white-space: nowrap;
}

.hero-design { transition: all 0.3s; }

.hero-design:hover {
  background: linear-gradient(90deg, var(--orange), var(--purple), var(--orange));
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradient-shift 2s linear infinite;
}

@keyframes gradient-shift {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--muted);
  margin-bottom: 32px;
  line-height: 1.7;
  max-width: 560px;
}

.hero-meta { display: flex; align-items: center; gap: 24px; font-size: 0.9rem; }

.hero-link {
  color: var(--purple);
  text-decoration: none;
  font-weight: 500;
  transition: opacity 0.2s;
}

.hero-link:hover { opacity: 0.7; }
.hero-role { color: var(--muted); }
.hero-role strong { color: var(--text); font-weight: 600; }

/* ===== Project Cards (Shared) ===== */
.project-card__image { width: 100%; min-height: 200px; }
.project-card__image--carepatron { background: linear-gradient(135deg, #2563eb, #60a5fa); }
.project-card__image--kami { background: linear-gradient(135deg, #6b4ce0, #9b7ff0); }
.project-card__image--laurel { background: linear-gradient(135deg, #e87b35, #f0a06b); }
.project-card__image--cogo { background: linear-gradient(135deg, #2a9d8f, #5ec4b6); }
.project-card__image--lifekit { background: linear-gradient(135deg, #e76f51, #f4a261); }
.project-card__image--kumu { background: linear-gradient(135deg, #264653, #4a7c8a); }

.project-card__brand {
  font-family: var(--serif);
  font-size: 1.1rem;
  color: var(--muted);
  margin: 16px 0 8px;
}

.project-card__title {
  font-family: var(--heading);
  font-size: 1.6rem;
  margin-bottom: 12px;
  line-height: 1.3;
}

.project-card__desc {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 20px;
  max-width: 560px;
}

.project-card__tags { display: flex; flex-wrap: wrap; gap: 8px; }

.project-card__link {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--purple);
  text-decoration: none;
  transition: opacity 0.2s;
}

.project-card__link:hover { opacity: 0.7; }

.tag {
  display: inline-block;
  padding: 6px 14px;
  font-size: 0.78rem;
  font-weight: 500;
  border-radius: 100px;
  background: var(--bg);
  color: var(--muted);
  border: 1px solid var(--border);
}

/* ===== Large Cards ===== */
.project-card--large {
  background: var(--card);
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 32px;
  border: 1px solid var(--border);
  display: flex;
  align-items: stretch;
  transition: transform 0.2s, box-shadow 0.2s;
}

.project-card--large:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
}

.project-card--large .project-card__info {
  flex: 0 0 45%;
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.project-card--large .project-card__image { flex: 1; min-height: 320px; }

/* ===== Small Cards ===== */
.project-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

.project-card--small {
  background: var(--card);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s;
}

.project-card--small:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
}

.project-card--small .project-card__info {
  padding: 24px;
  order: -1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.project-card--small .project-card__image { flex: 1; min-height: 140px; order: 1; }
.project-card--small .project-card__desc { font-size: 0.92rem; margin-bottom: 0; }
.project-card--small .tag { align-self: flex-start; }
.project-card--small .project-card__link { font-size: 0.82rem; }

/* ===== About ===== */
.about { background: var(--card); padding: 80px 0; }
.about > .container { display: flex; align-items: flex-start; gap: 60px; }
.about-inner { flex: 1; max-width: 640px; }
.about-image { flex-shrink: 0; width: 280px; }
.about-image img { width: 100%; border-radius: 16px; object-fit: cover; }
.about-label { font-size: 0.85rem; font-weight: 500; color: var(--muted); margin-bottom: 32px; }
.about-bio { font-size: 1rem; line-height: 1.8; color: var(--muted); margin-bottom: 20px; }
.about-bio:last-of-type { margin-bottom: 32px; }

.btn {
  display: inline-block;
  padding: 14px 32px;
  font-size: 0.9rem;
  font-weight: 600;
  font-family: var(--sans);
  border-radius: 100px;
  text-decoration: none;
  transition: all 0.2s;
}

.btn--outline { color: var(--text); background: transparent; border: 1.5px solid var(--text); }
.btn--outline:hover { background: var(--text); color: #fff; }

/* ===== Testimonials ===== */
.testimonials { padding: 80px 0; }
.testimonial-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

.testimonial {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
}

.testimonial-quote {
  font-family: var(--serif);
  font-size: 3.5rem;
  line-height: 1;
  display: block;
  margin-bottom: 12px;
}

.testimonial-quote--purple { color: var(--purple); }
.testimonial-quote--orange { color: var(--orange); }
.testimonial p { font-size: 0.88rem; line-height: 1.7; margin-bottom: 20px; }
.testimonial cite { font-style: normal; display: flex; flex-direction: column; gap: 2px; }
.testimonial cite strong { font-size: 0.82rem; font-weight: 600; }
.testimonial cite span { font-size: 0.78rem; color: var(--muted); }

/* ===== Footer ===== */
.footer { border-top: 1px solid var(--border); padding: 48px 0; text-align: center; }
.footer-tagline { font-family: var(--serif); font-size: 1.4rem; }

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .hero { padding: 64px 0 48px; }
  .project-card--large { flex-direction: column; }
  .project-card--large .project-card__info { flex: none; }
  .project-card--large .project-card__image { min-height: 200px; }
  .project-grid { grid-template-columns: 1fr; }
  .testimonial-grid { grid-template-columns: 1fr 1fr; }
  .about > .container { flex-direction: column; gap: 40px; }
  .about-image { width: 100%; max-width: 320px; }
}

@media (max-width: 480px) {
  .nav-inner { height: 56px; }
  .nav-logo-name { font-size: 0.85rem; }
  .nav-links { gap: 20px; }
  .hero-meta { flex-direction: column-reverse; align-items: flex-start; gap: 12px; }
  .project-card__info { padding: 20px; }
  .testimonial-grid { grid-template-columns: 1fr; }
}
