@font-face { font-family: 'Archivo'; font-style: normal; font-weight: 400; font-display: swap; src: url('fonts/archivo-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Archivo'; font-style: normal; font-weight: 500; font-display: swap; src: url('fonts/archivo-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Archivo'; font-style: normal; font-weight: 600; font-display: swap; src: url('fonts/archivo-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Archivo'; font-style: normal; font-weight: 700; font-display: swap; src: url('fonts/archivo-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Archivo'; font-style: normal; font-weight: 800; font-display: swap; src: url('fonts/archivo-latin-800-normal.woff2') format('woff2'); }

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: #ffffff;
  color: #111111;
  font-family: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

/* ---------- header ---------- */

.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 46px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  display: flex;
  align-items: center;
  padding: 0 24px;
  z-index: 100;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 22px;
}

.site-nav a {
  position: relative;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: #111;
  opacity: 0.55;
  transition: opacity 0.25s ease;
}

.site-nav a::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 1px;
  background: #111;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.site-nav a:hover { opacity: 1; }

.site-nav a.is-active { font-weight: 700; opacity: 1; }
.site-nav a.is-active::after { transform: scaleX(1); }

/* CV download, sitting at the end of the left cluster */
.nav-cv {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 4px;
  padding-left: 22px;
  border-left: 1px solid #e0e0e0;
  font-weight: 600 !important;
  letter-spacing: 0.12em !important;
  opacity: 0.85 !important;
}

.nav-cv svg { width: 12px; height: 12px; flex: 0 0 12px; }
.nav-cv:hover { opacity: 1 !important; }
.nav-cv::after { display: none; }

.site-name {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.10em;
  white-space: nowrap;
}

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  font-size: 12px;
  letter-spacing: 0.06em;
  cursor: pointer;
  color: #111;
}

/* ---------- section bands ---------- */

.band { scroll-margin-top: 46px; }

.band-head {
  padding: 116px 24px 0;
  text-align: center;
}

.band-head--hero { padding-top: 150px; }

.band-head h2 {
  margin: 0;
  font-size: clamp(40px, 9.2vw, 132px);
  font-weight: 700;
  letter-spacing: -0.012em;
  line-height: 1;
  color: #ececec;
  text-transform: uppercase;
}

.chevron {
  display: block;
  margin: 110px auto 0;
  width: 30px;
  height: 30px;
}

.chevron svg { display: block; width: 100%; height: 100%; }
.chevron path { stroke: #9b9b9b; stroke-width: 1.2; fill: none; }

/* ---------- project grid ---------- */

.covers {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 1040px;
  margin: 0 auto;
  padding: 64px 40px 0;
}

.band-head--hero + .chevron + .covers { padding-top: 16px; }

.cover {
  position: relative;
  display: block;
  overflow: hidden;
  background: #f2f2f2;
}

.cover img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  filter: grayscale(1);
  transition: filter 0.45s ease, transform 0.6s ease;
}

.cover:hover img { transform: scale(1.03); }

.covers .cover:only-child {
  grid-column: 1 / -1;
  width: 100%;
  max-width: 660px;
  margin: 0 auto;
}

.cover .overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(20, 20, 20, 0.42);
  opacity: 0;
  transition: opacity 0.35s ease;
  padding: 24px;
  text-align: center;
}

.cover:hover .overlay,
.cover:focus-visible .overlay { opacity: 1; }

.cover .overlay .title {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #fff;
  text-transform: uppercase;
  padding-bottom: 4px;
}

.cover .overlay .date {
  font-size: 14px;
  font-weight: 400;
  color: #fff;
  padding-top: 10px;
}

/* ---------- about ---------- */

.about {
  max-width: 900px;
  margin: 0 auto;
  padding: 54px 24px 0;
}

.about-top {
  display: flex;
  gap: 48px;
  align-items: flex-start;
}

.about-top img {
  width: 210px;
  flex: 0 0 210px;
  display: block;
  filter: grayscale(1);
}

.about-name {
  margin: 0;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.008em;
  line-height: 1.15;
  text-transform: uppercase;
}

.about-role {
  margin: 10px 0 16px;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #8c8c8c;
}

.about-lede {
  font-size: 13px;
  line-height: 1.9;
  color: #333;
  margin: 0;
}

.about-section { margin-top: 56px; }

.about-section h3 {
  margin: 0 0 18px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #111;
  border-bottom: 1px solid #e6e6e6;
  padding-bottom: 10px;
}

.entry { margin-bottom: 22px; }

.entry .line1 {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.entry .line1 span {
  font-weight: 400;
  color: #767676;
  font-size: 11.5px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.entry .role {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8c8c8c;
  padding-top: 3px;
}

.entry ul { margin: 6px 0 0; padding-left: 18px; }
.entry li { font-size: 12.5px; color: #3a3a3a; line-height: 1.75; }

.cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 6px 40px;
}

.kv {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 12.5px;
  padding: 5px 0;
  border-bottom: 1px dotted #e8e8e8;
}

.kv span { color: #8c8c8c; font-size: 11px; text-transform: uppercase; letter-spacing: 0.05em; }

/* ---------- CV button ---------- */

.cv-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 22px;
  padding: 11px 20px;
  border: 1px solid #111;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #111;
  background: transparent;
  transition: background 0.2s ease, color 0.2s ease;
}

.cv-btn svg { width: 13px; height: 13px; flex: 0 0 13px; }
.cv-btn:hover { background: #111; color: #fff; }

/* ---------- contact details ---------- */

.details {
  margin-top: 86px;
  border-top: 1px solid #ececec;
}

.details-inner {
  max-width: 1040px;
  margin: 0 auto;
  padding: 58px 40px 0;
  display: grid;
  grid-template-columns: minmax(230px, 1fr) minmax(280px, 1.1fr);
  gap: 48px;
  align-items: start;
}

.details-lead h3 {
  margin: 0;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.005em;
  text-transform: uppercase;
}

.details-lead p {
  margin: 12px 0 0;
  font-size: 12px;
  line-height: 1.8;
  color: #6f6f6f;
  letter-spacing: 0.03em;
  max-width: 34ch;
}

.details-list { list-style: none; margin: 0; padding: 0; }

.details-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 20px;
  padding: 9px 0;
  border-bottom: 1px solid #efefef;
  font-size: 13px;
}

.details-list li:first-child { border-top: 1px solid #efefef; }

.details-list span {
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #9b9b9b;
  flex: 0 0 auto;
}

.details-list a { text-align: right; }
.details-list a:hover { border-bottom: 1px solid #111; }

/* ---------- project page ---------- */

.project {
  padding: 96px 24px 0;
  text-align: center;
}

.project .back {
  margin: 0 0 40px;
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #9b9b9b;
}

.project .back a { transition: color 0.2s ease; }
.project .back a:hover { color: #111; }

.project h1 {
  margin: 0 auto;
  max-width: 16ch;
  font-size: clamp(30px, 5.4vw, 62px);
  font-weight: 700;
  letter-spacing: -0.005em;
  line-height: 1.08;
  text-transform: uppercase;
}

.project .meta {
  margin: 34px auto 0;
  max-width: 760px;
  font-size: 11px;
  letter-spacing: 0.06em;
  line-height: 1.9;
  color: #333;
  text-transform: uppercase;
}

.project .meta b { font-weight: 700; }

.project .blurb {
  margin: 30px auto 0;
  max-width: 760px;
  font-size: 11.5px;
  line-height: 1.85;
  color: #3a3a3a;
  text-align: justify;
  text-align-last: center;
}

.project .ext {
  margin: 26px 0 0;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.project .ext a {
  border-bottom: 1px solid #c9c9c9;
  padding-bottom: 3px;
  transition: border-color 0.2s ease;
}

.project .ext a:hover { border-bottom-color: #111; }

.gallery { padding: 86px 0 0; }

.gallery figure {
  margin: 0 auto 8px;
  max-width: 1100px;
  padding: 0 24px;
}

.gallery img {
  display: block;
  width: 100%;
  height: auto;
  background: #f2f2f2;
}

.gallery figcaption {
  padding: 10px 0 46px;
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8c8c8c;
  text-align: center;
}

/* ---------- footer ---------- */

.site-footer {
  margin-top: 74px;
  padding: 26px 24px 34px;
  text-align: center;
  font-size: 11px;
  letter-spacing: 0.1em;
  color: #9b9b9b;
  text-transform: uppercase;
}

.to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(238, 238, 238, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6f6f6f;
  font-size: 17px;
  line-height: 1;
  z-index: 90;
  transition: background 0.2s ease, color 0.2s ease;
}

.to-top:hover { background: #111; color: #fff; }

/* ---------- responsive ---------- */

@media (max-width: 860px) {
  .site-nav { gap: 16px; }
  .site-nav a { font-size: 11px; }
}

@media (max-width: 760px) {
  .site-header { padding: 0 16px; }

  .nav-toggle { display: block; }

  .site-nav {
    position: fixed;
    top: 46px; left: 0; right: 0;
    background: #fff;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 0 16px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.28s ease;
    border-bottom: 1px solid transparent;
  }

  .site-nav.is-open {
    max-height: 300px;
    border-bottom-color: #ececec;
    padding-bottom: 14px;
  }

  .site-nav a { padding: 10px 0; font-size: 13px; }
  .site-nav a::after { display: none; }

  .nav-cv {
    margin-left: 0;
    padding-left: 0;
    border-left: 0;
    border-top: 1px solid #ececec;
    margin-top: 6px;
    padding-top: 12px !important;
    width: 100%;
  }

  .band-head { padding-top: 76px; }
  .band-head--hero { padding-top: 104px; }
  .chevron { margin-top: 64px; }

  .covers { grid-template-columns: 1fr; gap: 18px; padding: 40px 16px 0; }
  .band-head--hero + .chevron + .covers { padding-top: 16px; }
  .cover .overlay { opacity: 1; background: rgba(20, 20, 20, 0.34); }

  .about { padding: 40px 16px 0; }
  .about-top { flex-direction: column; gap: 26px; }
  .about-top img { width: 160px; flex-basis: auto; }

  .details { margin-top: 56px; }
  .details-inner {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 42px 16px 0;
  }
  .details-list li { font-size: 12.5px; gap: 12px; }

  .project { padding-top: 84px; }
  .gallery { padding-top: 48px; }
  .gallery figure { padding: 0 16px; }
}

@media (max-width: 560px) {
  .site-name { font-size: 10px; letter-spacing: 0.06em; left: auto; right: 16px; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .cover img, .cover .overlay, .site-nav a, .site-nav a::after { transition: none; }
  .cover:hover img { transform: none; }
}
