/* ============================================
   KAYLA TRIVIERI — PORTFOLIO
   Editorial, monospace, black-and-white
   ============================================ */

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

html {
  font-size: 13px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: "IBM Plex Mono", "Courier New", Courier, monospace;
  font-weight: 400;
  line-height: 1.6;
  color: #000;
  background-color: #fff;
}

/* ---- Links ---- */

a {
  color: #000;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

a.underlined {
  text-decoration: underline;
}

a.underlined:hover {
  text-decoration: none;
}

/* ---- Horizontal Rules ---- */

hr {
  border: none;
  border-top: 1px solid rgba(0, 0, 0, 0.15);
  margin: 0;
}

/* ---- Typography ---- */

.section-label {
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 1.2rem;
}

.category-label {
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 0.8rem;
  color: rgba(0, 0, 0, 0.55);
}

/* ============================================
   THREE-COLUMN GRID
   ============================================ */

.grid {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  min-height: 100vh;
}

/* ---- Left Column ---- */

.col-left {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  padding: 40px;
  display: flex;
  flex-direction: column;
}

.col-left::-webkit-scrollbar {
  display: none;
}

.col-left {
  scrollbar-width: none;
}

/* ---- Middle Column ---- */

.col-middle {
  border-left: 1px solid rgba(0, 0, 0, 0.12);
  border-right: 1px solid rgba(0, 0, 0, 0.12);
  padding: 40px;
}

/* ---- Right Column ---- */

.col-right {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  padding: 40px;
  display: flex;
  flex-direction: column;
}

.col-right::-webkit-scrollbar {
  display: none;
}

.col-right {
  scrollbar-width: none;
}

/* ============================================
   LEFT COLUMN — BIO & CONTACT
   ============================================ */

.site-name {
  font-size: 15px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  margin-bottom: 1.5rem;
}

.bio {
  margin: 1.5rem 0;
  font-size: 12.5px;
  line-height: 1.65;
  color: rgba(0, 0, 0, 0.8);
}

.clients {
  margin-bottom: 2rem;
}

.clients p {
  font-size: 12px;
  line-height: 1.7;
  color: rgba(0, 0, 0, 0.7);
}

.contact-list {
  list-style: none;
  margin-top: 1rem;
}

.contact-list li {
  margin-bottom: 0.4rem;
  font-size: 12.5px;
}

.left-footer {
  margin-top: auto;
}

/* ============================================
   MIDDLE COLUMN — SELECTED WORKS
   ============================================ */

.works-header {
  margin-bottom: 2.5rem;
}

.works-header .section-label {
  margin-bottom: 1rem;
}

/* ---- Project Card ---- */

.project {
  margin-bottom: 3.5rem;
}

.project:last-child {
  margin-bottom: 0;
}

.project-image {
  width: 100%;
  aspect-ratio: 16 / 10;
  background-color: #e8e8e8;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  overflow: hidden;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Slideshow for Search on Dora */
.project-slideshow {
  width: 100%;
  aspect-ratio: 16 / 10;
  background-color: #e8e8e8;
  margin-bottom: 1.5rem;
  position: relative;
  overflow: hidden;
}

.slideshow-container {
  width: 100%;
  height: 100%;
  position: relative;
}

.slide {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  transition: opacity 0.35s ease;
  display: block;
}

video.slide {
  background-color: #000;
}

.slide.active {
  opacity: 1;
}

.slideshow-nav {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.9);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 11px;
}

.slide-prev,
.slide-next {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 14px;
  padding: 2px 6px;
  color: #000;
  font-family: "IBM Plex Mono", monospace;
}

.slide-prev:hover,
.slide-next:hover {
  opacity: 0.6;
}

.slide-counter {
  font-size: 11px;
  letter-spacing: 0.05em;
}

.project-details {
  display: flex;
  gap: 2rem;
}

.project-left {
  flex: 0 0 38%;
}

.project-right {
  flex: 1;
}

.project-title {
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 0.3rem;
}

.project-category {
  font-size: 12px;
  font-style: italic;
  color: rgba(0, 0, 0, 0.6);
}

.project-client {
  font-size: 12.5px;
  margin-bottom: 0.2rem;
}

.project-year {
  font-size: 12px;
  color: rgba(0, 0, 0, 0.5);
  margin-bottom: 0.5rem;
}

.project-role {
  font-size: 12px;
  line-height: 1.6;
  color: rgba(0, 0, 0, 0.7);
}

.project-collaborators {
  font-size: 11.5px;
  font-style: italic;
  color: rgba(0, 0, 0, 0.5);
  margin-top: 0.4rem;
}

.project-divider {
  margin: 3.5rem 0;
}

/* ============================================
   RIGHT COLUMN — INFORMATION
   ============================================ */

.info-header {
  margin-bottom: 2rem;
}

.info-header .section-label {
  margin-bottom: 1rem;
}

.info-section {
  margin-bottom: 2rem;
}

.info-entry {
  margin-bottom: 1.4rem;
}

.info-entry:last-child {
  margin-bottom: 0;
}

.entry-org {
  font-size: 12.5px;
  font-weight: 400;
}

.entry-role {
  font-size: 12px;
  font-style: italic;
  color: rgba(0, 0, 0, 0.7);
}

.entry-date {
  font-size: 11.5px;
  color: rgba(0, 0, 0, 0.45);
}

.discipline-list {
  list-style: none;
}

.discipline-list li {
  font-size: 12px;
  line-height: 1.8;
  color: rgba(0, 0, 0, 0.7);
}

.info-divider {
  margin: 2rem 0;
}

.col-right-footer {
  margin-top: auto;
  font-size: 11px;
  color: rgba(0, 0, 0, 0.35);
  padding-top: 2rem;
}

/* ============================================
   RESPONSIVE — MOBILE
   ============================================ */

@media (max-width: 768px) {
  .grid {
    grid-template-columns: 1fr;
  }

  .col-left,
  .col-right {
    position: static;
    height: auto;
    overflow: visible;
    padding: 28px 20px;
  }

  .col-middle {
    border-left: none;
    border-right: none;
    border-top: 1px solid rgba(0, 0, 0, 0.12);
    border-bottom: 1px solid rgba(0, 0, 0, 0.12);
    padding: 28px 20px;
  }

  .project-details {
    flex-direction: column;
    gap: 0.8rem;
  }

  .project-left {
    flex: none;
  }
}
