@import url('https://fonts.googleapis.com/css2?family=Archivo:wght@400;500;600;700&family=Space+Grotesk:wght@400;500&display=swap');

:root {
  --bg: #ffffff;
  --fg: #1a1a1a;
  --fg-muted: rgba(26, 26, 26, 0.62);
  --header-h: 96px;
}

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

html, body {
  background: var(--bg);
  color: var(--fg);
}

body {
  font-family: 'Space Grotesk', sans-serif;
  -webkit-font-smoothing: antialiased;
  min-height: 100dvh;
}

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

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--fg);
  outline-offset: 2px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.nav-toggle:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 2px;
}

.header-menu a:focus-visible {
  outline: 2px solid #2e2e2e;
  outline-offset: -2px;
}

.theme-image .header-menu a:focus-visible {
  outline-color: #eeeeee;
}

/* ---------- Header ---------- */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.site-header button,
.site-header a {
  pointer-events: auto;
}

.nav-toggle {
  width: 62px;
  height: 62px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(6px);
  border: none;
  border-radius: 50%;
  color: #ffffff;
  cursor: pointer;
}

.nav-toggle svg {
  width: 28px;
  height: 28px;
}

.nav-toggle .icon-close {
  display: none;
}

.nav-toggle[aria-expanded="true"] .icon-open {
  display: none;
}

.nav-toggle[aria-expanded="true"] .icon-close {
  display: block;
}

.header-menu {
  position: fixed;
  top: calc(var(--header-h) + 6px);
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  z-index: 100;
  min-width: 200px;
  background: transparent;
  display: flex;
  flex-direction: column;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease-out, transform 180ms ease-out;
}

.header-menu.open {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

.header-menu a {
  padding: 8px 28px;
  text-align: center;
  font-family: 'Archivo', sans-serif;
  font-size: 38px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  opacity: 0.85;
  transition: opacity 150ms ease-out;
}

.header-menu a:hover,
.header-menu a:focus-visible {
  opacity: 1;
}

/* Light grey + dark glow over the photo wall, dark grey + light glow over
   the lighter content pages, so the type stays legible with no box behind it. */
.theme-image .header-menu a {
  color: #eeeeee;
  text-shadow: 0 0 14px rgba(0, 0, 0, 0.6);
}

.theme-light .header-menu a {
  color: #2e2e2e;
  text-shadow: 0 0 14px rgba(255, 255, 255, 0.85);
}

/* ---------- Grid ---------- */

.wall {
  display: grid;
  grid-template-columns: repeat(var(--cols, 2), 1fr);
  grid-auto-rows: minmax(var(--unit, 50vw), auto);
  grid-auto-flow: dense;
  gap: 0;
  width: 100%;
}

.tile {
  position: relative;
  overflow: hidden;
  background: #ececec;
  grid-column: span 1;
  grid-row: span 1;
}

.tile.landscape {
  grid-column: span 2;
  grid-row: span 1;
}

.tile.portrait {
  grid-column: span 1;
  grid-row: span 2;
}

.tile img,
.tile video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ---------- About / Impressum pages ---------- */

.page {
  min-height: 100dvh;
  padding: calc(var(--header-h) + 48px) 24px 80px;
  display: flex;
  justify-content: center;
}

.page-content {
  width: 100%;
  max-width: 640px;
  min-height: calc(100dvh - var(--header-h) - 128px);
  display: flex;
  flex-direction: column;
}

.page-content h1 {
  font-family: 'Archivo', sans-serif;
  font-weight: 700;
  font-size: clamp(28px, 5vw, 40px);
  margin-bottom: 24px;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.page-content p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--fg-muted);
  margin-bottom: 16px;
  text-wrap: pretty;
}

.page-content address {
  font-style: normal;
  font-size: 16px;
  line-height: 1.7;
  color: var(--fg-muted);
  margin-bottom: 16px;
}

.page-content hr {
  border: none;
  border-top: 1px solid rgba(26, 26, 26, 0.12);
  margin: 48px 0;
}

.page-content a.inline-link {
  color: var(--fg);
  text-decoration: underline;
  text-underline-offset: 3px;
  opacity: 0.85;
}

