/* ═══════════════════════════════════════════
   CIVIC DATA DESIGN LAB — Shared Stylesheet
   ═══════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Rubik:wght@400;500;700&display=swap');

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

html, body {
  height: 100%;
}

/* ─── Base ────────────────────────────────────────────────────────── */
body {
  background: #f9f9f9;
  font-family: "Neue Haas Grotesk", "Haas Grot Text", "Helvetica Neue", Arial, sans-serif;
  font-size: 14.5px;
  line-height: 1.5;
  color: rgba(0, 0, 0, 0.75);
}

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

button {
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
}

/* ─── Salmon Glow Frame ───────────────────────────────────────────── */
.salmon-glow {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 9999;
  box-shadow:
    rgba(109, 209, 165, 0.8) 0px 0px 14.5px 0px inset,
    rgba(109, 209, 165, 0.4) 0px 0px 24.5px 0px inset,
    rgba(109, 209, 165, 0.15)  0px 0px 34.5px 0px inset;
}

/* ─── Left Sidebar ────────────────────────────────────────────────── */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 52px;
  height: 100vh;
  background: #f9f9f9;
  border-right: 0.8px solid #000;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hamburger-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 47px;
  padding: 17px;
  background: none;
  border: none;
  cursor: pointer;
  flex-shrink: 0;
}

.hamburger-icon {
  width: 17px;
  height: 13px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  pointer-events: none;
}

.hamburger-icon span {
  display: block;
  width: 100%;
  height: 1.5px;
  background: #000;
}

/* ─── Main Content Wrapper ────────────────────────────────────────── */
.main-content {
  margin-left: 52px;
  width: calc(100% - 52px);
  min-height: 100vh;
}

/* ─── Site Header ─────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  height: 63px;
  background: #f9f9f9;
  border-bottom: 0.8px solid #000;
  display: flex;
  align-items: center;
  padding: 0 16px;
  z-index: 5;
  gap: 14px;
}

/* ─── Wordmark ────────────────────────────────────────────────────── */
.wordmark {
  display: flex;
  flex-direction: column;
  font-family: 'Rubik', sans-serif;
  font-weight: 700;
  font-size: 18px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #000;
  line-height: 1.1;
  text-decoration: none;
  white-space: nowrap;
}

.wordmark .wm-line {
  display: block;
}

/* ─── MIT Logo ────────────────────────────────────────────────────── */
.portfolio-logo {
  font-size: 18px;
  font-weight: 100;
  letter-spacing: 2px;
  text-transform: uppercase;
}

/* ─── Accessibility Link ──────────────────────────────────────────── */
.accessibility-link {
  margin-left: auto;
  font-size: 10px;
  color: #000;
  text-decoration: none;
  font-family: "Neue Haas Grotesk", "Haas Grot Text", "Helvetica Neue", Arial, sans-serif;
  white-space: nowrap;
}

/* ─── Drawer Overlay (click-away backdrop) ────────────────────────── */
.drawer-overlay {
  position: fixed;
  inset: 0;
  z-index: 15;
  display: none;
}

.drawer-overlay.is-open {
  display: block;
}

