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

@view-transition {
  navigation: auto;
}

::view-transition-old(root),
::view-transition-new(root) {
  animation: fade 0.3s ease both;
}

@keyframes fade {
  from { opacity: 0; }
  to   { opacity: 1; }
}

html {
  font-family: var(--font-family-sans);
  color: var(--color-text);
  background: var(--color-background);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img {
  width: 100%;
}

html, body {
  min-height: 100vh;
}


body {
  padding: 0 var(--padding);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}


body > main {
  flex-grow: 1;
  padding: 0;
}

body.no-scroll {
  overflow: hidden;
  height: 100vh;
}

.icon {
  font-family: var(--font-family-icon);
}

li {
  list-style: none;
}
a {
  color: currentColor;
  text-decoration: none;
}
button {
  font: inherit;
  background: none;
  border: 0;
  color: currentColor;
  cursor: pointer;
}
strong, b {
  font-weight: 600;
}
small {
  font-size: inherit;
  color: var(--color-text-grey);
}

.bg-light {
  background-color: var(--color-light);
}
.color-grey {
  color: var(--color-text-grey);
}

.header {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  margin: 0 auto;
  padding: 0;
  width: 100%;
}

header.header {
  /* offset for admin bar, if not set 0 */
  padding-top: var(--admin-bar--height, 0);
}

header a.logo {
  height: 164px;
  padding: 0;
  width: auto;
  min-width: 0;
  flex-shrink: 0;
  view-transition-name: site-logo;
}
header a.logo video, header a.logo img {
  width: auto;
  height: 100%;
  min-width: 80px;
  aspect-ratio: 7/5;
  object-fit: contain;
}

::view-transition-old(site-logo),
::view-transition-new(site-logo) {
  animation: none;
  mix-blend-mode: normal;
}

.logo {
  padding: 1rem;
  display: flex;
  align-items: center;
  font-weight: 600;
  cursor: pointer;
}

.menu {
  display: flex;
  align-items: center;
  gap: 0;
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0;
}

.menu > a, .menu > figure {
  padding: 1rem;
  display: flex;
  justify-content: center;
  font-family: var(--font-family-display);
  font-size: 1.5rem;
  letter-spacing: 0.02em;
  text-align: center;;
  width: 100%;;
}
.menu a:hover {
  text-decoration: underline;
}
.menu figure a.menu-item:hover {
  text-decoration: none;
}
.menu a.menu-item {
  text-underline-offset: 16px;
  z-index: 999;
  position: relative;
}
.menu a[aria-current] {
  text-decoration: none;
}

.menu figure a.menu-item::after {
  content: "";
  position: absolute;
  bottom: -16px;
  left: -8px;
  width: calc(100% + 16px);
  height: 12px;
  background-image: url("../media/underline.svg");
  background-size: 120% 100%;
  background-repeat: no-repeat;
  background-position: 0 0;
  opacity: 0;
  clip-path: inset(0 100% 0 0);
  pointer-events: none;
  /* hover-OUT: fade opacity, then reset clip-path after fade completes */
  transition: opacity 0.5s ease, clip-path 0s 0.5s;
}
.menu figure a.menu-item:hover::after {
  opacity: 1;
  clip-path: inset(0 0% 0 0);
  transition: clip-path 0.4s ease;
}
.menu figure a.menu-item[aria-current]::after {
  opacity: 1;
  clip-path: inset(0 0% 0 0);
  transition: none;
}

/* Per-link variability: different wave segment + subtle tilt + height offset relative to width */
header nav.menu > figure:nth-child(1) a.menu-item::after {
  background-size: 180% 100%;
}
header nav.menu > figure:nth-child(2) a.menu-item::after {
  background-position: -10px 0;
  transform: rotate(-0.5deg) translateY(1px);
  height: 16px;
  bottom: -18px;
}
header nav.menu > figure:nth-child(3) a.menu-item::after {
  background-position: -22px 0;
  transform: rotate(0.4deg) translateY(-1px);
}
header nav.menu > figure:nth-child(4) a.menu-item::after {
  background-position: -6px 1px;
  transform: rotate(-0.3deg);
}
header nav.menu > figure:nth-child(5) a.menu-item::after {
  background-position: -16px 0;
  transform: rotate(0.6deg) translateY(1px);
  height: 14px;
  bottom: -17px;
}

header .menu button {
  display: none;
}

nav.menu.mobile {
  display: none;
}

header nav.menu figure {
  position: relative;
}

header nav.menu figure ul.tags {
  --blur: 2px;
  position: absolute;
  left: 50%;
  top: 64px;
  transform: translateX(-50%);
  display: flex;
  z-index: 998;
  flex-wrap: nowrap;
  flex-direction: column;
  gap: 0px;
  padding: 16px 12px;
  width: auto;
  margin: 0;
  background: var(--color-black-100);
  --webkit-backdrop-filter: blur(var(--blur));
  backdrop-filter: blur(var(--blur));
}

header nav.menu figure ul.tags li {
  padding: 0px 4px;
  width: 100%;
  margin: 0;
  display: none;
  order: 1;
  align-items: center;
  font-size: 80%;
}


header nav.menu figure ul.tags li[aria-current="page"] {
  display: flex;
  order: 0;
  opacity: 1;
  font-style: italic;
}


header nav.menu figure ul.tags:hover li {
  display: flex;
}

header nav.menu figure ul.tags li a {
  font-size: 0.8rem;
  font-family: var(--font-family-sans);
  font-weight: 500;
  margin: 0;
  padding: 0;
  border-radius: 2px;
  letter-spacing: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  width: 100%;
  text-align: center;
  color: var(--color-white-50);
}

header nav.menu figure ul.tags li a:hover {
  color: var(--color-white);
  text-decoration: none;  
}

header nav.menu figure ul.tags li[aria-current="page"] a {
  font-weight: 600;
  color: var(--color-white);
}



.social {
  display: flex;
  padding: 0 .5rem;
}
.social a {
  padding: 1rem .5rem;
}

.section {
  padding: 3rem 0;
}

.grid {
  --columns: 12;
  display: grid;
  grid-gap: var(--gap);
  grid-template-columns: repeat(12, 1fr);
}
.grid > .column {
  list-style-type: none;
  grid-column: span var(--columns);
}

.grid > li {
  list-style-type: none;
}

.autogrid {

  --min: 10rem;
  display: grid;
  grid-gap: var(--gap);
  grid-template-columns: repeat(auto-fit, minmax(var(--min), 1fr));
  grid-auto-flow: dense;
}

h1, h2, h3, h4, h5, h6 {
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
  font-family: var(--font-family-display)
}

h1, h2, h3, h4, h5, h6 {
  text-wrap: balance;
}

.text {
  line-height: 1.5em;
}
.text a {
  text-decoration: underline;
}
.text :first-child {
  margin-top: 0;
}
.text :last-child {
  margin-bottom: 0;
}
.text p,
.text ul,
.text ol {
  margin-bottom: 1.5rem;
}
.text ul,
.text ol {
  margin-left: 1rem;
}
.text ul p,
.text ol p {
  margin-bottom: 0;
}
.text ul > li {
  list-style: disc;
}
.text ol > li {
  list-style: decimal;
}
.text ul ol,
.text ul ul,
.text ol ul,
.text ol ol {
  margin-bottom: 0;
}
.text h1,
.h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  line-height: 3rem;
}
.text h2,
.h2 {
  font-size: 2.25rem;
  line-height: 2.5rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
}
.text h3,
.h3 {
  font-size: 1.875rem;
  line-height: 2.125rem;
  font-weight: 600;
  margin-bottom: 1rem;
}
.text h4,
.h4 {
  font-size: 1.5rem;
  line-height: 1.75rem;
  font-weight: 600;
  margin-bottom: 1rem;
}
.text h5,
.h5 {
  font-size: 1.2rem;
  line-height: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}
