.hero {
  display: grid;
  width: 100%;
  grid-template-columns: 1fr 2fr;
  gap: 1.5rem;
  align-items: center;
  margin-bottom: 0.5rem;
}

.section-nav {
  display: inline-flex;
  gap: 0.35rem;
  margin-left: 0.5rem;
  font-size: 0.85rem;
  vertical-align: middle;
}

.section-nav__link + .section-nav__link {
  margin-left: 0.35rem;
}

.section-nav__link {
  color: #64748b;
  text-decoration: none;
}

.section-nav__link:hover {
  color: #0f172a;
}

.section-nav__link--disabled {
  color: #cbd5e1;
  cursor: default;
}

.section-share {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
  font-size: 0.85rem;
  margin: 0.5rem 0 1.25rem;
}

.section-share__label {
  font-weight: 600;
  margin-right: 0.2rem;
}

.section-share__link,
.section-share__copy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  border: 1px solid #cbd5e1;
  color: #0f172a;
  background: #fff;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  margin-left: 0.3rem;
}

.section-share__link:hover,
.section-share__copy:hover {
  background: #0f172a;
  color: #fff;
  border-color: #0f172a;
}

.section-share__copy {
  font-size: 0.8rem;
}

.section-share__status {
  min-width: 2.5rem;
  font-size: 0.75rem;
  color: #16a34a;
  margin-left: 0.3rem;
}

.hero-name {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  text-align: center;
}

.hero-name > div:first-child {
  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  white-space: nowrap;
  text-align: center;
}

.hero-links {
  display: flex;
  gap: 0.6rem;
  font-size: 0.95rem;
  flex-wrap: wrap;
  justify-content: center;
}

.hero-links a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid rgba(0, 0, 0, 0.2);
}

.hero-links a:hover {
  border-bottom-color: currentColor;
}

.hero-links span {
  opacity: 0.4;
}

.hero-blurb {
  font-size: 1rem;
  line-height: 1.6;
}



.projects-grid {
  position: relative;
  width: 100%;
  margin: 0 0 1.5rem;
  padding: 0;
}

.projects-grid::after {
  content: "";
  display: block;
  clear: both;
}

.projects-grid .grid-item {
  margin: 0;
  padding: 0;
}

.project-column {
  display: flex;
  flex-direction: column;
  gap: 0;
  align-items: stretch;
  text-align: center;
}

.project-column-title {
  font-weight: 700;
  font-size: 0.95rem;
  color: #0f172a;
  display: block;
  margin-bottom: 0.5rem;
  text-align: center;
  align-self: center;
}

.projects-grid .grid-sizer,
.projects-grid .grid-item {
  width: 20%;
  float: left;
}

#quarto-content.page-layout-article,
#quarto-content.page-layout-article > .page-columns,
.page-columns.page-full > .column-screen {
  max-width: none;
  width: 100%;
  padding: 0;
}

.page-columns.page-full {
  gap: 0;
  column-gap: 0;
}

main#quarto-document-content {
  max-width: none;
  padding: 0;
  display: block;
}

.column-page.project-detail-wrapper {
  width: 100%;
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 1.5rem 2.5rem;
}

.column-page.project-detail-wrapper > * {
  max-width: none;
}

.column-page.project-detail-wrapper section.level1,
.column-page.project-detail-wrapper section.level2 {
  max-width: none;
  margin-bottom: 1.6rem;
}

.column-page.project-detail-wrapper .no-row-height.column-margin.column-container {
  display: block;
  margin: 0;
}
.column-page.project-detail-wrapper .no-row-height.column-margin.column-container > div {
  margin: 0;
}

@media (max-width: 1000px) {
  .projects-grid .grid-sizer,
  .projects-grid .grid-item {
    width: 25%;
  }
}

@media (max-width: 820px) {
  .projects-grid .grid-sizer,
  .projects-grid .grid-item {
    width: 33.3333%;
  }
}

@media (max-width: 620px) {
  .projects-grid .grid-sizer,
  .projects-grid .grid-item {
    width: 50%;
  }
}

@media (max-width: 420px) {
  .projects-grid .grid-sizer,
  .projects-grid .grid-item {
    width: 100%;
  }
}



.project-card {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  height: auto;
  min-height: 0;
  overflow: hidden;
  padding: 0.18rem 0.28rem 0.18rem;
  border-radius: 6px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04);
  align-items: stretch;
  text-align: center;
  width: 100%;
}

.project-card a {
  text-decoration: none;
  color: inherit;
  display: block;
}
.project-card a:hover {
  text-decoration: underline;
}

.project-card a strong {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  color: rgba(15, 23, 42, 0.7);
  margin-bottom: 0.12rem;
}

.project-card-frames {
  position: relative;
  width: 100%;
  aspect-ratio: var(--project-card-aspect, 16 / 9);
  overflow: hidden;
}

.project-card-frame {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 3s ease;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}

.project-card-frame.is-active {
  opacity: 1;
  pointer-events: auto;
}

