
:root {
  --bg-left: #dde5da;
  --bg-right: #c5ccba;
  --bg: linear-gradient(to right, var(--bg-left), var(--bg-right));
  --sand: var(--bg-left); /* light text on black */
  --black: #000;
  --white: #fff;
  --ink: #151610;
  --rule: rgb(21 22 16 / 0.5);

  --header-height: 65px;
  --px: 1rem;
  --radius: 0.75rem;

  --fs-lg: clamp(1.375rem, 0.1807rem + 3.1325vw, 3rem);
  --fs-md: clamp(1.25rem, 0.6069rem + 1.6867vw, 2.125rem);
  --fs-arrow: clamp(1.25rem, 0.7907rem + 1.2048vw, 1.875rem);
  --fs-sm: clamp(0.6875rem, 0.5497rem + 0.3614vw, 0.875rem);
  --fs-xs: clamp(0.625rem, 0.5331rem + 0.241vw, 0.75rem);
  --fs-editor-sm: clamp(0.75rem, 0.6581rem + 0.241vw, 0.875rem);

  --font-sans: "Inter Tight", ui-sans-serif, system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-mono: var(--font-sans);

  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.76, 0, 0.24, 1);
}
@media (min-width: 768px) {
  :root { --px: 1.5rem; --radius: 1rem; }
}
@media (min-width: 1024px) {
  :root { --radius: 1.5rem; }
}
@media (min-width: 1280px) {
  :root { --px: 2rem; }
}

/* Base ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  font-family: var(--font-sans);
  font-weight: 700;
  line-height: 1.5;
}
body {
  margin: 0;
  background: var(--bg-left) var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
body.nav-open { overflow: hidden; }
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; font: inherit; }
::selection { background: var(--ink); color: var(--sand); }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap;
}

.mono {
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: var(--fs-sm);
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: 0.125em;
}


/* Header ---------------------------------------------------------------- */
.header {
  position: sticky;
  top: 0;
  z-index: 80;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  padding: 0.75rem var(--px);
  background: var(--bg);
  border-bottom: 1px solid var(--rule);
}
@media (min-width: 1024px) { .header { padding-block: 0.875rem; } }

.header-logo-clip { overflow: hidden; }
.header-logo {
  position: relative;
  z-index: 60;
  width: 13rem;
  transform: translateY(100%);
  transition: transform 0.5s var(--ease);
}
.header-logo.is-visible { transform: none; }
.header-logo a { display: block; }
.header-logo svg { width: 100%; height: auto; }
@media (min-width: 768px) { .header-logo { width: 15rem; } }
@media (min-width: 1024px) { .header-logo { width: 18rem; } }

/* Burger */
.nav-trigger {
  position: absolute;
  left: -0.25rem;
  top: 50%;
  z-index: 100;
  width: 4rem;
  height: 4rem;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  cursor: pointer;
  transform: translateY(-50%);
}
.nav-trigger:focus-visible { outline: 2px solid currentColor; outline-offset: -0.75rem; }
@media (min-width: 768px) { .nav-trigger { left: 0.5rem; } }
@media (min-width: 1280px) { .nav-trigger { left: 1rem; } }

.nav-trigger span {
  --y: 0;
  --r: 0deg;
  position: absolute;
  left: 50%;
  top: 50%;
  width: 1.25rem;
  height: 3px;
  margin-top: -1.5px;
  background: currentColor;
  transform: translateX(-50%) translateY(var(--y)) rotate(var(--r));
  transform-origin: center;
  transition: all 0.2s var(--ease);
}
.nav-trigger span:nth-child(1) { --y: -0.5rem; }
.nav-trigger span:nth-child(2) { --y: 0.5rem; }
@media (min-width: 768px) {
  .nav-trigger span { width: 1.75rem; height: 0.25rem; margin-top: -0.125rem; }
  .nav-trigger span:nth-child(1) { --y: -0.625rem; }
  .nav-trigger span:nth-child(2) { --y: 0.625rem; }
}
.nav-open .nav-trigger span:nth-child(1) { --y: -1rem; opacity: 0; }
.nav-open .nav-trigger span:nth-child(2) { --y: 1rem; opacity: 0; }
.nav-open .nav-trigger span:nth-child(3) { --r: 45deg; }
.nav-open .nav-trigger span:nth-child(4) { --r: -45deg; }

