@import './blocks.css';

:root {
  --sticky-menu-height: 125px;
  --purple: #8D306B;
  --darkgreen: #05561F;
  --white: #F8F5EE;
  --green: #64D790;
  --grey: #DDDDD6;
  --yellow: #E0FF00;
  --darkgrey: #707070;
  --black: #323233;
  --grid-border: 1px solid #111;
  --grid-gap: 0px;
  --panel-padding: 14px 24px;
}

body{
  overflow-x: clip;
  max-width: 100vw;
  padding: 0;
  margin: 0;
  font-family: helvetica;
  background: var(--white);
  color: var(--black);
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 400;
}

h1{
  line-height: 1.05;
}

p{
  line-height: 1.4;
}

/*
 * Header styles
 */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: var(--grid-border);
  background: var(--white);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 5px 14px 5px 14px;
  max-width: 100%;
}

.logo {
  flex-shrink: 0;
}

.logo a {
  display: block;
  text-decoration: none;
}

.logo-img {
  display: block;
  height: 120px;
  width: auto;
}

.main-nav {
  flex-shrink: 0;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 48px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-list a {
  margin: 0;
  padding: 0;
}

.nav-list a {
  color: var(--black);
  text-decoration: none;
  font-size: 24px;
  font-weight: 400;
  transition: opacity 0.2s ease;
}

.nav-list a:hover {
  opacity: 0.7;
  text-decoration: none;
}

/*
 * Mobile header
 */

@media (max-width: 800px) {
  .header-inner {
    padding: 16px var(--panel-padding);
  }
  
  .logo-img {
    height: 40px;
  }
  
  .nav-list {
    gap: 20px;
  }
  
  .nav-link {
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .header-inner {
    flex-wrap: wrap;
    gap: 12px;
  }
  
  .nav-list {
    gap: 16px;
    width: 100%;
    justify-content: center;
  }
}


* {
  box-sizing: border-box;
}

.home-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 1fr);
  grid-template-rows: minmax(0, auto);
  gap: var(--grid-gap);
  min-height: calc(100dvh - var(--sticky-menu-height));
  align-content: start;
  border-top: var(--grid-border);
  border-left: var(--grid-border);
}

