/* Animation project list and overlay */

.plain-list {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
}

.plain-list li {
  margin-bottom: 0.2rem;
  line-height: 1.6;
}

.plain-list a,
.page-content a,
.project-description a {
  color: var(--color-text);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.plain-list a:hover,
.page-content a:hover,
.project-description a:hover {
  color: var(--color-text-strong);
}

:root {
  --color-bg: #C3EB78;
  --color-bg-soft: #D2F1A0;
  --color-text: #306B34;
  --color-text-strong: #1F4B24;
  --color-border: rgba(48, 107, 52, 0.45);
  --color-overlay: rgba(195, 235, 120, 0.97);
}

.animation-projects-container {
  position: relative;
  margin-bottom: 2rem;
}
.animation-project-list {
  list-style: none;
  margin: 2rem 0 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem 2rem;
}
.animation-project-list li {
  margin-bottom: 0.5rem;
  cursor: pointer;
  font-size: 1.2rem;
  color: var(--color-text);
  transition: color 0.2s;
}
.animation-project-list li:hover {
  color: var(--color-text-strong);
}
.animation-image-overlay {
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 600px;
  z-index: 10;
  justify-content: center;
  align-items: center;
  background: var(--color-overlay);
}
.animation-image-overlay.visible {
  display: flex;
}
.animation-image-overlay img {
  width: 100%;
  height: 600px;
  object-fit: contain;
  border-radius: 0;
  box-shadow: 0 2px 16px rgba(0,0,0,0.08);
}
/* Minimalist, Cargo Collective-inspired layout */
body {
  margin: 0;
  font-family: 'Google Sans', Arial, sans-serif;
  background: var(--color-bg);
  color: var(--color-text);
}

.container {
  display: flex;
  min-height: 100vh;
  padding-right: 64px;
  box-sizing: border-box;
}

.sidebar {
  width: 260px;
  background: var(--color-bg);
  border-right: none;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  padding: 40px 30px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.sidebar h1 {
  font-family: 'Google Sans', Arial, sans-serif;
  font-size: 2rem;
  margin: 0 0 2rem 0;
  letter-spacing: 1px;
  font-weight: 700;
}

.menu {
  list-style: none;
  padding: 0;
  margin: 0;
  width: 100%;
}
.menu li {
  margin-bottom: 1.2rem;
}
.menu .menu-subheading {
  margin: 0.2rem 0 0.8rem 0;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--color-text-strong);
}
.menu .menu-item-indented {
  margin-left: 1rem;
}
.menu a {
  text-decoration: none;
  color: var(--color-text);
  font-size: 1.1rem;
  font-weight: 500;
  transition: color 0.2s;
}
.menu a.active, .menu a:hover {
  color: var(--color-text-strong);
}

.sidebar ul,
.sidebar li {
  margin: 0;
  padding: 0;
  line-height: 1.2; /* Adjust as needed */
}

.main {
  margin-left: 260px;
  padding: 60px 40px;
  flex: 1;
  min-width: 0;
  box-sizing: border-box;
  max-width: none;
  width: 100%;
  margin-right: auto;
  margin-top: 0;
  margin-bottom: 0;
  /* Remove flex and align-items */
}

.page-image {
  width: 100%;
  max-width: 700px;
  display: block;
  margin-bottom: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 16px rgba(0,0,0,0.04);
}

.page-content {
  max-width: 700px;
}

.about-image-figure {
  margin: 0;
}

.about-image-caption {
  margin-top: 0.45rem;
  font-size: 0.92rem;
  line-height: 1.35;
}

.page-content p,
.page-content ul,
.page-content li {
  line-height: 1.6;
}

.page-content p {
  margin: 0 0 1rem 0;
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 2rem;
  align-items: start;
}

.two-column .page-image {
  margin-bottom: 0;
  max-width: none;
}

.two-column .page-content {
  max-width: none;
}

@media (max-width: 768px) {
  .two-column {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

.video-embed {
  max-width: 1000px;
  width: 100%;
  margin-bottom: 2rem;
  text-align: left;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}
.video-embed iframe {
  width: 100%;
  height: 600px;
  border-radius: 8px;
  box-shadow: 0 2px 16px rgba(0,0,0,0.04);
  display: block;
  margin-left: 0;
}

.teaching-video-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  width: 100%;
  margin: 1rem 0 2rem 0;
}

.teaching-video-item iframe,
.teaching-video-item video {
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  border: 0;
  border-radius: 8px;
  box-shadow: 0 2px 16px rgba(0,0,0,0.04);
  display: block;
}

.teaching-video-caption {
  margin: 0;
  display: block;
  font-size: 0.92rem;
  line-height: 1;
  color: var(--color-text);
}

@media (max-width: 980px) {
  .teaching-video-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

.image-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  width: 100%;
  max-width: none;
  margin-bottom: 2rem;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}
.image-grid img,
.image-grid video {
  width: 100%;
  max-width: 100%;
  height: auto;
  aspect-ratio: 2/3;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 2px 16px rgba(0,0,0,0.04);
  display: block;
}

.image-grid.portrait img {
  aspect-ratio: 2/3;
  height: auto;
}

.image-grid.portrait video {
  aspect-ratio: 2/3;
  height: auto;
}

.image-grid.landscape img {
  aspect-ratio: 16/9;
  height: auto;
}

.image-grid.landscape video {
  aspect-ratio: 16/9;
  height: auto;
}

.hero-video-wrap {
  position: relative;
  width: 100%;
  max-width: none;
  margin: 0 0 1.5rem 0;
  overflow: hidden;
  box-sizing: border-box;
}

.hero-video-underlay {
  position: absolute;
  inset: 0;
  border-radius: 8px;
  background-color: hsl(125, 25%, 63%);
  overflow: hidden;
  pointer-events: none;
}

.hero-video-underlay-hidden {
  display: none;
}

.hero-video-underlay-media {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-video-embed {
  position: relative;
  z-index: 1;
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  max-width: none;
  min-width: 0;
  display: block;
  border: 0;
  border-radius: 8px;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.04);
}

.film-card {
  margin: 0;
}

.film-card-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.film-card-link:hover figcaption {
  color: var(--color-text-strong);
}

.film-card figcaption {
  margin-top: 0.5rem;
  font-size: 1rem;
  line-height: 1.4;
  color: var(--color-text);
}

.project-page {
  width: 100%;
  max-width: 1080px;
  margin-left: auto;
  margin-right: auto;
}

.site-links {
  position: fixed;
  top: 40px;
  right: 40px;
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 30;
}

.site-link {
  width: 32px;
  height: 32px;
  color: var(--color-text);
  display: block;
  transition: opacity 0.2s ease;
}

.site-link:hover {
  opacity: 0.7;
}

.site-link-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.site-instagram svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.1;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.site-instagram .insta-dot {
  fill: currentColor;
  stroke: none;
}

.project-video {
  width: 100%;
  margin-bottom: 1.5rem;
}

.project-video-nav-prototype {
  position: relative;
}

.project-video-nav-prototype .project-video {
  margin-bottom: 1rem;
}

.project-video-nav-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.project-video-nav-prototype .project-nav-triangle {
  --triangle-width: clamp(39px, 3.3vw, 51px);
  --triangle-height: clamp(21px, 1.65vw, 27px);
  position: static;
  display: block;
  width: var(--triangle-width);
  height: var(--triangle-height);
  border: 0;
  padding: 0;
  text-decoration: none;
  background: var(--color-text);
  opacity: 1;
  transform: none;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  -webkit-mask-size: contain;
  mask-repeat: no-repeat;
  mask-position: center;
  mask-size: contain;
  pointer-events: auto;
}

.project-video-nav-prototype .project-nav-triangle.prev {
  -webkit-mask-image: url('/assets/svg/arrow-narrow-left-svgrepo-com.svg');
  mask-image: url('/assets/svg/arrow-narrow-left-svgrepo-com.svg');
}

.project-video-nav-prototype .project-nav-triangle.next {
  -webkit-mask-image: url('/assets/svg/arrow-narrow-right-svgrepo-com.svg');
  mask-image: url('/assets/svg/arrow-narrow-right-svgrepo-com.svg');
}

.project-video-nav-row .project-nav-action {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--color-text);
}

.project-video-nav-row .project-nav-label {
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: none;
  font-weight: 700;
}

.project-video iframe,
.project-video video,
.project-video .embed {
  width: 100% !important;
  aspect-ratio: var(--project-video-ratio, 16 / 9);
  height: auto;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  display: block;
}

.project-title {
  margin: 0 0 1.5rem 0;
  font-size: clamp(1.75rem, 2.5vw, 2.4rem);
  line-height: 1.1;
  color: var(--color-text-strong);
}

.project-summary {
  display: grid;
  grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
  gap: 2.5rem;
  align-items: start;
}

.project-meta {
  border-top: 1px solid var(--color-border);
  padding-top: 0.75rem;
}

.meta-row {
  margin-bottom: 1rem;
}

.meta-label {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--color-text-strong);
  margin-bottom: 0.2rem;
}

