:root {
  color-scheme: dark;
  --bg: #000000;
  --header-bg: #dc143c;
  --text: #ffffff;
  --muted: #aaaaaa;
  --accent: #ffffff;
  --line: rgba(255, 255, 255, 0.15);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  letter-spacing: 0.3px;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  text-transform: lowercase;
}

.site-shell {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1;
}

a {
  color: inherit;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

a:hover {
  opacity: 0.7;
}

img {
  display: block;
  width: 100%;
}

.intro,
.section {
  max-width: min(1200px, calc(100% - 3rem));
  width: 100%;
  margin: 0 auto;
}

.site-header,
.site-footer {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  background: var(--header-bg);
  color: white;
  box-sizing: border-box;
}

.site-footer > * {
  width: 100%;
  margin: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1.5rem;
  border-bottom: 1px solid var(--line);
  color: white;
  gap: 1rem;
  height: 3.25rem;
  overflow: hidden;
  transition: background 0.3s ease, backdrop-filter 0.3s ease, -webkit-backdrop-filter 0.3s ease, border-bottom-color 0.3s ease, border-radius 0.3s ease, width 0.3s ease, box-shadow 0.3s ease, left 0.3s ease, transform 0.3s ease, margin 0.3s ease, top 0.3s ease;
}

.site-header.is-scrolled {
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom-color: rgba(255, 255, 255, 0.07);
  border-radius: 16px;
  width: calc(100% - 0.75rem);
  margin-left: auto;
  margin-right: auto;
  left: 0;
  right: 0;
  top: 0.75rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.header-left {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
  flex-shrink: 1;
  overflow: hidden;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
}

.header-social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.85);
  transition: opacity 0.2s ease;
}

.header-social:hover {
  opacity: 0.6;
}

.social-icon {
  width: 1.5rem;
  height: 1.5rem;
  display: block;
}

.header-social[href*="instagram.com"] .social-icon,
.home-social a[href*="instagram.com"] .social-icon {
  width: 1.15rem;
  height: 1.15rem;
}

.imdb-icon {
  width: 2.8rem;
  height: 1.5rem;
}

.header-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.85);
  transition: opacity 0.2s ease;
  flex-shrink: 0;
}

.header-logo:hover {
  opacity: 0.6;
}

.header-logo img {
  width: 1.5rem;
  height: 1.5rem;
  display: block;
  filter: invert(1);
}

.mail-icon {
  width: 1.25rem;
  height: 1.25rem;
  display: block;
}

.header-path {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.75rem;
  letter-spacing: 0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
  flex-shrink: 1;
}

.header-path a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.header-path a:hover {
  opacity: 0.6;
}

.header-path .sep {
  color: rgba(255, 255, 255, 0.4);
}

.header-path .current {
  color: rgba(255, 255, 255, 0.6);
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 300px;
}

.intro {
  padding: 1rem 1.5rem 0;
  text-align: left;
}

.intro h1 {
  margin-bottom: 0;
}

.intro p,
.site-footer {
  color: var(--text);
}

.intro p {
  font-size: 1rem;
  color: #cccccc;
  max-width: 650px;
}

.section {
  max-width: min(1200px, calc(100% - 3rem));
  width: 100%;
  padding: 1.5rem 1.5rem 3rem;
}

@keyframes image-loading-spin {
  to {
    transform: rotate(360deg);
  }
}

h1,
h2,
h3 {
  line-height: 1.3;
  margin: 0 0 1rem;
  font-weight: 500;
  letter-spacing: 0.2px;
}

h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 400;
  line-height: 1.2;
}

h2 {
  font-size: 1.1rem;
  font-weight: 500;
}

.project-meta {
  display: flex;
  gap: 1.5rem;
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: #cccccc;
  letter-spacing: 0.05em;
}

.project-meta span {
  display: inline-block;
}

.filter-container {
  max-width: min(1200px, calc(100% - 2rem));
  margin: 0 auto;
}

.filter-controls {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding: 0.5rem 0;
  max-width: 100%;
  min-width: 0;
  overflow-x: hidden;
}

.filter-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
  flex-shrink: 1;
}

.filter-group label {
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  color: #666666;
  text-transform: lowercase;
  font-weight: 500;
  white-space: nowrap;
}

.filter-group select {
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  color: #aaaaaa;
  padding: 0.25rem 0;
  font-size: 0.75rem;
  font-family: inherit;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease;
  min-width: 120px;
}

.filter-group select:hover {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.3);
}

.filter-group select:focus {
  outline: none;
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.5);
}

.filter-group select option {
  background: #000000;
  color: #ffffff;
}

.cover-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: 2rem;
  margin-left: -1.5rem;
  margin-right: -1.5rem;
}

.cover-card {
  display: block;
  text-decoration: none;
  color: inherit;
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: #111;
}

