@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=DM+Mono:wght@400;500&display=swap');

:root {
  color-scheme: light;
}

body {
  background: #FDFCFA;
  font-family: 'DM Mono', monospace;
}

.serif {
  font-family: 'DM Serif Display', serif;
}

.pricing-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  max-width: 105rem;
  margin: 0 auto;
}

.pricing-card {
  width: 27.5rem;
  max-width: 100%;
  min-height: 40.5rem;
}

@media (max-width: 1100px) {
  .pricing-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .pricing-grid {
    grid-template-columns: 1fr;
  }
}

.tag {
  display: inline-block;
  letter-spacing: 0.12em;
  padding: 2px 8px;
  border: 1px solid currentColor;
}

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

.card {
  opacity: 0;
  animation: fadeUp 0.5s ease forwards;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 6px 6px 0px #232323;
}

.card:nth-child(1) { animation-delay: 0.1s; }
.card:nth-child(2) { animation-delay: 0.22s; }
.card:nth-child(3) { animation-delay: 0.34s; }

.btn-primary {
  position: relative;
  overflow: hidden;
  transition: color 0.25s ease;
}

.btn-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: #16382B;
  transform: translateX(-101%);
  transition: transform 0.25s ease;
  z-index: 0;
}

.btn-primary:hover::after {
  transform: translateX(0);
}

.btn-primary span,
.btn-primary svg {
  position: relative;
  z-index: 1;
}

.build-btn {
  transition: background-color 0.2s ease;
}

.build-btn:hover {
  background-color: #16382B;
}

.build-btn:hover span {
  color: #FDFCFA;
}

.build-btn:hover path {
  stroke: #FDFCFA;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

[data-project] {
  animation: fadeIn 0.6s ease forwards;
  opacity: 0;
}

.project-card {
  transition:
    transform 250ms ease,
    filter 250ms ease,
    z-index 250ms ease;
  transform-origin: center;
  width: clamp(240px, 70vw, 760px);
}

.project-card[data-tilt="left"] {
  transform: rotate(-6deg);
}

.project-card[data-tilt="right"] {
  transform: rotate(6deg);
}

.project-card.is-active {
  transform: rotate(0deg) scale(1.02);
  z-index: 20;
}

.project-card.is-dimmed {
  filter: blur(2px) saturate(0.6);
  z-index: 0;
}

.service-pill, .label {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 200ms ease, transform 200ms ease;
}

.label::after {
  content: " | ";
}

.service-pill:not(:last-child)::after {
  content: ", ";
}

.project-card.is-active .service-pill,
.project-card.is-active .label {
  opacity: 1;
  transform: translateY(0);
}

.carousel {
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
}

.carousel-item {
  scroll-snap-align: start;
}

.project-hero {
  transition: transform 300ms ease, height 300ms ease;
}

body.scrolled .project-hero {
  transform: translateY(-10px) scale(0.92);
}

.logo {
  width: 42rem;
  height: auto;
}

@media (max-width: 768px) {
  .project-card {
    margin-top: 0 !important;
    margin-left: 0 !important;
    margin-bottom: 1.5rem !important;
    align-items: flex-start !important;
    transform: none !important;
    width: 100% !important;
  }

  .project-card.ml-auto {
    margin-left: 0 !important;
  }

  .project-card[data-tilt="left"],
  .project-card[data-tilt="right"] {
    transform: none !important;
  }

  .project-card.is-active,
  .project-card.is-dimmed {
    transform: none !important;
    filter: none !important;
  }

  .service-pill,
  .label {
    opacity: 1 !important;
    transform: none !important;
  }
}

.contact-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  opacity: 0;
  pointer-events: none;
  transition: opacity 250ms ease;
  z-index: 40;
}
 
.contact-panel {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: 50rem;
  max-width: 100%;
  background: #FDFCFA;
  transform: translateX(100%);
  transition: transform 300ms ease;
  z-index: 50;
  border-left: 1px solid #232323;
  display: flex;
}
 
.contact-left {
  width: 220px;
  flex-shrink: 0;
  background: #232323;
  color: #FDFCFA;
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  border-right: none;
}
 
.contact-left h2 {
  font-family: 'DM Serif Display', serif;
  font-size: 2rem;
  font-style: italic;
}
 
.contact-left p {
  font-size: 0.8rem;
  color: #aaaaaa;
  line-height: 1.6;
}
 
.contact-divider {
  height: 1px;
  background: #404040;
}
 
.contact-close {
  margin-top: auto;
  background: none;
  border: none;
  color: #FDFCFA;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'DM Mono', monospace;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0;
}
 
.contact-right {
  flex: 1;
  padding: 2.5rem 2rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}
 
.contact-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1.25rem;
}
 
.contact-field label,
.contact-field h3 {
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #7a7a7a;
}
 
.contact-field input,
.contact-field textarea,
.contact-field select {
  border: 1px solid #232323;
  background: transparent;
  padding: 0.75rem 1rem;
  border-radius: 6px;
  font-family: 'DM Mono', monospace;
  font-size: 0.8rem;
  color: #232323;
  outline: none;
  transition: border-color 0.2s ease;
  width: 100%;
}
 
.contact-field input:focus,
.contact-field textarea:focus,
.contact-field select:focus {
  border-color: #16382B;
}
 
.contact-field textarea { resize: none; }
 
.contact-row {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.25rem;
}
 
.contact-row .contact-field {
  flex: 1;
  margin-bottom: 0;
}
 
.contact-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.4rem;
}
 
.chip {
  font-family: 'DM Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.4rem 0.9rem;
  border: 1px solid #232323;
  border-radius: 4px;
  cursor: pointer;
  background: transparent;
  color: #232323;
  transition: background 0.15s ease, color 0.15s ease;
}
 
.chip.selected,
.chip:hover {
  background: #232323;
  color: #FDFCFA;
}
 
.contact-open .contact-overlay {
  opacity: 1;
  pointer-events: auto;
}
 
.contact-open .contact-panel {
  transform: translateX(0);
}
 
@media (max-width: 768px) {
  .contact-panel {
    width: 100%;
    flex-direction: column;
  }
  .contact-left {
    width: 100%;
    padding: 1.5rem;
  }
  .contact-close { margin-top: 1rem; }
}
 