.meta-value {
  display: block;
  line-height: 1.45;
}

.project-description {
  max-width: 75ch;
}

.project-description p {
  margin-top: 0;
  margin-bottom: 1rem;
  line-height: 1.6;
}

.project-synopsis {
  font-size: 1.2rem;
  line-height: 1.45;
  margin-bottom: 1rem;
  color: var(--color-text-strong);
}

.project-supporting {
  margin-top: 2rem;
}

.project-videos {
  margin-top: 2rem;
}

.project-video-sections {
  margin-top: 0.5rem;
}

.project-video-section {
  margin-bottom: 2.4rem;
}

.project-video-heading {
  margin: 0 0 1rem 0;
  font-size: 1.25rem;
  line-height: 1.3;
  color: var(--color-text-strong);
}

.project-notes {
  margin-top: 1.5rem;
}

.project-videos .project-video {
  margin-bottom: 1.4rem;
}

.project-video-title {
  margin: 0.45rem 0 0;
  font-size: 0.98rem;
}

.project-supporting-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.project-supporting-item {
  margin: 0;
}

.project-supporting-item img {
  width: 100%;
  display: block;
  border-radius: 8px;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.04);
}

.project-supporting-item figcaption {
  margin-top: 0.4rem;
  font-size: 0.95rem;
}

