@import url("fonts.css");

:root {
  --bg: #ffffff;
  --text: #111111;
  --muted: #6e6e6e;
  --line: #e0e0e0;
  --section-muted: #f5f5f5;
  --hero-overlay: rgba(0, 0, 0, 0.45);
  --max-width: 1120px;
  --gutter: 24px;
  --shadow: 0 30px 60px rgba(0, 0, 0, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 160px;
}

body {
  margin: 0;
  font-family: "Open Sans", "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
}

img {
  max-width: 100%;
  display: block;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(100% - (var(--gutter) * 2), var(--max-width));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(8px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px var(--gutter);
}

.logo {
  height: 46px;
  width: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-item {
  position: relative;
  padding-bottom: 10px;
}

.site-nav .nav-link {
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.18em;
  padding-bottom: 4px;
  position: relative;
  display: inline-flex;
}

.site-nav .nav-link.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--text);
}

.nav-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 240px;
  background: #ffffff;
  border: 1px solid var(--line);
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.08);
  padding: 12px 0;
  display: none;
  z-index: 10;
}

.nav-dropdown::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -12px;
  height: 12px;
}

.nav-item:hover .nav-dropdown,
.nav-item:focus-within .nav-dropdown {
  display: block;
}

.dropdown-link {
  display: block;
  padding: 8px 16px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 11px;
  color: var(--text);
}

.dropdown-link.is-active {
  background: var(--text);
  color: #ffffff;
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

.lang-switch a {
  opacity: 0.5;
}

.lang-switch a.is-active {
  opacity: 1;
}

.lang-switch span {
  opacity: 0.4;
}

.hero {
  position: relative;
  min-height: 62vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #ffffff;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-compact {
  min-height: 44vh;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--hero-overlay);
}

.hero-content {
  position: relative;
  padding: 80px var(--gutter);
  width: min(100%, 1100px);
  margin: 0 auto;
  text-align: center;
}

.hero-subtitle {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  text-transform: uppercase;
  letter-spacing: 0.4em;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.85);
}

.hero-subtitle::before,
.hero-subtitle::after {
  content: "";
  width: 48px;
  height: 1px;
  background: rgba(255, 255, 255, 0.6);
}

.hero-title {
  margin: 18px 0 0;
  font-size: clamp(28px, 4vw, 56px);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
}

body[data-page="about"] .hero-title {
  font-size: clamp(26px, 3.2vw, 52px);
  letter-spacing: 0.12em;
}

.hero-title.hero-title--brand {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.18em 0.28em;
  line-height: 1.15;
}

.hero-title.hero-title--brand .hero-title-word {
  white-space: nowrap;
}

.hero-title.hero-title--brand .hero-title-separator {
  margin: 0 0.1em;
}

.section {
  padding: 70px 0;
}

.section-muted {
  background: var(--section-muted);
}

.content-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 42px;
  align-items: center;
}

.rich-text p {
  margin: 0 0 1.2em;
  font-size: 15px;
}

.rich-text a {
  border-bottom: 1px solid currentColor;
}

.portrait {
  margin: 0;
}

.portrait img {
  border-radius: 4px;
  box-shadow: var(--shadow);
}

.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 42px;
}

.split h3 {
  margin: 0 0 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 14px;
}

.split h4 {
  margin: 20px 0 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 12px;
}

.split ul {
  padding-left: 18px;
  margin: 12px 0 0;
}

.split li {
  margin-bottom: 6px;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.work-card {
  position: relative;
  overflow: hidden;
  background: #000000;
  min-height: 220px;
  display: block;
  color: inherit;
  text-decoration: none;
}

.work-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.work-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.work-title {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 20px;
  color: #ffffff;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.work-card:hover img {
  transform: scale(1.05);
}

.work-card:hover::after,
.work-card:hover .work-title {
  opacity: 1;
}

.logo-title {
  margin: 0 0 24px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 14px;
  text-align: center;
}

.logo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 28px;
  align-items: center;
  justify-items: center;
}

.logo-grid img {
  width: 100%;
  max-width: 180px;
  max-height: 80px;
  object-fit: contain;
  filter: grayscale(1);
  opacity: 0.8;
  transition: filter 0.3s ease, opacity 0.3s ease;
}

.logo-grid img:hover {
  filter: grayscale(0);
  opacity: 1;
}

.album-grid {
  display: grid;
  gap: 16px;
}