.text h6,
.h6 {
  font-size: 1rem;
  line-height: 1.375rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.text .codeblock {
  display: grid;
}
.text code {
  font-family: var(--font-family-mono);
  font-size: 1em;
  background: var(--color-light);
  padding: 0 .5rem;
  display: inline-block;
  color: var(--color-black);
}
.text pre {
  margin: 3rem 0;
  background: var(--color-black);
  color: var(--color-white);
  padding: 1.5rem;
  overflow-x: scroll;
  overflow-y: hidden;
  line-height: 1.5rem;
}
.text pre code {
  padding: 0;
  background: none;
  color: inherit;
}
.text hr {
  margin: 6rem 0;
}
.text dt {
  font-weight: 600;
}
.text blockquote {
  font-size: 1.25rem;
  line-height: 1.325em;
  border-left: 2px solid var(--color-black);
  padding-left: 1rem;
  margin-top: 3rem;
  margin-bottom: 3rem;
  max-width: 25rem;
}
.text blockquote footer {
  font-size: .875rem;
  font-style: italic;
}
.text figure {
  margin: var(--gap) 0;
  position: relative;
}

.text figcaption {
  padding-top: .75rem;
  color: var(--color-text-grey);
}
.text figure ul {
  line-height: 0;
  display: grid;
  gap: var(--gap);
  margin: 0;
  grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
}
.text figure ul li {
  list-style: none;
}

hr {
  border: 0;
  background: currentColor;
  height: 2px;
  width: 1.5rem;
  margin: 3rem auto;
}

.align-left {
  text-align: left;
}

.align-center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.align-right {
  text-align: right;
  margin-left: auto;
  margin-right: 0;
}

.cta {
  background: var(--color-black);
  color: var(--color-white);
  display: inline-flex;
  justify-content: center;
  padding: .75rem 1.5rem;
  border: 4px solid var(--color-white);
  outline: 2px solid var(--color-black);
}

.box {
  background: var(--color-light);
  padding: 1.5rem;
  border: 4px solid var(--color-white);
  outline: 2px solid var(--color-light);
}

.video,
.img {
  position: relative;
  display: block;
  --w: 1;
  --h: 1;
  padding-bottom: calc(100% / var(--w) * var(--h));
  background: var(--color-black);
}

/* Source ratio defaults to 16:9 for embeds; local videos set --src-w/--src-h explicitly */
.video {
  --src-w: 16;
  --src-h: 9;
  overflow: hidden;
}

.img img {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 0;
}

/* Cover/crop: direct-child only — Plyr-managed iframes/videos are never direct children */
.video > iframe,
.video > video {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: max(100%, calc(100% * var(--src-w) * var(--h) / var(--src-h) / var(--w)));
  height: max(100%, calc(100% * var(--w) * var(--src-h) / var(--h) / var(--src-w)));
  object-fit: cover;
  border: 0;
}

/* Plyr fills the .video aspect-ratio space; its own sizing must not add height */
.video .plyr {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-width: 0;
}

/* Plyr's video wrapper fills the full Plyr box.
   aspect-ratio: unset overrides Plyr's JS-applied inline style from pe() — figure owns sizing. */
.video .plyr__video-wrapper {
  height: 100%;
  aspect-ratio: unset !important;
}

/* Override Plyr's fixed 16:9 embed ratio — .video figure owns the aspect ratio */
.video .plyr__video-embed {
  aspect-ratio: unset;
  height: 100%;
  padding-bottom: 0 !important;
}

/* Cancel Plyr's JS-applied translateX on the embed container — we own sizing/positioning */
.video .plyr__video-embed__container {
  position: absolute !important;
  inset: 0;
  padding-bottom: 0 !important;
  transform: none !important;
}
.video .plyr__video-embed__container > iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  min-width: 100%;
  min-height: 100%;
  aspect-ratio: var(--src-w, 16) / var(--src-h, 9);
}