/* Navigation overlay ---------------------------------------------------- */
.nav-overlay {
  position: fixed;
  inset: var(--header-height) 0 0 0;
  z-index: 50;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-bottom: 1.5rem;
  background: var(--bg);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease-in, visibility 0.3s ease-in;
}
@media (min-width: 768px) { .nav-overlay { padding-bottom: 2rem; } }
@media (min-width: 1280px) { .nav-overlay { padding-bottom: 3rem; } }
.nav-open .nav-overlay { opacity: 1; visibility: visible; }

.nav-list {
  width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
  text-transform: uppercase;
}
.nav-list li {
  margin-block: -1px;
  border-block: 1px solid var(--rule);
  background-color: transparent;
  color: var(--ink);
  transform: translateX(-100%);
  transition:
    transform 0.6s var(--ease-in-out),
    background-color 0.3s ease-in-out,
    color 0.3s ease-in-out;
}
.nav-open .nav-list li { transform: none; }
.nav-open .nav-list li:nth-child(2) { transition-delay: 0.06s, 0s, 0s; }
.nav-open .nav-list li:nth-child(3) { transition-delay: 0.12s, 0s, 0s; }
.nav-open .nav-list li:nth-child(4) { transition-delay: 0.18s, 0s, 0s; }
.nav-list li:hover,
.nav-list li.is-current { background: var(--ink); color: var(--sand); }
.nav-list a {
  display: block;
  padding: 0.5rem var(--px);
  font-size: var(--fs-lg);
  line-height: 1.15;
  letter-spacing: 0.025em;
  text-align: center;
  text-decoration: none;
}
.nav-list a span { display: block; transform: translateY(3px); }
@media (min-width: 768px) { .nav-list a span { transform: translateY(0.25rem); } }

.nav-overlay .button-wrapper {
  display: flex;
  justify-content: center;
  width: 100%;
  padding-inline: var(--px);
}

/* Button ---------------------------------------------------------------- */
.button {
  position: relative;
  display: block;
  min-width: 300px;
  padding: 0.65em 3rem 0.65em 2rem;
  border: 1px solid var(--ink);
  border-radius: 9999px;
  color: var(--ink);
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: var(--fs-sm);
  line-height: 1.1;
  letter-spacing: 0.125em;
  text-align: center;
  text-transform: uppercase;
  text-decoration: none;
  transition: color 0.3s var(--ease), background-color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.button::after { content: "→"; position: absolute; right: 1em; }
.button:hover { background: var(--ink); color: var(--white); }
@media (min-width: 768px) { .button { display: inline-block; } }
.inverted .button { border-color: var(--white); color: var(--white); }
.inverted .button:hover { background: var(--white); color: var(--ink); }

/* Page layout ----------------------------------------------------------- */
.page { display: flex; flex-direction: column; min-height: 100vh; }
.main { flex-grow: 1; }

.section {
  position: relative;
  margin-top: -1px;
  border-top: 1px solid var(--rule);
}
.section.inverted { background: var(--black); color: var(--white); }

.fold-headline {
  position: absolute;
  left: 0;
  top: 1.5rem;
  padding-inline: var(--px);
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  text-align: right;
}
.fold-headline br { display: none; }
@media (min-width: 768px) {
  .fold-headline { top: 2rem; }
  .fold-headline br { display: block; }
}
@media (min-width: 1280px) { .fold-headline { top: 3rem; } }

.container {
  max-width: 1024px;
  margin-inline: auto;
}
@media (min-width: 1920px) { .container { max-width: 1280px; } }

/* Hero ------------------------------------------------------------------ */
.hero { padding-block: 1rem; }
.hero-inner {
  display: flex;
  flex-direction: column;
  height: calc(100svh - var(--header-height) - 1rem);
  padding: 0 var(--px) 1rem;
}
.hero-logo { flex: 0 0 auto; margin-bottom: 1rem; }
.hero-logo svg { width: 100%; height: auto; }
.hero-media {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: #111;
}
.hero-media video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}
@media (min-width: 768px) {
  .hero { padding-block: 2rem; }
  .hero-inner { height: calc(100svh - var(--header-height) - 1.5rem); padding-bottom: 1.5rem; }
  .hero-logo { margin-bottom: 2rem; }
}
@media (min-width: 1280px) {
  .hero-inner { padding-bottom: 2rem; }
}

