/* ============================================================
   RALF SAADE — SITE STYLESHEET
   One file controls the whole site. Colours & fonts below.
   ============================================================ */

:root {
  --bg: #faf9f7;
  --ink: #1a1a1a;
  --muted: #6b6b6b;
  --line: #e4e1db;
  --accent: #b3541e;       /* warm rust — change for a new accent colour */
  --max: 1100px;
  --serif: Georgia, 'Times New Roman', serif;
  --sans: -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

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

img { max-width: 100%; display: block; }
a { color: inherit; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* ---------- Header ---------- */
header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(250,249,247,.92); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav {
  max-width: var(--max); margin: 0 auto; padding: 18px 24px;
  display: flex; justify-content: space-between; align-items: baseline; gap: 24px;
}
.nav .logo { font-family: var(--serif); font-size: 1.25rem; text-decoration: none; letter-spacing: .02em; }
.nav ul { list-style: none; display: flex; gap: 28px; }
.nav ul a { text-decoration: none; font-size: .92rem; color: var(--muted); letter-spacing: .04em; text-transform: uppercase; }
.nav ul a:hover, .nav ul a.active { color: var(--ink); }

/* ---------- Hero ---------- */
.hero { padding: 90px 0 60px; }
.hero h1 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(2rem, 5vw, 3.4rem); line-height: 1.15; max-width: 18ch;
}
.hero p.lede { margin-top: 24px; max-width: 58ch; color: var(--muted); font-size: 1.1rem; }
.hero .roles { margin-top: 16px; font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }

/* ---------- Section headings ---------- */
.section { padding: 60px 0; }
.section > .wrap > h2, h2.sec {
  font-family: var(--serif); font-weight: 400; font-size: 1.6rem;
  margin-bottom: 32px; padding-bottom: 12px; border-bottom: 1px solid var(--line);
}

/* ---------- Project cards ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 40px 32px; }
.card { text-decoration: none; }
.card .thumb { aspect-ratio: 4/3; overflow: hidden; background: var(--line); }
.card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card:hover .thumb img { transform: scale(1.04); }
.card .tag { margin-top: 14px; font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.card h3 { font-family: var(--serif); font-weight: 400; font-size: 1.25rem; margin-top: 4px; }
.card p { color: var(--muted); font-size: .95rem; margin-top: 4px; }

/* ---------- Project page ---------- */
.project-head { padding: 70px 0 30px; }
.project-head .tag { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.project-head h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(1.9rem, 4vw, 2.8rem); margin-top: 8px; }
.project-head .sub { color: var(--muted); font-size: 1.1rem; margin-top: 10px; font-style: italic; }
.project-body { max-width: 720px; }
.project-body p { margin-bottom: 1.2em; }
.project-body blockquote {
  font-family: var(--serif); font-style: italic; font-size: 1.2rem;
  border-left: 3px solid var(--accent); padding-left: 20px; margin: 2em 0; color: var(--ink);
}
.btn {
  display: inline-block; margin: 10px 0 30px; padding: 12px 26px;
  border: 1px solid var(--ink); text-decoration: none; font-size: .88rem;
  letter-spacing: .08em; text-transform: uppercase; transition: all .25s;
}
.btn:hover { background: var(--ink); color: var(--bg); }

/* ---------- Gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; margin: 40px 0; }
.gallery img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/3; }
.gallery img.tall { grid-row: span 2; aspect-ratio: auto; }

/* ---------- Credits ---------- */
.credits { border-top: 1px solid var(--line); margin-top: 40px; padding-top: 24px; font-size: .92rem; color: var(--muted); max-width: 720px; }
.credits strong { color: var(--ink); font-weight: 600; }

/* ---------- Prev / next ---------- */
.pn { display: flex; justify-content: space-between; border-top: 1px solid var(--line); margin-top: 60px; padding: 30px 0; }
.pn a { text-decoration: none; color: var(--muted); font-size: .95rem; }
.pn a:hover { color: var(--ink); }

/* ---------- About ---------- */
.about-cols { display: grid; grid-template-columns: 2fr 1fr; gap: 60px; }
.about-cols h3 { font-family: var(--serif); font-weight: 400; font-size: 1.15rem; margin: 28px 0 8px; }
.about-cols ul { list-style: none; color: var(--muted); font-size: .95rem; }
.about-cols li { padding: 3px 0; }
@media (max-width: 760px) { .about-cols { grid-template-columns: 1fr; } }

/* ---------- Contact band ---------- */
.contact-band { padding: 80px 0; text-align: center; border-top: 1px solid var(--line); }
.contact-band h2 { font-family: var(--serif); font-weight: 400; font-size: 1.9rem; }
.contact-band a.mail { display: inline-block; margin-top: 12px; font-size: 1.1rem; color: var(--accent); }

/* ---------- Footer ---------- */
footer { border-top: 1px solid var(--line); padding: 32px 0; }
footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; color: var(--muted); font-size: .88rem; }
footer .social { display: flex; gap: 20px; }
footer .social a { text-decoration: none; color: var(--muted); }
footer .social a:hover { color: var(--ink); }

