:root {
  --ink: #3a3a3a;
  --head: #2b2b2b;
  --line: #d9d9d9;
  --bg: #efefef;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Source Sans 3', 'Source Sans Pro', sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
}

.page { display: none; animation: fadein 0.45s ease; }
.page.active { display: block; }
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }

h1, h2 { font-family: 'Raleway', sans-serif; color: var(--head); }
a { color: inherit; }

/* ---------- home ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
  max-width: 1500px;
  margin: 0 auto;
  background: #fff;
}
.split-content { padding: clamp(2.5rem, 6vw, 6rem); align-self: center; }
.split-photo { position: relative; min-height: 420px; }
.split-photo img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: top center;
}

.split-content h1 {
  font-size: clamp(1.7rem, 3.2vw, 2.6rem);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  line-height: 1.35;
  margin-bottom: 1.4rem;
}
.roles {
  font-family: 'Raleway', sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #6f6f6f;
  margin-bottom: 2.2rem;
}
.drives { margin-bottom: 2.5rem; }

.chips { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-bottom: 2.8rem; }
.chips a {
  font-family: 'Raleway', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--head);
  border: 1px solid var(--line);
  padding: 0.75rem 1.1rem;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.chips a:hover { background: var(--head); border-color: var(--head); color: #fff; }

.socials { display: flex; align-items: center; gap: 1.1rem; margin-bottom: 2rem; }
.socials a { display: inline-flex; color: var(--head); text-decoration: none; }
.socials svg { width: 20px; height: 20px; fill: currentColor; }
.socials a:hover { color: #000; opacity: 0.65; }
.cv-link {
  font-family: 'Raleway', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
}
.copyright { font-size: 0.78rem; color: #9a9a9a; }

/* ---------- detail pages ---------- */
.detail {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  min-height: 100vh;
  max-width: 1500px;
  margin: 0 auto;
  background: #fff;
}
.detail.single { grid-template-columns: 1fr; }
.detail-content { padding: clamp(2.5rem, 5vw, 5rem); max-width: 860px; }
.detail-photo { position: relative; min-height: 320px; }
.detail-photo img {
  position: sticky; top: 0;
  width: 100%; height: 100vh;
  object-fit: cover;
  display: block;
}

.back { margin-bottom: 2.5rem; }
.back a {
  font-family: 'Raleway', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  text-decoration: none;
  color: #7d7d7d;
}
.back a:hover { color: var(--head); }

.detail h2 {
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 1.6rem;
}
.detail p { margin-bottom: 1.4rem; }
.detail ol { margin-left: 1.3rem; }
.detail ol li, .detail ul li { margin-bottom: 0.7rem; }
.detail a { color: var(--head); }
.detail a:hover { opacity: 0.7; }

.pull {
  font-style: italic;
  font-size: 1.15rem;
  border-left: 3px solid var(--head);
  padding-left: 1.4rem;
  margin-bottom: 1.6rem;
  color: #565656;
}
.pull span { font-style: normal; font-weight: 600; font-size: 0.9rem; }

.contact-list { list-style: none; }
.contact-list li { border-bottom: 1px solid #ececec; padding: 0.7rem 0; }

.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.8rem;
}
.photo-grid img {
  width: 100%; height: 260px;
  object-fit: cover;
  display: block;
  transition: opacity 0.15s ease;
}
.photo-grid a:hover img { opacity: 0.85; }

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
  .split-photo { order: -1; min-height: 55vh; }
  .detail { grid-template-columns: 1fr; }
  .detail-photo { display: none; }
}
