:root {
  --bg: #fafafa;
  --text: #1a1a1a;
  --muted: rgba(0, 0, 0, 0.65);
  --accent: #1f4e79;
  --max: 800px;
  --header-max: calc(var(--max) * 1.2);
  --font: Inter, ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  font-weight: 300;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { width: min(92vw, var(--max)); margin: 0 auto; padding: 0 16px; }

.site-header .container {
  width: min(92vw, var(--header-max));
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 9999;
  background: var(--bg);

  /* keep your old look */
  padding: 24px 0;
  font-weight: 500;

  /* shadow starts off */
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0);
  transition: box-shadow 400ms ease-out;
}

body.scrolled .site-header {
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.name { font-weight: 600; font-size: 30px; color: inherit; text-decoration: none; }
.name:hover { text-decoration: none; color: inherit; }

.nav a[aria-current="page"] {
  text-decoration: underline;
  text-underline-offset: 4px;
}
.nav {
  display: flex;
  gap: 16px;
  font-size: 14px;
}
.nav a {
  color: var(--muted);
}
.nav a:hover {
  color: var(--text);
}

main { padding: 32px 0 48px; }

#work {
  margin-top: 12px; /* try 12–24px */
}

.intro { margin-bottom: 32px; }
.lead { color: var(--muted); font-size: 16px; margin: 0; }

.body-text {
  color: var(--muted);
  font-size: 15px;
}

h2 { font-size: 16px; font-weight: 500; margin: 0 0 12px; letter-spacing: 0.05em; color: var(--muted); }

.work-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.work-list li {
  padding: 12px 0;
  font-size: 15px;
  color: var(--muted);
}
.work-list li:last-child { border-bottom: 0; }
.work-list strong { color: var(--text); font-weight: 500; }
.work-list a {font-size: inherit; }

.work-list-documentary .work-item {
  display: flex;
  gap: 16px;
  align-items: center;
}

.poster-placeholder {
  width: 220px;
  height: 330px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: var(--muted);
  flex-shrink: 0;
}

.poster-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 4px;
  display: block;
}

.work-text {
  flex: 1;
}

.about-photo {
  width: 100%;
  max-width: 800px;
  max-height: 260px;
  object-fit: cover;
  object-position: center 15%;
  display: block;
  margin: 0 auto 16px auto;
  border-radius: 0;
}

.about-resume {
  text-align: center;
  margin: 40px 0 0;
}

#about { padding-top: 50px; }
#about {
  padding-bottom: 80px;
}

section + section {
  margin-top: 32px;
}

.portfolio-cta {
  margin-top: 40px;
  padding-bottom: 32px;
  text-align: center;
}
.portfolio-cta p {
  margin: 0 0 12px;
}
.portfolio-note {
  color: var(--muted);
  font-size: 15px;
}
.button {
  display: inline-block;
  padding: 10px 18px;
  border-radius: 6px;
  border: 1px solid rgba(0, 0, 0, 0.25);
  background: rgba(0, 0, 0, 0.06);
  color: var(--text);
  font-size: 14px;
  font-weight: 400;
}
.button:hover {
  background: rgba(0, 0, 0, 0.1);
  text-decoration: none;
}

.contact-layout {
  display: flex;
  align-items: center;
  gap: 32px;
  width: 100%;
  max-width: var(--max);
  text-align: left;

  flex-direction: row-reverse;
}

.contact-photo-wrap {
  flex: 0 0 66%;
  max-width: 66%;
}

.contact-photo {
  width: 100%;
  max-height: 455px;
  object-fit: cover;
  object-position: center 15%;
  display: block;
  border-radius: 0;
}

#contact {
  padding-top: 50px; /* match About */
}

.photo-block {
  margin: 0 auto 16px auto; /* keep your current centering vibe */
  max-width: 800px;        /* matches your about-photo max-width */
}

.photo-caption {
  margin-top: 2px;
  font-size: 12px;         /* small caption */
  line-height: 1.0;
  color: var(--muted);
  text-align: right;
}

.contact-page .photo-caption { margin-top: 8px; }

.contact-text {
  flex: 1;
}

.contact-text .body-text { margin: 0; }

#contact p { margin: 0; color: var(--muted); }
#contact a { color: var(--accent); }

@media (max-width: 700px) {
  .contact-layout {
    flex-direction: column;   /* keep stacking */
    align-items: center;      /* center the whole stack */
  }

  /* Make image + text use the same column width */
  .contact-photo-wrap,
  .contact-text {
    width: 100%;
    max-width: 800px;         /* match your photo-block/about-photo max */
  }

  /* Make sure text content is left-aligned within that column */
  .contact-text {
    text-align: left;
  }
}

.site-footer {
  padding: 20px 0;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  color: var(--muted);
  font-size: 13px;
}

@media (max-width: 430px) { /* iPhone 12 width is 390px CSS */
  .poster-placeholder {
    width: 140px;
    height: 210px;
  }

  .work-list-documentary .work-item {
    gap: 16px; /* was 32px */
    align-items: flex-start;
  }
}

@media (max-width: 430px) { /* iPhone 12 is 390px CSS width */
  .header-row {
    flex-wrap: nowrap;
    align-items: baseline;
  }

  .name {
    font-size: 24px;        /* was 30px */
    white-space: nowrap;
  }

  .nav {
    gap: 12px;              /* was 16px */
    font-size: 13px;        /* was 14px */
    white-space: nowrap;
  }
}