/* === Empes — Static Landing Page Styles === */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&family=Inter:wght@300;400;500;600&display=swap');

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

:root {
  --bg: #F7F5F2;
  --surface: #FCFBF8;
  --text: #1C1C1A;
  --secondary: #6E6A64;
  --border: #D9D2C7;
  --sage: #A3B0A0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  line-height: 1.6;
}

section[id] {
  scroll-margin-top: 80px;
}

.font-editorial {
  font-family: 'Cormorant Garamond', Georgia, serif;
}

/* === Layout === */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

@media (min-width: 768px) {
  .container {
    padding-left: 40px;
    padding-right: 40px;
  }
}

/* === Header === */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  transition: background-color 0.5s, box-shadow 0.5s;
}

.site-header.scrolled {
  background-color: rgba(247, 245, 242, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(0,0,0,0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.logo-link {
  display: block;
  text-decoration: none;
}

.logo-link img {
  height: 48px;
  width: 136px;
  object-fit: contain;
  object-position: left;
}

.desktop-nav {
  display: none;
  align-items: center;
  gap: 32px;
}

@media (min-width: 768px) {
  .desktop-nav {
    display: flex;
  }
}

.nav-link {
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--secondary);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
  background: none;
  border: none;
  cursor: pointer;
}

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

.btn-primary {
  display: inline-block;
  padding: 10px 24px;
  background-color: var(--text);
  color: var(--bg);
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 500;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s;
}

.btn-primary:hover {
  background-color: rgba(28, 28, 26, 0.85);
}

.btn-secondary {
  display: inline-block;
  padding: 14px 32px;
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 500;
  text-decoration: none;
  background: none;
  cursor: pointer;
  transition: border-color 0.3s;
}

.btn-secondary:hover {
  border-color: rgba(28, 28, 26, 0.4);
}

/* Mobile menu toggle */
.mobile-toggle {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
}

@media (min-width: 768px) {
  .mobile-toggle {
    display: none;
  }
}

.mobile-toggle span {
  display: block;
  width: 24px;
  height: 1.5px;
  background-color: var(--text);
  transition: transform 0.3s, opacity 0.3s;
  transform-origin: center;
}

.mobile-toggle.open span:nth-child(1) {
  transform: rotate(45deg) translate(4px, 4px);
}
.mobile-toggle.open span:nth-child(2) {
  opacity: 0;
}
.mobile-toggle.open span:nth-child(3) {
  transform: rotate(-45deg) translate(4px, -4px);
}

.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 40;
  background-color: var(--bg);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
}

.mobile-menu.open {
  display: flex;
}

.mobile-menu a {
  font-size: 24px;
  font-weight: 300;
  letter-spacing: 0.02em;
  color: var(--text);
  text-decoration: none;
  transition: color 0.3s;
}

.mobile-menu a:hover {
  color: var(--secondary);
}

/* === Hero === */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(28, 28, 26, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(28, 28, 26, 0.04) 1px, transparent 1px);
  background-size: 80px 80px;
}

.hero-line {
  position: absolute;
  top: 0;
  width: 1px;
  height: 100%;
  background-color: rgba(217, 210, 199, 0.3);
}

.hero-line-left { left: 10%; }
.hero-line-right { right: 10%; }

.hero-content {
  position: relative;
  z-index: 10;
  width: 100%;
  padding-top: 128px;
  padding-bottom: 128px;
}

.hero-eyebrow {
  font-size: 13px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--secondary);
  margin-bottom: 32px;
  font-weight: 500;
}

.hero h1 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--text);
  margin-bottom: 32px;
  max-width: 720px;
}

.hero-paragraph {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--secondary);
  max-width: 540px;
  margin-bottom: 48px;
  font-weight: 300;
}

@media (min-width: 768px) {
  .hero-paragraph {
    font-size: 1.125rem;
  }
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.hero-ctas .btn-primary {
  padding: 14px 32px;
  font-size: 14px;
}

/* === Sections (shared) === */
.section {
  padding-top: 112px;
  padding-bottom: 112px;
}

@media (min-width: 768px) {
  .section {
    padding-top: 144px;
    padding-bottom: 144px;
  }
}

.section-bg { background-color: var(--bg); }
.section-surface { background-color: var(--surface); }

.section-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(1.875rem, 3.5vw, 2.75rem);
  letter-spacing: -0.01em;
  color: var(--text);
  line-height: 1.2;
}

.section-divider {
  width: 64px;
  height: 1px;
  background-color: var(--border);
  margin-top: 24px;
}

/* === Services === */
.services-grid {
  display: grid;
  gap: 32px;
  margin-top: 64px;
}

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

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

.service-card {
  background-color: var(--surface);
  border: 1px solid rgba(217, 210, 199, 0.5);
  padding: 32px;
  transition: border-color 0.5s;
  display: flex;
  flex-direction: column;
}

@media (min-width: 768px) {
  .service-card {
    padding: 28px;
  }
}

@media (min-width: 1024px) {
  .service-card {
    padding: 36px;
  }
}

.service-card:hover {
  border-color: var(--border);
}

.service-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.service-icon {
  flex-shrink: 0;
  color: rgba(110, 106, 100, 0.6);
}

.service-card:hover .service-icon {
  color: rgba(28, 28, 26, 0.7);
}

.service-card h3 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.125rem;
  color: var(--text);
  letter-spacing: -0.01em;
}

@media (min-width: 768px) {
  .service-card h3 {
    font-size: 1.25rem;
  }
}

.service-pitch {
  font-size: 15px;
  line-height: 1.75;
  color: var(--secondary);
  margin-bottom: 24px;
  font-weight: 300;
}

