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

:root {
  --white: #ffffff;
  --black: #0a0a0a;
  --gray-100: #f5f5f5;
  --gray-200: #ebebeb;
  --gray-300: #d4d4d4;
  --gray-400: #a3a3a3;
  --gray-500: #737373;
  --gray-600: #525252;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --serif: 'Instrument Serif', 'Georgia', serif;
  --radius: 16px;
  --radius-sm: 12px;
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  font-family: var(--sans);
  font-size: 16px;
  color: var(--black);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  background: #f4f2ef;
}

.page-bg { display: none; }

/* ── Main Container (content boxed) ───────────────────── */
.site-container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 48px 56px;
}

/* ── Nav ───────────────────────────────────────────────── */
.nav {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 80px;
}

.nav-left {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.nav-name {
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.nav-sep {
  color: var(--gray-400);
  font-size: 0.85rem;
  margin-top: 1px;
}

.nav-desc {
  font-size: 0.8rem;
  color: var(--gray-500);
  line-height: 1.45;
}

.nav-right {
  display: flex;
  gap: 28px;
}

.nav-link {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--black);
  text-decoration: none;
  transition: color var(--transition);
}

.nav-link:hover {
  color: var(--gray-500);
}

/* ── Hero ──────────────────────────────────────────────── */
.hero {
  margin-bottom: 96px;
}

.hero-greeting {
  font-size: 0.95rem;
  color: var(--gray-500);
  margin-bottom: 20px;
  font-weight: 400;
}

.hero-headline {
  font-family: var(--serif);
  font-size: clamp(2.8rem, 5.5vw, 5rem);
  font-weight: 400;
  line-height: 1.06;
  letter-spacing: -0.025em;
  color: var(--black);
  margin-bottom: 36px;
}

.hero-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tool-tag {
  display: inline-block;
  padding: 6px 14px;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--gray-500);
  border: 1px solid var(--gray-200);
  border-radius: 100px;
  transition: var(--transition);
}

.tool-tag:hover {
  border-color: var(--gray-300);
  color: var(--black);
}

/* ── Section Header ────────────────────────────────────── */
.section-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 32px;
}

.section-label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--black);
  white-space: nowrap;
}

.section-line {
  flex: 1;
  height: 1px;
  background: var(--gray-200);
}

.section-counter {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--gray-400);
  font-variant-numeric: tabular-nums;
}

/* ── Filters ───────────────────────────────────────────── */
.filter-bar {
  display: flex;
  gap: 6px;
  margin-bottom: 32px;
  overflow-x: auto;
  scrollbar-width: none;
}

.filter-bar::-webkit-scrollbar { display: none; }

.filter-pill {
  flex-shrink: 0;
  padding: 7px 16px;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--gray-500);
  background: transparent;
  border: 1px solid var(--gray-200);
  border-radius: 100px;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.filter-pill:hover {
  color: var(--black);
  border-color: var(--gray-300);
}

.filter-pill.active {
  color: var(--white);
  background: var(--black);
  border-color: var(--black);
}

/* ── Work Grid ─────────────────────────────────────────── */
.work-section {
  margin-bottom: 80px;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

/* ── Work Card ─────────────────────────────────────────── */
.work-card {
  cursor: pointer;
  transition: transform var(--transition);
}

.work-card:hover {
  transform: translateY(-3px);
}

.work-card-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--gray-100);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 16px;
}

.work-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.work-card:hover .work-card-thumb img {
  transform: scale(1.03);
}

/* Placeholder */
.work-card-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
}

.work-card-placeholder-inner {
  text-align: center;
}

.work-card-placeholder-icon {
  width: 40px;
  height: 40px;
  margin: 0 auto 14px;
  color: var(--gray-300);
}

.work-card-placeholder-title {
  font-family: var(--serif);
  font-size: 1.1rem;
  color: var(--gray-400);
  line-height: 1.3;
}

/* Card footer */
.work-card-footer {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.work-card-info {
  min-width: 0;
}

.work-card-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--black);
  margin-bottom: 3px;
  letter-spacing: -0.01em;
}

.work-card-tags {
  font-size: 0.78rem;
  color: var(--gray-400);
  line-height: 1.4;
}

.work-card-arrow {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--gray-200);
  color: var(--gray-500);
  transition: var(--transition);
  margin-top: -2px;
}