.album-grid[data-cols="2"] {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.album-grid[data-cols="3"] {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.album-grid[data-cols="4"] {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.album-download {
  margin-top: 40px;
  display: flex;
  justify-content: center;
}

.pdf-button {
  border: 1px solid var(--text);
  background: var(--text);
  color: #ffffff;
  padding: 12px 24px;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.2em;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
  transition: background 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}

.pdf-button:hover,
.pdf-button:focus-visible {
  background: #ffffff;
  color: var(--text);
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.16);
  outline: none;
}

.album-card {
  position: relative;
  overflow: hidden;
  background: #000000;
  display: block;
}

.album-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.album-card:hover img {
  transform: scale(1.04);
}

.viewer {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px var(--gutter);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 200;
}

.viewer.is-active {
  opacity: 1;
  pointer-events: auto;
}

.viewer-frame {
  max-width: min(1200px, 100%);
  max-height: 80vh;
}

.viewer-image {
  max-width: 100%;
  max-height: 80vh;
  width: auto;
  height: auto;
  display: block;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
}

.viewer-close,
.viewer-prev,
.viewer-next {
  position: absolute;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: transparent;
  color: #ffffff;
  font-size: 22px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.viewer-close:hover,
.viewer-prev:hover,
.viewer-next:hover {
  background: #ffffff;
  color: #111111;
  border-color: #ffffff;
}

.viewer-close:focus-visible,
.viewer-prev:focus-visible,
.viewer-next:focus-visible {
  background: #ffffff;
  color: #111111;
  border-color: #ffffff;
  outline: 2px solid rgba(255, 255, 255, 0.7);
  outline-offset: 2px;
}

.viewer-close {
  top: 20px;
  right: 20px;
}

.viewer-prev {
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
}

.viewer-next {
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
}

.viewer-count {
  position: absolute;
  bottom: 20px;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.8);
}

.viewer button:disabled {
  opacity: 0.35;
  cursor: default;
}

body.viewer-open {
  overflow: hidden;
}

.legal-section {
  padding-top: 50px;
}

.legal-content {
  max-width: 900px;
  margin: 0 auto;
  font-size: 15px;
}

.legal-content h1,
.legal-content h2,
.legal-content h3,
.legal-content h4 {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 16px;
  margin: 1.8em 0 0.6em;
}

.legal-content p {
  margin: 0 0 1em;
}

.legal-content ul,
.legal-content ol {
  margin: 0 0 1em;
  padding-left: 20px;
}

.legal-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.4em 0;
  font-size: 13px;
}

.legal-content th,
.legal-content td {
  border: 1px solid var(--line);
  padding: 8px 10px;
  text-align: left;
  vertical-align: top;
}

body[data-legal="imprint"] .legal-content {
  text-align: center;
}

.site-footer {
  background: #111111;
  color: #f2f2f2;
  padding: 60px 0 30px;
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(260px, 1.1fr) minmax(240px, 1fr);
  gap: 36px;
  align-items: start;
}

.footer-label {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 11px;
  margin: 0 0 8px;
  opacity: 0.7;
}

.footer-block p,
.footer-block a {
  font-size: 14px;
  line-height: 1.7;
  color: inherit;
}

.footer-block p {
  margin: 0 0 8px;
}

.footer-block p:last-child {
  margin-bottom: 0;
}

.footer-links-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.16em;
}

.footer-divider {
  opacity: 0.4;
}

.footer-socials {
  display: flex;
  gap: 12px;
  align-items: center;
}

.footer-socials a {
  border: 1px solid rgba(255, 255, 255, 0.3);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease, color 0.3s ease;
}

.footer-socials a:hover {
  background: #ffffff;
  color: #111111;
}

.footer-socials svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.footer-meta {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.footer-bottom {
  margin-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-logo {
  height: 40px;
  width: auto;
}

.footer-copy {
  font-size: 13px;
  letter-spacing: 0.08em;
}

@media (max-width: 900px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-nav {
    justify-content: flex-start;
  }

  .nav-dropdown {
    position: static;
    min-width: 0;
    border: none;
    box-shadow: none;
    padding: 8px 0 0;
    display: block;
  }

  .dropdown-link {
    padding-left: 0;
  }
}

@media (max-width: 1024px) {
  .work-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .work-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .album-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .album-grid {
    grid-template-columns: 1fr;
  }
}

@media (hover: none) and (pointer: coarse) {
  .viewer-close,
  .viewer-prev,
  .viewer-next {
    background: rgba(255, 255, 255, 0.95);
    color: #111111;
    border-color: #ffffff;
  }
}

@media (max-width: 700px) {
  .hero {
    min-height: 50vh;
  }

  .hero-title {
    letter-spacing: 0.1em;
  }

  .hero-title.hero-title--brand {
    flex-direction: column;
    gap: 6px;
    font-size: clamp(22px, 7vw, 32px);
    letter-spacing: 0.08em;
  }

  .hero-title.hero-title--brand .hero-title-word {
    white-space: normal;
  }

  .hero-title.hero-title--brand .hero-title-separator {
    display: none;
  }

  body[data-page="about"] .hero-title {
    white-space: normal;
  }

  .work-title {
    opacity: 1;
  }

  .work-card::after {
    opacity: 0.3;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 1100px) {
  body[data-page="about"] .hero-title {
    white-space: nowrap;
  }
}