/* Text blocks ----------------------------------------------------------- */
.text-block {
  margin-block: 1.25rem;
  padding: 0 var(--px) 0 4rem;
}
@media (min-width: 768px) { .text-block { margin-block: 1.5rem; padding-left: 6rem; } }
@media (min-width: 1280px) { .text-block { margin-block: 2rem; padding-left: 4rem; } }

.editor p { margin-bottom: 1em; }
.editor p:last-child { margin-bottom: 0; }
.editor { text-wrap: pretty; }

.editor-lg,
.editor-md {
  font-family: var(--font-sans);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0.025em;
}
.editor-lg { font-size: var(--fs-lg); max-width: 35ch; }
.editor-md { font-size: var(--fs-md); max-width: 50ch; margin-inline: auto; }

/* Arrow links inside large copy */
.editor-lg a,
.editor-md a {
  position: relative;
  display: inline-block;
  margin-left: 1.2em;
  margin-right: 0.25em;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
  white-space: nowrap;
}
.editor-lg a::before,
.editor-md a::before {
  content: "→";
  position: absolute;
  right: 100%;
  margin-right: 0.08em;
  text-decoration: none;
  transition: transform 0.15s var(--ease);
}
.editor-lg a:hover::before,
.editor-md a:hover::before { transform: rotate(-45deg); }
@media (min-width: 768px) {
  .editor-lg a, .editor-md a { text-underline-offset: 4px; }
}
@media (min-width: 1024px) {
  .editor-lg a, .editor-md a {
    margin-left: 1.1em;
    text-decoration-thickness: 4px;
    text-underline-offset: 5px;
  }
}