.cover-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0;
  transform: translateY(6px);
  transition: transform 0.3s ease, filter 0.3s ease, opacity 0.3s ease;
}

.cover-card.is-loading,
.cover-card img.is-loading,
.gallery img.is-loading {
  background: #161616;
}

.cover-card.is-loading::after,
.gallery img.is-loading::after {
  content: "";
  position: absolute;
  inset: 50% auto auto 50%;
  width: 1.25rem;
  height: 1.25rem;
  margin: -0.625rem 0 0 -0.625rem;
  border: 2px solid rgba(255, 255, 255, 0.25);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: image-loading-spin 0.8s linear infinite;
  z-index: 2;
  pointer-events: none;
}

.cover-card img.is-loading,
.gallery img.is-loading {
  position: relative;
}

.cover-card img.is-ready,
.gallery img.is-ready {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

@media (hover: hover) {
  .cover-card:hover img {
    transform: scale(1.02);
    filter: brightness(0.95) blur(1px);
  }
}

.cover-info {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2rem;
  background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.2) 100%);
  opacity: 0;
  transition: opacity 0.25s ease;
}

@media (hover: hover) {
  .cover-card:hover .cover-info,
  .cover-card:focus-visible .cover-info {
    opacity: 1;
  }
}

.cover-card.mobile-preview-active .cover-info {
  opacity: 1;
}

.cover-info h2 {
  font-size: 1.2rem;
  margin: 0 0 0.35rem;
  font-weight: 500;
  color: #ffffff;
}

.cover-info p {
  color: #dddddd;
  margin: 0;
  font-size: 0.9rem;
}

.gallery {
  display: grid;
  gap: 0;
  margin: 0.5rem 0;
}

.gallery img {
  border: none;
  border-radius: 0;
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.3s ease, transform 0.3s ease, filter 0.3s ease;
}

.project-credits {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}

.project-credits h2 {
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  font-weight: 500;
  margin-bottom: 1.5rem;
  color: #ffffff;
  text-align: center;
}

.credits-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 400px;
  margin: 0 auto;
}

.credit-item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1.5rem;
}

.credit-role {
  font-size: 0.8rem;
  color: #888888;
  letter-spacing: 0.05em;
  font-weight: 400;
  text-align: left;
}

.credit-name {
  font-size: 0.9rem;
  color: #ffffff;
  font-weight: 400;
  text-align: right;
  flex-shrink: 0;
}

.project-video {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  margin: 2rem 0;
  background: #111;
}

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

.back-to-top {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin: 3rem auto 3rem;
  padding: 0.75rem 1.5rem;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-decoration: none;
  text-transform: lowercase;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.back-to-top:hover {
  opacity: 1;
  transform: translateY(-3px);
}

.back-to-top::before {
  content: "↑";
  display: inline-block;
  font-size: 1.2rem;
  line-height: 1;
}

.project-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.95);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  z-index: 1000;
  cursor: pointer;
}

.project-lightbox.is-open {
  display: flex;
}

.project-lightbox img {
  max-height: 90vh;
  max-width: 90vw;
  width: auto;
  height: auto;
  object-fit: contain;
  cursor: default;
}

.project-lightbox img.is-loading {
  visibility: hidden;
}

.project-lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: transparent;
  border: 0;
  color: white;
  font-size: 2.5rem;
  cursor: pointer;
  z-index: 1001;
  line-height: 1;
}

body.project-lightbox-open {
  overflow: hidden;
}

.site-footer {
  padding: 1rem 1.5rem;
  font-size: 0.85rem;
  color: #ffffff;
  border-top: 1px solid var(--line);
  margin-top: auto;
}

.home-links {
  width: min(100%, 34rem);
  margin: auto;
  padding: 2rem 1.5rem;
  text-align: center;
}

.home-main {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 7.5rem);
}

.home-kicker {
  margin: 0 0 2.5rem;
  color: rgba(255, 255, 255, 0.42);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
}

.home-links a {
  position: relative;
  display: block;
  padding: 0.7rem 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 1.75rem;
  font-weight: 400;
  line-height: 1;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.home-links a:hover,
.home-links a:focus-visible {
  color: #fff;
  opacity: 1;
}

.home-social {
  display: flex;
  justify-content: center;
  gap: 1.25rem;
  margin-top: 3rem;
}

.home-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.75rem;
  height: 2.5rem;
  color: rgba(255, 255, 255, 0.48);
  transition: color 0.2s ease, transform 0.2s ease;
}

.home-social .mail-icon {
  width: 1.75rem;
  height: 1.75rem;
}

.home-social a[href*="instagram.com"] .social-icon {
  width: 1.35rem;
  height: 1.35rem;
}

.home-social .imdb-icon {
  width: 3.5rem;
  height: 1.75rem;
}

