/* ============================================
   PIXPARA LLC — STYLESHEET
   Fonts: Syne (headings) · DM Sans (body) · IBM Plex Mono (labels)
   ============================================ */

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

/* === VARIABLES === */
:root {
  --bg:           #F8F7F3;
  --bg-alt:       #FFFFFF;
  --text:         #1A1918;
  --text-muted:   #6B6A65;
  --accent:       #1D3F8A;
  --border:       #E5E3DD;

  --font-heading: 'DM Serif Display', serif;
  --font-body:    'DM Sans', sans-serif;
  --font-mono:    'IBM Plex Mono', monospace;

  --max-width:    1080px;
  --header-h:     64px;
  --radius:       3px;
  --transition:   180ms ease;
}

/* === BASE === */
html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

/* === LAYOUT === */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

.section {
  padding: 6rem 0;
}

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

.section-header {
  margin-bottom: 3.5rem;
}

.section-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.section-header h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 3vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text);
}

/* === HEADER === */
#header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  border-bottom: 1px solid transparent;
  transition: background var(--transition), border-color var(--transition), backdrop-filter var(--transition);
}

#header.scrolled {
  background: rgba(248, 247, 243, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-color: var(--border);
}

.nav-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text);
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  align-items: center;
}

.nav-links a {
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--text-muted);
  letter-spacing: 0.01em;
  transition: color var(--transition);
}

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

/* Mobile toggle button */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--text);
  transform-origin: center;
  transition: transform 200ms ease, opacity 200ms ease;
}

.nav-toggle.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* === HERO === */
#hero {
  min-height: 100vh;
  padding-top: var(--header-h);
  display: flex;
  align-items: flex-start;
  position: relative;
  overflow: hidden;
  background-image: radial-gradient(circle, rgba(160, 158, 150, 0.3) 1px, transparent 1px);
  background-size: 26px 26px;
}

/* Bottom fade for the dot grid */
#hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 180px;
  background: linear-gradient(to bottom, transparent, var(--bg));
  pointer-events: none;
}

.hero-inner {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 7rem 2rem 6rem;
  position: relative;
  z-index: 1;
}

.hero-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.75rem;
}

.hero-label::before {
  content: '';
  display: block;
  width: 20px;
  height: 1px;
  background: var(--accent);
  opacity: 0.6;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(1.9rem, 3vw, 2.75rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--text);
  margin-bottom: 1.5rem;
  max-width: 680px;
}

.hero-subtitle {
  font-size: clamp(0.95rem, 1.8vw, 1.1rem);
  font-weight: 300;
  color: var(--text-muted);
  line-height: 1.8;
  max-width: 560px;
  margin-bottom: 2.75rem;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  background: var(--text);
  color: var(--bg);
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.8rem 1.75rem;
  border-radius: var(--radius);
  letter-spacing: 0.01em;
  transition: opacity var(--transition), transform var(--transition);
}

.btn-primary:hover {
  opacity: 0.82;
  transform: translateY(-1px);
}

/* === SERVICES === */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.service-card {
  background: var(--bg);
  padding: 2.5rem;
  transition: background var(--transition);
}

.service-card:hover {
  background: var(--bg-alt);
}

.service-num {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 1.25rem;
  opacity: 0.8;
}

.service-card h3 {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
  margin-bottom: 0.75rem;
  line-height: 1.35;
}

.service-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.75;
}

/* === ABOUT === */
.about-content {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 5rem;
  align-items: start;
}

.about-text p {
  font-size: 0.975rem;
  color: var(--text-muted);
  line-height: 1.85;
  margin-bottom: 1.25rem;
}

.about-text p:last-child {
  margin-bottom: 0;
}

.about-lead {
  color: var(--text) !important;
  font-size: 1.05rem !important;
  font-weight: 400;
}

.about-stack h4 {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.stack-list {
  border-top: 1px solid var(--border);
}

.stack-list li {
  font-size: 0.875rem;
  color: var(--text);
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--border);
  font-weight: 400;
  letter-spacing: 0.005em;
}

/* === OWN DEVELOPMENT BAND === */
.band-content {
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: 5rem;
  align-items: start;
}

.band-left h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--text);
  line-height: 1.3;
  margin-top: 0.75rem;
}

.band-right p {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.85;
  padding-top: 0.25rem;
}


.contact-content {
  max-width: 500px;
}

.contact-content > p:first-child {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 2rem;
}

.contact-email {
  display: block;
  font-family: var(--font-mono);
  font-size: 1.1rem;
  color: var(--accent);
  margin-bottom: 1.25rem;
  position: relative;
  width: fit-content;
  transition: opacity var(--transition);
}

.contact-email::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--accent);
  opacity: 0.4;
  transition: opacity var(--transition);
}

.contact-email:hover {
  opacity: 0.7;
}

.contact-email:hover::after {
  opacity: 0.7;
}

.contact-note {
  font-size: 0.84rem;
  color: var(--text-muted);
  font-style: italic;
}

/* === FOOTER === */
#footer {
  background: var(--text);
  padding: 1.75rem 0;
}

#footer p {
  font-size: 0.8rem;
  color: rgba(248, 247, 243, 0.45);
  letter-spacing: 0.01em;
}

/* === SCROLL ANIMATIONS === */
.fade-up {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

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

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .section {
    padding: 4rem 0;
  }

  .section-header {
    margin-bottom: 2.5rem;
  }

  /* Mobile nav */
  .nav-links {
    display: none;
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--bg);
    flex-direction: column;
    align-items: flex-start;
    padding: 1.5rem 2rem 2rem;
    gap: 1.25rem;
    border-bottom: 1px solid var(--border);
    z-index: 99;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    font-size: 1rem;
    color: var(--text);
  }

  .nav-toggle {
    display: flex;
  }

  /* Hero adjustments */
  .hero-inner {
    padding: 3rem 1.5rem 5rem;
  }

  /* Services: single column */
  .services-grid {
    grid-template-columns: 1fr;
  }

  .band-content {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  /* About: stack */
  .about-content {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 1.25rem;
  }

  .service-card {
    padding: 1.75rem 1.5rem;
  }

  .contact-email {
    font-size: 0.95rem;
  }
}
