@font-face {
  font-family: "Geist";
  src: url("/assets/fonts/geist-latin-wght-normal.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2190-2199, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Geist";
  src: url("/assets/fonts/geist-latin-ext-wght-normal.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Geist";
  src: url("/assets/fonts/geist-latin-wght-italic.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2190-2199, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Geist";
  src: url("/assets/fonts/geist-latin-ext-wght-italic.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}


:root {
  --bg: #e0e0e0;
  --fg: #000;
  --muted: #808080;
  --faint: #b3b3b3;
  --accent: #ff5500;
  --pad: 0.5rem;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

html { font-size: 12.96px; -webkit-text-size-adjust: 100%; }
@media (max-width: 700px) { html { font-size: 11.86px; } }

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: "Geist", "Helvetica Neue", Arial, sans-serif;
  font-weight: 300;
  font-size: 2rem;
  line-height: 1.3;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: inherit; text-decoration: none; transition: color .2s, opacity .2s; }
a:hover { color: var(--accent); }
img, video { display: block; max-width: 100%; height: auto; }
b, strong { font-weight: 500; }

small {
  display: inline-block;
  font-size: 2rem;
  line-height: 1.3;
  font-style: italic;
  font-weight: 300;
  color: var(--muted);
}
sup .small, sup small { font-size: 1.2em; }
h2 {
  margin: 0;
  font-size: 1.2rem;
  line-height: 1.3;
  font-weight: 300;
  font-style: italic;
  color: var(--muted);
}
sup { position: relative; top: -0.4em; vertical-align: baseline; font-size: 0.833em; }
.arrow { display: inline-block; font-style: normal; font-size: 0.8em; vertical-align: 0.35em; margin-left: 0.05em; }

/* Header */
.site-header { padding: 1rem 1rem 0.4rem; position: relative; z-index: 2; }
.site-header h1 {
  margin: 0;
  font-size: 4rem;
  line-height: 0.85;
  font-weight: 400;
  color: var(--muted);
  letter-spacing: -0.005em;
}
.site-header h1 a { color: var(--muted); }
.site-header h1 a:hover { color: var(--accent); }

/* Page */
.page { flex: 1 0 auto; padding: 0 var(--pad); }
.content { padding: 0; }

.row { display: flex; flex-wrap: nowrap; margin: 0 calc(var(--pad) * -1); }
.col { flex: 1 1 0; min-width: 0; padding: var(--pad); }
.col[style*="--span"] { flex: 0 0 calc(var(--span) / 12 * 100%); }

@media (max-width: 700px) {
  .row { flex-direction: column; }
  .col, .col[style*="--span"] { flex: 1 1 auto; width: 100%; }
}

/* Galleries */
.gallery { display: flex; flex-direction: column; gap: 0.5rem; margin: 0.5rem 0; text-align: left; }
.gallery-justify { flex-direction: row; flex-wrap: wrap; gap: 0; margin: 0 -0.25rem; }
.gallery-justify .gallery-item { width: var(--w, 33.333%); padding: 0.25rem; }
.gallery-justify .gallery-item img,
.gallery-justify .gallery-item video { width: 100%; }
@media (max-width: 700px) { .gallery-justify .gallery-item { width: 50%; } }
.gallery-item img, .gallery-item video { width: 100%; }
.caption { font-size: 1.3rem; line-height: 1.3; color: rgba(41, 41, 41, 0.45); margin: 0.6rem 0 0.4rem; }
.embed { position: relative; height: 0; padding-bottom: var(--ratio, 56.25%); background: #d6d6d6; }
.embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.inline-media { display: inline-block; margin: 0 auto 0.5em; }

/* Home thumbnails */
.thumbs { display: flex; gap: 0.5rem; padding: 0.15rem 0 0.5rem; }
.thumb-col { flex: 1 1 0; display: flex; flex-direction: column; gap: 0.5rem; min-width: 0; }
.thumb { display: block; }
.thumb-media { display: block; overflow: hidden; background: #d4d4d4; }
.thumb-media img {
  width: 100%;
  transform: scale(1.001);
  transition: transform 1.1s var(--ease-out), filter .6s var(--ease-out);
  will-change: transform;
}
@media (hover: hover) {
  .thumb:hover .thumb-media img { transform: scale(1.045); }
}
@media (max-width: 700px) { .thumbs { flex-direction: column; } }

/* Info */
.page-info .content .row { align-items: flex-start; }
.page-info .content .col:first-child { text-align: center; }
.page-info .content .col:first-child .inline-media { width: 70%; }
.page-info sup { font-size: 0.75em; }
@media (min-width: 701px) { .page-info .content { padding-top: 0.4rem; } }

/* Legal pages */
.page-gdpr .content, .page-imprint .content { padding: var(--pad); }

/* Project nav */
.project-nav { display: flex; margin: 1.5rem calc(var(--pad) * -1) 0; color: var(--muted); }
.project-nav > div { flex: 1 1 0; padding: var(--pad); }
.project-nav a { color: var(--muted); }
.project-nav a:hover { color: var(--accent); }

/* Footer */
.site-footer {
  display: flex;
  align-items: center;
  font-size: 1.3rem;
  padding: 2.4rem 0 1.8rem;
}
.site-footer > div { flex: 1 1 0; text-align: center; }
.site-footer a.active { opacity: 0.4; }
.site-footer .icons { display: flex; justify-content: center; gap: 0.7rem; color: var(--muted); }
.site-footer svg { width: 1.6rem; height: 1.6rem; display: block; }

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  /* Page enters by fading in from below */
  .js .page, .js .site-footer {
    animation: page-in 0.9s var(--ease-out) both;
  }
  .js .site-footer { animation-delay: 0.08s; }
  @keyframes page-in {
    from { opacity: 0; transform: translateY(28px); }
    to   { opacity: 1; transform: none; }
  }
  /* Page leaves upward before navigation */
  .js body.is-leaving .page,
  .js body.is-leaving .site-footer {
    animation: page-out 0.35s cubic-bezier(0.4, 0, 1, 1) both;
  }
  @keyframes page-out {
    from { opacity: 1; transform: none; }
    to   { opacity: 0; transform: translateY(-16px); }
  }

  /* Scroll reveal */
  .js [data-reveal] {
    opacity: 0;
    transform: translateY(48px);
    transition: opacity 1s var(--ease-out), transform 1.2s var(--ease-out);
    transition-delay: var(--reveal-delay, 0s);
  }
  .js [data-reveal].is-visible { opacity: 1; transform: none; }
}