.contact-page {
  max-width: 700px;
}

.contact-form {
  display: grid;
  gap: 0.75rem;
  margin-top: 1.25rem;
  max-width: 560px;
}

.contact-form label {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-text-strong);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--color-border);
  background: var(--color-bg-soft);
  color: var(--color-text-strong);
  border-radius: 6px;
  padding: 0.65rem 0.75rem;
  font-family: 'Google Sans', Arial, sans-serif;
  font-size: 1rem;
  box-sizing: border-box;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid var(--color-text-strong);
  outline-offset: 1px;
}

.contact-form textarea {
  resize: vertical;
  min-height: 140px;
}

.contact-form button {
  width: fit-content;
  border: 1px solid var(--color-text);
  background: var(--color-text);
  color: var(--color-bg);
  border-radius: 999px;
  padding: 0.6rem 1.1rem;
  font-family: 'Google Sans', Arial, sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
}

.contact-form button:hover {
  background: var(--color-text-strong);
  border-color: var(--color-text-strong);
}

.contact-botcheck {
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
}

.contact-note {
  margin-top: 1rem;
  font-size: 0.95rem;
}

@media (max-width: 800px) {
  .container {
    flex-direction: column;
    padding-right: 0;
  }
  .sidebar {
    width: 100%;
    height: auto;
    position: static;
    border-right: none;
    border-bottom: none;
    display: block;
    padding: 18px 52px 12px 12px;
  }
  .sidebar h1 {
    margin-bottom: 0.8rem;
  }
  .menu {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem 0.9rem;
    width: auto;
  }
  .menu li {
    margin: 0;
  }
  .menu br {
    display: none;
  }
  .menu .menu-mobile-hide {
    display: none;
  }
  .menu .menu-subheading {
    margin: 0;
    align-self: center;
  }
  .menu .menu-item-indented {
    margin-left: 0.35rem;
  }
  .menu a {
    font-size: 1rem;
  }
  .main {
    margin-left: 0;
    padding: 20px 12px 30px;
  }
  .project-summary {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .project-video-nav-prototype .project-nav-triangle {
    --triangle-width: 42px;
    --triangle-height: 24px;
    opacity: 1;
  }

  .project-video-nav-row .project-nav-label {
    font-size: 0.72rem;
  }

  .image-grid {
    grid-template-columns: 1fr;
  }
  .site-instagram {
    width: 28px;
    height: 28px;
  }
  .site-links {
    top: 16px;
    right: 14px;
    gap: 8px;
  }
  .site-link {
    width: 28px;
    height: 28px;
  }
}

@media (max-width: 1200px) {
  .image-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}