.header-navigation {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.language-switcher ul {
  display: flex;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.language-switcher a {
  color: inherit;
  font-family: "Courier New", Courier, monospace;
  font-size: 16px;
  text-decoration: none;
}

.language-switcher a[aria-current="true"] {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.rss-page-link a{
  margin-right: 14px;
}

.home-introduction {
  padding: 24px var(--panel-padding);
  font-size: clamp(24px, 2vw, 42px);
  line-height: 1.1;
  border-bottom: var(--grid-border);
}

.home-introduction > :first-child {
  margin-top: 0;
}

.home-introduction > :last-child {
  margin-bottom: 0;
}

.panel-introduction {
  display: none;
  padding: 0 var(--panel-padding) 24px;
  font-size: clamp(24px, 2vw, 42px);
  line-height: 1.1;
}


.panel-introduction > :first-child {
  margin-top: 0;
}

.panel-introduction > :last-child {
  margin-bottom: 0;
}

.home-grid.is-viewing-all {
  grid-template-columns: minmax(0, 3fr) minmax(280px, 1fr);
}

.home-grid.is-viewing-all .home-introduction {
  display: none;
}

.home-grid.is-viewing-all .home-panel.is-active .panel-introduction {
  display: block;
}

/*
 * The active panel always takes the complete left column.
 */
.home-panel.is-active {
  grid-column: 1;
  grid-row: 1 / -1;
}

/*
 * When viewing all, the active panel takes 75% of the width
 */
.home-grid.is-viewing-all .home-panel.is-active {
  grid-column: 1;
  grid-row: 1 / -1;
}

/*
 * Inactive panels are placed underneath each other on the right.
 */
.home-panel:not(.is-active) {
  grid-column: 2;
}


/*
 * JavaScript sets these more reliable row classes whenever
 * the active panel changes.
 */
.home-panel.is-secondary-first {
  grid-column: 2;
  grid-row: 1;
}

.home-panel.is-secondary-second {
  grid-column: 2;
  grid-row: 2;
}

.home-panel.is-secondary-third {
  grid-column: 2;
  grid-row: 3;
}

.home-panel {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border-right: var(--grid-border);
  border-bottom: var(--grid-border);
  /* padding-bottom: 24px; */
}

/*
 * Keep the heading, introduction, and items in one scrollable panel.
 */
.home-grid.is-viewing-all .home-panel.is-active {
  max-height: none;
  overflow: visible;
}

/* The inactive homepage panels share one rail that follows the page scroll. */
.home-sidebar {
  grid-column: 2;
  grid-row: 1;
  align-self: start;
  position: sticky;
  top: var(--sticky-menu-height);
  display: flex;
  flex-direction: column;
  min-width: 0;
  max-height: none;
  overflow: visible;
}

.home-sidebar > .home-panel {
  grid-column: auto;
  grid-row: auto;
  flex: 0 0 auto;
  width: 100%;
}

.home-sidebar > .home-panel.is-active {
  display: none;
}

.home-grid.is-viewing-all .places-panel.is-active .panel-content {
  max-height: none;
  overflow: visible;
}

.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: fit-content;
  margin: 14px auto;
  padding: 10px 24px;
  color: inherit;
  font: inherit;
  font-size: 30px;
  line-height: 1;
  text-align: left;
  cursor: pointer;
  border-radius: 24px;
  border: 0;
  position: relative;
  z-index: 5;
}

.panel-tagline {
  display: block;
  margin: 0 auto 14px;
  padding: 0 24px;
  font-size: 18px;
  line-height: 1.2;
  text-align: center;
  font-family: Courier New, Courier, monospace;
}

.home-grid.is-viewing-all .home-panel:not(.is-active) .panel-tagline {
  display: none;
}

.panel-heading.projects-heading {
  background-color: var(--purple);
}
.panel-heading.projects-heading span, .panel-heading.precedents-heading span{
  color: var(--white);
  font-weight: 300;
}
.panel-heading.precedents-heading {
  background-color: var(--darkgreen);
}
.panel-heading.places-heading {
  background-color: var(--yellow);
} 
.panel-heading.people-heading {
  background-color: var(--green);
}

.panel-count {
  display: grid;
  place-items: center;
  min-width: 32px;
  min-height: 32px;
  padding: 6px;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-size: 12px;
}

.panel-content {
  padding: var(--panel-padding);
  position: relative;
  z-index: 1;
}

.entries-grid {
  display: grid;
  gap: 0;
}

.entry-card {
  padding: 18px 0;
  border-bottom: var(--grid-border);
}

.entry-card:first-child {
  padding-top: 0;
}

.entry-card:last-child{
  border-bottom: 0px solid black;
}

.entry-slider {
  position: relative;
}

.entry-slider-viewport {
  overflow: hidden;
  transition: height 0.2s ease;
}

.entry-slider .entries-grid {
  will-change: transform;
}

.entry-slider-controls {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 16px;
}

.entry-slider-button {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin: 0;
  padding: 0;
  color: var(--black);
  background: var(--white);
  border: 1px solid currentColor;
  border-radius: 50%;
  cursor: pointer;
}

.entry-slider-button:hover {
  color: var(--white);
  background: var(--black);
}

.entry-slider-button:disabled {
  visibility: hidden;
  pointer-events: none;
}

.home-grid.is-viewing-all .home-panel.is-active .entry-slider-viewport {
  height: auto !important;
  overflow: visible;
}

.home-grid.is-viewing-all .home-panel.is-active .entry-slider .entries-grid {
  transform: none !important;
  transition: none !important;
}

.home-grid.is-viewing-all .home-panel.is-active .entry-slider-controls {
  display: none;
}

.entry-card h3 {
  margin: 0 0 10px;
  font-size: clamp(20px, 2vw, 32px);
  line-height: 1.05;
}

.entry-card a {
  color: inherit;
  text-decoration: none;
}

.entry-card a:hover {
  text-decoration: underline;
}

.entry-card p {
  margin: 0;
  line-height: 1.4;
  max-width: 900px;
}

.project-card-image,
.project-card-introduction {
  display: none;
}

.home-grid.is-viewing-all .home-panel.is-active .projects-heading ~ .panel-content .entries-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 32px;
}

.home-grid.is-viewing-all .home-panel.is-active .projects-heading ~ .panel-content .project-card:has(.project-card-image) {
  display: grid !important;
  grid-template-columns: minmax(140px, 10%) minmax(0, 1fr);
  column-gap: 24px;
  align-items: start;
}

.home-grid.is-viewing-all .home-panel.is-active .projects-heading ~ .panel-content .project-card-introduction {
  display: block;
  margin: 0 0 12px;
  line-height: 1.4;
}

.home-grid.is-viewing-all .home-panel.is-active .projects-heading ~ .panel-content .project-card-image {
  display: block;
  overflow: hidden;
  grid-column: 1;
  grid-row: 1 / span 3;
  aspect-ratio: 1 / 1;
}

.project-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
  /* border-radius: 50%; */
}