/* ─── Slide-Out Drawer ────────────────────────────────────────────── */
.drawer {
  position: fixed;
  top: 0;
  left: 0;
  width: 260px;
  height: 100vh;
  background: #f9f9f9;
  border-right: 0.8px solid #000;
  z-index: 20;
  padding: 20px 24px;
  transform: translateX(-260px);
  transition: transform 0.25s ease;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.drawer.is-open {
  transform: translateX(0);
}

/* Close (×) button — same position as hamburger */
.drawer-close-btn {
  position: absolute;
  top: 17px;
  left: 17px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  color: #000;
  width: 17px;
  height: 17px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

/* Wordmark inside drawer */
.drawer-wordmark {
  display: flex;
  flex-direction: column;
  font-family: 'Rubik', sans-serif;
  font-weight: 700;
  font-size: 18px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #000;
  line-height: 1.1;
  white-space: nowrap;
  text-decoration: none;
  padding-left: 36px; /* clear the close button */
  margin-bottom: 36px;
  flex-shrink: 0;
}

.drawer-wordmark .wm-line {
  display: block;
}

/* Drawer nav */
.drawer-nav {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.drawer-nav-group {
  margin-bottom: 30px;
}

.drawer-nav a {
  display: block;
  font-family: 'Rubik', sans-serif;
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  color: #000;
  text-decoration: none;
  letter-spacing: 0.08em;
  line-height: 1;
  margin-bottom: 28px;
}

.drawer-nav a:last-child {
  margin-bottom: 0;
}

.drawer-bottom {
  margin-top: auto;
  padding-bottom: 4px;
}

.drawer-bottom a {
  font-family: 'Rubik', sans-serif;
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  color: #000;
  text-decoration: none;
  letter-spacing: 0.08em;
}

/* ═══════════════════════════════════════════
   HOME PAGE — Project Grid
   ═══════════════════════════════════════════ */

.project-grid {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
}

a.thumbnail {
  width: 50%;
  padding: 10.4px;
  margin-bottom: 40px;
  cursor: pointer;
  display: block;
  text-decoration: none;
  color: inherit;
}

a.thumbnail:hover .thumb_image img,
a.thumbnail:hover .thumb_image video {
  transform: scale(1.02);
}

.thumb_image {
  width: 100%;
  height: 487px;
  overflow: hidden;
}

.thumb_image img,
.thumb_image video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

/* Title: parent carries rgba(0,0,0,0.9); inner span is transparent,
   made visible via text-shadow — mirrors the original site's CSS approach */
.title {
  font-family: 'Rubik', sans-serif;
  font-weight: 700;
  font-size: 23.9px;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.9);
  line-height: 1.0;
  margin-top: 8px;
}

.title span {
  color: rgba(0, 0, 0, 0);
  text-shadow: 0 0 0 rgba(0, 0, 0, 0.9);
}

.tags {
  font-family: "Neue Haas Grotesk", "Haas Grot Text", "Helvetica Neue", Arial, sans-serif;
  font-weight: 500;
  font-size: 13.5px;
  color: rgba(0, 0, 0, 0.9);
  margin-top: 4px;
  text-decoration: none;
  display: block;
}

.read-more {
  font-family: "Neue Haas Grotesk", "Haas Grot Text", "Helvetica Neue", Arial, sans-serif;
  font-weight: 400;
  font-size: 13px;
  color: rgba(0, 0, 0, 0.45);
  margin-top: 4px;
  display: block;
}

/* ═══════════════════════════════════════════
   PROJECT DETAIL PAGE
   ═══════════════════════════════════════════ */

/* Title bar */
.project-title-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10.4px 10.4px;
  border-bottom: 0.8px solid #000;
}

.project-title-bar h1 {
  font-family: 'Rubik', sans-serif;
  font-weight: 700;
  font-size: 20.8px;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.75);
}

.project-nav {
  display: flex;
  gap: 16px;
  font-family: "Neue Haas Grotesk", "Haas Grot Text", "Helvetica Neue", Arial, sans-serif;
  font-size: 13px;
  color: rgba(0, 0, 0, 0.7);
  white-space: nowrap;
}

.project-nav a {
  color: rgba(0, 0, 0, 0.7);
  text-decoration: none;
}

.project-nav a:hover {
  color: #000;
}

/* Banner image */
.project-banner {
  width: 100%;
  height: 380px;
  object-fit: cover;
  display: block;
}

/* Two-column body */
.project-body {
  display: flex;
  align-items: flex-start;
  padding-top: 10.4px;
}

/* Left column — metadata */
.project-meta {
  width: 335px;
  flex-shrink: 0;
  padding: 10.4px;
  font-family: "Neue Haas Grotesk", "Haas Grot Text", "Helvetica Neue", Arial, sans-serif;
  font-size: 14.5px;
  color: rgba(0, 0, 0, 0.75);
  line-height: 1.5;
}