.page-content a.inline-link:hover {
  opacity: 1;
}

.page-content h2 {
  font-family: 'Archivo', sans-serif;
  font-size: 20px;
  font-weight: 700;
  margin: 40px 0 12px;
  text-wrap: balance;
}

.page-content h3 {
  font-family: 'Archivo', sans-serif;
  font-size: 16px;
  font-weight: 600;
  margin: 28px 0 8px;
  text-wrap: balance;
}

.page-content ul {
  margin: 0 0 16px;
  padding-left: 20px;
  color: var(--fg-muted);
}

.page-content li {
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 4px;
}

/* ---------- About page grid ---------- */

.tile.text {
  background: #f5f3ee;
  box-shadow: 0 0 0 1px #f5f3ee;
  color: var(--fg);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(24px, 4vw, 40px);
}

@media (min-width: 700px) {
  .tile.text {
    grid-column: 2;
    grid-row: 1 / 3;
  }
}

/* Mobile: the bio card sits outside the image grid as a full-width block —
   same light grey background as the desktop card, just no grid border/
   aspect constraints, with small dense type so the whole bio reads without
   scrolling inside a cramped box. */
@media (max-width: 699px) {
  .tile.text {
    box-shadow: none;
    justify-content: flex-start;
    padding: calc(var(--header-h) + 8px) 24px 32px;
  }
}

.tile.text h2 {
  font-family: 'Archivo', sans-serif;
  font-weight: 700;
  font-size: clamp(22px, 2.6vw, 30px);
  line-height: 1.3;
  letter-spacing: -0.01em;
  margin-bottom: 20px;
  text-wrap: balance;
}

.tile.text p {
  font-size: clamp(16px, 1.4vw, 18px);
  line-height: 1.7;
  color: var(--fg-muted);
  margin-bottom: 16px;
  text-wrap: pretty;
}

.tile.text p:last-of-type {
  margin-bottom: clamp(24px, 4vw, 40px);
}

@media (max-width: 699px) {
  .tile.text h2 {
    font-size: 15px;
    line-height: 1.4;
    margin-bottom: 14px;
  }

  .tile.text p {
    font-size: 12px;
    line-height: 1.5;
    margin-bottom: 10px;
  }

  .tile.text p:last-of-type {
    margin-bottom: 20px;
  }
}

.tile.text .socials {
  display: flex;
  align-items: center;
  gap: 20px;
  list-style: none;
  /* Each icon link is a 64px tap target around a 52px icon; shift the row
     left by that 6px inset so the visible icon — not its tap target — lines
     up flush with the paragraph text above it. */
  margin-left: -6px;
}

.tile.text .socials a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  color: var(--fg);
  opacity: 0.65;
  transition: opacity 150ms ease-out;
}

.tile.text .socials a:hover,
.tile.text .socials a:focus-visible {
  opacity: 1;
}

.tile.text .socials svg {
  width: 52px;
  height: 52px;
}

@media (max-width: 699px) {
  .tile.text .socials {
    gap: 14px;
  }

  .tile.text .socials a {
    width: 48px;
    height: 48px;
  }

  .tile.text .socials svg {
    width: 36px;
    height: 36px;
  }
}

/* ---------- Clients ---------- */

.clients {
  background: #f5f3ee;
  overflow-x: auto;
}

.clients ul {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  list-style: none;
  padding: clamp(24px, 4vw, 40px);
}

.clients li {
  white-space: nowrap;
  font-family: 'Archivo', sans-serif;
  font-weight: 600;
  font-size: clamp(9px, 0.8vw, 13px);
  text-transform: uppercase;
  letter-spacing: 0.01em;
  color: var(--fg-muted);
}

.clients-label {
  font-weight: 700;
  color: var(--fg);
}

@media (max-width: 699px) {
  .clients ul {
    flex-wrap: wrap;
    justify-content: flex-start;
    row-gap: 10px;
    column-gap: 16px;
  }

  .clients li {
    font-size: 10px;
  }
}

/* ---------- Responsive ---------- */

@media (min-width: 700px) {
  :root { --header-h: 104px; }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