.home-grid.is-viewing-all .home-panel.is-active .projects-heading ~ .panel-content .project-card:has(.project-card-image) h3,
.home-grid.is-viewing-all .home-panel.is-active .projects-heading ~ .panel-content .project-card:has(.project-card-image) .project-card-introduction {
  grid-column: 2;
}

.home-grid.is-viewing-all .home-panel.is-active .projects-heading ~ .panel-content .project-card > p {
  display: none;
}

@media (max-width: 800px) {
  .home-grid.is-viewing-all .home-panel.is-active .projects-heading ~ .panel-content .entries-grid {
    grid-template-columns: 1fr;
  }
}

.view-all {
  display: inline-block;
  margin-top: 24px;
  color: inherit;
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  cursor: pointer;
  text-align: left;
}

.view-all:hover {
  text-decoration: underline;
}

.home-panel {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border-right: var(--grid-border);
  /* border-bottom: var(--grid-border); */
  border-bottom: 0px solid black;
}

/*
 * Inactive section presentation
 */
.home-panel:not(.is-active) {
  cursor: pointer;
  border-bottom: var(--grid-border);
}

.home-panel:not(.is-active):last-child {
  border-bottom: 0;
}

.home-panel:not(.is-active) .panel-content {
  max-height: none;
  overflow: visible;
}

.home-panel:not(.is-active) .entry-card {
  padding: 10px 0;
}

.home-panel:not(.is-active) .entry-card h3 {
  margin: 0;
  font-size: clamp(17px, 1.5vw, 24px);
}

.home-panel:not(.is-active) .entry-card p {
  display: none;
}

.home-panel:not(.is-active) .view-all {
  display: none;
}


/*
 * Detail grid: 75% content, 25% related items
 */

.detail-grid {
    display: grid;
    grid-template-columns:
        minmax(0, 3fr)
        minmax(260px, 1fr);
    min-height: calc(100dvh - var(--sticky-menu-height));
    border-top: var(--grid-border);
    border-left: var(--grid-border);
    view-transition-name: content-grid;
    align-items: start;
}

.detail-main,
.detail-related {
    min-width: 0;
    border-right: var(--grid-border);
    border-bottom: var(--grid-border);
}

.detail-main {
    view-transition-name: main-panel;
    min-height: calc(100dvh - var(--sticky-menu-height));
}

.detail-related {
    view-transition-name: related-panel;
    position: sticky;
    top: var(--sticky-menu-height);
    max-height: calc(100dvh - var(--sticky-menu-height));
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
}


/* Main content */

.detail-header {
    padding: var(--panel-padding);
}

.detail-back {
    display: inline-block;
    margin: 0 0 40px;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    cursor: pointer;
}

.detail-header h1 {
    margin: 0;
    margin-bottom: 14px;
    font-size: 60px;
    font-weight: inherit;
    overflow-wrap: anywhere;
}

.detail-content {
    padding: var(--panel-padding);
}

.detail-introduction {
    max-width: 45rem;
    margin: auto;
    /* margin-bottom: clamp(48px, 8vw, 120px); */
    font-size: 36px;
    line-height: 1.05;
}


/* Related column */

/* Related column */

.detail-related {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    height: auto;
    min-height: 0;
}

.related-section {
    position: relative;
    inset: auto;
    display: block;
    flex: 0 0 auto;
    width: 100%;
    height: auto;
    min-height: 0;
    overflow: visible;
}