/* Small mono copy (Impressum) */
.editor-sm {
  max-width: 80ch;
  margin-inline: auto;
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: var(--fs-editor-sm);
  line-height: 1.5;
}
.editor-sm p,
.editor-sm h2 { margin-bottom: 0.5em; }
.editor-sm h2 {
  margin-top: 2.5em;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: var(--fs-editor-sm);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.editor-sm a {
  position: relative;
  margin-left: 1.3em;
  font-family: var(--font-sans);
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
.editor-sm a::before {
  content: "→";
  position: absolute;
  transform: translate(-140%, 0);
  transition: transform 0.15s var(--ease);
}
.editor-sm a:hover::before { transform: translate(-140%, 0) rotate(-45deg); }

/* Split-text reveal (added by JS) */
.w {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding-bottom: 0.18em;
  margin-bottom: -0.18em;
}
.w > .wi {
  display: inline-block;
  transform: translateY(115%);
  transition: transform 0.9s var(--ease-out);
  transition-delay: calc(var(--line, 0) * 90ms);
}
.is-revealed .w > .wi { transform: none; }
.w--link { padding-left: 1.2em; margin-left: 0; }
.w--link a { margin-left: 0; margin-right: 0; }
@media (min-width: 1024px) { .w--link { padding-left: 1.1em; } }

/* Fade-in reveal */
.js .reveal { opacity: 0; transition: opacity 1s var(--ease); }
.js .reveal.is-shown { opacity: 1; }

/* Teaser grid ----------------------------------------------------------- */
.teasers {
  margin-block: 1.5rem;
  padding: 0 3rem;
}
.inverted .teasers { margin-bottom: 0; padding-bottom: 1.5rem; }
@media (min-width: 768px) {
  .teasers { margin-block: 2rem; padding: 0 1.5rem 0 4rem; }
  .inverted .teasers { padding-bottom: 2rem; }
}
@media (min-width: 1280px) {
  .teasers { margin-block: 3rem; padding: 0 2rem; }
  .inverted .teasers { padding-bottom: 3rem; }
}

.grid {
  display: grid;
  grid-template-columns: 1fr;
  row-gap: 2rem;
}
@media (min-width: 640px) { .grid { grid-template-columns: repeat(2, 1fr); column-gap: 1rem; } }
@media (min-width: 1024px) { .grid { grid-template-columns: repeat(3, 1fr); } }

.teaser { position: relative; }
.teaser-inner { transition: transform 0.5s ease-in-out 0.1s; }
.teaser:hover .teaser-inner { transform: translateY(-0.75rem); transition-delay: 0s; }
.teaser-media {
  position: relative;
  z-index: 10;
  margin-bottom: 0.75rem;
  aspect-ratio: 350 / 400;
  border-radius: var(--radius);
  overflow: hidden;
  background: rgb(21 22 16 / 0.08);
  transition: transform 0.5s ease-in-out;
}
.inverted .teaser-media { background: rgb(255 255 255 / 0.08); }
.teaser:hover .teaser-media { transform: translateY(-0.5rem); }
.teaser-media img { width: 100%; height: 100%; object-fit: cover; }
.teaser-body { padding-left: 1rem; }
@media (min-width: 768px) {
  .teaser-media { margin-bottom: 1rem; }
  .teaser-body { padding-left: 1.5rem; }
}
@media (min-width: 1024px) { .teaser-body { padding-left: 2rem; } }
.teaser h3 a { text-decoration: none; outline: none; }
.teaser h3 a::after { content: ""; position: absolute; inset: 0; z-index: 20; }
.teaser h3 a:focus-visible::after { outline: 2px solid currentColor; outline-offset: 4px; border-radius: var(--radius); }
.teaser ul { margin: 0.125rem 0 0; padding: 0; list-style: none; }
.teaser li::before { content: "→"; margin-right: 0.35em; }

.teasers-more {
  margin-top: 2rem;
  padding-left: 1rem;
}
.teasers-more .button { grid-column: span 1; }
@media (min-width: 768px) { .teasers-more { margin-top: 3rem; padding-left: 2rem; } }
@media (min-width: 1024px) { .teasers-more.grid { column-gap: 2rem; } }

/* Accordion ------------------------------------------------------------- */
.accordion {
  margin-block: 1rem;
  border-top: 1px solid var(--rule);
}
@media (min-width: 768px) { .accordion { margin-block: 1.5rem; } }
@media (min-width: 1280px) { .accordion { margin-block: 2rem; } }

.ac { position: relative; border-bottom: 1px solid var(--rule); }
.ac-trigger {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  user-select: none;
}
.ac-trigger:focus-visible { outline: 2px solid currentColor; outline-offset: -2px; }
.ac-trigger-inner {
  display: block;
  padding: 0.375rem var(--px) 0.25rem 4rem;
}
@media (min-width: 768px) { .ac-trigger-inner { padding-top: 0.75rem; padding-left: 6rem; } }
@media (min-width: 1280px) { .ac-trigger-inner { padding-left: 4rem; } }
.ac-title {
  display: flex;
  align-items: center;
  padding-right: 3rem;
  font-size: var(--fs-lg);
  line-height: 1.15;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.ac-icon {
  position: absolute;
  top: 0.4em;
  right: 2rem;
  width: 0.6em;
  font-size: var(--fs-lg);
  transition: transform 0.3s var(--ease);
}
.ac-icon svg { width: 100%; height: auto; fill: currentColor; }
@media (min-width: 768px) { .ac-icon { right: 2.5rem; } }
@media (min-width: 1024px) { .ac-icon { width: 0.5em; } }
.ac.is-active .ac-icon { transform: rotate(-180deg); }

.ac-panel {
  height: 0;
  overflow: hidden;
  transition: height 0.45s var(--ease);
}
.ac-panel[hidden] { display: block; }

/* Carousel -------------------------------------------------------------- */
.carousel-wrap {
  height: calc(100svh - var(--header-height) - 2rem);
  margin-block: 1.5rem;
  padding-inline: var(--px);
}
@media (min-width: 768px) {
  .carousel-wrap { height: calc(100svh - var(--header-height) - 3rem); margin-block: 2rem; }
}
@media (min-width: 1280px) {
  .carousel-wrap { height: calc(100svh - var(--header-height) - 4rem); }
}
.carousel {
  position: relative;
  height: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--black);
  touch-action: pan-y;
}
.carousel-track {
  display: flex;
  height: 100%;
  transition: transform 0.7s var(--ease-in-out);
  will-change: transform;
}
.carousel-slide {
  position: relative;
  flex: 0 0 100%;
  height: 100%;
  background: var(--black);
}
.carousel-slide img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  user-select: none;
  -webkit-user-drag: none;
}
.carousel-btn {
  position: absolute;
  top: 50%;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 4rem;
  height: 4rem;
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink);
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: var(--fs-arrow);
  line-height: 1;
  cursor: pointer;
  transform: translateY(-50%);
}
.carousel-btn--prev { left: -0.5rem; }
.carousel-btn--next { right: -0.5rem; }
@media (min-width: 768px) {
  .carousel-btn--prev { left: 0.5rem; }
  .carousel-btn--next { right: 0.5rem; }
}