.project-meta .year {
  font-weight: 700;
  display: block;
  margin-bottom: 2px;
}

.project-meta .project-ext-link {
  display: block;
  margin-bottom: 20px;
  color: rgba(0, 0, 0, 0.75);
  text-decoration: none;
}

.project-meta .project-ext-link:hover {
  text-decoration: underline;
}

.project-meta .org-block {
  margin-bottom: 14px;
}

.project-meta .org-name {
  font-weight: 700;
  display: block;
}

.project-meta .team-member {
  font-weight: 400;
  display: block;
}

/* Right column — body content */
.project-content {
  flex: 1;
  padding: 10.4px;
  font-family: "Neue Haas Grotesk", "Haas Grot Text", "Helvetica Neue", Arial, sans-serif;
  font-size: 14.5px;
  color: rgba(0, 0, 0, 0.75);
  line-height: 1.5;
}

.project-content h2 {
  font-family: "Neue Haas Grotesk", "Haas Grot Text", "Helvetica Neue", Arial, sans-serif;
  font-weight: 500;
  font-size: 20.8px;
  color: rgba(0, 0, 0, 0.75);
  margin-bottom: 12px;
  margin-top: 28px;
}

.project-content h2:first-child {
  margin-top: 0;
}

.project-content p {
  margin-bottom: 16px;
  font-weight: 400;
}

/* Inline image galleries */
.image-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
  margin-top: 8px;
}

.image-gallery figure {
  margin: 0;
}

.image-gallery img {
  width: 133px;
  height: 176px;
  object-fit: cover;
  display: block;
}

.image-gallery figcaption {
  font-size: 10.4px;
  color: rgba(0, 0, 0, 0.85);
  margin-top: 4px;
  width: 133px;
  line-height: 1.4;
}

/* ═══════════════════════════════════════════
   RESPONSIVE — Tablet (641–1024px)
   ═══════════════════════════════════════════ */
@media (min-width: 641px) and (max-width: 1024px) {
  .thumb_image { height: 320px; }
  .title { font-size: 20px; }
  .project-meta { width: 260px; }
  .project-banner { height: 300px; }
}

/* ═══════════════════════════════════════════
   RESPONSIVE — Mobile (≤640px)
   ═══════════════════════════════════════════ */
@media (max-width: 640px) {
  /* Sidebar & layout offset */
  .sidebar {
    width: 44px;
  }
  .hamburger-btn {
    width: 44px;
    height: 44px;
  }
  .main-content {
    margin-left: 44px;
    width: calc(100% - 44px);
  }

  /* Site header */
  .site-header {
    height: 52px;
    padding: 0 10px;
    gap: 8px;
  }
  .wordmark {
    font-size: 13px;
  }
  .portfolio-logo {
    font-size: 13px;
    letter-spacing: 1px;
  }
  .accessibility-link {
    font-size: 9px;
  }

  /* Homepage grid — 1 column */
  a.thumbnail {
    width: 100%;
    padding: 8px 12px;
    margin-bottom: 24px;
  }
  .thumb_image {
    height: 220px;
  }
  .title {
    font-size: 17px;
  }
  .tags {
    font-size: 12px;
  }
  .read-more {
    font-size: 12px;
  }

  /* Project detail shared layout */
  .project-title-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding: 10px 12px;
  }
  .project-title-bar h1 {
    font-size: 16px;
  }
  .project-nav {
    font-size: 12px;
    gap: 10px;
  }
  .project-banner {
    height: 200px;
  }
  .project-body {
    flex-direction: column;
  }
  .project-meta {
    width: 100%;
    padding: 12px;
    border-bottom: 0.8px solid #000;
  }
  .project-content {
    padding: 12px;
  }
  .project-content h2 {
    font-size: 17px;
  }
  .image-gallery img {
    width: 100px;
    height: 132px;
  }
  .image-gallery figcaption {
    width: 100px;
  }
}
<video autoplay muted loop playsinline preload="auto">
  <source src="assets/P1/CoverAshesVideo2.mp4" type="video/mp4">
</video>
