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

/* ===== CUSTOM PROPERTIES ===== */
:root {
  --cream: #FAF8F5;
  --cream-dark: #f0ece6;
  --neutral-950: #0a0a0a;
  --neutral-800: #262626;
  --neutral-600: #525252;
  --neutral-400: #a3a3a3;
  --neutral-300: #d4d4d4;
  --neutral-200: #e5e5e5;
  --neutral-100: #f5f5f5;
  --neutral-950-40: rgba(10, 10, 10, 0.4);
  --neutral-950-10: rgba(10, 10, 10, 0.1);
  --neutral-950-05: rgba(10, 10, 10, 0.05);
  --accent: #974A4A;
  --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ===== BASE ===== */
html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  background-color: var(--cream);
  color: var(--neutral-950);
  line-height: 1.6;
  font-size: 16px;
  font-weight: 300;
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.5s ease;
}

img, svg {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ===== LAYOUT ===== */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

@media (min-width: 1024px) {
  .container { padding: 0 32px; }
}

/* ===== HEADER / NAV ===== */
.header {
  padding: 24px 0;
  position: relative;
  z-index: 100;
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--neutral-950);
}

.logo span {
  font-style: italic;
}

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

.nav-links a {
  font-size: 0.875rem;
  font-weight: 300;
  color: var(--neutral-950-40);
  transition: color 0.3s ease;
}

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

.nav-year {
  font-size: 0.6875rem;
  font-weight: 300;
  color: var(--neutral-950-40);
  letter-spacing: 0.05em;
}

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

.hero-tagline {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 5vw, 3rem);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.02em;
  max-width: 700px;
  color: var(--neutral-950);
}

.hero-services {
  margin-top: 40px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-services .tag {
  font-size: 0.6875rem;
  font-weight: 400;
  color: var(--neutral-950-40);
  padding: 6px 14px;
  border: 1px solid var(--neutral-950-10);
  border-radius: 999px;
  white-space: nowrap;
  transition: all 0.3s ease;
}

.hero-services .tag:hover {
  color: var(--neutral-950);
  border-color: var(--neutral-950-40);
}

/* ===== SECTION HEADERS ===== */
.section-label {
  font-size: 0.6875rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--neutral-950-40);
  margin-bottom: 48px;
  display: block;
}

/* ===== WORK / PROJECT GRID ===== */
.work-section {
  margin-top: 96px;
  padding-top: 64px;
  border-top: 1px solid var(--neutral-950-10);
}

@media (min-width: 1024px) {
  .work-section { margin-top: 140px; }
}

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

@media (min-width: 768px) {
  .project-grid {
    grid-template-columns: repeat(12, 1fr);
    gap: 24px;
  }
}

@media (min-width: 1024px) {
  .project-grid { gap: 32px; }
}

.project-card {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.5s ease;
}

.project-card:hover {
  transform: scale(0.985);
}

@media (min-width: 768px) {
  .project-card.span-7 { grid-column: span 7; }
  .project-card.span-5 { grid-column: span 5; }
}

.project-image {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  display: block;
  border-radius: 8px;
  transition: transform 0.7s ease;
}

.project-card:hover .project-image {
  transform: scale(1.03);
}

.project-image-wrapper {
  overflow: hidden;
  border-radius: 8px;
}

.project-info {
  padding: 20px 0 0;
}

.project-client {
  font-size: 1rem;
  font-weight: 400;
  color: var(--neutral-950);
  margin-bottom: 2px;
}

.project-title {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 400;
  color: var(--neutral-950);
  margin-bottom: 4px;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.project-tags span {
  font-size: 0.6875rem;
  color: var(--neutral-950-40);
  font-weight: 300;
}

.project-tags span::after {
  content: ',';
}

.project-tags span:last-child::after {
  content: '';
}

/* ===== PROJECT ROW (pairs) ===== */
.project-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-bottom: 24px;
}

@media (min-width: 768px) {
  .project-row { gap: 32px; }
}

@media (min-width: 768px) {
  .project-row.layout-7-5 {
    grid-template-columns: 7fr 5fr;
  }
  .project-row.layout-5-7 {
    grid-template-columns: 5fr 7fr;
  }
}

/* ===== BOTTOM / CTA SECTION ===== */
.bottom-section {
  margin-top: 140px;
  padding-top: 80px;
  border-top: 1px solid var(--neutral-950-10);
  padding-bottom: 40px;
}

@media (min-width: 1024px) {
  .bottom-section { margin-top: 200px; padding-top: 100px; }
}

.bottom-icon {
  width: 64px;
  height: 64px;
  margin-bottom: 48px;
  opacity: 0.2;
}

.bottom-headline {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 2.75rem);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.02em;
  max-width: 600px;
  margin-bottom: 24px;
}

.bottom-desc {
  font-size: 0.9375rem;
  font-weight: 300;
  line-height: 1.7;
  color: var(--neutral-950-40);
  max-width: 520px;
  margin-bottom: 40px;
}

.btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 32px;
  border: 1px solid var(--neutral-950-10);
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--neutral-950);
  background: transparent;
  cursor: pointer;
  transition: all 0.5s ease;
  text-decoration: none;
}

.btn-cta:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--cream);
}

.btn-cta .arrow {
  transition: transform 0.3s ease;
}

.btn-cta:hover .arrow {
  transform: translateX(4px);
}

/* ===== FOOTER ===== */
.footer {
  padding: 60px 0 24px;
  margin-top: 40px;
}

.footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 20px;
  border-top: 1px solid var(--neutral-950-10);
}

.footer-copyright {
  font-size: 0.75rem;
  font-weight: 300;
  color: var(--neutral-950-40);
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  font-size: 0.75rem;
  font-weight: 300;
  color: var(--neutral-950-40);
}

.footer-links a:hover {
  color: var(--accent);
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-in {
  animation: fadeInUp 0.8s ease forwards;
}

.fade-in-delay-1 { animation-delay: 0.1s; opacity: 0; }
.fade-in-delay-2 { animation-delay: 0.2s; opacity: 0; }
.fade-in-delay-3 { animation-delay: 0.3s; opacity: 0; }
.fade-in-delay-4 { animation-delay: 0.4s; opacity: 0; }

/* ===== RESPONSIVE TWEAKS ===== */
@media (max-width: 767px) {
  .hero { padding: 48px 0 0; }
  .work-section { margin-top: 64px; padding-top: 40px; }
  .bottom-section { margin-top: 80px; padding-top: 48px; }
  .project-image { aspect-ratio: 3 / 4; }
}