.related-section + .related-section {
    border-top: var(--grid-border);
}

.related-section h2 {
    position: relative;
    margin: 14px auto;
    padding: 10px 20px;
    border-radius: 24px;
    font-weight: inherit;
    line-height: 1;
    background-color: var(--grey);
    width: fit-content;
}

.related-section.projects h2 {
    background-color: var(--purple);
    color: var(--white);
}
.related-section.precedents h2 {
    background-color: var(--darkgreen);
    color: var(--white);
}
.related-section.places h2 {
    background-color: var(--yellow);  
}
.related-section.community h2 {  
    background-color: var(--green);
}

.related-list {
    position: relative;
    display: block;
    width: 100%;
    height: auto;
    overflow: visible;
}

.related-item {
    position: relative;
    display: block;
    width: 100%;
    height: auto;
    padding: 16px var(--panel-padding);
    border-bottom: var(--grid-border);
}

.related-item:last-child {
    border-bottom: 0;
}

.related-item h3 {
    margin: 0;
    font-size: clamp(17px, 1.5vw, 24px);
    font-weight: inherit;
    line-height: 1.1;
}

.related-item h3 a {
    color: inherit;
    text-decoration: none;
}

.related-item h3 a:hover {
    text-decoration: underline;
}

.related-item p {
    margin: 12px 0 0;
    font-size: 14px;
    line-height: 1.35;
}

.related-empty {
    margin: 0;
    padding: var(--panel-padding);
}

.main-image img{
  width: 100%;
  height: auto;
  display: block;
  margin: 0 auto 24px auto;
  object-fit: cover;
}

/* precedents page */
.type-precedents, .type-precedents article, .type-precedents .site-header{
  background: var(--darkgreen);
  color: var(--white);
}

.type-precedents .site-header, .type-precedents .detail-main, .type-precedents .related-item, .type-precedents .related-section{
  border-color: var(--white);
}

.type-precedents .detail-related{
  border-color: var(--white);
  border-right: none;
}

.type-precedents .site-header .nav-list a{
  color: var(--white);
}

.type-precedents .related-section h2{
  color: var(--black);
}

.type-precedents .site-footer{
  border-color: var(--white);
}

.type-precedents .site-logo-reveal{
  filter: invert(1);
}

/* people page */
.type-people .detail-header h1{
  font-size: 36px;
  position: absolute;
  top: 90px;
  display: none;
}
.type-people .main-image img{
  width: 100%;
  height: 100%;
  display: block;
  margin: 0 auto 24px auto;
  object-fit: cover;
  border-radius: 50%;
  max-width: 400px;
  max-height: 400px;
  aspect-ratio: 1/1;
}
.type-people .detail-introduction{
  text-align: center;
}

.type-people .detail-type{
  display: flex;
  justify-content: center;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  font-size: 18px;
  font-family: Courier New, Courier, monospace;
}

.type-people .detail-type span{
  display: block;
}

.type-projects .detail-header{
  display: flex;
}

.type-projects .detail-header-text{
  margin-left: 24px;
}

.type-projects .detail-header .main-image{
  max-width: 50%;
  height: auto;
}


article{
  background: var(--white);
}

aside{
  z-index: -1;
}

.places-panel .entry-card{
  position: relative;
}

.places-panel .entry-card h3{
  padding-left: 45px;
}

.places-panel .entry-card:before{
  content: '';
  position: absolute;
  /* top: 10px; */
  left: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background-color: var(--yellow);
}

.places-map {
  position: relative;
  display: none;
  height: 80vh;
  min-height: 500px;
  overflow: hidden;
  background: transparent;
}

.places-panel.is-active .places-map {
  display: block;
}

.places-panel.is-active {
  display: flex;
  flex-direction: column;
  min-height: calc(100dvh - var(--sticky-menu-height));
}

.places-panel.is-active .panel-content {
  display: flex;
  flex: 1;
  min-height: 0;
  padding: 0;
}

.places-panel.is-active .places-map {
  flex: 1;
  /* height: auto; */
}

.places-panel.is-active .entries-grid {
  display: none;
}

.places-map-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.places-map-canvas {
  position: absolute;
  inset: 0;
}