.work-card:hover .work-card-arrow {
  background: var(--black);
  border-color: var(--black);
  color: var(--white);
}

/* ── Card animation ────────────────────────────────────── */
.work-card.fade-in {
  animation: cardIn 0.4s ease forwards;
}

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

/* ── About ─────────────────────────────────────────────── */
.about-section {
  margin-bottom: 0;
  padding-bottom: 0;
  overflow: visible;
}

.about-content {
  max-width: 640px;
}

.about-text {
  font-size: 0.92rem;
  color: var(--gray-500);
  line-height: 1.75;
  margin-bottom: 16px;
}

.about-text:last-of-type {
  margin-bottom: 0;
}

/* ── Empty State ───────────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: 60px 24px;
  color: var(--gray-400);
  font-size: 0.85rem;
}

/* ── Stats ─────────────────────────────────────────────── */
.stats-section {
  margin-bottom: 80px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.stat-item {
  padding: 28px 20px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  text-align: center;
}

.stat-number {
  display: block;
  font-family: var(--serif);
  font-size: 2.2rem;
  font-weight: 400;
  color: var(--black);
  line-height: 1;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.stat-label {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--gray-400);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ── About (enhanced) ──────────────────────────────────── */
.about-layout {
  display: flex;
  align-items: flex-end;
  gap: 56px;
}

.about-photo {
  flex-shrink: 0;
  width: 360px;
  overflow: hidden;
}

.about-photo img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  object-position: left top;
}

.about-headline {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--black);
  margin-bottom: 24px;
}

.about-tools-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
  margin-bottom: 40px;
}

.about-tool {
  display: inline-block;
  padding: 6px 14px;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--gray-500);
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 100px;
}

/* ── Footer ────────────────────────────────────────────── */
.site-footer {
  text-align: center;
  padding-top: 32px;
  border-top: 1px solid var(--gray-200);
  position: relative;
  z-index: 0;
}

.site-footer p {
  font-size: 0.75rem;
  color: var(--gray-400);
}

/* ── Responsive: Tablet (≤1024px) ──────────────────────── */
@media (max-width: 1024px) {
  .site-container {
    padding: 40px 40px;
  }

  .about-layout {
    gap: 40px;
  }

  .about-photo {
    width: 280px;
  }

  .stat-number {
    font-size: 1.8rem;
  }
}

/* ── Responsive: Small tablet / large phone (≤768px) ──── */
@media (max-width: 768px) {
  .site-container {
    padding: 32px 24px;
  }

  .nav {
    flex-direction: column;
    gap: 16px;
    margin-bottom: 48px;
  }

  .nav-sep { display: none; }
  .nav-desc { display: none; }

  .nav-right {
    gap: 20px;
  }

  .hero {
    margin-bottom: 56px;
  }

  .hero-headline {
    font-size: 2.2rem;
  }

  .hero-tools {
    gap: 6px;
  }

  .tool-tag {
    font-size: 0.7rem;
    padding: 5px 11px;
  }

  .stats-section {
    margin-bottom: 56px;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .stat-item {
    padding: 20px 16px;
  }

  .stat-number {
    font-size: 1.6rem;
  }

  .stat-label {
    font-size: 0.68rem;
  }

  .about-layout {
    flex-direction: column;
    gap: 32px;
  }

  .about-photo {
    width: 200px;
    order: -1;
  }

  .about-headline {
    font-size: 1.5rem;
  }

  .work-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .work-section {
    margin-bottom: 56px;
  }

  .section-header {
    margin-bottom: 24px;
  }

  .filter-bar {
    margin-bottom: 24px;
  }
}

/* ── Responsive: Phone (≤480px) ────────────────────────── */
@media (max-width: 480px) {
  .site-container {
    padding: 24px 16px;
  }

  .hero-headline {
    font-size: 1.7rem;
  }

  .filter-pill {
    padding: 6px 12px;
    font-size: 0.72rem;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .stat-item {
    padding: 18px 12px;
  }

  .stat-number {
    font-size: 1.4rem;
  }

  .about-photo {
    width: 160px;
  }

  .about-headline {
    font-size: 1.3rem;
  }

  .about-text {
    font-size: 0.85rem;
  }

  .work-card-thumb {
    aspect-ratio: 16 / 9;
  }

  .nav-right {
    gap: 16px;
  }
}
