html {
  font-size: 14px;
  height: 100%;
}

body {
  background: white;
  display: flex;
  flex-direction: column;
  font-family: Inter, sans-serif;
  color: black;
  -webkit-text-size-adjust: 100%;
  padding-top: 150px;
  overflow-x: hidden;
  margin: 0;
  cursor: default;
}

::selection {
    color: yellow;
    background: red;
}

a {
    color: #fff;
    background: #000;
     text-decoration: none;
  }

a:hover {
    color: #000;
    background: none;
  }

.header-container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 10px 14px 10px 10px;
  gap: 10px;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  z-index: 10;
  width: 100%;
  box-sizing: border-box;
}

.logo {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding-top: 10px;
  width: 100%;
  transition: transform 0.3s ease, opacity 0.3s ease;
  will-change: transform, opacity;
}

.capital {
  font-weight: 600;
}

.logo a {
  font-size: 2.6rem;
  font-weight: 400;
  color: #fff;
  background-color: #000;
  line-height: 1;
  letter-spacing: -0.13rem;
  white-space: nowrap;
  box-sizing: border-box;
  text-decoration: none;
  padding-right: 3px;
}

.logo a:hover {
  color: #000;
  background: none;
  font-style: italic;
  padding-right: 4px;
}

nav {
  display: flex;
  width: 100%;
  height: auto;
  justify-content: space-between;
  align-items: flex-start;
  margin-top: 20px;
  margin-bottom: 10px;
}

nav a {
  font-size: 1.2rem;
   letter-spacing: -0.03rem;
  line-height: 1.1;
    color: #fff;
    background: #000;
    text-decoration: none;
    padding-right: 3px;
    border-radius: 0;
    transition: background 0.2s, color 0.2s, border 0.2s;
  text-decoration: none;
  color: #fff;
  background: #000;
  padding: 6px 9px 6px 9px;
  display: inline-block;

}

nav a:nth-of-type(4n+1) { transform: rotate(4deg); }
nav a:nth-of-type(4n+2) { transform: rotate(-2deg); }
nav a:nth-of-type(4n+3) { transform: rotate(3deg); }
nav a:nth-of-type(4n+4) { transform: rotate(-5deg); }

nav a:hover {
  transform: rotate(0deg);
  color: #fff;
  background: #000;
}

nav a.active {
  text-decoration: none;
  font-weight: 600;
  transform: rotate(0deg);
  color: #fff;
  background: #000;
}

.project-tags-bar {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: flex-start;
  padding-bottom: 10px;
  overflow-x: auto;
  white-space: nowrap;
  width: 100%;
  box-sizing: border-box;
}

::scroll-marker {
  display: none;
}

::-webkit-scrollbar {
  display: none;
  }

.project-client-dropdown {
  display: none;
  position: relative;
  top: 100%;
  left: 0;
  background: #fff;
  z-index: 10;
  margin-left: 16px;
  margin-bottom: 10px;
}
.project-client-option {
  cursor: pointer;
  background: transparent;
  color: #000;
}
.project-client-option:hover {
  background: #000;
  color: #fff;
}

.project-client-dropdown-toggle {
  padding: 8px 18px;
  border-radius: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  font-weight: 500;
  text-decoration: underline;
  color: #000;
}