.places-map-lines path {
  fill: none;
  stroke: var(--darkgrey);
  stroke-width: 0.45px;
  stroke-linecap: round;
  opacity: 0.7;
  vector-effect: non-scaling-stroke;
}

.places-map-lines .places-map-link--project {
  stroke: var(--purple);
}

.places-map-lines .places-map-link--person {
  stroke: var(--green);
}

.places-map-lines .places-map-link--precedent {
  stroke: var(--darkgreen);
}

.places-map-lines .places-map-link--concept {
  stroke: var(--darkgrey);
}

.places-map-lines .places-map-link--other {
  stroke: var(--black);
}

.places-map-node {
  position: absolute;
  left: var(--place-x);
  top: var(--place-y);
  display: block;
  width: min(calc(28px + (var(--place-connections) * 10px)), 78px);
  height: min(calc(28px + (var(--place-connections) * 10px)), 78px);
  color: var(--black);
  text-decoration: none;
  transform: translate(-50%, -50%);
}

.places-map-marker {
  position: relative;
  z-index: 2;
  display: block;
  width: 100%;
  height: 100%;
  border: 1px solid var(--black);
  border-radius: 50%;
  background: var(--yellow);
  transition: transform 0.2s ease, background-color 0.2s ease, opacity 0.2s ease;
}

.places-map-relations {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.places-map-relation {
  --relation-radius: calc(42px + (var(--place-connections) * 7px) + var(--relation-offset));
  position: absolute;
  top: 50%;
  left: 50%;
  width: var(--relation-radius);
  height: 1px;
  transform: rotate(calc(360deg / var(--relation-count) * var(--relation-index)));
  transform-origin: left center;
}

.places-map-relation::before {
  position: absolute;
  inset: 0;
  content: "";
  background: currentColor;
  opacity: 0.6;
}

.places-map-relation-dot {
  position: absolute;
  top: 50%;
  right: -6px;
  width: 12px;
  height: 12px;
  content: "";
  border: 1px solid var(--black);
  border-radius: 50%;
  background: currentColor;
  transform: translateY(-50%);
  animation: places-relation-pulse 2.8s ease-in-out infinite;
  animation-delay: calc(var(--relation-index) * -0.35s);
}

@keyframes places-relation-pulse {
  0%,
  100% {
    transform: translateY(-50%) scale(1);
  }

  50% {
    transform: translateY(-50%) scale(1.2);
  }
}

.places-map-relation--project {
  color: var(--purple);
}

.places-map-relation--person {
  color: var(--green);
}

.places-map-relation--precedent {
  color: var(--darkgreen);
}

.places-map-relation--concept {
  color: var(--darkgrey);
}

.places-map-relation--other {
  color: var(--black);
}

.places-map-label {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  width: max-content;
  max-width: 160px;
  padding: 5px 8px;
  background: var(--white);
  font-size: 14px;
  line-height: 1.1;
  opacity: 0;
  pointer-events: none;
  text-align: center;
  transform: translateX(-50%);
  transition: opacity 0.2s ease;
  z-index: 3;
}

.places-map-node:hover .places-map-marker,
.places-map-node:focus-visible .places-map-marker {
  transform: scale(1.3);
}

.places-map-node:hover .places-map-label,
.places-map-node:focus-visible .places-map-label {
  opacity: 1;
}

.places-map-node:focus-visible {
  outline: none;
}

@media (max-width: 800px) {
  .places-map {
    height: calc(100vh - 130px);
    min-height: 440px;
  }

  .places-map-label {
    font-size: 12px;
  }
}

/* People Carousel */
.people-carousel {
  --carousel-gap: 24px;
  position: relative;
  width: 100%;
  margin: 0 auto;
  padding: 0 56px;
}

.carousel-track-wrapper {
  overflow: hidden;
  width: 100%;
}

.carousel-track {
  display: flex;
  gap: var(--carousel-gap);
  justify-content: flex-start;
  will-change: transform;
}

.carousel-track .people-card {
  flex: 0 0 calc((100% - (var(--carousel-gap) * 4)) / 5);
  text-align: center;
  transition: opacity 0.3s ease, transform 0.3s ease;
  width: calc((100% - (var(--carousel-gap) * 4)) / 5);
}

.related-section .people-carousel {
  --carousel-gap: 8px;
  padding: 0 24px;
  padding-bottom: 14px;
}

.related-section .carousel-track .people-card {
  flex-basis: calc((100% - (var(--carousel-gap) * 2)) / 3);
  min-width: 0;
  width: calc((100% - (var(--carousel-gap) * 2)) / 3);
}

.related-section .people-card  .people-card-image{
      max-height: 300px;
      max-width: 300px;
      margin-left: auto;
      margin-right: auto;
}


.related-section .carousel-track {
  justify-content: center;
}

.related-section .people-card h3 {
  font-size: clamp(13px, 1vw, 14px);
  overflow-wrap: break-word;
}

.related-section .carousel-button {
  width: 32px;
  height: 32px;
}

.related-section .carousel-button svg {
  width: 16px;
  height: 16px;
}

.related-section .carousel--single .carousel-track,
.related-section .carousel--pair .carousel-track {
  justify-content: center;
}

.related-section .carousel--single .people-card {
  flex-basis: 100%;
  width: 100%;
}

.related-section .carousel--pair .people-card {
  flex-basis: calc((100% - var(--carousel-gap)) / 2);
  width: calc((100% - var(--carousel-gap)) / 2);
}

/* Tablet: show 3 items with peek effect */
@media (min-width: 801px) and (max-width: 1200px) {
  .carousel-track .people-card {
    flex-basis: calc((100% - (var(--carousel-gap) * 2)) / 3);
    width: calc((100% - (var(--carousel-gap) * 2)) / 3);
  }
}

/* Mobile: one complete card per view */
@media (max-width: 800px) {
  .people-carousel {
    --carousel-gap: 16px;
  }

  .carousel-track .people-card {
    flex-basis: 100%;
    width: 100%;
  }

  .related-section .carousel--pair .carousel-track {
    justify-content: flex-start;
  }

  .related-section .carousel--pair .people-card {
    flex-basis: calc((100% - var(--carousel-gap)) / 2);
    width: calc((100% - var(--carousel-gap)) / 2);
  }

  .related-section .people-carousel {
    padding: 0 24px;
  }
}

.people-card-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 50%;
  margin-bottom: 12px;
  background: var(--grey);
  position: relative;
}