.service-bullets {
  list-style: none;
  padding-top: 20px;
  border-top: 1px solid rgba(217, 210, 199, 0.4);
  margin-top: auto;
}

.service-bullets li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 13px;
  color: rgba(110, 106, 100, 0.8);
  margin-bottom: 10px;
}

.service-bullets li::before {
  content: '';
  display: block;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background-color: var(--border);
  margin-top: 7px;
  flex-shrink: 0;
}

/* === Approach === */
.approach-grid {
  display: grid;
  gap: 48px;
  margin-top: 64px;
}

@media (min-width: 768px) {
  .approach-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
  }
}

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

.approach-step .step-number {
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(110, 106, 100, 0.5);
  font-weight: 500;
}

.approach-step h3 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.5rem;
  color: var(--text);
  margin-top: 12px;
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}

@media (min-width: 768px) {
  .approach-step h3 {
    font-size: 1.75rem;
  }
}

.approach-step p {
  font-size: 15px;
  line-height: 1.8;
  color: var(--secondary);
  font-weight: 300;
}

/* === About === */
.about-copy {
  max-width: 640px;
}

.about-copy p {
  font-size: 15px;
  line-height: 1.85;
  color: var(--secondary);
  font-weight: 300;
  margin-bottom: 24px;
}

@media (min-width: 768px) {
  .about-copy p {
    font-size: 1rem;
  }
}

/* === Contact === */
.contact-grid {
  display: grid;
  gap: 64px;
}

@media (min-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr 1fr;
    gap: 80px;
  }
}

.contact-left h2 {
  margin-bottom: 24px;
}

.contact-left p {
  font-size: 15px;
  line-height: 1.8;
  color: var(--secondary);
  font-weight: 300;
  max-width: 400px;
  margin-bottom: 40px;
}

@media (min-width: 768px) {
  .contact-left p {
    font-size: 1rem;
  }
}

.contact-right {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.contact-item {
  margin-bottom: 32px;
}

.contact-label {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(110, 106, 100, 0.5);
  font-weight: 500;
  margin-bottom: 8px;
}

.contact-value {
  font-size: 1rem;
  color: var(--text);
  text-decoration: none;
  transition: color 0.3s;
}

a.contact-value:hover {
  color: var(--secondary);
}

.contact-social {
  padding-top: 24px;
  border-top: 1px solid rgba(217, 210, 199, 0.5);
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(217, 210, 199, 0.6);
  color: var(--secondary);
  transition: color 0.3s, border-color 0.3s;
  margin-top: 16px;
}

.icon-btn:hover {
  color: var(--text);
  border-color: var(--border);
}

/* === Footer === */
.site-footer {
  background-color: var(--text);
  color: var(--bg);
  padding: 64px 0 64px;
}

@media (min-width: 768px) {
  .site-footer {
    padding: 80px 0 80px;
  }
}

.footer-grid {
  display: grid;
  gap: 48px;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
  }
}

.footer-brand {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  color: rgba(247, 245, 242, 0.9);
}

.footer-desc {
  font-size: 14px;
  color: rgba(247, 245, 242, 0.4);
  font-weight: 300;
  line-height: 1.6;
  max-width: 280px;
}

.footer-heading {
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(247, 245, 242, 0.3);
  font-weight: 500;
  margin-bottom: 20px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  font-size: 14px;
  color: rgba(247, 245, 242, 0.5);
  text-decoration: none;
  transition: color 0.3s;
}

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

.footer-contact-text {
  font-size: 14px;
  color: rgba(247, 245, 242, 0.35);
}

.footer-bottom {
  margin-top: 64px;
  padding-top: 32px;
  border-top: 1px solid rgba(247, 245, 242, 0.08);
}

.footer-bottom p {
  font-size: 12px;
  color: rgba(247, 245, 242, 0.25);
  font-weight: 300;
}

/* === Case Studies Page === */
.page-header {
  background-color: var(--bg);
  border-bottom: 1px solid rgba(217, 210, 199, 0.3);
}

.page-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.back-link {
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--secondary);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}

.back-link:hover {
  color: var(--text);
}

.case-studies-grid {
  display: grid;
  gap: 32px;
  margin-bottom: 80px;
}

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

@media (min-width: 1024px) {
  .case-studies-grid {
    gap: 40px;
  }
}

.case-card {
  background-color: var(--surface);
  border: 1px solid rgba(217, 210, 199, 0.5);
  padding: 32px;
  display: flex;
  flex-direction: column;
  transition: border-color 0.5s;
}

.case-card:hover {
  border-color: var(--border);
}

.case-category {
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(110, 106, 100, 0.5);
  font-weight: 500;
  margin-bottom: 16px;
}

.case-card h2 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.25rem;
  color: var(--text);
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}

@media (min-width: 768px) {
  .case-card h2 {
    font-size: 1.5rem;
  }
}

.case-card p {
  font-size: 15px;
  line-height: 1.75;
  color: var(--secondary);
  font-weight: 300;
}

.explore-links {
  border-top: 1px solid rgba(217, 210, 199, 0.4);
  padding-top: 48px;
}

.explore-label {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(110, 106, 100, 0.5);
  font-weight: 500;
  margin-bottom: 24px;
}

.explore-row {
  display: flex;
  align-items: center;
  gap: 24px;
}

.github-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--secondary);
  text-decoration: none;
  transition: color 0.3s;
  font-size: 14px;
  font-weight: 500;
}

.github-link:hover {
  color: var(--text);
}

/* === Animations === */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-delay-1 { transition-delay: 0.1s; }
.fade-in-delay-2 { transition-delay: 0.2s; }
.fade-in-delay-3 { transition-delay: 0.3s; }
.fade-in-delay-4 { transition-delay: 0.4s; }
.fade-in-delay-5 { transition-delay: 0.5s; }
