/* ── Reset ────────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
img { display: block; max-width: 100%; }
ul { list-style: none; }

/* ── Tokens ───────────────────────────────────────────────────────────────── */
:root {
  --bg:        #FAF0DE;
  --ink:       #1a1a1a;
  --ink-muted: #555;
  --accent:    #1a1a1a;
  --btn-bg:    #1a1a1a;
  --btn-fg:    #FAF0DE;
  --border:    rgba(0,0,0,0.10);
  --radius:    6px;
  --gap:       2.5rem;
  --max:       740px;
  --font:      'Inter', system-ui, sans-serif;
}

/* ── Base ─────────────────────────────────────────────────────────────────── */
html { font-size: 16px; scroll-behavior: smooth; }

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

/* ── Layout wrapper ───────────────────────────────────────────────────────── */
header, main, footer {
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: 1.5rem;
}

/* ── Hero ─────────────────────────────────────────────────────────────────── */
.hero {
  padding-top: 4rem;
  padding-bottom: 3rem;
}

.name-lockup {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.45;
  margin-bottom: 2rem;
}

.name-first { margin-right: 0.4em; }

.hero-inner {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
}

.hero-photos {
  display: flex;
  flex-direction: row;
  align-items: flex-end;
  gap: 0.6rem;
  flex-shrink: 0;
}

.hero-photo {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 3px solid var(--border);
  display: block;
}

/* JJ logo — slightly smaller, sits beside the photo */
.hero-photo--logo {
  width: 68px;
  height: 68px;
  opacity: 0.9;
}

.hero-text h1 {
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 1.25rem;
}

.hero-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

/* ── Buttons / pills ──────────────────────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: 0.45em 1.1em;
  background: var(--btn-bg);
  color: var(--btn-fg);
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: opacity 0.15s;
}
.btn:hover { opacity: 0.75; }

/* ── Sections ─────────────────────────────────────────────────────────────── */
.section {
  padding-top: var(--gap);
  padding-bottom: var(--gap);
  border-top: 1px solid var(--border);
}

.section h2 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
}

.section h3 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  opacity: 0.65;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ── Bio ──────────────────────────────────────────────────────────────────── */
.bio-body p {
  color: var(--ink-muted);
  margin-bottom: 1rem;
}
.bio-body p:last-child { margin-bottom: 0; }

/* ── Projects grid ────────────────────────────────────────────────────────── */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}

.project-card {
  background: rgba(0,0,0,0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem 1.25rem;
  transition: background 0.15s;
}
.project-card:hover { background: rgba(0,0,0,0.07); }

.project-name {
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 0.35rem;
}
.project-name a {
  color: var(--ink);
  text-decoration: none;
}
.project-name a:hover { text-decoration: underline; }

.project-desc {
  font-size: 0.85rem;
  color: var(--ink-muted);
  line-height: 1.5;
}

/* ── Current Effort 2-col layout ─────────────────────────────────────────── */
#js-current-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 2rem;
}

/* Expandable items (those containing a <details>) go full width */
#js-current-list li:has(details) {
  grid-column: 1 / -1;
}

@media (max-width: 520px) {
  #js-current-list { grid-template-columns: 1fr; }
}

/* ── Plain lists ──────────────────────────────────────────────────────────── */
.plain-list li {
  padding: 0.3rem 0;
  font-size: 0.95rem;
  color: var(--ink-muted);
  border-bottom: 1px solid var(--border);
}
.plain-list li:last-child { border-bottom: none; }
.plain-list li a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.plain-list li a:hover { opacity: 0.6; }
.plain-list li.item--bold { font-weight: 700; color: var(--ink); }

/* ── Expandable items ─────────────────────────────────────────────────────── */
.plain-list li details { width: 100%; }

.expand-summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.95rem;
  color: var(--ink-muted);
  padding: 0;
  user-select: none;
}
.expand-summary::-webkit-details-marker { display: none; }
.expand-summary::after {
  content: '+';
  font-size: 0.85rem;
  opacity: 0.45;
  margin-left: auto;
  transition: transform 0.2s;
  flex-shrink: 0;
}
details[open] .expand-summary::after {
  content: '−';
}
.expand-summary--bold { font-weight: 700; color: var(--ink); }
.expand-link {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.expand-link:hover { opacity: 0.6; }

.expand-body {
  font-size: 0.88rem;
  color: var(--ink-muted);
  line-height: 1.55;
  margin-top: 0.5rem;
  padding-bottom: 0.25rem;
}

/* ── Film titles in Recognition ───────────────────────────────────────────── */
.section h3.film-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  text-transform: none;
  letter-spacing: 0;
  opacity: 1;
}

/* ── Social ───────────────────────────────────────────────────────────────── */
.section--social {
  display: flex;
  justify-content: center;
}
.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
}

/* ── Contact form ─────────────────────────────────────────────────────────── */
.contact-form { display: flex; flex-direction: column; gap: 0.85rem; }

.contact-form input,
.contact-form textarea {
  width: 100%;
  background: rgba(0,0,0,0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.7rem 0.9rem;
  font-family: var(--font);
  font-size: 0.95rem;
  color: var(--ink);
  transition: border-color 0.15s;
  outline: none;
}
.contact-form input:focus,
.contact-form textarea:focus { border-color: var(--ink); }

.contact-form textarea { resize: vertical; }

.contact-form button {
  align-self: flex-start;
  padding: 0.6em 1.5em;
  background: var(--btn-bg);
  color: var(--btn-fg);
  border: none;
  border-radius: 999px;
  font-family: var(--font);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.15s;
}
.contact-form button:hover   { opacity: 0.75; }
.contact-form button:disabled { opacity: 0.4; cursor: not-allowed; }

/* honeypot */
.hp-field { position: absolute; left: -9999px; opacity: 0; pointer-events: none; }

.form-status { font-size: 0.9rem; min-height: 1.4em; }
.form-status--ok  { color: #2d7a2d; }
.form-status--err { color: #b22222; }

/* ── Footer ───────────────────────────────────────────────────────────────── */
.site-footer {
  padding-top: 2rem;
  padding-bottom: 3rem;
  text-align: center;
  font-size: 0.8rem;
  color: var(--ink-muted);
  border-top: 1px solid var(--border);
}

/* ── Responsive ───────────────────────────────────────────────────────────── */
@media (max-width: 520px) {
  .hero-inner { flex-direction: column; align-items: center; text-align: center; }
  .hero-links  { justify-content: center; }
  .projects-grid { grid-template-columns: 1fr; }
}
