@import url('https://fonts.googleapis.com/css2?family=Roboto+Condensed:ital,wght@0,100..900;1,100..900&display=swap');

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

:root {
  --color-background-primary:   #fff;
  --color-background-secondary: #f5f5f5;
  --color-text-primary:         #111;
  --color-text-secondary:       #444;
  --color-text-tertiary:        #999;
  --color-border-primary:       #111;
  --color-border-secondary:     #ccc;
  --color-border-tertiary:      #e8e8e8;
}

.portfolio {
  font-family: 'Roboto Condensed', monospace;
  background: var(--color-background-primary);
  color: var(--color-text-primary);
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem 4rem;
}

/* ── SECTION 1: HEADER ── */
.header-wrap {
  overflow: hidden;
  padding: 12px 0;
  white-space: nowrap;
}
.header-track {
  display: inline-flex;
  animation: move 18s linear infinite;
  will-change: transform;
}
.header-track span {
  font-weight: 300;
  font-size: 1.2rem;
  letter-spacing: 0.08em;
  color: var(--color-text-primary);
  padding-right: 1rem;
  white-space: nowrap;
}
.header-track span.sep {
  font-size: 1rem;
  color: var(--color-text-tertiary);
  padding-right: 1rem;
  align-self: center;
}
@keyframes move {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.header-wrap:hover .header-track {
  animation-play-state: paused;
}

/* ── SECTION 2: BIO + SLIDESHOW ── */
.bio-section {
  display: flex;
  gap: 3rem;
  padding: 3rem 0;
  align-items: flex-start;
  border-top: 1px solid black;
  border-bottom: 1px solid black;
}
.bio-text {
  flex: 40;
  min-width: 0;
  padding-top: 1rem;
}
.bio-tag {
  font-size: 2rem;
  margin-bottom: 1rem;
}
.bio-body {
  padding-bottom: 1.5rem;
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--color-text-secondary);
  letter-spacing: 0.02em;
}

/* SLIDESHOW */
.slideshow {
  flex: 60;
  min-width: 0;
  position: relative;
  overflow: hidden;
}
.slides {
  display: flex;
  transition: transform 0.45s cubic-bezier(.4,0,.2,1);
}
.slide {
  min-width: 100%;
  height: 400px;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  flex-shrink: 0;
}
.slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.slide-caption-bar {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 10px 14px;
  background: rgba(0,0,0,0.45);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: #fff;
  opacity: 0;
  transition: opacity 0.2s;
  pointer-events: none;
  font-family: 'Roboto Condensed', sans-serif;
}
.slide:hover .slide-caption-bar { opacity: 1; }
.slide-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: var(--color-background-primary);
  border: 0.5px solid var(--color-border-secondary);
  width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  z-index: 2;
  font-size: 12px;
  color: var(--color-text-secondary);
  transition: background 0.15s;
}
.slide-nav:hover { background: var(--color-background-secondary); }
.slide-prev { left: 10px; }
.slide-next { right: 10px; }
.slide-dots {
  position: absolute;
  bottom: 10px; left: 50%;
  transform: translateX(-50%);
  display: flex; gap: 5px;
  z-index: 2;
}
.dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: rgba(255,255,255,0.45);
  transition: background 0.2s;
  cursor: pointer;
}
.dot.active { background: #fff; }

/* ── SECTION 3: WORKS ── */
.gallery-section {
  padding-top: 3rem;
  width: 100%;
}
.gallery-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}
.gallery-tag {
  font-size: 1rem;
  letter-spacing: 0.2em;
  color: var(--color-text-tertiary);
  text-transform: uppercase;
}

/* archive / pdf link button — shared style */
.archive-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'Roboto Condensed', sans-serif;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-secondary);
  text-decoration: none;
  border: 0.5px solid var(--color-border-secondary);
  padding: 6px 12px;
  transition: color 0.15s, border-color 0.15s;
}
.archive-btn:hover {
  color: var(--color-text-primary);
  border-color: var(--color-border-primary);
}
.archive-btn svg { flex-shrink: 0; }

/* Work rows */
.gallery-grid {
  width: 100%;
}

.work-row {
  display: flex;
  gap: 2rem;
  padding: 2rem 0;
  align-items: flex-start;
}