.project-client-btn.selected {
  background: #000;
  color: #fff;
  text-decoration: none;
  border: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.project-tag-btn {
  padding: 8px 18px 8px 12px;
  border-radius: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  font-weight: 500;
  color: #000;
  text-decoration: underline;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.project-tag-btn .tag-label {
  text-decoration: underline;
}
.project-tag-btn.selected, .project-tag-btn[style*="background: #222"] {
  background: #000;
  color: #fff;
  text-decoration: none;
}
.project-tag-btn.selected .tag-label, .project-tag-btn[style*="background: #222"] .tag-label {
  text-decoration: none;
  color: #fff;
}
.project-tag-btn .tag-remove-x {
  display: none;
  position: static;
  margin-left: 6px;
  color: #fff;
  background: #000;
  border-radius: 0;
  width: 18px;
  height: 18px;
  text-align: center;
  cursor: pointer;
  z-index: 1;
}
.project-tag-btn.selected .tag-remove-x, .project-tag-btn[style*="background: #222"] .tag-remove-x {
  display: inline-block;
}
.project-list {
  transition: opacity 0.2s;
}

.open-iframe-btn {
  background: #fff;
  color: #000;
  border: none;
  border-radius: 0;
  padding: 8px 16px;
  font-size: 1rem;
  cursor: pointer;
  transition: font-style 0.2s;
  box-shadow: none;
}
.open-iframe-btn:hover {
  font-style: italic;
}

.custom-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: baseline;
  flex-shrink: 0;
  padding: 40px 10px;
}

.custom-footer summary {
  color: #fff;
  background: #000;
  text-decoration: none;
  letter-spacing: -0.03rem;
  cursor: pointer;
  display: inline-block;
}

.custom-footer summary:hover {
  color: #000;
  background: none;
  border: none;
  font-style: italic;
}

.custom-footer details {
  max-width: 800px;
  margin-top: 40px;
  -webkit-appearance: none;
  appearance: none;
}

.custom-footer details summary::-webkit-details-marker,
.custom-footer details summary::marker {
  display: none;
}

.custom-footer details[open] {
  margin-top: 40px;
  max-width: 100vw;
  overflow-x: auto;
  box-sizing: border-box;
  word-break: break-word;
  padding-right: 0;
  margin-right: 0;
}

.custom-footer details p {
  font-size: 0.9rem;
  line-height: 1.2;
  max-width: 100vw;
  overflow-wrap: anywhere;
  word-break: break-word;
  box-sizing: border-box;
  white-space: normal;
}

.custom-footer details h4 {
  font-weight: 400;
  max-width: 100vw;
  overflow-wrap: anywhere;
  word-break: break-word;
  box-sizing: border-box;
  white-space: normal;
}

.hover-email-image {
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.2s;
  aspect-ratio: 3 / 4;
  max-width: 100px;
  width: 100px;
  height: auto;
}


main {
    padding-left: 10px;
    padding-right: 10px;
    flex: 1;
    min-height: 100vh
}

.opener-text {
  font-size: 2rem;
  font-weight: 400;
  letter-spacing: -0.1rem;
  line-height: 1.1;
  margin-top: 10px;
}

.contact-details ul,
.contact-details ol {
  list-style: none;
  margin: 0;
  padding: 0;
}

.service-text {
  font-size: 2rem;
  font-weight: 400;
  letter-spacing: -0.1rem;
  line-height: 1.1;
  white-space: normal;  
  margin-bottom: 3rem;
}


.service-text details {
  display: inline-block;
  vertical-align: baseline;
  margin: 0;
  padding: 0;
  white-space: normal;
}

.service-text summary {
  display: inline;
  margin: 0;
  padding: 0;
  font: inherit;
  cursor: pointer;
  white-space: normal;
}

.service-text summary::-webkit-details-marker,
.service-text summary::marker {
  display: none;
  content: "";
}

.service-text details[open] + details summary {
  display: block;
}

.service-text details[open] summary {
  font-style: italic;
  text-decoration: underline;
}

.service-text summary:hover {
  text-decoration: underline;
  font-style: italic;
}


.social-links-expandable summary {
  display: inline;
  margin: 0;
  padding: 0;
  font: inherit;
  cursor: pointer;
  white-space: normal;
}

.social-links-expandable summary::-webkit-details-marker,
.social-links-expandable summary::marker {
  display: none;
  content: "";
}

.social-links-expandable details[open] + details summary {
  display: block;
}

.social-links-expandable details[open] summary {
  font-style: italic;
  text-decoration: underline;
}

.social-links-expandable summary:hover {
  text-decoration: underline;
  font-style: italic;
}

.contact-details li {
  list-style: none;
  margin: 0;
  padding: 0;
}
.contact-details {
  display: flex;
  flex-direction: column;
  gap: 32px;
}    

.project-list {
    margin-bottom: 0;
}

.project-thumbnail-wrapper {
    width: 100%;
    overflow: hidden;
}

.project-thumbnail {
    width: 100%;
    height: 100px;
    object-fit: cover;
    cursor: pointer;
    display: block;
    box-sizing: border-box;
    transition: border 0.2s;
}


.project-details {
    width: 100%;
    padding-bottom: 1rem;
    box-sizing: border-box;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

.project-scrollboxes {
  width: 100%;
  display: flex;
  flex-direction: row;
  gap: 8px;
  overflow-x: auto;
  position: relative;
}

.scrollbox {
  width: 200px;
  min-width: 200px;
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  flex-shrink: 0;
}

.scrollbox img {
    width: 100%;
    height: auto;
    object-fit: cover;
    cursor: pointer;
    display: block;
}

.scrollbox iframe {
    pointer-events: none;
}

.project-client {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    font-style: italic;    
}

.project-description {
    font-size: 1rem;
    margin-bottom: 1rem;
}

.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    cursor: pointer;
    display: block;
    z-index: 9999;
    cursor: pointer;
}

.lightbox-overlay img {
    max-width: 90vw;
    max-height: 90vh;
    border-radius: 12px;
    box-shadow: 0 2px 24px rgba(0,0,0,0.3);
}

@media (min-width: 700px) {
      html {
  font-size: 18px;
  }
    .hover-email-image {
    max-width: 200px;
    width: 200px;
  }
  body {
    padding-top: 200px;
    }

      .logo a {
    font-size: 3.3rem;
  }
  .header-container {
    padding: 20px 30px 20px 20px;
  }
    
  main {
        padding-left: 20px;
        padding-right: 20px;
    }
    
.opener-text {
  font-size: 6rem;
  font-weight: 600;
  letter-spacing: -0.2rem;
}
    .project-thumbnail {
      height: 200px;
    }

    .scrollbox {
      width: 400px;
      min-width: 400px;
      aspect-ratio: 4 / 3;
      flex-shrink: 0;
    }
      .custom-footer {
    font-size: 1.2rem;
    padding: 60px 30px;
    height: 100px;
  }
}