.project-card-image {
  overflow: hidden;
  background: var(--grey);
  position: relative;
}

.people-card-image:before{
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  background-color: var(--green);
  opacity: 0.4;
  top: 0;
  left: 0;
}

.project-card-image:before{
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  background-color: var(--purple);
  opacity: 0.4;
  top: 0;
  left: 0;
  border-radius: 10px;
}

.people-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: grayscale(0.8) contrast(1);
  mix-blend-mode: multiply;
}

.project-card-image{
  border-radius: 10px;
}

.project-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: grayscale(1) contrast(1.2);
  mix-blend-mode: multiply;
  border-radius: 10px;
}

.people-card h3 {
  margin: 0;
  font-size: clamp(16px, 1.3vw, 18px);
  font-weight: 400;
  line-height: 1.2;
  word-break: break-word;
  text-align: center;
}

.people-grid {
  display: none;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 24px;
}

.people-panel.is-active .people-carousel {
  display: none;
}

.people-panel.is-active .people-grid {
  display: grid;
}

.site-footer {
  border-top: var(--grid-border);
}

.footer-inner {
  padding: 24px var(--panel-padding);
  text-align: center;
}

.footer-inner > :first-child {
  margin-top: 0;
}

.footer-inner > :last-child {
  margin-bottom: 0;
}

.home-grid.is-viewing-all .home-panel:not(.is-active) .carousel-track .people-card {
  flex-basis: calc((100% - var(--carousel-gap)) / 2);
  width: calc((100% - var(--carousel-gap)) / 2);
}

.people-card a {
  color: inherit;
  text-decoration: none;
  display: block;
}

.people-card a:hover {
  text-decoration: none;
}

.people-card a:hover h3 {
  text-decoration: underline;
}

.carousel-button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: var(--white);
  border: 1px solid var(--black);
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.2s ease;
}

.carousel-button[hidden] {
  display: none;
}