.work-info {
  width: 220px;
  min-width: 220px;
  flex-shrink: 0;
  padding-top: 0.25rem;
}

.work-date {
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-text-tertiary);
  margin-bottom: 0.4rem;
}

.work-title {
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--color-text-primary);
  margin-bottom: 0.6rem;
  line-height: 1.3;
}

.work-desc {
  font-size: 0.85rem;
  line-height: 1.55;
  color: var(--color-text-secondary);
  letter-spacing: 0.01em;
  margin-bottom: 1rem;
}

.work-pdf-btn {
  margin-top: 0.25rem;
}

/* Horizontal image strip */
.work-strip {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  flex: 1;
  min-width: 0;
  scrollbar-width: thin;
  scrollbar-color: #ccc transparent;
}
.work-strip::-webkit-scrollbar { height: 3px; }
.work-strip::-webkit-scrollbar-thumb { background: #ddd; }

.strip-cell {
  flex-shrink: 0;
  height: 220px;
  width: auto;
  cursor: pointer;
  overflow: hidden;
  background: var(--color-background-secondary);
  position: relative;
}

.strip-cell img {
  height: 100%;
  width: auto;
  display: block;
  object-fit: cover;
  transition: opacity 0.18s;
}

.strip-cell:hover img {
  opacity: 0.82;
}

.work-divider {
  border-top: 0.5px solid var(--color-border-tertiary);
}

/* ── LIGHTBOX ── */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 999;
}
.lightbox.open { display: flex; align-items: center; justify-content: center; }
.lb-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.88);
}
.lb-panel {
  position: relative;
  z-index: 1;
  max-width: 720px;
  width: 92%;
  font-family: 'Roboto Condensed', sans-serif;
}
.lb-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}
.lb-close {
  font-family: 'Roboto Condensed', sans-serif;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.15em;
  color: rgba(255,255,255,0.45);
  cursor: pointer;
  text-transform: uppercase;
  background: none;
  border: none;
}
.lb-close:hover { color: #fff; }
.lb-ext-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: 'Roboto Condensed', sans-serif;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  text-decoration: none;
  border: 0.5px solid rgba(255,255,255,0.2);
  padding: 5px 10px;
  transition: color 0.15s, border-color 0.15s;
}
.lb-ext-link:hover {
  color: #fff;
  border-color: rgba(255,255,255,0.6);
}
.lb-img-wrap {
  width: 100%;
  max-height: 62vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
#lb-img-area {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
#lb-img-area img {
  width: 100%;
  height: auto;
  max-height: 62vh;
  object-fit: contain;
  display: block;
}
.lb-meta {
  padding: 0.9rem 0 0;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}
.lb-meta-left {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  flex: 1;
  min-width: 0;
}
.lb-meta-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.25rem;
  flex-shrink: 0;
}
.lb-work-title {
  font-family: 'Roboto Condensed', sans-serif;
  font-size: 1rem;
  font-weight: 500;
  color: rgba(255,255,255,0.9);
  letter-spacing: 0.03em;
}
.lb-caption {
  font-family: 'Roboto Condensed', sans-serif;
  font-size: 0.82rem;
  font-weight: 300;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.04em;
}
.lb-description {
  font-family: 'Roboto Condensed', sans-serif;
  font-size: 0.85rem;
  font-weight: 300;
  line-height: 1.5;
  color: rgba(255,255,255,0.65);
  letter-spacing: 0.01em;
  margin-top: 0.3rem;
}
.lb-work-date {
  font-family: 'Roboto Condensed', sans-serif;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
}
.lb-index {
  font-family: 'Roboto Condensed', sans-serif;
  font-size: 10px;
  letter-spacing: 0.15em;
  color: rgba(255,255,255,0.3);
}
.lb-arrows { display: flex; gap: 8px; margin-top: 0.9rem; }
.lb-arrow {
  background: none;
  border: 0.5px solid rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.6);
  font-family: 'Roboto Condensed', sans-serif;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.1em;
  padding: 6px 14px;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
}
.lb-arrow:hover { border-color: rgba(255,255,255,0.6); color: #fff; }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .bio-section { flex-direction: column; }
  .slideshow { flex: none; width: 100%; }
  .work-row { flex-direction: column; }
  .work-info { width: 100%; min-width: unset; }
  .strip-cell { height: 160px; }
}