/* Contact / Footer ------------------------------------------------------ */
.contact {
  margin-block: 1.5rem;
  padding: 0 1.5rem 0 4rem;
}
@media (min-width: 768px) { .contact { margin-block: 2rem; padding-left: 6rem; } }
@media (min-width: 1280px) { .contact { margin-block: 2.5rem; padding-left: 4rem; } }
.contact .editor-lg { max-width: none; }
@media (min-width: 768px) { .contact .editor-lg { max-width: 75%; } }
@media (min-width: 1024px) { .contact .editor-lg { max-width: 68%; } }
.contact .button-row { margin-top: 2em; }

.footer-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  row-gap: 0.5rem;
  width: 100%;
  margin-top: -1px;
  padding: 1.25rem 1rem;
  border-top: 1px solid var(--rule);
  font-size: var(--fs-xs);
}
@media (min-width: 768px) { .footer-bar { padding: 1rem 2rem; row-gap: 0; } }

.footer-left {
  order: 2;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 66.666%;
  font-family: var(--font-mono);
  font-weight: 400;
  letter-spacing: 0.125em;
  text-transform: uppercase;
}
.footer-social { display: block; flex-shrink: 0; width: 1rem; height: 1rem; }
.footer-social svg { width: 100%; height: 100%; }
.footer-nav ul {
  display: flex;
  gap: 1rem;
  margin: 0 0 0 0.5rem;
  padding: 0;
  list-style: none;
}
.footer-nav a {
  text-decoration: underline;
  text-decoration-color: transparent;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  transition: text-decoration-color 0.2s;
}
.footer-nav a:hover,
.footer-nav a[aria-current="page"] { text-decoration-color: currentColor; }

.footer-center {
  order: 1;
  display: flex;
  justify-content: center;
  width: 100%;
  margin-bottom: 0.5rem;
}
.footer-logo { width: 1.75rem; }
.footer-logo a { display: block; }
.footer-logo svg { width: 100%; height: auto; }

.footer-right {
  order: 3;
  flex: 1;
  width: 33.333%;
  font-family: var(--font-mono);
  font-weight: 400;
  letter-spacing: 0.125em;
  text-align: right;
  text-transform: uppercase;
}

@media (min-width: 768px) {
  .footer-left { order: 1; flex: 1; width: auto; }
  .footer-social { width: 1.5rem; height: 1.5rem; }
  .footer-center { order: 2; width: auto; flex-grow: 0; flex-shrink: 0; margin-bottom: 0; }
  .footer-logo { width: 2rem; }
  .footer-right { width: auto; }
}
@media (min-width: 1024px) { .footer-logo { width: 2.5rem; } }

/* Page transition mask -------------------------------------------------- */
.page-mask {
  position: fixed;
  inset: 0;
  z-index: 200;
  pointer-events: none;
}
.page-mask__top,
.page-mask__bottom {
  position: absolute;
  left: 0;
  right: 0;
  background: var(--black);
  transform: scaleY(0);
}
.page-mask__top { top: 0; bottom: 50svh; transform-origin: top; }
.page-mask__bottom { top: 50svh; bottom: 0; transform-origin: bottom; }

/* Enter: halves retract to the edges */
.page-mask__top,
.page-mask__bottom { animation: mask-out 0.8s 0.1s var(--ease-in-out) both; }

/* Leave: halves close from the edges */
.page-mask.is-leaving { pointer-events: auto; }
.page-mask.is-leaving .page-mask__top,
.page-mask.is-leaving .page-mask__bottom { animation: mask-in 0.55s var(--ease-in-out) both; }