.carousel-button:hover {
  background: var(--black);
  color: var(--white);
}

.carousel-button:hover svg {
  stroke: var(--white);
}

.carousel-button-prev {
  left: 0;
}

.carousel-button-next {
  right: 0;
}

.carousel-button svg {
  width: 24px;
  height: 24px;
  stroke: var(--black);
}

/* Tablet */
@media (max-width: 1200px) {
  .people-carousel {
    padding: 0 52px;
  }
}

/* Mobile */
@media (max-width: 800px) {
  .people-carousel {
    padding: 0 48px;
  }
  
  .carousel-button {
    width: 40px;
    height: 40px;
  }
  
  .carousel-button svg {
    width: 20px;
    height: 20px;
  }
}

/* Mobile */
@media (max-width: 800px) {
  :root{
    --panel-padding: 14px;
  }
  .site-header {
    position: relative;
  }

  .home-sidebar {
    position: static;
    display: block;
    max-height: none;
    overflow: visible;
  }

  .home-grid {
    display: block;
    min-height: auto;
  }

  .home-panel,
  .home-panel.is-active,
  .home-panel.is-secondary-first,
  .home-panel.is-secondary-second, .home-panel.is-secondary-third {
    min-height: auto;
  }

  .home-panel:not(.is-active) .panel-content {
    display: none;
  }

  .home-panel.is-active .panel-content {
    display: block;
  }

  .panel-heading {
    font-size: 28px;
  }
      .detail-grid {
        display: block;
        min-height: auto;
    }

    .detail-main {
      min-height: 0;
    }

    .detail-related {
      position: static;
      max-height: none;
      overflow: visible;
    }

    .detail-header h1 {
        font-size: clamp(48px, 4vw, 90px);
    }

    .detail-related {
        border-top: var(--grid-border);
    }

    .type-calendar_item .detail-header {
      padding: 32px var(--panel-padding) 24px;
    }

    .type-calendar_item .detail-header h1 {
      margin-bottom: 20px;
      font-size: clamp(36px, 10vw, 48px);
      line-height: 1.05;
      text-align: left;
    }

    .type-calendar_item .detail-introduction {
      margin: 0;
      font-size: clamp(20px, 6vw, 28px);
      line-height: 1.2;
    }

    .type-calendar_item .detail-content {
      padding: 24px var(--panel-padding);
    }

    .type-calendar_item .detail-related {
      min-height: auto;
    }

    .type-calendar_item .related-section h2 {
      margin: 12px auto;
      font-size: 20px;
    }

    .type-calendar_item .related-empty {
      padding: 20px var(--panel-padding);
    }

    .home-grid.is-viewing-all .home-panel.is-active .projects-heading ~ .panel-content .project-card:has(.project-card-image){
      display: block !important;
    }

    .home-grid.is-viewing-all .home-panel.is-active .projects-heading ~ .panel-content .project-card:has(.project-card-image) .project-card-image{
      margin-bottom: 14px;
    }
    .type-projects .detail-header{
      flex-direction: column;
    }
    .type-projects .detail-header .main-image{
      max-width: 100%;
    }
    .detail-introduction{
      max-width: 100%;
      font-size: 24px;
    }
    .type-projects .detail-header-text{
      margin-left: 0;
    }
}

.embed-block .embed {
    position: relative;
    width: 100%;
}

.embed-block iframe {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 180px;
    border: 0;
    aspect-ratio: 16 / 9;
}

.collapsible-block .collapsible {
    border-top: 1px solid currentColor;
    margin-top: 24px;
}

.collapsible-block .collapsible:last-child {
    border-bottom: 1px solid currentColor;
}

.collapsible-block summary {
    padding: 1rem 0;
    cursor: pointer;
    font-weight: bold;
    list-style: none;
}


.collapsible-content {
    padding: 0 0 1rem;
    max-width: 65rem;
}

.content-page .collapsible-content{
  font-size: 18px;
  font-family: Courier New, Courier, monospace;
}