@media (max-width: 600px) {
  .nav ul { gap: 16px; }
  .hero { padding: 60px 0 40px; }
}

/* ---------- Lightbox ---------- */
.lb { position: fixed; inset: 0; background: rgba(15,14,12,.94); z-index: 100; display: none; }
.lb.on { display: block; }
.lb-stage { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.lb-stage img { max-width: 92vw; max-height: 90vh; transition: transform .08s linear; user-select: none; -webkit-user-drag: none; }
.lb button { position: absolute; z-index: 2; background: none; border: none; color: #eae7e1; font-size: 2rem; cursor: pointer; padding: 14px 20px; opacity: .7; }
.lb button:hover { opacity: 1; }
.lb-close { top: 8px; right: 12px; font-size: 2.4rem; }
.lb-prev { left: 6px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 6px; top: 50%; transform: translateY(-50%); }
.lb-count { position: absolute; bottom: 16px; left: 24px; color: #eae7e1; font-size: .85rem; opacity: .8; }
.lb-hint { position: absolute; bottom: 16px; right: 24px; color: #eae7e1; font-size: .78rem; opacity: .45; }
@media (max-width: 600px) { .lb-hint { display: none; } }

/* ---------- Small character touches ---------- */
.sec-note { color: var(--muted); font-style: italic; font-family: var(--serif); margin: -22px 0 30px; }
.hero .hello { font-size: .95rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 18px; }

/* ---------- Media blocks (v2) ---------- */
.media-block { max-width: 720px; margin: 30px 0; }
.media-block h4 { font-family: var(--serif); font-weight: 400; font-size: 1.05rem; margin-bottom: 10px; }
.media-block audio { width: 100%; }
.media-block iframe { width: 100%; border: 0; }
.home-hero-img { margin-top: 50px; }
.home-hero-img img { width: 100%; max-height: 62vh; object-fit: cover; }
.home-hero-img figcaption { font-size: .82rem; color: var(--muted); margin-top: 8px; }
.lb-cap { position: absolute; bottom: 44px; left: 24px; right: 24px; text-align: center; color: #eae7e1; font-size: .9rem; opacity: .85; }

/* ---------- About v2 ---------- */
.about-grid { display: grid; grid-template-columns: 5fr 4fr; gap: 56px; align-items: start; }
.about-grid .portrait img { width: 100%; }
.about-grid .portrait figcaption { font-size: .8rem; color: var(--muted); margin-top: 8px; }
@media (max-width: 760px) { .about-grid { grid-template-columns: 1fr; } }
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 50px 0; }
.pillar { border: 1px solid var(--line); padding: 26px 22px; background: transparent; transition: all .3s ease; }
.pillar:hover { border-color: var(--accent); transform: translateY(-4px); }
.pillar h3 { font-family: var(--serif); font-weight: 400; font-size: 1.2rem; margin-bottom: 10px; }
.pillar h3 span { color: var(--accent); font-size: .8rem; letter-spacing: .12em; display: block; margin-bottom: 6px; }
.pillar p { color: var(--muted); font-size: .92rem; }
@media (max-width: 760px) { .pillars { grid-template-columns: 1fr; } }
.cv-embed { margin: 30px 0; border: 1px solid var(--line); }
.cv-embed iframe { width: 100%; height: 78vh; border: 0; display: block; }
#field { display: block; width: 100%; height: 150px; margin-top: 34px; }

.hero { position: relative; overflow: hidden; }
.hero-field { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.hero .wrap { position: relative; z-index: 1; }

#strings { display: block; width: 100%; height: 240px; margin-top: 30px; }
.strings-hint { font-size: .78rem; color: var(--muted); font-style: italic; margin-top: 4px; }

.media-block video { width: 100%; display: block; background: #000; }
.gallery.pairs { grid-template-columns: 1fr 1fr; }