@keyframes mask-out { from { transform: scaleY(1); } to { transform: scaleY(0); } }
@keyframes mask-in { from { transform: scaleY(0); } to { transform: scaleY(1); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }
}

/* Name wordmark (replaces the logo SVGs) --------------------------------- */
:root { --font-name: var(--font-sans); }

.wordmark, .name, .monogram {
  font-family: var(--font-name);
  font-weight: 400;
  text-transform: uppercase;
  font-style: normal;
}
.wordmark b, .name b, .monogram b { font-weight: 700; }

.wordmark {
  display: block;
  padding-top: 0.12em;
  font-size: 1.75rem;
  line-height: 1.05;
  letter-spacing: -0.02em;
  white-space: nowrap;
}
@media (min-width: 768px) { .wordmark { font-size: 2rem; } }
@media (min-width: 1024px) { .wordmark { font-size: 2.25rem; } }

.header-logo { width: auto; }

.hero-logo { container-type: inline-size; }
.wordmark--hero {
  padding-top: 0;
  font-size: 18.6cqw;
  line-height: 1;
  letter-spacing: -0.03em;
  text-align: center;
}

.name { letter-spacing: 0; }

.monogram {
  display: block;
  font-size: 1.5rem;
  line-height: 1;
  letter-spacing: -0.02em;
}
.footer-logo { width: auto; }
@media (min-width: 768px) { .monogram { font-size: 1.75rem; } }
.header-logo a, .footer-logo a { text-decoration: none; }
.button[aria-current="page"] { background: var(--ink); color: var(--white); }

/* Project template ----------------------------------------------------- */
.project-meta {
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
}
.project-meta li::before { content: "→"; margin-right: 0.35em; }

.project-hero { padding: 1rem var(--px); }
@media (min-width: 768px) { .project-hero { padding-block: 2rem; } }

.project-media {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 350 / 400;
  border-radius: var(--radius);
  overflow: hidden;
  background: rgb(21 22 16 / 0.08);
}
.project-media--hero { aspect-ratio: 16 / 9; }
.project-media img,
.project-media video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.project-placeholder { opacity: 0.5; }

.project-back { margin-top: 2rem; }
@media (min-width: 768px) { .project-back { margin-top: 3rem; } }
.name--capital { text-transform: none; font-weight: 700; }

