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

:root {
  --white: #ffffff;
  --ink: #1a1a18;
  --mid: #6b6b65;
  --light: #d0cdc8;
  --sidebar-w: 220px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'DIN Next W01 Light', 'DINNextLTPro-Light', 'Helvetica Neue', Arial, sans-serif;
  font-weight: 300;
  background: var(--white);
  color: var(--ink);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.page-wrap { display: flex; flex: 1; }

/* SIDEBAR */
aside {
  position: fixed;
  top: 0; left: 0;
  width: var(--sidebar-w);
  height: 100vh;
  padding: 48px 28px 36px;
  display: flex;
  flex-direction: column;
  background-image: url('sidebar-landscape.jpg');
  background-size: auto 100%;
  background-position: left center;
  background-repeat: no-repeat;
  background-color: #2a2a2a;
  z-index: 100;
  overflow-y: auto;
  border-right: none;
}

.site-name {
  font-family: 'DIN Next W01 Light', 'DINNextLTPro-Light', 'Helvetica Neue', Arial, sans-serif;
  font-size: 1.15rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  line-height: 1.4;
  margin-bottom: 40px;
  color: #ffffff;
  text-decoration: none;
  display: block;
}

nav { flex: 1; }

nav a {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  padding: 7px 0;
  transition: color 0.2s;
}
nav a:hover, nav a.active { color: #ffffff; }

.social-icons {
  display: flex;
  gap: 14px;
  margin-top: 36px;
  align-items: center;
  flex-wrap: wrap;
}
.social-icons a { display: flex; align-items: center; opacity: 0.7; transition: opacity 0.2s; }
.social-icons a:hover { opacity: 1; }
.social-icons svg { width: 17px; height: 17px; fill: #ffffff; }

/* MAIN */
main {
  margin-left: var(--sidebar-w);
  flex: 1;
  min-height: 100vh;
}

/* FOOTER COPYRIGHT */
footer {
  margin-left: var(--sidebar-w);
  padding: 14px 64px;
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  color: var(--mid);
  border-top: 1px solid var(--light);
  background: var(--white);
}

/* SECTIONS */
section {
  padding: 64px 72px 72px 64px;
  border-bottom: 1px solid var(--light);
  background: var(--white);
}
section:last-child { border-bottom: none; }

.section-label {
  font-size: 0.82rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mid);
  margin-bottom: 36px;
  display: block;
}

/* PROSE */
p {
  font-size: 1rem;
  line-height: 1.85;
  color: var(--ink);
  margin-bottom: 14px;
}
p:last-child { margin-bottom: 0; }
a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
em { font-style: italic; }

/* PROJECT LABELS */
.project-title {
  font-size: 0.95rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 4px;
  font-weight: 300;
}
.project-sub {
  font-size: 0.75rem;
  letter-spacing: 0.07em;
  color: var(--mid);
  text-transform: uppercase;
  margin-bottom: 14px;
}

/* VIDEO PLAYLIST - 75% width, centred */
.playlist-wrap {
  width: 75%;
  margin-left: auto;
  margin-right: auto;
}
.playlist-main {
  position: relative;
  cursor: pointer;
  background: #111;
  margin-bottom: 8px;
}
.playlist-main img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
  opacity: 0.85;
  transition: opacity 0.25s;
}
.playlist-main:hover img { opacity: 0.65; }

.playlist-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.video-thumb {
  position: relative;
  cursor: pointer;
  overflow: hidden;
  background: #111;
}
.video-thumb img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
  opacity: 0.82;
  transition: opacity 0.25s;
}
.video-thumb:hover img { opacity: 0.6; }

.play-btn {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  pointer-events: none;
}
.play-btn svg { width: 38px; height: 38px; fill: white; opacity: 0.88; filter: drop-shadow(0 2px 6px rgba(0,0,0,0.5)); }
.play-btn-sm svg { width: 24px; height: 24px; }

.vid-label {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.72));
  color: #fff;
  font-size: 0.6rem;
  letter-spacing: 0.04em;
  padding: 14px 8px 5px;
}

.playlist-label {
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mid);
  margin: 24px 0 24px;
  display: block;
}

/* VIDEO MODAL */
.modal-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.9);
  z-index: 999;
  align-items: center; justify-content: center;
}
.modal-overlay.open { display: flex; }
.modal-inner { position: relative; width: 90vw; max-width: 880px; }
.modal-inner iframe { width: 100%; aspect-ratio: 16/9; border: none; display: block; }
.modal-close {
  position: absolute; top: -34px; right: 0;
  background: none; border: none; color: #fff;
  font-size: 0.72rem; letter-spacing: 0.12em;
  text-transform: uppercase; cursor: pointer;
  font-family: inherit; font-weight: 300;
}

/* BUTTON */
.btn-outline {
  display: inline-block;
  font-size: 0.68rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  border: 1px solid var(--ink);
  padding: 8px 18px;
  color: var(--ink);
  text-decoration: none;
  transition: all 0.2s;
  margin-top: 10px;
  cursor: pointer;
  background: none;
  font-family: inherit;
  font-weight: 300;
}
.btn-outline:hover { background: var(--ink); color: #fff; }

/* ABSTRACT */
.abstract-text {
  display: none;
  font-size: 0.95rem;
  line-height: 1.9;
  color: var(--mid);
  border-left: 2px solid var(--light);
  padding-left: 20px;
  margin: 16px 0 20px;
}
.abstract-text.open { display: block; }

/* CV */
.cv-section { margin-bottom: 44px; }
.cv-section h3 {
  font-size: 0.68rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--mid);
  margin-bottom: 18px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--light);
  font-weight: 300;
}
.cv-row {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 16px;
  margin-bottom: 10px;
  font-size: 0.95rem;
  line-height: 1.7;
}
.cv-year { color: var(--mid); font-size: 0.85rem; padding-top: 2px; }

/* PUB LIST - no lines between items, only between sections via cv-section */
.pub-list { list-style: none; }
.pub-list li {
  font-size: 0.95rem;
  line-height: 1.8;
  padding: 10px 0;
}
.pub-tag {
  font-size: 0.65rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--mid);
  display: block;
  margin-bottom: 3px;
}

/* VIMEO - 75% width, side by side */
.vimeo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 24px;
  width: 75%;
  margin-left: auto;
  margin-right: auto;
  align-items: start;
}
.vimeo-wrap { margin-bottom: 0; display: flex; flex-direction: column; }
.vimeo-wrap h4 {
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mid);
  margin-bottom: 8px;
  font-weight: 300;
  line-height: 1.4;
  min-height: 2.8em;
  display: flex;
  align-items: flex-end;
}
.vimeo-wrap iframe { width: 100%; aspect-ratio: 16/9; border: none; }

/* CONTACT */
.contact-email {
  font-size: 1.3rem;
  font-weight: 300;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 2px;
  transition: opacity 0.2s;
  display: inline-block;
  margin-top: 16px;
  letter-spacing: 0.04em;
}
.contact-email:hover { opacity: 0.55; }

/* RESPONSIVE */
@media (max-width: 768px) {
  aside { position: relative; width: 100%; height: auto; padding: 24px 20px; background-size: cover; }
  main, footer { margin-left: 0; }
  section { padding: 40px 20px 56px; }
  .home-grid { grid-template-columns: 1fr !important; }
  .playlist-wrap, .vimeo-grid { width: 100%; }
  .vimeo-grid { grid-template-columns: 1fr; }
  .cv-row { grid-template-columns: 80px 1fr; }
  body { flex-direction: column; }
  .page-wrap { flex-direction: column; }
}