/* Native video inside Plyr: cover-fill the wrapper */
.video .plyr video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Reset pico.css button overrides inside Plyr — pico adds padding, border, background,
   line-height to all buttons which breaks Plyr's control layout and alignment */
.plyr__control {
  appearance: none;
  background: transparent;
  border: 0;
  border-radius: var(--plyr-control-radius, 4px);
  box-shadow: none;
  color: inherit;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: inherit;
  line-height: 1;
  padding: calc(var(--plyr-control-spacing, 10px) * .7);
  width: auto;
  transition: all .1s ease-in-out;
}
.plyr__controls {
  align-items: center;
}

.img[data-contain] img {
  object-fit: contain;
}
.img-caption,
.video-caption {
  padding-top: .75rem;
  line-height: 1.5em;
}

figure.gallery ul li {
  margin: 0;
}
figure.gallery ul li img {
  height: 100%;
  margin: 0;
}


.project-grid {
    --columns: 12;
    --gutter: 20px;
    display: grid;
    grid-gap: var(--gutter);
    grid-template-columns: repeat(var(--columns), 1fr);
    padding: 24px 0;
}

.project-grid li {
    margin: 0;
}

.project-grid li article {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 0;
    margin: 0;
}

.project-grid li header {
    position: relative;
}

.project-grid li figure {
    view-transition-name: var(--vt-name);
}