/* Upcoming events marquee ----------------------------------------------- */
.events-marquee {
  overflow: hidden;
  padding-bottom: 2rem;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 4%, #000 96%, transparent);
          mask-image: linear-gradient(to right, transparent, #000 4%, #000 96%, transparent);
}
@media (min-width: 768px) { .events-marquee { padding-bottom: 3rem; } }

.events-track {
  display: flex;
  width: max-content;
  animation: events-scroll var(--marquee-duration, 60s) linear infinite;
}
.events-marquee:hover .events-track,
.events-marquee:focus-within .events-track { animation-play-state: paused; }

.events-group {
  display: flex;
  gap: 1rem;
  padding-right: 1rem;
}
@media (min-width: 768px) { .events-group { gap: 1.5rem; padding-right: 1.5rem; } }

@keyframes events-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.event-card {
  flex: 0 0 auto;
  width: 16rem;
}
@media (min-width: 768px) { .event-card { width: 19rem; } }

.event-media {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  overflow: hidden;
  background: rgb(21 22 16 / 0.08);
}
.event-media img { width: 100%; height: 100%; object-fit: cover; }
.event-tag {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.35em 0.75em;
  border-radius: 9999px;
  background: var(--bg-left);
  font-size: var(--fs-xs);
}

.event-body { padding: 1rem 0.25rem 0; }
.event-date {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.5rem;
  font-size: var(--fs-md);
  line-height: 1.1;
}
.event-time { white-space: nowrap; }
.event-artist {
  margin-top: 0.35rem;
  font-size: var(--fs-md);
  font-weight: 400;
  line-height: 1.1;
}
.event-meta { margin: 0.75rem 0 0; }
.event-meta div { display: flex; gap: 0.5em; margin-top: 0.3em; }
.event-meta dt { flex: 0 0 7.5em; opacity: 0.6; }
.event-meta dd { margin: 0; }
.event-button {
  display: block;
  min-width: 0;
  margin-top: 1rem;
}

/* No auto-scroll for reduced motion: plain horizontal scroll instead */
@media (prefers-reduced-motion: reduce) {
  .events-marquee { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
  .events-track { animation: none; }
  .events-group[aria-hidden="true"] { display: none; }
}
.event-media {
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(120% 80% at 20% 15%, rgb(197 204 186 / 0.35), transparent 60%),
    radial-gradient(90% 70% at 85% 90%, rgb(221 229 218 / 0.18), transparent 60%),
    var(--ink);
}
.event-card:nth-child(3n+2) .event-media { background-position: 60% 0, 0 0, 0 0; }
.event-placeholder { color: var(--bg-left); opacity: 0.6; }
.event-media img { position: absolute; inset: 0; }

/* Image placeholders (until real images are delivered) ------------------- */
.is-placeholder {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(120% 80% at 20% 15%, rgb(197 204 186 / 0.35), transparent 60%),
    radial-gradient(90% 70% at 85% 90%, rgb(221 229 218 / 0.18), transparent 60%),
    var(--ink);
}
.ph-label {
  color: var(--bg-left);
  opacity: 0.6;
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: var(--fs-sm);
  letter-spacing: 0.125em;
  text-transform: uppercase;
}
.carousel-btn { color: var(--bg-left); }

/* CV ------------------------------------------------------------------- */
.cv { padding-block: 1.5rem; }
@media (min-width: 768px) { .cv { padding-block: 2.5rem; } }
.cv-group + .cv-group { margin-top: 3rem; }
.cv-heading { margin-bottom: 1rem; opacity: 0.6; }
.cv-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid rgb(255 255 255 / 0.3);
}
.cv-item {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.35rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid rgb(255 255 255 / 0.3);
}
@media (min-width: 768px) {
  .cv-item { grid-template-columns: 12rem 1fr; gap: 1.5rem; }
  .cv-date { padding-top: 0.45em; }
}
.cv-role { font-size: var(--fs-md); line-height: 1.15; }
.cv-org { margin-top: 0.4rem; opacity: 0.7; }

.skills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.skills li {
  padding: 0.6em 1.1em;
  border: 1px solid currentColor;
  border-radius: 9999px;
}

/* Upcoming events: equal-height cards, button pinned to the bottom ------- */
.events-group { align-items: stretch; }
.event-card { display: flex; flex-direction: column; }
.event-body { display: flex; flex-direction: column; flex: 1 1 auto; }
.event-meta { margin-bottom: 1rem; }
.event-button { margin-top: auto; }

/* Desktop: landscape 5:4 images */
@media (min-width: 1024px) {
  .event-media { aspect-ratio: 5 / 4; }
  .event-card { width: 26rem; }
}

/* Fill the viewport (header + events + footer bar) when there is room */
@media (min-height: 600px) {
  .is-upcoming-events .page { min-height: 0; height: calc(100svh - var(--header-height)); }
  .is-upcoming-events .main,
  .is-upcoming-events #upcoming-events {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
  }
  .is-upcoming-events #upcoming-events { padding-bottom: 1.5rem; }
  .is-upcoming-events .events-marquee {
    flex: 1 1 auto;
    min-height: 0;
    padding-bottom: 0;
    container-type: size;
  }
  .is-upcoming-events .events-track,
  .is-upcoming-events .events-group { height: 100%; }
  .is-upcoming-events .event-card {
    --ratio: 0.8;       /* 4:5 */
    --body-h: 13.5rem;  /* date, artist, meta, button */
    height: 100%;
    width: clamp(12rem, calc((100cqh - var(--body-h)) * var(--ratio)), 85vw);
  }
}
@media (min-height: 600px) and (min-width: 1024px) {
  .is-upcoming-events .event-card { --ratio: 1.25; } /* 5:4 */
}

/* Accordion copy in regular weight */
.ac-panel .editor-md { font-weight: 400; }