.project-card-frame img,
.project-card-frame video {
  width: 100%;
  height: 100%;
  object-fit: contain !important;
  object-position: top center;
  border-radius: 0;
}

.project-card-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.project-detail {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  margin: 0.5rem 0 1.4rem;
}

.project-detail__media {
  flex: 0 0 48%;
  max-width: 48%;
}

.project-detail__media > * {
  width: 100%;
}

.project-detail__body {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  font-size: 0.92rem;
  line-height: 1.55;
}

.project-detail__body p {
  margin: 0;
}

.project-detail__body p + p {
  margin-top: 0.35rem;
}

.project-detail__body ul,
.project-detail__body ol {
  margin: 0;
  padding-left: 1.1rem;
}

.project-detail__body strong:first-child {
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: inline-block;
}

@media (max-width: 980px) {
  .project-detail {
    flex-direction: column;
    gap: 1rem;
  }

  .project-detail__media {
    flex: 0 0 auto;
    max-width: 100%;
  }
}

.project-card img,
.project-card video {
  object-fit: cover;
}

.project-card iframe {
  border: 0;
}

.project-card--embed {
  height: auto;
}

.project-card-media {
  position: relative;
  width: 100%;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.12);
}

.project-card-media--16x9 {
  padding-top: 56.25%;
  aspect-ratio: 16 / 9;
}

.project-video-embed {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
}

.project-video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.project-card-media iframe,
.project-card-media video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.project-card-placeholder {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0.75rem;
  border-radius: 4px;
  background: rgba(15, 23, 42, 0.04);
  color: #1f2937;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.project-carousel {
  --carousel-aspect: 16 / 9;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 0.75rem 0.75rem 1.25rem;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(245, 246, 252, 0.9));
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
  overflow: hidden;
}

.project-carousel[data-slides="1"] .carousel-nav,
.project-carousel[data-slides="1"] .carousel-dots {
  display: none;
}

.carousel-viewport {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  width: 100%;
  aspect-ratio: var(--carousel-aspect, 16 / 9);
}

.carousel-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.65s ease, transform 0.65s ease;
  transform: scale(0.99);
  pointer-events: none;
}

.carousel-slide.is-active {
  position: relative;
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

.carousel-slide figure,
.carousel-slide video,
.carousel-slide img,
.carousel-slide iframe {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.carousel-slide figure {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
}

.carousel-slide figcaption {
  display: none;
}

.carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 999px;
  border: none;
  background: rgba(15, 23, 42, 0.45);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background 0.2s ease;
  backdrop-filter: blur(6px);
  z-index: 3;
}

.carousel-nav:hover {
  background: rgba(15, 23, 42, 0.7);
}

.carousel-nav:focus-visible {
  outline: 2px solid rgba(99, 102, 241, 0.9);
  outline-offset: 2px;
}

.carousel-nav--prev {
  left: 0.75rem;
}

.carousel-nav--next {
  right: 0.75rem;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.4rem;
}

.carousel-dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 999px;
  border: none;
  background: rgba(15, 23, 42, 0.18);
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

.carousel-dot:hover,
.carousel-dot:focus-visible {
  transform: scale(1.2);
  background: rgba(15, 23, 42, 0.4);
}

.carousel-dot.is-active {
  background: rgba(15, 23, 42, 0.75);
}

.project-carousel video,
.project-carousel img,
.project-carousel iframe {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 10px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
  background: #000;
}

.project-carousel iframe {
  border: 0;
}

.project-carousel[data-slides] {
  padding-bottom: 1rem;
}

.project-carousel + .column-margin {
  margin-top: 0.4rem;
}

.project-card img,
.project-card video,
.project-card iframe {
  width: 100%;
  border-radius: 4px;
}

.project-card img,
.project-card video {
  object-fit: cover;
}

.project-card iframe {
  border: 0;
}

@media (max-width: 800px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .hero-name > div:first-child {
    font-size: 1.8rem;
  }

  .project-card {
    height: 160px;
  }

  .carousel-viewport {
    height: clamp(220px, 60vw, 420px);
  }

  .carousel-nav {
    width: 2.2rem;
    height: 2.2rem;
  }
}


.content.page-full > .page-columns.page-full:first-child {
  margin-top: 0;
}

.page-columns.page-full + .page-columns.page-full {
  margin-top: 0.35rem;
}

main#quarto-document-content {
  padding-top: 0.25rem;
  padding-bottom: 1.25rem;
}

.project-card--tall {
  height: 200px;
}

main#quarto-document-content img.img-fluid,
main#quarto-document-content img[width],
main#quarto-document-content video.project-embed,
main#quarto-document-content iframe.project-embed,
main#quarto-document-content .project-card video {
  width: 100% !important;
  height: auto;
}
.page-columns.page-full > .column-screen,
#quarto-content.page-layout-article,
#quarto-content.page-layout-article > .page-columns {
  max-width: none;
  width: 100%;
  padding: 0;
}

.project-toc {
  margin: 0 0 2rem;
}
