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

:root {
  --bg-dark: #1a1a1a;
  --text-light: #ffffff;
  --text-gray: #888;
  --spacing-unit: 8px;
}

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

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  padding: calc(var(--spacing-unit) * 4) calc(var(--spacing-unit) * 6);
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  background: linear-gradient(to bottom, rgba(26, 26, 26, 0.9) 0%, rgba(26, 26, 26, 0) 100%);
}

.logo {
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 300;
  letter-spacing: 0.02em;
}

.tagline {
  font-size: clamp(12px, 1.5vw, 18px);
  font-weight: 400;
  letter-spacing: 0.05em;
}

.hero {
  min-height: 100vh;
  display: flex;
  align-items: flex-start; /* Snaps it back to the top so we can push it down */
  padding: calc(var(--spacing-unit) * 6);
  padding-top: 27vh; /* This pushes it 35% down the screen. */
}

.hero-title {
  font-size: clamp(60px, 12vw, 180px);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: -0.02em;
  display: flex;
  flex-direction: column;
  
  /* The layout magic is here */
  text-align: left; /* Keeps the text straight on the left edge */
  width: 100%;
  max-width: 1400px; /* Limits the width to match your Philosophy/Projects sections */
  margin: 0 auto; /* Centers the 1400px invisible box perfectly on the screen */
  position: relative;
  left: -7px;
}

.hero-line {
  display: block;
}

section {
  min-height: 100vh;
  padding: calc(var(--spacing-unit) * 12) calc(var(--spacing-unit) * 6);
  display: flex;
  flex-direction: column;
}

.section-title {
  font-size: clamp(60px, 10vw, 140px);
  font-weight: 400;
  letter-spacing: 0.02em;
  margin-bottom: calc(var(--spacing-unit) * 10);
  text-align: center;
}

.projects {
  justify-content: center;
}
.project-logo {
  max-width: 100%; 
  height: auto; 
  max-height: 60px; 
  object-fit: contain; 
  
  /* ADD THESE TWO NEW LINES: */
  object-position: left center; /* Forces the image itself to anchor to the left */
  margin-right: auto; /* Pushes the entire image block to the left edge */
  
  display: block; 
}

/* Custom nudges to fix invisible PNG padding */
.nudge-tele2 {
  position: relative;
  left: -5px; /* Dial this number to fix TELE2 */
  top: -15px;
}

.nudge-rw {
  position: relative;
  left: -15px; /* Dial this number to fix rw */
}

.nudge-reede {
  position: relative;
  left: -18px; /* Dial this number to fix Reede */
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: calc(var(--spacing-unit) * 8);
  margin-bottom: calc(var(--spacing-unit) * 15);
  max-width: 1400px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.project-item {
  display: flex;
  flex-direction: column;
  gap: calc(var(--spacing-unit) * 1);
}

.project-name {
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 400;
  letter-spacing: -0.01em;
  margin-bottom: calc(var(--spacing-unit) * 1);
}

.project-label {
  font-size: clamp(12px, 1.2vw, 16px);
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: calc(var(--spacing-unit) * 1);
}

.project-links {
  display: flex;
  gap: calc(var(--spacing-unit) * 2);
}

.project-link {
  color: var(--text-light);
  text-decoration: none;
  font-size: clamp(14px, 1.5vw, 20px);
  font-weight: 400;
  transition: opacity 0.3s ease;
  cursor: pointer;
}

.project-link:hover {
  opacity: 0.6;
}

.projects-description {
  font-size: clamp(14px, 1.8vw, 20px);
  line-height: 1.6;
  max-width: 1400px;
  margin: 0 auto;
  font-weight: 300;
}

.services {
  justify-content: center;
}

.services-content {
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: calc(var(--spacing-unit) * 8);
}

.services-description {
  font-size: clamp(16px, 2vw, 24px);
  line-height: 1.6;
  font-weight: 300;
}

.services-items {
  display: flex;
  flex-wrap: wrap;
  gap: calc(var(--spacing-unit) * 4);
  align-items: center;
}

.service-item {
  font-size: clamp(16px, 2vw, 24px);
  font-weight: 400;
  letter-spacing: 0.02em;
}

.philosophy {
  justify-content: center;
  align-items: flex-start;
  min-height: 60vh;
}

.philosophy-content {
  max-width: 1400px; /* Changed from 1000px to match your other sections */
  width: 100%;
  margin: 0 auto; /* This forces it to align with the rest of the page */
}

.philosophy-text {
  font-size: clamp(16px, 2vw, 22px);
  line-height: 1.8;
  font-weight: 300;
}

.footer {
  min-height: auto;
  padding: calc(var(--spacing-unit) * 8) calc(var(--spacing-unit) * 6);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
}

.footer-left {
  display: flex;
  flex-direction: column;
  gap: calc(var(--spacing-unit) * 1);
}

.footer-contact-label {
  font-size: clamp(14px, 1.5vw, 18px);
  font-weight: 400;
}

.footer-email {
  font-size: clamp(14px, 1.5vw, 18px);
  font-weight: 400;
  color: var(--text-light);
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.footer-email:hover {
  opacity: 0.6;
}

.footer-copyright {
  font-size: clamp(12px, 1.2vw, 14px);
  font-weight: 300;
  color: var(--text-gray);
  margin-top: calc(var(--spacing-unit) * 4);
}

.footer-logo {
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 300;
  letter-spacing: 0.02em;
}

@media (max-width: 768px) {
  .header {
    padding: calc(var(--spacing-unit) * 3) calc(var(--spacing-unit) * 4);
  }

  .hero {
    align-items: flex-start; 
    padding: calc(var(--spacing-unit) * 4);
    padding-top: 35vh; /* Increase this number to push it lower! Try 30vh or 35vh */
  }

  section {
    padding: calc(var(--spacing-unit) * 8) calc(var(--spacing-unit) * 4);
  }

  .section-title {
    margin-bottom: calc(var(--spacing-unit) * 6);
  }

  .projects-grid {
    grid-template-columns: 1fr;
    gap: calc(var(--spacing-unit) * 6);
    margin-bottom: calc(var(--spacing-unit) * 8);
  }

  .services-description br {
    display: none;
  }

  .philosophy-text br {
    display: none;
  }

  .footer-content {
    flex-direction: column;
    align-items: flex-start;
    gap: calc(var(--spacing-unit) * 6);
  }
}

@media (max-width: 480px) {
  .projects-grid {
    gap: calc(var(--spacing-unit) * 5);
  }

  .services-items {
    flex-direction: column;
    align-items: flex-start;
    gap: calc(var(--spacing-unit) * 2);
  }
}