.home-imdb {
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.48);
  transition: color 0.2s ease, transform 0.2s ease;
}

.home-social a:hover,
.home-social a:focus-visible {
  color: #fff;
  opacity: 1;
  transform: translateY(-2px);
}

.home-page .site-footer {
  border-top-color: transparent;
  color: rgba(255, 255, 255, 0.42);
}

.home-page .copyright {
  color: inherit;
}

.photography-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-flow: dense;
  align-items: start;
  gap: 1.25rem;
  margin: 1.5rem -1.5rem;
}

.photography-card {
  position: relative;
  display: block;
  min-width: 0;
  min-height: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  color: inherit;
  background: #111;
  text-align: left;
  cursor: pointer;
}

.photography-card-wide {
  grid-column: span 7;
}

.photography-card-tall {
  grid-column: span 5;
}

.photography-card-small {
  grid-column: span 4;
}

.photography-card-medium {
  grid-column: span 8;
}

.photography-card img {
  width: 100%;
  height: auto;
  transition: transform 0.35s ease, filter 0.35s ease;
}

.photography-card-info {
  position: absolute;
  inset: auto 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1.25rem;
  color: #fff;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.75));
  opacity: 0;
  transform: translateY(0.5rem);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.photography-card-info strong {
  font-size: 1rem;
  font-weight: 500;
}

.photography-card-info small {
  color: #ddd;
  font-size: 0.75rem;
}

@media (hover: hover) {
  .photography-card:hover img,
  .photography-card:focus-visible img {
    transform: scale(1.03);
    filter: brightness(0.8);
  }

  .photography-card:hover .photography-card-info,
  .photography-card:focus-visible .photography-card-info {
    opacity: 1;
    transform: translateY(0);
  }
}

.photography-card:focus-visible {
  outline: 2px solid #fff;
  outline-offset: -2px;
}

.collection-description {
  max-width: 38rem;
  margin: 0.75rem 0 0;
  color: #ccc;
}

.photography-collection-gallery {
  display: block;
  columns: 3;
  column-gap: 0.4rem;
}

.photography-collection-gallery img {
  opacity: 1;
  transform: none;
  width: 100%;
  height: auto;
  margin: 0 0 0.4rem;
  break-inside: avoid;
  cursor: pointer;
  transition: opacity 0.25s ease, filter 0.25s ease;
}

.photography-collection-gallery img:hover,
.photography-collection-gallery img:focus-visible {
  opacity: 0.78;
  filter: brightness(1.15);
}

.footer-content {
  width: 100%;
  margin: 0;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.copyright {
  margin: 0;
  color: #ffffff;
}

.version {
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.7rem;
  margin-left: 0.5rem;
  letter-spacing: 0.05em;
  display: inline-block;
}

.v-char {
  display: inline-block;
  min-width: 0.4em;
  text-align: center;
}

@media (max-width: 600px) {
  .site-header {
    gap: 0.5rem;
    padding: 0.75rem 1rem;
  }

  .site-header.is-scrolled {
    border-radius: 12px;
    width: calc(100% - 1rem);
    top: 0.5rem;
  }

  .intro {
    padding: 1.5rem 1rem 0.5rem;
  }

  .section {
    max-width: none;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding: 0;
  }

  .cover-grid {
    grid-template-columns: 1fr;
    gap: 0;
    margin-top: 0;
    margin-left: 0;
    margin-right: 0;
  }

  .filter-container {
    display: none;
  }

  .home-links {
    max-width: none;
    padding: 2rem 1rem;
  }

  .home-links a {
    font-size: 1.35rem;
  }

  .photography-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
    margin: 1rem 0;
  }

  .photography-card-wide,
  .photography-card-tall,
  .photography-card-small,
  .photography-card-medium {
    grid-column: span 1;
    grid-row: span 1;
  }

  .photography-card-info {
    opacity: 1;
    transform: none;
  }

  .photography-collection-gallery {
    columns: 1;
  }

  .project-credits {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .credits-list {
    padding-left: 0;
    padding-right: 0;
  }
}

@media (max-width: 1024px) {
  .intro {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .section {
    max-width: none;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding-left: 0;
    padding-right: 0;
  }

  .filter-container {
    max-width: none;
    padding: 0 1rem;
  }

  .cover-grid {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
  }

  .photography-grid {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
  }

  .cover-card {
    aspect-ratio: 4 / 5;
  }

  .cover-info {
    padding: 1.5rem;
    justify-content: center;
    align-items: flex-start;
  }

  .cover-card.mobile-preview-active .cover-info {
    background: transparent;
  }

  .cover-info h2 {
    font-size: 0.9rem;
  }

  .cover-info p {
    font-size: 0.75rem;
  }

  .footer-content {
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
  }
}