.project-grid li .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--overlay-bg, rgba(0, 0, 0, 0.2));
    -webkit-backdrop-filter: var(--overlay-blur, blur(0px));
    backdrop-filter: var(--overlay-blur, blur(0px));
    display: flex;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px;
    box-sizing: border-box;
    gap: 12px;
    transition: opacity 0.33s ease-in-out, visibility 0.33s ease-in-out;
}
.project-grid li:hover .overlay {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
}

.project-grid li .overlay h2 {
    font-size: 42px;
    text-transform: uppercase;
    margin: 0;
    text-align: center;
}
.project-grid li .overlay .tag {
    font-size: 18px;
    font-style: italic;
    text-transform: uppercase;
    font-weight: 500;
    text-align: center;
}
.project-grid li .overlay p {
    font-size: 18px;
    font-weight: 600;
    text-align: center;
    max-width: 400px;
}



.footer {
  padding: 24px 0;
  line-height: 1.5em;
}

.footer > .grid {
  align-items: center;
  display: flex;
  justify-content: stretch;
}
.footer > .grid > .column {
  flex-grow: 1;
}

.footer figure {
  display: flex;
  align-items: center;
}
.footer figure img {
  padding: 0;
  height: 50px;
  width: auto;
}

.footer h2 {
  font-weight: 600;
  margin-bottom: .75rem;
}
.footer ul, .footer p {
  margin-bottom: 0;
}
.footer li {
  list-style-type: none;
  margin-bottom: 0;
  white-space: nowrap;;
}
.footer ul,
.footer p {
  color: var(--color-white-50);
}
.footer p {
  max-width: 15rem;
}
.footer a, .footer p {
  font-weight: 600;
}
.footer a:hover {
  color: var(--color-text);
}

body > .footer {
  p {
    white-space: nowrap;
  }

  ul li { font-weight: 600;}

}



.map {
  --w: 2;
  --h: 1;
  padding-bottom: calc(100% / var(--w) * var(--h));
  position: relative;
  overflow: hidden;
  background: var(--color-black);
}
.map iframe {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.margin-s {
  margin-bottom: .75rem;
}
.margin-m {
  margin-bottom: 1.5rem;
}
.margin-l {
  margin-bottom: 3rem;
}
.margin-xl {
  margin-bottom: 4.5rem;
}
.margin-xxl {
  margin-bottom: 6rem;
}

.pagination {
  display: flex;
  padding-top: 6rem;
}
.pagination > span {
  color: var(--color-text-grey);
}
.pagination > * {
  padding: .5rem;
  width: 3rem;
  text-align: center;
  border: 2px solid currentColor;
  margin-right: 1.5rem;
}
.pagination > a:hover {
  background: var(--color-black);
  color: var(--color-white);
  border-color: var(--color-black);
}

.note-excerpt {
  line-height: 1.5em;
}
.note-excerpt header {
  margin-bottom: 1.5rem;
}
.note-excerpt figure {
  margin-bottom: .5rem;
}
.note-excerpt-title {
  font-weight: 600;
}
.note-excerpt-date {
  color: var(--color-text-grey);
}

nav.menu button.menu-button, ul#mobile-tags, nav.menu footer.footer {
  display: none;
}