[data-panel="projects"] .project-theme-filters {
  display: flex; 
  flex-wrap: wrap; 
  gap: 0.5rem 0.5rem;
  margin: 1rem 0;  
  border: 0;
  padding: 0 var(--panel-padding) 24px;
  font-size: clamp(20px, 2vw, 24px);
}
[data-panel="projects"] .project-theme-filters[hidden],
[data-panel="projects"] .project-card[hidden],
[data-panel="projects"] .project-filter-status[hidden] { display: none !important; }
.project-theme-filters legend { margin-bottom: .5rem; font: inherit; }

.project-theme-filter {
  appearance: none; 
  border: 1px solid currentColor; 
  padding: 5px 14px;
  border-radius: 24px;
  background: transparent; color: inherit; font: inherit;
  text-align: left; cursor: pointer;
  text-decoration: underline; text-underline-offset: .2em;
  text-decoration-color: transparent;
}
.project-theme-filter:hover,
.project-theme-filter[aria-pressed="true"] { 
  background: var(--black); color: var(--white); 
  text-decoration: none;
}
.project-filter-status { 
  text-align: center;
  font-family: Courier New, Courier, monospace;
}

.home-grid:not(.is-viewing-all) [data-project-theme-filters],
.home-grid:not(.is-viewing-all) [data-project-filter-status],
.home-panel:not(.is-active) [data-project-theme-filters],
.home-panel:not(.is-active) [data-project-filter-status] {
  display: none !important;
}

/* Header search */
.site-header .header-tools { display:flex; align-items:center; justify-content:flex-end; gap:20px; min-width:0; }
.site-header .site-search { position:relative; width:210px; max-width:100%; font:16px "Courier New", monospace; }
.site-header .site-search form { display:flex; align-items:center; border-bottom:1px solid currentColor; margin:0; }
.site-header .search-label { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); }
.site-header .site-search input { width:100%; min-width:0; border:0; border-radius:0; background:transparent; color:inherit; font:inherit; padding:6px 0; }
.site-header .site-search input::placeholder { color:inherit; opacity:.65; }
.site-header .site-search button { border:0; background:transparent; color:inherit; font:inherit; padding:6px; cursor:pointer; }
*:focus {outline:0;}
.site-header .site-search-results { position:absolute; top:calc(100% + 8px); right:0; width:min(460px, calc(100vw - 40px)); max-height:60vh; overflow-y:auto; background:var(--white, #fff); color:var(--black, #000); border:1px solid currentColor; padding:16px; box-sizing:border-box; z-index:1000; text-align:left; }
.site-header .site-search-results[hidden] { display:none; }
.site-header .site-search-status { margin:0 0 10px; font-size:14px; }
.site-header .site-search-list { list-style:none; padding:0; margin:0; }
.site-header .site-search-list li + li { border-top:1px solid currentColor; }
.site-header .site-search-list a { display:block; color:inherit; text-decoration:none; padding:12px 0; }
.site-header .site-search-list a:hover strong { text-decoration:underline; }
.site-header .site-search-list strong, .site-header .site-search-list small, .site-header .site-search-list span { display:block; overflow-wrap:anywhere; }
.site-header .site-search-list small { margin:4px 0; opacity:.65; }
.site-header .site-search-list span { font-size:14px; line-height:1.4; }
@media(max-width:800px) {
  .site-header.has-mobile-menu .header-tools { order:1; flex-wrap:wrap; justify-content:flex-start; width:100%; }
  .site-header.has-mobile-menu .site-search { flex:1 1 200px; }
  .site-header.has-mobile-menu .site-search-results { position:static; width:100%; margin-top:8px; max-height:40vh; }
}


@media(min-width:800px){
.places-map-filters{
  position: fixed!important;
}
}

p a{
  color: inherit;
}

.footer-logo img{
  display: block;
  margin: 0 auto;
  width: 600px;
  height: auto!important;
  max-width: 100vw;
  mix-blend-mode: multiply;
}
/* The simulation owns position changes; never interpolate them with CSS. */
.places-map-node {
  transition: none;
  touch-action: none;
}

.places-map-relations {
  transform-origin: center;
}

@media (prefers-reduced-motion: reduce) {
  .places-map-relation-dot { animation: none; }
  .places-map-marker,
  .places-map-label { transition: none; }
}

.places-map[data-map-pending] .places-map-canvas {
  opacity: 0;
  pointer-events: none;
}
