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

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue",
    Arial, sans-serif;
  background-color: #ffffff;
  color: #000000;
}

.page-wrapper {
  max-width: 1400px;
  margin: 40px auto 80px;
  padding: 0 40px;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}


/* Header */
.site-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 5%;
}

.site-title {
  display: flex;
  align-items: baseline;
}

.site-title h1 {
  margin: 0;
  font-size: 72px;
  letter-spacing: 0.04em;
  font-weight: 900;
}

.site-title .tagline {
  margin-left: 15px;
    letter-spacing: -0.05em;
  font-size: 25px;
}

.contact-button {
  border: 1px solid #000;
  padding: 8px 40px;
  text-decoration: none;
  margin-top: 2%;
  color: #000;
  font-size: 12px;
  text-transform: lowercase;
}

/* Section labels */
.section-label {
  font-size: 20px;
    letter-spacing: 0.15em;
  margin: 0 0 20px;
}

/* Work section */
.work-inner {
  max-width: 1200px;   /* same width as your grid */
  margin: 0 auto;     /* centers heading + grid together */
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 8%;
}

.work-item {
  position: relative;
  width: 100%;
  padding-top: 100%;
  overflow: hidden;
}


/* Image must sit behind overlay */
.work-item img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;              /* sits below overlay */
}

/* Overlay sits on top */
.work-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  color: #ffffff;
  opacity: 0;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 16px;
  font-size: 12px;
  transition: opacity 0.2s ease;
  z-index: 2;              /* sits above image */
}

/* Hover shows overlay */
.work-item:hover .work-overlay {
  opacity: 1;
}
.about-section {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
  margin-top: 60px;
  padding-right:120px;
  max-width: 1200px;   /* same width as your grid */
  margin: 0 auto;     /* centers heading + grid together */
}

.work-link {
  display: block;
  text-decoration: none; /* remove underline */
  color: inherit;        /* preserve text color in overlay */
}

.about-text {
  flex: 0 1 400px;    /* grows a little, capped at 400px */
  min-width: 0;       /* prevents overflow */
}

.about-text h2 {
  margin: 0 0 16px;
  font-size: 20px;
  letter-spacing: 0.15em;
}

.about-text p {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
}

.about-image {
  flex: 0 0 auto;     /* photo stays its natural width */
}

.about-image img {
  display: block;
  max-width: 300px;   /* YOUR chosen size */

  width: 100%;
  height: auto;
}

/* Mobile stacked layout */
@media (max-width: 700px) {
  .about-section {
    flex-direction: column;
    gap: 20px;
  }

  .about-text,
  .about-image {
    flex: none;
    width: 100%;
  }

  .about-image img {
    max-width: 100%;
  }
}

/* Contact section */
.contact-section {
  margin-top: 80px;
  margin-bottom: 80px;
}

.contact-inner {
  max-width: 640px;      /* matches work grid width */
  margin: 0 auto;
}

.contact-heading {
  font-size: 20px;
    letter-spacing: 0.15em;
  margin: 0 0 20px;
}

.contact-form {
  margin-left: 0;
}

.form-row {
  margin-bottom: 16px;
}

.form-row label {
  display: block;
  font-size: 12px;
  margin-bottom: 4px;
}

.form-row input,
.form-row textarea {
  width: 100%;
  border: 1px solid #000;
  padding: 8px;
  font-size: 12px;
  font-family: inherit;
  background-color: #fff;
}

.form-status {
  margin-top: 12px;
  font-size: 12px;
}


/* Submit button styled like the header contact button */
.contact-submit {
  border: 1px solid #000;
  background: #fff;
  padding: 8px 40px;
  font-size: 12px;
  text-transform: lowercase;
  cursor: pointer;
}

.contact-submit:hover {
  background: #000;
  color: #fff;
}

/* ---------- Mobile tweaks ---------- */
@media (max-width: 600px) {
  /* Make header stack and shrink H1 */
  .site-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }

  .site-title {
    flex-direction: column;    /* tagline below the name */
    align-items: flex-start;
  }

  .site-title h1 {
    font-size: 40px;           /* 75% of original 32px */
    line-height: 1.1;
  }

  .site-title .tagline {
    margin-left: 0;            /* no side-by-side spacing */
    margin-top: 4px;
  }

  /* Keep contact button on-screen */
  .contact-button {
    align-self: flex-start;
    padding: 6px 24px;
    max-width: 100%;
  }

  /* 2-wide image grid on mobile */
  .work-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

