:root {
  --bg: #0b0c10;
  --surface: #FFFFF0;
  --text: #333333;
  --heading: #1338BE;
  --accent: #1338BE;
  --muted: #555555;
  --banner: #FFFFF0;
}

* {
  box-sizing: border-box;
}

html {
  font-size: 18px;
}

body {
  margin: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

/* ===== HEADER ===== */

.site-header {
  text-align: center;
  padding: 1.5rem 1rem 1rem;
  background-color: var(--banner);
  border-bottom: 4px solid var(--heading);
}

.logo {
  width: 47.5%;
  max-width: 700px;
  height: auto;
  margin-bottom: 0.75rem;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.subtitle {
  margin: 0;
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 4px;
  font-weight: 700;
}

/* ===== PROJECTS ===== */

.projects {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 2rem 5rem;
  display: flex;
  flex-direction: column;
  gap: 4rem;
}

.project-card {
  background-color: var(--surface);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
}

.image-wrap {
  width: 100%;
}

.project-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.project-info {
  padding: 2rem;
}

.project-info h2 {
  margin: 0 0 0.5rem;
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: var(--heading);
}

.project-meta {
  margin: 0 0 0.25rem;
  color: var(--accent);
  font-weight: 700;
  font-size: clamp(1.1rem, 2.5vw, 1.75rem);
}

.project-status {
  margin: 0 0 1.5rem;
  color: var(--accent);
  font-weight: 700;
  font-size: clamp(1.1rem, 2.5vw, 1.75rem);
}

.logline {
  margin: 0;
  font-size: clamp(1.25rem, 3vw, 2rem);
  color: var(--text);
  line-height: 1.7;
}

/* ===== FOOTER ===== */

footer {
  text-align: center;
  padding: 3rem 1rem;
  background-color: var(--banner);
  border-top: 4px solid var(--heading);
}

.contact {
  margin: 0 0 0.75rem;
  color: var(--heading);
  font-weight: 700;
  white-space: nowrap;
  font-size: clamp(0.5rem, 2.8vw, 1.4rem);
}

.contact a {
  color: var(--heading);
  text-decoration: none;
}

.contact a:hover {
  text-decoration: underline;
}

footer p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: clamp(0.95rem, 2vw, 1.15rem);
}

/* ===== MOBILE (under 900px) ===== */
@media (max-width: 899px) {
  .projects {
    padding: 3rem 1rem 5rem;
  }

  .project-meta {
    font-size: clamp(0.6rem, 3vw, 1.25rem);
    white-space: nowrap;
  }
}

/* ===== DESKTOP / TABLET (900px and up) ===== */
/* Images: 50% width, 16:9, uniform size */
/* Text: 50% width, smaller to fit 16:9 height */
/* All cards same height via stretch + JS equalizer */
@media (min-width: 900px) {
  .project-card {
    flex-direction: row;
    align-items: stretch;
  }

  .image-wrap {
    width: 50%;
    flex-shrink: 0;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    display: flex;
  }

  .project-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .project-info {
    width: 50%;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 1.5rem;
    overflow: visible;
  }

  .project-info h2 {
    font-size: clamp(1.1rem, 1.8vw, 1.6rem);
  }

  .project-meta {
    font-size: clamp(0.7rem, 1vw, 0.95rem);
  }

  .project-status {
    font-size: clamp(0.7rem, 1vw, 0.95rem);
    margin-bottom: 0.75rem;
  }

  .logline {
    font-size: clamp(0.75rem, 1.1vw, 1.05rem);
    line-height: 1.5;
  }
}