/* Upcoming events: one-line headline + chevrons, step carousel ----------- */
.events-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem var(--px);
}
@media (min-width: 768px) { .events-head { padding-block: 2rem; } }
.events-title {
  margin: 0;
  font-size: var(--fs-lg);
  line-height: 1.15;
  letter-spacing: 0.025em;
  white-space: nowrap;
}
.events-nav { display: flex; gap: 0.5rem; flex-shrink: 0; }
.events-btn {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 1px solid var(--ink);
  border-radius: 50%;
  background: none;
  color: var(--ink);
  cursor: pointer;
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease);
}
@media (min-width: 768px) { .events-btn { width: 3.25rem; height: 3.25rem; } }
.events-btn:hover { background: var(--ink); color: var(--white); }
.events-btn:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.events-btn svg {
  width: 45%;
  height: 45%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* No continuous scrolling anymore: the track moves card by card */
.events-marquee {
  -webkit-mask-image: linear-gradient(to right, #000 92%, transparent);
          mask-image: linear-gradient(to right, #000 92%, transparent);
  touch-action: pan-y;
}
.events-track {
  animation: none;
  padding-left: var(--px);
  transition: transform 0.8s var(--ease-in-out);
  will-change: transform;
}
@media (prefers-reduced-motion: reduce) {
  .events-marquee { overflow: hidden; }
  .events-group[aria-hidden="true"] { display: flex; }
}

/* Accessibility: skip link + visible keyboard focus (WCAG 2.4.1 / 2.4.7) - */
.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 300;
  padding: 0.75em 1.25em;
  border-radius: 9999px;
  background: var(--ink);
  color: var(--white);
  font-size: var(--fs-sm);
  text-decoration: none;
  transform: translateY(-200%);
  transition: transform 0.2s var(--ease);
}
.skip-link:focus { transform: none; }
.main:focus { outline: none; }

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}
.inverted :focus-visible { outline-color: var(--white); }
.button:focus-visible { outline-offset: 4px; }
.nav-list a:focus-visible { outline-offset: -4px; }
.nav-list li:focus-within { background: var(--ink); color: var(--sand); }
.nav-list li:focus-within a:focus-visible { outline-color: var(--sand); }

/* The header logo is slid out of view on the hero; show it when focused */
.header-logo:focus-within { transform: none; }

/* Better contrast for secondary labels */
.event-meta dt { opacity: 0.75; }

/* Events: pause/play toggle, past event, disabled button */
.events-btn--toggle .icon-play { display: none; }
.events-btn--toggle[aria-pressed="true"] .icon-pause { display: none; }
.events-btn--toggle[aria-pressed="true"] .icon-play { display: block; }
.events-btn--toggle svg { width: 40%; height: 40%; }
.events-btn--toggle .icon-play { fill: currentColor; stroke: none; }
.events-btn[hidden] { display: none; }

.event-card.is-past .event-media { opacity: 0.55; }
.event-card.is-past .event-body { opacity: 0.7; }
.button.is-disabled {
  cursor: default;
  border-style: dashed;
}
.button.is-disabled::after { content: none; }
.button.is-disabled:hover { background: none; color: var(--ink); }
.event-artist { margin-bottom: 0; }

/* Event cards: meta rows span the full width (label left, value right) --- */
.event-meta { width: 100%; }
.event-meta div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
}
.event-meta dt { flex: 0 0 auto; }
.event-meta dd { flex: 1 1 auto; text-align: right; }

/* Active card highlight: active in colour and full size, others b/w and smaller */
.event-card {
  transform: scale(0.94);
  transform-origin: center center;
  transition: transform 0.8s var(--ease-in-out);
}
.event-card .event-media img {
  filter: grayscale(1);
  transition: filter 0.8s var(--ease-in-out);
}
.event-card.is-active { transform: none; }
.event-card.is-active .event-media img,
.event-card:hover .event-media img,
.event-card:focus-within .event-media img { filter: none; }
.event-card.is-past.is-active .event-media { opacity: 0.8; }

/* Centred variant: fade both edges */
.events-marquee[data-align="center"] {
  -webkit-mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
          mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
}

/* Accent for upcoming events: "Beispiel" tag + "Anmelden" button.
   Ink text on #7B9884 has a contrast ratio of about 5.7:1 (WCAG AA). */
:root { --accent: #7b9884; }
.event-card:not(.is-past) .event-tag {
  background: var(--accent);
  color: var(--ink);
}
.event-card:not(.is-past) .event-button {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--ink);
}
.event-card:not(.is-past) .event-button:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--white);
}