@media screen and (min-width: 60rem) {

  /* Media rows: flex-grow proportional to aspect ratio, natural heights from padding-bottom */
  .grid--media-row {
    display: flex;
    align-items: flex-start;
    gap: var(--gutter, 1.5rem);
  }
  .grid--media-row > .column {
    flex: var(--media-ratio, 1) 1 0;
    min-width: 0;
    overflow: hidden;
  }

}

@media screen and (max-width: 60rem) {
  .grid > .column {
    grid-column: span 12;
  }

  .grid--media-row:not(.keep-mobile-cols) > .column {
    width: 100%;
  }

  * {
    --padding: 1rem;
  }
  .header {
    justify-content: space-between;
  }
  .header nav.menu {
    width: 100%;
    padding: 0 36px;
  }
  .menu > a, .menu > figure {
    padding: .25rem;
    font-size: 1.25rem;
  }
  .header nav {
    gap: .25rem;
  }
  .header nav a {
    padding: .5rem;
  }
  .header nav a.logo {
    height: 120px;
    padding: 0;
  }

}

@media screen and (max-width: 50rem) {

  * {
    --padding: 0.75rem;
  }
  .menu > a, .menu > figure {
    padding: .15rem;
    font-size: 1rem;
  }

  header nav.menu figure ul.tags {
    top: 50px; 
  }

  footer.footer > .grid {
    flex-wrap: wrap;
    gap: 12px;
    justify-content: flex-start;
  }

  footer.footer > .grid > .column > li {
    flex-basis: 100%;
    width: auto;
  }

  footer.footer > .grid > .column:first-of-type {
    flex-basis: calc(50% - 12px);
    flex-grow: 0;
  }

  footer.footer > .grid > #logo-container {
    flex-basis: 100%;
  }



}
@media screen and (max-width: 40rem) {
  body {
    padding: 0;
  }

  body > main {
    padding: 0;
  }

  main {
    min-height: 60vh;
    margin: 0;
  }

  main > .grid {
    padding: 0 12px;
  }

  .header nav {
    width: 100%;
    z-index: 9999;
    gap: 12px;
  }
  
  .header nav a.logo {
    height: 100px;
    padding: 0;
    transform: translateX(-24px);
    order: 0;
  }

  .header nav figure {
    order: 1;
    justify-content: flex-start;
    padding:  0 6px;
  }

  .header nav figure a {
    padding: 0;
  }

  .menu a.menu-item {
    text-underline-offset: 5px;
  }

  .menu figure a.menu-item::after {
    display: none;
  }
  .menu figure a.menu-item:hover {
    text-decoration: underline;
  }
  .menu figure a.menu-item[aria-current] {
    text-decoration: underline;
  }

  .header nav figure ul.tags {
    display: none;
    visibility: hidden;
    padding: 0 12px;
    
  }
  .header nav button {
    all: unset;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    color: var(--color-white);
    order: 4;
  }
  .header nav button img {
    width: 36px;
    height: 36px;
    object-fit: contain;
  }

  nav.menu {
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    gap: 12px;
    padding: 0 12px!important;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  nav.menu button.menu-button {
    display: inline-block;
    position: absolute;
    top: 18px;
    right: 6px;
    order: 0;
  }

  nav.menu.open {
    align-items: flex-start;
    justify-content: flex-start;
    background: var(--color-black-90);
  }
  

  nav.menu #mobile-tags, nav.menu > footer, nav.menu > figure {
    display: none;
    visibility: hidden;
  }

  footer.footer >.grid {
    width: 100%;
  }

  nav.menu #mobile-tags {
    flex-grow: 1;
  }

  nav.menu section#mobile-contact .mobile-footer-links ul li {
    font-weight: 700;
    color: var(--color-white-50);
  }

  nav.menu footer.mobile-menu.footer {
    padding: 12px;
    padding-bottom: 12px;
    margin-bottom: 24px;
  }

  nav.menu footer.footer figure {
    padding: 0;
  }


  nav.menu footer.mobile-menu.footer .grid ul.column {
    width: auto;
    flex-grow: 1;
    flex-direction: column;
    margin-left: 0;
  }

  nav.menu footer.mobile-menu.footer .grid ul.column:first-of-type {
    flex-basis: calc(50% - 12px);
    flex-grow: 0;
  }

  nav.menu footer.mobile-menu.footer .grid ul.column li {
    padding: 0;
    margin: 0;
    display: block;
    align-items: flex-start;
    justify-content: flex-start;
    width: 100%;
    font-weight: 700;
  }

  ul#mobile-pages {
    flex-direction: column;
    align-items: center;
    gap: 5px;
  }
  
  ul#mobile-pages li {
    width: 100%;
    padding: 4px 0;
  }

  nav > figure > a {
    font-size: 3rem;
    width: 100%;
    line-height: 90%;
    text-align: left;
    color: var(--color-white);
  }

  ul#mobile-tags,
  section#mobile-contact, footer.mobile-menu {
    flex-wrap: wrap;
    width: 100%;
    justify-content: flex-start;
    order: 2;
  }

  ul#mobile-tags {
    margin: 0;
    padding: 24px 0px;
  }
  ul#mobile-tags li::before {
    display: none;
  }
  ul#mobile-tags li {
    white-space: nowrap;
    padding: 0 6px;
  }
  ul#mobile-tags li a {
    margin: 0;
    padding: 0;
  }

  ul#mobile-tags a {
    color: var(--color-white-50);
  }

  ul#mobile-tags a, section#mobile-contact a {
    font-size: 1.2rem;
    font-family: var(--font-family-sans);
    font-weight: bold;
    
  }

  ul#mobile-tags li {
    padding: 6px;
  }
  ul#mobile-tags li a {
    padding: 0;
  }

  nav.menu ul#mobile-tags li:nth-child(even) {
    padding-left: 0;
  }

  section#mobile-contact {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    margin-bottom: 48px;
  }
  section#mobile-contact .mobile-footer-logo figure {
    display: flex;
    align-items: center;
  }
  section#mobile-contact .mobile-footer-logo figure img {
    height: 50px;
    width: auto;
    padding: 0;
  }
  section#mobile-contact .mobile-footer-logo h2 {
    font-weight: 600;
  }
  section#mobile-contact .mobile-footer-links {
    display: flex;
    flex-direction: row;
    gap: 12px;
    width: 100%;
  }
  section#mobile-contact .mobile-footer-links ul {
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin: 0;
    padding: 6px 0;
    list-style: none;
    align-items: flex-start;
  }
  section#mobile-contact .mobile-footer-links li {
    display: flex;
    flex-direction: row;
    gap: 5px;
    padding: 0;
  }

  nav.menu.mobile li::before {
    display: none;
  }

  .header.open nav.menu #mobile-tags, .header.open nav.menu footer, .header.open nav.menu > figure {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
    display: flex;
  }

  .header.open nav.menu #mobile-tags {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 0;
    align-content: start;
    align-self: stretch;
  }
  

  .header.open {
    padding: 50px 0;
  }
  
  .header.open nav.menu {
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    background: var(--color-black-90);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    min-height: 100vh;
    position: absolute;
  }

  .header nav.menu button img.close {
    display: none;
  }
  .header.open nav.menu button img.close {
    display: block;
  }
  .header.open nav.menu button img.open {
    display: none;
  }

  main > .grid {
    --gutter: 12px;
  }

  main > .grid > .column {
    grid-column: span 12;
  }

  main > .grid > li:hover .overlay {
    display: none;
    visibility: none;
  }

  article {
    padding: 0;
  }

  article.project {
    padding: 12px;
  }
 
  footer.footer {
    padding: 0 12px 12px 12px;
  }

}

/* Landscape on small-height devices (mobile rotated) */
@media screen and (orientation: landscape) and (max-height: 500px) {
  header a.logo {
    height: 48px;
  }
  header a.logo video, header a.logo img {
    min-width: 67px;
  }
  .menu > a, .menu > figure {
    padding: 0.1rem 0.25rem;
    font-size: 0.9rem;
  }
  .header nav {
    gap: 0;
    justify-content: center;
  }
  nav.menu {
    justify-content: center;
    gap: 0;
    padding: 0 6px;
  }
}



