/* =========================================================
   TAUSEND TORE — DESIGN 1
   Beige/Papier + 95% Schwarz, reine Sans-Serif-Typografie
   ========================================================= */

:root {
  --paper: #efe8dc;
  --paper-deep: #e4dacb;
  --ink: #0d0d0d;      /* ca. 95% Schwarz */
  --muted: #aaa49b;
  --line: rgba(13, 13, 13, .34);
  --max: 1500px;
  --pad: clamp(20px, 3.1vw, 52px);
  --sans: "Arial Narrow", "Roboto Condensed", "Helvetica Neue", Arial, sans-serif;
  --body: "Helvetica Neue", Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 25% 10%, rgba(255,255,255,.27), transparent 30%),
    radial-gradient(circle at 80% 75%, rgba(0,0,0,.025), transparent 35%),
    var(--paper);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.45;
}

/* leichte Papierkörnung ohne Bilddatei */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .14;
  mix-blend-mode: multiply;
  background-image:
    repeating-radial-gradient(circle at 0 0,
      rgba(0,0,0,.08) 0 0.5px,
      transparent .6px 3px);
  background-size: 8px 8px;
  z-index: 100;
}

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

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

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

.shell {
  width: min(100% - (var(--pad) * 2), var(--max));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  left: 1rem;
  top: 1rem;
  transform: translateY(-200%);
  background: var(--ink);
  color: var(--paper);
  padding: .8rem 1rem;
  z-index: 999;
}
.skip-link:focus { transform: none; }

.site-header {
  min-height: 118px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
  padding-top: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  font-family: var(--sans);
  letter-spacing: .08em;
}

.brand-mark {
  font-family: Impact, var(--sans);
  font-size: 3.15rem;
  line-height: .8;
  font-weight: 900;
  letter-spacing: -.12em;
  transform: scaleX(.78);
  transform-origin: left;
  position: relative;
}

.brand-mark::after {
  content: "";
  position: absolute;
  inset: -10% -20% -22% 6%;
  opacity: .34;
  background:
    radial-gradient(circle at 20% 80%, var(--ink) 0 1px, transparent 1.5px),
    radial-gradient(circle at 60% 35%, var(--ink) 0 1px, transparent 1.5px),
    radial-gradient(circle at 85% 70%, var(--ink) 0 1px, transparent 1.5px);
  background-size: 9px 11px, 13px 12px, 7px 10px;
  mask-image: linear-gradient(to bottom, transparent, black 25%, black 60%, transparent);
}

.brand-wordmark {
  display: grid;
  line-height: 1;
}
.brand-wordmark strong {
  font-size: 1.13rem;
}
.brand-wordmark small {
  margin-top: .35rem;
  font-size: .74rem;
}

.primary-nav {
  display: flex;
  gap: clamp(28px, 4vw, 58px);
  padding-top: 9px;
  font-family: var(--sans);
  font-weight: 800;
  font-size: .82rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.primary-nav a {
  padding-bottom: .3rem;
  border-bottom: 1px solid transparent;
}
.primary-nav a:hover,
.primary-nav a:focus-visible {
  border-color: currentColor;
}

.nav-toggle {
  display: none;
}

.hero {
  min-height: 720px;
  display: grid;
  grid-template-columns: 1.18fr .7fr .95fr;
  gap: clamp(32px, 5vw, 86px);
  align-items: start;
  padding-top: 34px;
  padding-bottom: 68px;
}

.hero h1 {
  margin: 0;
  font-family: var(--sans);
  font-weight: 900;
  font-stretch: condensed;
  font-size: clamp(5rem, 9.2vw, 10rem);
  line-height: .83;
  letter-spacing: -.075em;
}

.hero-copy {
  max-width: 28rem;
  padding-top: 18px;
  font-size: clamp(.96rem, 1vw, 1.12rem);
}
.hero-copy p {
  margin: 0 0 1.25rem;
}
.hero-last {
  font-family: var(--sans);
  font-size: 1.45rem;
  font-weight: 900;
}

.hero-sign {
  min-height: 500px;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.hero-sign span {
  position: relative;
  display: inline-block;
  font-family: Impact, var(--sans);
  font-size: clamp(10rem, 22vw, 24rem);
  font-weight: 900;
  line-height: .72;
  letter-spacing: -.14em;
  transform: scaleX(.72);
}
.hero-sign span::after {
  content: "";
  position: absolute;
  inset: -15% -30%;
  background:
    radial-gradient(circle, var(--ink) 0 1px, transparent 1.4px);
  background-size: 7px 7px;
  opacity: .42;
  mask-image: radial-gradient(circle, black, transparent 70%);
}

.section {
  padding-bottom: 0;
}

.section-heading {
  border-bottom: 1px solid var(--line);
  margin-bottom: 28px;
}
.section-heading h2,
.eyebrow {
  margin: 0 0 12px;
  font-family: var(--sans);
  font-size: .88rem;
  font-weight: 900;
  letter-spacing: .06em;
}

.works-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-bottom: 1px solid var(--line);
}

.work-card {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(220px, .95fr);
  gap: clamp(24px, 3vw, 54px);
  padding: 0 0 32px;
}
.work-card + .work-card {
  border-left: 1px solid var(--line);
  padding-left: clamp(24px, 3vw, 54px);
}

.work-number {
  display: block;
  margin-bottom: .45rem;
  font-family: var(--sans);
  font-size: .95rem;
  font-weight: 800;
}

.work-card h3,
.dresden h3,
.atlas h2,
.contact h2,
.collective h2 {
  margin: 0;
  font-family: var(--sans);
  font-weight: 900;
  letter-spacing: -.045em;
}

.work-card h3 {
  font-size: clamp(2.2rem, 3.4vw, 4.2rem);
  line-height: .95;
}

.work-claim {
  margin: .5rem 0 1.4rem;
  font-size: 1.12rem;
  font-weight: 600;
}
.work-copy > p:not(.work-claim) {
  max-width: 33rem;
  font-size: .94rem;
}

.link-row {
  display: flex;
  flex-wrap: wrap;
  gap: .85rem 1.55rem;
  margin-top: 2.2rem;
  font-family: var(--sans);
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .065em;
  text-transform: uppercase;
}
.link-row a:hover span {
  display: inline-block;
  transform: translateX(4px);
}

.media-placeholder {
  position: relative;
  margin: 0;
  min-height: 240px;
  background: rgba(13, 13, 13, .075);
  border: 1px solid rgba(13, 13, 13, .13);
  overflow: hidden;
}
.media-placeholder::before,
.media-placeholder::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 142%;
  height: 1px;
  background: rgba(13,13,13,.18);
  transform-origin: center;
}
.media-placeholder::before { transform: translate(-50%,-50%) rotate(38deg); }
.media-placeholder::after { transform: translate(-50%,-50%) rotate(-38deg); }
.media-placeholder span {
  position: absolute;
  inset: auto 12px 10px;
  z-index: 1;
  font-family: var(--sans);
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  opacity: .55;
}

.secondary-grid {
  display: grid;
  grid-template-columns: .82fr 1.55fr;
  border-bottom: 1px solid var(--line);
}

.dresden {
  display: grid;
  grid-template-columns: 1fr 150px;
  gap: 26px;
  padding: 34px 34px 34px 0;
  border-right: 1px solid var(--line);
}
.dresden h3 {
  margin: .45rem 0 1rem;
  font-size: clamp(1.9rem, 2.5vw, 3rem);
}
.dresden p {
  font-size: .9rem;
}
.small { min-height: 210px; }

.collective {
  padding: 34px 0 34px 36px;
}
.collective > h2 {
  font-size: clamp(2rem, 3vw, 3.8rem);
  line-height: .9;
  margin-bottom: 26px;
}

.principles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.principles article {
  min-width: 0;
  padding: 0 20px;
  border-left: 1px solid var(--line);
}
.principles article:first-child {
  padding-left: 0;
  border-left: 0;
}
.principle-icon {
  display: block;
  min-height: 34px;
  font-size: 1.8rem;
}
.principles h3 {
  margin: .35rem 0 .8rem;
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.05;
}
.principles p {
  margin: 0;
  font-size: .82rem;
}

.atlas {
  display: grid;
  grid-template-columns: .5fr 1.5fr;
  gap: 44px;
  padding-top: 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
}

.atlas h2 {
  font-size: clamp(2.1rem, 3.1vw, 4rem);
  line-height: .88;
  margin-bottom: 1.2rem;
}
.atlas-copy p {
  max-width: 26rem;
  font-size: .92rem;
}
.atlas-image {
  min-height: 260px;
}

.contact {
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}
.contact h2 {
  font-size: clamp(2rem, 3vw, 3.5rem);
  line-height: .9;
}
.contact p {
  margin: .4rem 0 0;
  font-size: 1.15rem;
}

.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 28px;
  min-width: 320px;
  padding: 22px 28px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--sans);
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.site-footer {
  background: var(--ink);
  color: var(--paper);
}
.footer-inner {
  min-height: 110px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}
.brand-footer .brand-mark {
  font-size: 2.75rem;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 18px 42px;
  font-family: var(--sans);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
}

/* =========================================================
   Responsive
   ========================================================= */

@media (max-width: 1100px) {
  .hero {
    grid-template-columns: 1.1fr .9fr;
    min-height: auto;
  }
  .hero-sign {
    grid-column: 1 / -1;
    min-height: 260px;
    justify-items: end;
    margin-top: -120px;
    pointer-events: none;
  }
  .hero-sign span {
    font-size: 17rem;
    opacity: .16;
  }

  .works-grid {
    grid-template-columns: 1fr;
  }
  .work-card + .work-card {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding-left: 0;
    padding-top: 30px;
  }

  .secondary-grid {
    grid-template-columns: 1fr;
  }
  .dresden {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding-right: 0;
  }
  .collective {
    padding-left: 0;
  }

  .atlas {
    grid-template-columns: .7fr 1.3fr;
  }
}

@media (max-width: 760px) {
  :root {
    --pad: 18px;
  }

  .site-header {
    min-height: 92px;
    align-items: flex-start;
  }

  .brand {
    gap: 10px;
  }
  .brand-mark {
    font-size: 2.45rem;
  }
  .brand-wordmark strong {
    font-size: .9rem;
  }
  .brand-wordmark small {
    font-size: .62rem;
  }

  .nav-toggle {
    display: grid;
    width: 42px;
    height: 42px;
    place-content: center;
    gap: 6px;
    border: 0;
    background: transparent;
  }
  .nav-toggle span:not(.sr-only) {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--ink);
  }

  .primary-nav {
    position: absolute;
    z-index: 10;
    top: 76px;
    left: var(--pad);
    right: var(--pad);
    display: none;
    flex-direction: column;
    gap: 0;
    padding: 8px 18px;
    background: var(--ink);
    color: var(--paper);
  }
  .primary-nav.is-open {
    display: flex;
  }
  .primary-nav a {
    padding: 13px 0;
    border-bottom: 1px solid rgba(255,255,255,.18);
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-top: 24px;
    padding-bottom: 42px;
  }
  .hero h1 {
    font-size: clamp(4.25rem, 20vw, 7rem);
    max-width: 7ch;
  }
  .hero-copy {
    padding-top: 0;
    max-width: 34rem;
  }
  .hero-sign {
    grid-column: auto;
    min-height: 180px;
    margin-top: -40px;
    justify-items: end;
  }
  .hero-sign span {
    font-size: 11rem;
  }

  .work-card {
    grid-template-columns: 1fr;
    padding-bottom: 28px;
  }
  .work-card .media-placeholder {
    order: -1;
  }

  .dresden {
    grid-template-columns: 1fr;
  }
  .small {
    order: -1;
    min-height: 220px;
  }

  .collective > h2 {
    font-size: clamp(2.6rem, 12vw, 4.7rem);
  }
  .principles {
    grid-template-columns: 1fr 1fr;
    gap: 0;
  }
  .principles article {
    padding: 18px;
    border-left: 0;
    border-top: 1px solid var(--line);
  }
  .principles article:nth-child(even) {
    border-left: 1px solid var(--line);
  }

  .atlas {
    grid-template-columns: 1fr;
  }
  .atlas-image {
    min-height: 220px;
  }

  .contact {
    align-items: stretch;
    flex-direction: column;
    padding-block: 26px;
  }
  .button {
    min-width: 0;
    width: 100%;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
    padding-block: 28px;
  }
  .footer-links {
    justify-content: flex-start;
    gap: 14px 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

.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;
}

/* V4.2 content integration */
.brand-logo{display:block;width:min(270px,44vw);height:auto}.hero-sign img{width:min(100%,420px);height:auto;filter:grayscale(1);mix-blend-mode:multiply}.hero-title-wrap h1{font-size:clamp(3.7rem,7.4vw,8.5rem);max-width:9.4ch}.collective-intro{max-width:48rem;margin:2rem 0 3rem;font-size:1rem}.collective-intro p{max-width:46rem}.origin-block{display:grid;grid-template-columns:.8fr 1.2fr;gap:clamp(30px,6vw,100px);padding:clamp(60px,8vw,120px) 0;border-bottom:1px solid var(--line)}.origin-block h2,.values h2{margin:0;font-family:var(--sans);font-weight:900;letter-spacing:-.045em;font-size:clamp(2.8rem,5.4vw,6.2rem);line-height:.9}.origin-block div{max-width:42rem}.origin-block p{margin:0 0 1.25rem}.values{padding-top:clamp(60px,8vw,120px)}.values .section-heading h2{font-size:clamp(2.8rem,5.4vw,6.2rem);line-height:.9}.principles article p{font-size:.9rem}.atlas-copy{max-width:52rem}.atlas-copy p{max-width:44rem}.dresden-copy>p{max-width:44rem}.contact .button{white-space:nowrap}
@media(max-width:760px){.brand-logo{width:210px}.hero-title-wrap h1{font-size:clamp(3.1rem,15vw,5.7rem);max-width:10ch}.hero-sign img{width:72vw}.origin-block{grid-template-columns:1fr}.origin-block h2,.values .section-heading h2{font-size:clamp(2.6rem,13vw,4.5rem)}}
.hero-title-wrap h1,.collective>h2,.origin-block>h2,.atlas h2,.contact h2{text-transform:uppercase}

/* One-pager project expansion — V4.2 content master + approved additions */
.works-grid-expanded{align-items:stretch}
.work-card-expanded{
  grid-template-columns:minmax(0,1.05fr) minmax(190px,.95fr);
  grid-template-rows:auto 1fr auto;
  align-content:start;
}
.work-card-expanded .work-copy{grid-column:1;grid-row:1}
.work-card-expanded .portrait{grid-column:2;grid-row:1 / span 2}
.project-intervention{
  margin:2rem 0;
  padding:1.25rem 0 1.25rem 1.25rem;
  border:0;
  border-left:3px solid var(--ink);
  font-size:.88rem;
  line-height:1.45;
}
.project-intervention p{margin:.7rem 0}
.malmsturm-intervention strong{font-family:var(--sans);font-size:1.05rem;line-height:1.05}
.engel-intervention{font-size:.78rem;line-height:1.4}
.engel-intervention p{margin:.55rem 0}
.engel-intervention cite{display:block;margin-top:.9rem;font-style:normal;font-family:var(--sans);font-size:.7rem;font-weight:900;letter-spacing:.06em;text-transform:uppercase}
.project-link-groups{
  grid-column:1 / -1;
  grid-row:3;
  display:grid;
  grid-template-columns:.65fr 1.45fr 1fr;
  gap:1.2rem;
  align-self:end;
  margin-top:2rem;
  padding-top:1.25rem;
  border-top:1px solid var(--line);
  font-family:var(--sans);
}
.project-link-groups>div{display:flex;flex-direction:column;align-items:flex-start;gap:.32rem;min-width:0}
.project-link-groups a{font-size:.66rem;font-weight:900;letter-spacing:.045em;text-transform:uppercase}
.project-link-groups a:hover{text-decoration:underline;text-underline-offset:3px}
.meta-label{margin-bottom:.25rem;font-size:.62rem;font-weight:900;letter-spacing:.08em;text-transform:uppercase;opacity:.58}

@media(max-width:1100px){
  .works-grid-expanded .work-card-expanded{height:auto}
}
@media(max-width:760px){
  .work-card-expanded{display:grid;grid-template-columns:1fr;grid-template-rows:auto auto auto;height:auto}
  .work-card-expanded .work-copy{grid-column:1;grid-row:2}
  .work-card-expanded .portrait{grid-column:1;grid-row:1}
  .work-card-expanded .project-link-groups{grid-column:1;grid-row:3;grid-template-columns:1fr 1fr;gap:1.4rem 1rem}
  .project-link-groups>div:last-child{grid-column:1 / -1}
  .project-intervention{margin:1.5rem 0}
  .engel-intervention{font-size:.84rem}
}


/* V4.4 — Projektlink-Typografie: Labels getrennt, Links sauber mit Pfeil und Abstand */
.project-link-groups > div {
  display: block;
  min-width: 0;
}
.project-link-groups .meta-label {
  display: block;
  margin: 0 0 .7rem;
  font-family: var(--sans);
  font-size: .61rem;
  line-height: 1;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
  opacity: .56;
}
.project-link-groups > div > a {
  display: inline-flex;
  align-items: baseline;
  gap: .38em;
  margin: 0 1rem .48rem 0;
  white-space: nowrap;
  font-family: var(--sans);
  font-size: .69rem;
  line-height: 1.2;
  font-weight: 900;
  letter-spacing: .045em;
  text-transform: uppercase;
}
.project-link-groups > div > a::after {
  content: "↗";
  display: inline-block;
  flex: 0 0 auto;
  font-size: .96em;
  line-height: 1;
  transform: translateY(-.02em);
}
.project-link-groups > div > a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}
@media (max-width: 760px) {
  .project-link-groups .meta-label { margin-bottom: .6rem; }
  .project-link-groups > div > a { margin-right: .8rem; margin-bottom: .55rem; }
}

/* V4.5: explicit section divider before Empyrianischer Atlas */
.atlas-separated { border-top: 1px solid var(--line); }

/* =========================================================
   V4.6 PURPLE STUDY — Tausend Tore original violet
   Color study only. Structure and content remain V4.5 frozen.
   Original brand violet recovered from the legacy site: #a665e6
   ========================================================= */
:root {
  --paper: #a665e6;
  --paper-deep: #8f4fcb;
  --ink: #100b14;
  --muted: #5e376f;
  --line: rgba(16, 11, 20, .42);
  --violet-light: #c99af1;
  --offwhite: #f7f1fb;
}

body {
  color: var(--ink);
  background:
    radial-gradient(circle at 18% 8%, rgba(255,255,255,.12), transparent 28%),
    radial-gradient(circle at 82% 72%, rgba(16,11,20,.12), transparent 34%),
    var(--paper);
}

body::before {
  opacity: .18;
  mix-blend-mode: multiply;
  background-image:
    repeating-radial-gradient(circle at 0 0,
      rgba(16,11,20,.12) 0 0.5px,
      transparent .6px 3px);
}

a:focus-visible,
button:focus-visible {
  outline-color: var(--offwhite);
}

/* The supplied logo is monochrome; make it part of the purple/black system. */
.brand-logo {
  filter: brightness(0) saturate(100%);
}
.hero-sign img {
  filter: brightness(0) saturate(100%);
  mix-blend-mode: multiply;
  opacity: .9;
}

.media-placeholder {
  background: rgba(16,11,20,.10);
  border-color: rgba(16,11,20,.22);
}
.media-placeholder::before,
.media-placeholder::after {
  background: rgba(16,11,20,.28);
}

.project-intervention {
  background: rgba(247,241,251,.08);
}

.button {
  background: var(--ink);
  color: var(--offwhite);
}
.button:hover,
.button:focus-visible {
  background: var(--offwhite);
  color: var(--ink);
}

.site-footer {
  background: var(--ink);
  color: var(--offwhite);
}
.site-footer .brand-logo {
  filter: brightness(0) invert(1);
}

@media (max-width: 760px) {
  .primary-nav {
    background: var(--ink);
    color: var(--offwhite);
  }
}

/* =========================================================
   V4.7 PURPLE CONTRAST STUDY
   Color hierarchy only — content, structure and typography frozen.
   ========================================================= */
:root {
  --violet-brand: #a665e6;
  --violet-deep: #24102f;
  --violet-black: #100b14;
  --violet-pale: #ead8f8;
}

/* Hero stays unmistakably Tausend Tore: the original violet at full strength. */
#top {
  color: var(--violet-black);
}

/* Works get the hard, dark stage. Malmsturm and Engel remain strictly equal. */
#werke .section-heading,
#werke .works-grid {
  color: var(--offwhite);
  background: var(--violet-deep);
  box-shadow: 0 0 0 100vmax var(--violet-deep);
  clip-path: inset(0 -100vmax);
  border-color: rgba(247,241,251,.28);
}
#werke .section-heading {
  padding-top: 28px;
  margin-bottom: 0;
  padding-bottom: 12px;
}
#werke .works-grid {
  padding-top: 28px;
}
#werke .work-card + .work-card,
#werke .works-grid {
  border-color: rgba(247,241,251,.28);
}
#werke .project-intervention {
  background: rgba(166,101,230,.16);
  border-color: rgba(247,241,251,.22);
}
#werke .media-placeholder {
  background: rgba(247,241,251,.055);
  border-color: rgba(247,241,251,.20);
}
#werke .media-placeholder::before,
#werke .media-placeholder::after {
  background: rgba(247,241,251,.22);
}
#werke .project-link-groups .meta-label { opacity: .62; }

/* The human/collective layer returns to the brand violet: open and direct. */
.secondary-grid,
.origin-block,
.values {
  color: var(--violet-black);
}

/* Values get a pale editorial field, so the manifesto reads as a deliberate pause. */
.values {
  background: var(--violet-pale);
  box-shadow: 0 0 0 100vmax var(--violet-pale);
  clip-path: inset(0 -100vmax);
  padding-top: 30px;
  padding-bottom: 36px;
}
.values .section-heading,
.values .principles article {
  border-color: rgba(16,11,20,.30);
}

/* Atlas becomes the deepest, most mythic register and is clearly separated. */
.atlas-separated {
  color: var(--offwhite);
  background: var(--violet-black);
  box-shadow: 0 0 0 100vmax var(--violet-black);
  clip-path: inset(0 -100vmax);
  border-top-color: rgba(247,241,251,.42);
  border-bottom-color: rgba(247,241,251,.30);
}
.atlas .media-placeholder {
  background: rgba(166,101,230,.13);
  border-color: rgba(247,241,251,.20);
}
.atlas .media-placeholder::before,
.atlas .media-placeholder::after {
  background: rgba(247,241,251,.22);
}

/* Contact returns to the pure brand field; the CTA uses the deepest tone. */
#kontakt .button {
  background: var(--violet-black);
  color: var(--offwhite);
}
#kontakt .button:hover,
#kontakt .button:focus-visible {
  background: var(--offwhite);
  color: var(--violet-black);
}

@media (max-width: 760px) {
  #werke .section-heading { padding-top: 22px; }
  #werke .works-grid { padding-top: 22px; }
  .values { padding-top: 24px; padding-bottom: 28px; }
}

/* =========================================================
   V4.7E — CLEAN PURPLE / TWO PALE ISLANDS
   Design-only refinement. Content master remains frozen.
   ========================================================= */
:root {
  /* All formerly black typography now uses the deep house violet. */
  --ink: #24102f;
  --violet-deep: #24102f;
  --violet-black: #100b14;
  --violet-pale: #ead8f8;
  --line: rgba(36,16,47,.42);
}

/* Absolutely flat colour fields: no paper grain, dots, gradients or texture overlays. */
body {
  background: var(--violet-brand);
  background-image: none;
}
body::before {
  content: none;
  display: none;
  background: none;
  background-image: none;
}

/* Dark stages use pale lavender type instead of white/off-white. */
#werke .section-heading,
#werke .works-grid,
.atlas-separated,
.site-footer {
  color: var(--violet-pale);
}
#werke .work-card + .work-card,
#werke .works-grid {
  border-color: rgba(234,216,248,.30);
}
#werke .project-intervention,
#werke .media-placeholder,
.atlas .media-placeholder {
  border-color: rgba(234,216,248,.24);
}
#werke .media-placeholder::before,
#werke .media-placeholder::after,
.atlas .media-placeholder::before,
.atlas .media-placeholder::after {
  background: rgba(234,216,248,.28);
}
.atlas-separated {
  border-top-color: rgba(234,216,248,.46);
  border-bottom-color: rgba(234,216,248,.32);
}

/* Second pale island: the collective statement and copy. */
#kollektiv {
  color: var(--violet-deep);
  background: var(--violet-pale);
  box-shadow: 0 0 0 100vmax var(--violet-pale);
  clip-path: inset(0 -100vmax 0 0);
}

/* Values remain the other pale island; all dark type is deep violet. */
.values {
  color: var(--violet-deep);
}
.values .section-heading,
.values .principles article {
  border-color: rgba(36,16,47,.30);
}

/* Buttons stay high-contrast but use deep violet, never neutral black. */
.button,
#kontakt .button {
  background: var(--violet-deep);
  color: var(--violet-pale);
}
.button:hover,
.button:focus-visible,
#kontakt .button:hover,
#kontakt .button:focus-visible {
  background: var(--violet-pale);
  color: var(--violet-deep);
}

@media (max-width: 760px) {
  .primary-nav {
    background: var(--violet-deep);
    color: var(--violet-pale);
  }
  #kollektiv {
    box-shadow: 0 0 0 100vmax var(--violet-pale);
    clip-path: inset(0 -100vmax);
    padding-left: 0;
    padding-right: 0;
  }
}

/* V4.7f — Values heading belongs to the pale island, with no dark title band. */
.values .section-heading {
  color: var(--violet-deep);
  background: var(--violet-pale);
  background-image: none;
  box-shadow: none;
}
.values .section-heading h2 {
  color: var(--violet-deep);
}


/* V4.7g — hard fix: values heading is part of pale field; no dark strip. */
.values {
  background: var(--violet-pale) !important;
  box-shadow: 0 0 0 100vmax var(--violet-pale) !important;
  clip-path: inset(0 -100vmax) !important;
}
.values .section-heading {
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
  color: var(--violet-deep) !important;
}
.values .section-heading h2 {
  color: var(--violet-deep) !important;
  background: transparent !important;
}


/* =========================================================
   V4.7j — Footer & Legal
   Requested legal presentation only. Core site sections unchanged.
   ========================================================= */
.footer-imprint {
  border-top: 1px solid rgba(234,216,248,.28);
  color: var(--violet-pale);
}
.footer-imprint summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 0;
  font-family: var(--sans);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
}
.footer-imprint summary::-webkit-details-marker { display: none; }
.footer-imprint summary::after { content: " +"; }
.footer-imprint[open] summary::after { content: " −"; }
.footer-imprint-content {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px 40px;
  padding: 2px 0 34px;
  font-size: .9rem;
  line-height: 1.55;
}
.footer-imprint-content p { margin: 0; }
.footer-imprint-content a { text-decoration: underline; text-underline-offset: .18em; }

.legal-page {
  min-height: 100vh;
  background: var(--violet-pale);
  color: var(--violet-deep);
}
.legal-page::before { content: none !important; display: none !important; }
.legal-header {
  min-height: 112px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(36,16,47,.30);
}
.legal-header .brand-logo {
  width: min(230px, 48vw);
  filter: brightness(0) saturate(100%) invert(9%) sepia(21%) saturate(4254%) hue-rotate(255deg) brightness(85%) contrast(98%);
}
.legal-main {
  max-width: 980px;
  padding-top: clamp(54px, 8vw, 110px);
  padding-bottom: clamp(72px, 10vw, 140px);
}
.legal-back,
.legal-main .eyebrow,
.legal-main .legal-date {
  font-family: var(--sans);
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.legal-back { display: inline-block; margin-bottom: 48px; }
.legal-main h1 {
  margin: 0 0 28px;
  max-width: 10ch;
  font-family: var(--sans);
  font-size: clamp(4rem, 10vw, 9rem);
  line-height: .82;
  letter-spacing: -.045em;
  text-transform: uppercase;
}
.legal-main .lead {
  margin: 0 0 28px;
  font-family: var(--sans);
  font-size: clamp(1.5rem, 3vw, 2.6rem);
  font-weight: 800;
  line-height: 1.05;
}
.legal-main h2 {
  margin: 56px 0 14px;
  padding-top: 18px;
  border-top: 1px solid rgba(36,16,47,.30);
  font-family: var(--sans);
  font-size: clamp(1.25rem, 2vw, 1.8rem);
  line-height: 1;
  text-transform: uppercase;
}
.legal-main p { max-width: 76ch; margin: 0 0 1.1em; }
.legal-main a { text-decoration: underline; text-underline-offset: .18em; }
.legal-date { margin-top: 56px !important; }
.legal-footer { background: var(--violet-deep); color: var(--violet-pale); }
.legal-footer-inner {
  min-height: 90px;
  display: flex;
  align-items: center;
  gap: 34px;
  font-family: var(--sans);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
}

@media (max-width: 760px) {
  .footer-imprint-content { grid-template-columns: 1fr; gap: 16px; }
  .legal-header { min-height: 88px; }
  .legal-main h1 { font-size: clamp(3.3rem, 18vw, 6rem); }
  .legal-footer-inner { flex-wrap: wrap; padding-top: 24px; padding-bottom: 24px; }
}


/* =========================================================
   V4.7K — DESKTOP STRUCTURE + TYPOGRAPHY / ENTITY FACT STRIP
   No Narrow/Condensed headings. Image slots prepared for supplied assets.
   ========================================================= */
:root {
  --heading: "Helvetica Neue Black", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

/* Cross-browser headline consistency: no Narrow/Condensed family or stretch. */
.hero h1,
.section-heading h2,
.work-card h3,
.dresden h3,
.collective h2,
.origin-block h2,
.values h2,
.values h3,
.atlas h2,
.contact h2,
.legal-main h1,
.legal-main h2 {
  font-family: var(--heading) !important;
  font-stretch: normal !important;
  font-weight: 900 !important;
  font-synthesis: weight;
}

/* Header: navigation only; the large right-side hero mark remains the brand signature. */
.site-header {
  justify-content: flex-end;
}
.site-header > .brand { display:none !important; }

/* Hero: allocate enough real width for “Geschichten” so it cannot overlap the body copy. */
.hero {
  grid-template-columns: minmax(0,1.48fr) minmax(280px,.78fr) minmax(220px,.72fr);
  gap: clamp(34px,4.3vw,76px);
}
.hero-title-wrap { min-width:0; padding-right:clamp(8px,1.4vw,24px); }
.hero-title-wrap h1 {
  max-width: 10.6ch !important;
  font-size: clamp(3.45rem,5.85vw,7.45rem) !important;
  line-height: .86;
  letter-spacing: -.047em;
  overflow-wrap: normal;
  word-break: normal;
}
.hero-copy { min-width:0; }

/* Compact extractable fact block: factual GEO/SEO layer without turning the hero into SEO copy. */
.facts-strip {
  display:grid;
  grid-template-columns:1.25fr 1fr .8fr;
  gap:clamp(24px,4vw,70px);
  padding-top:26px;
  padding-bottom:34px;
  border-top:1px solid var(--line);
  border-bottom:1px solid var(--line);
  color:var(--violet-deep);
}
.facts-strip p { margin:0; max-width:42rem; }
.facts-strip .facts-punch {
  font-family:var(--heading);
  font-weight:900;
  font-size:clamp(1.15rem,1.6vw,1.65rem);
  line-height:1.04;
}

/* Malmsturm + Engel: logo slot above heading; artwork is broad and below the copy, before links. */
.work-card-expanded {
  display:flex !important;
  flex-direction:column;
}
.work-card-expanded .work-copy { display:block; }
.project-logo-placeholder {
  width:100%;
  aspect-ratio:8 / 3;
  min-height:0 !important;
  margin:0 0 1.25rem;
}
.work-card-expanded > .portrait {
  width:100%;
  margin-top:clamp(2rem,4vw,3.5rem);
  margin-bottom:0;
}
.work-card-expanded .project-link-groups {
  width:100%;
  margin-top:1.4rem;
}

/* Dresden and collective become two consecutive full-width blocks, never parallel columns. */
.secondary-grid {
  display:block !important;
  border-bottom:1px solid var(--line);
}
.dresden {
  display:block !important;
  width:100%;
  padding:clamp(38px,5vw,70px) 0;
  border-right:0 !important;
  border-bottom:1px solid var(--line);
}
.dresden-copy { max-width:none; }
.dresden-copy > p { max-width:62rem; }
.dresden .small {
  width:min(100%,1000px);
  aspect-ratio:16 / 9;
  min-height:0;
  margin:2rem 0 0;
}
.dresden .link-row { margin-top:1.5rem; }
.collective {
  display:block;
  width:100%;
  padding:clamp(48px,6vw,84px) 0;
  box-shadow:0 0 0 100vmax var(--violet-pale);
  clip-path:inset(0 -100vmax);
}
.collective > h2 { max-width:18ch; }

/* Atlas is text-only. Give the text the width that the old image occupied. */
.atlas {
  display:block !important;
  padding-top:clamp(50px,6vw,82px);
  padding-bottom:clamp(50px,6vw,82px);
}
.atlas-copy { max-width:72rem !important; }
.atlas-copy p { max-width:58rem !important; }
.atlas-image { display:none !important; }

/* Footer: smaller temporary logo and more separation from the contact block.
   Replace with supplied horizontal logo later without changing the spacing system. */
.site-footer { margin-top:clamp(34px,5vw,76px); }
.footer-inner { min-height:128px; padding-top:26px; padding-bottom:26px; }
.footer-brand-logo {
  width:min(190px,32vw) !important;
  max-height:58px;
  object-fit:contain;
  object-position:left center;
}

@media (max-width:1100px) {
  .hero { grid-template-columns:minmax(0,1.2fr) minmax(280px,.8fr); }
  .hero-sign { grid-column:1 / -1; }
  .facts-strip { grid-template-columns:1fr 1fr; }
  .facts-strip .facts-punch { grid-column:1 / -1; }
}

@media (max-width:760px) {
  .site-header { justify-content:space-between; }
  .hero { grid-template-columns:1fr; }
  .hero-title-wrap h1 { max-width:10.8ch !important; font-size:clamp(3.15rem,14vw,5.55rem) !important; }
  .facts-strip { grid-template-columns:1fr; gap:16px; padding-block:24px; }
  .facts-strip .facts-punch { grid-column:auto; }
  .project-logo-placeholder { aspect-ratio:8 / 3; }
  .dresden .small { aspect-ratio:4 / 3; }
  .footer-brand-logo { width:min(170px,56vw) !important; max-height:52px; }
}

/* =========================================================
   V4.7Q — CLEANUP + LOGO REBALANCE
   Consolidated current rules. No iterative V4.7L–P overrides.
   ========================================================= */

:root {
  --sans: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --heading: "Helvetica Neue Black", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

/* Project logos: centered, full visual lane width, same lane as artwork. */
.project-logo,
.project-logo-malmsturm,
.project-logo-engel {
  width: 100%;
  max-width: none;
  margin: 0 auto clamp(1.5rem, 3vw, 3rem);
  display: flex;
  align-items: center;
  justify-content: center;
}
.project-logo img,
.project-logo-malmsturm img,
.project-logo-engel img {
  display: block;
  width: 100%;
  height: auto;
  max-width: none;
  max-height: none;
  object-fit: contain;
  object-position: center center;
}

/* Project flow is explicit: copy → artwork → links. */
.work-card-expanded {
  display: flex !important;
  flex-direction: column;
}
.work-card-expanded .work-copy { order: 1; }
.work-card-expanded > .portrait {
  order: 2;
  width: 100%;
  margin: clamp(2rem, 4vw, 3.5rem) 0 0 !important;
}
.work-card-expanded .project-link-groups {
  order: 3;
  width: 100%;
  margin-top: clamp(1.4rem, 2.5vw, 2.2rem) !important;
}

/* Malmsturm and Engel intervention copy use exactly the same scale. */
.project-intervention,
.engel-intervention,
.malmsturm-intervention {
  font-size: 1rem;
  line-height: 1.5;
}
.project-intervention p,
.engel-intervention p,
.malmsturm-intervention p {
  font-size: inherit;
  line-height: inherit;
}
.malmsturm-intervention strong {
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.2;
}
.engel-intervention cite {
  font-size: .8rem;
  line-height: 1.3;
}

/* Main Tausend-Tore mark: intentionally dominant, but fluid rather than fixed-height. */
.hero-sign {
  display: flex !important;
  align-items: flex-start !important;
  justify-content: center !important;
  min-width: 0;
  overflow: visible;
}
.hero-sign img {
  display: block;
  width: clamp(26rem, 46vw, 58rem) !important;
  height: auto !important;
  max-width: none !important;
  max-height: none !important;
  object-fit: contain;
  object-position: center top;
}

/* Footer wordmark: broad signature with generous separation from the contact block. */
.site-footer {
  margin-top: clamp(3rem, 7vw, 7rem);
}
.footer-inner {
  min-height: 0 !important;
  padding-top: clamp(2.75rem, 6vw, 6rem) !important;
  padding-bottom: clamp(2.75rem, 6vw, 6rem) !important;
  gap: clamp(2rem, 5vw, 5rem);
}
.footer-logo-slot {
  flex: 1 1 52%;
  min-width: 0;
}
.footer-brand-logo {
  display: block !important;
  width: clamp(28rem, 55vw, 62rem) !important;
  height: auto !important;
  max-width: 100% !important;
  max-height: none !important;
  object-fit: contain !important;
  object-position: left center !important;
}

@media (max-width: 1100px) {
  .hero-sign img {
    width: clamp(24rem, 64vw, 48rem) !important;
  }
  .footer-brand-logo {
    width: clamp(26rem, 68vw, 52rem) !important;
  }
}

@media (max-width: 760px) {
  .project-logo,
  .project-logo-malmsturm,
  .project-logo-engel {
    width: 100%;
    margin-bottom: clamp(1.5rem, 7vw, 2.5rem);
  }
  .work-card-expanded > .portrait {
    margin-top: 2rem !important;
  }

  .hero-sign {
    width: 100%;
  }
  .hero-sign img {
    width: 94vw !important;
    max-width: 94vw !important;
  }

  .footer-inner {
    align-items: flex-start;
  }
  .footer-logo-slot {
    width: 100%;
    flex-basis: 100%;
  }
  .footer-brand-logo {
    width: 92vw !important;
    max-width: 92vw !important;
    margin-inline: auto;
    object-position: center center !important;
  }
}

/* =========================================================
   V4.7T — NORMALIZED HERO SVG
   The Tausend-Tore hero SVG now has a tight viewBox around the
   actual artwork, so it can scale like the Malmsturm/Engel logos.
   ========================================================= */
.hero-sign {
  display: flex !important;
  align-items: flex-start !important;
  justify-content: center !important;
  min-width: 0;
  overflow: visible;
}
.hero-sign img {
  display: block !important;
  width: min(100%, 46rem) !important;
  height: auto !important;
  max-width: 100% !important;
  max-height: none !important;
  object-fit: contain !important;
  object-position: center top !important;
}

@media (max-width: 760px) {
  .hero-sign {
    width: 100% !important;
    margin: 0 !important;
  }
  .hero-sign img {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    transform: none !important;
    margin: 0 auto !important;
  }
}


/* =========================================================
   V4.7U — NORMALIZED FOOTER SVG
   Both Tausend-Tore SVGs now use tight artwork viewBoxes.
   ========================================================= */
.footer-logo-slot {
  width: 100%;
  overflow: visible;
}
.footer-brand-logo {
  display: block !important;
  width: min(100%, 58rem) !important;
  max-width: 100% !important;
  height: auto !important;
  max-height: none !important;
  margin: 0 !important;
  object-fit: contain !important;
  object-position: left center !important;
}

@media (max-width: 760px) {
  .footer-brand-logo {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    object-position: center center !important;
  }
}


/* =========================================================
   V4.7W — PHP CONTACT FORM
   Native HTML form; no JavaScript required.
   ========================================================= */
.contact {
  align-items: start;
  gap: clamp(2rem, 5vw, 5rem);
}
.contact-intro {
  min-width: 0;
}
.contact-form {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.15rem 1.4rem;
}
.contact-form-row {
  min-width: 0;
}
.contact-form-wide {
  grid-column: 1 / -1;
}
.contact-form label {
  display: block;
  margin: 0 0 .45rem;
  font-family: var(--sans);
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid currentColor;
  border-radius: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  line-height: 1.4;
  padding: .9rem 1rem;
  outline: none;
}
.contact-form textarea {
  resize: vertical;
  min-height: 11rem;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}
.contact-form-actions {
  display: flex;
  justify-content: flex-start;
  padding-top: .25rem;
}
.contact-form button.button {
  cursor: pointer;
  font: inherit;
}
.contact-hp {
  position: absolute !important;
  left: -10000px !important;
  top: auto !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.contact-result {
  min-height: 70vh;
  display: grid;
  align-content: center;
  gap: 1.5rem;
}
.contact-result p {
  max-width: 46rem;
}
.contact-result .button {
  width: fit-content;
}

@media (max-width: 760px) {
  .contact-form {
    grid-template-columns: 1fr;
  }
  .contact-form-wide {
    grid-column: auto;
  }
}


/* =========================================================
   V4.7X — JAVASCRIPT-FREE NAVIGATION
   Desktop uses the normal nav. Mobile uses native <details>.
   ========================================================= */

.primary-nav-desktop {
  margin-left: auto;
}

.mobile-nav {
  display: none;
}

@media (max-width: 760px) {
  .primary-nav-desktop {
    display: none !important;
  }

  .mobile-nav {
    display: block;
    position: relative;
    margin-left: auto;
    z-index: 30;
  }

  .mobile-nav > summary {
    list-style: none;
    width: 42px;
    height: 42px;
    display: grid;
    place-content: center;
    gap: 6px;
    cursor: pointer;
    user-select: none;
  }

  .mobile-nav > summary::-webkit-details-marker {
    display: none;
  }

  .mobile-nav > summary::marker {
    content: "";
  }

  .mobile-nav .menu-line {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--ink);
    transform-origin: center;
    transition: transform .18s ease, opacity .18s ease;
  }

  .mobile-nav[open] .menu-line:first-of-type {
    transform: translateY(4px) rotate(45deg);
  }

  .mobile-nav[open] .menu-line:last-of-type {
    transform: translateY(-4px) rotate(-45deg);
  }

  .mobile-nav-panel {
    position: absolute;
    top: 48px;
    right: 0;
    width: min(19rem, calc(100vw - (2 * var(--pad))));
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 8px 18px;
    background: var(--ink);
    color: var(--offwhite);
    box-shadow: 0 14px 34px rgba(0,0,0,.18);
  }

  .mobile-nav-panel a {
    padding: 13px 0;
    border-bottom: 1px solid rgba(255,255,255,.18);
    font-family: var(--sans);
    font-weight: 800;
    font-size: .82rem;
    letter-spacing: .08em;
    text-transform: uppercase;
  }

  .mobile-nav-panel a:last-child {
    border-bottom: 0;
  }

  .mobile-nav-panel a:focus-visible,
  .mobile-nav > summary:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 4px;
  }
}

/* =========================================================
   V4.7Z — PROJECT HEADER ALIGNMENT + FULL-BLEED COLLECTIVE + CONTACT SPACING
   ========================================================= */

/* Malmsturm defines the reference logo geometry. Both project headers reserve
   exactly the same logo lane so 01/MALMSTURM and 02/ENGEL start on one baseline. */
#werke .project-logo,
#werke .project-logo-malmsturm,
#werke .project-logo-engel {
  width: 100%;
  aspect-ratio: 841.89 / 595.28;
  margin: 0 auto clamp(1.5rem, 3vw, 3rem);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
}

#werke .project-logo img,
#werke .project-logo-malmsturm img,
#werke .project-logo-engel img {
  display: block;
  width: auto;
  max-width: 100%;
  height: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center center;
}

/* Keep Malmsturm exactly at its established size. Engel's SVG contains more
   internal whitespace, so a small optical correction equalises visible height. */
#werke .project-logo-malmsturm img {
  width: 100%;
  height: 100%;
}
#werke .project-logo-engel img {
  height: 100%;
  max-height: 100%;
  transform: scale(1.095);
}

/* Same full-bleed pale configuration as the values section: no violet strip
   may remain on either side of the collective block. */
#kollektiv {
  background: var(--violet-pale) !important;
  box-shadow: 0 0 0 100vmax var(--violet-pale) !important;
  clip-path: inset(0 -100vmax) !important;
}

/* Give the contact heading and form a deliberate transition from the dark atlas. */
#kontakt {
  padding-top: clamp(3.5rem, 7vw, 7rem);
}

@media (max-width: 760px) {
  #werke .project-logo,
  #werke .project-logo-malmsturm,
  #werke .project-logo-engel {
    margin-bottom: clamp(1.5rem, 7vw, 2.5rem);
  }
  #kontakt {
    padding-top: clamp(3rem, 12vw, 5rem);
  }
}


/* Project illustrations */
.project-image {
  margin: 0;
  min-width: 0;
}
.project-image > img {
  display: block;
  width: 100%;
  height: auto;
}
.project-image figcaption,
.dresden-image figcaption {
  margin-top: .55rem;
  font-family: var(--sans);
  font-size: .62rem;
  line-height: 1.35;
  letter-spacing: .035em;
  opacity: .72;
}
.project-image figcaption a,
.dresden-image figcaption a {
  text-decoration: underline;
  text-underline-offset: 2px;
}
/* Keep project artwork strictly inside its project column. */
#werke .works-grid,
#werke .work-card,
#werke .work-copy,
#werke .project-image {
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}
#werke .project-image {
  width: 100% !important;
}


/* =========================================================
   V4.8e — PROJECT ARTWORK FLOW FIX
   Both supplied artwork files are native 1200×1200.
   Keep each image inside its project column and let the
   credits determine the start of the project link area.
   ========================================================= */
@media (min-width: 1101px) {
  #werke .works-grid-expanded > .work-card:first-child {
    padding-right: clamp(12px, 1.5vw, 27px);
  }
  #werke .works-grid-expanded > .work-card + .work-card {
    padding-left: clamp(12px, 1.5vw, 27px);
  }
}

#werke .work-card-expanded {
  display: flex !important;
  flex-direction: column;
  min-width: 0;
}
#werke .work-card-expanded .work-copy {
  order: 1;
  min-width: 0;
}
#werke .work-card-expanded > .project-image.portrait {
  order: 2;
  display: block;
  align-self: stretch;
  width: 100% !important;
  max-width: 100%;
  min-width: 0;
  margin: clamp(2rem, 4vw, 3.5rem) 0 0 !important;
}
#werke .project-image > img {
  display: block;
  width: 100%;
  height: auto;
}
#werke .project-image figcaption {
  display: block;
  position: static;
  width: 100%;
  max-width: 100%;
  margin-top: .55rem;
}

/* v48u — corrections from annotated desktop capture */
@media (min-width: 1101px) {
  .hero-title-wrap h1 {
    max-width: 100% !important;
    font-size: clamp(3.2rem, 4.7vw, 6rem) !important;
    line-height: .9;
  }

  #werke .project-intro {
    display: flow-root;
    min-height: 16rem;
  }
}

.project-image figcaption,
.dresden-image figcaption {
  font-size: .82rem;
  line-height: 1.4;
  font-weight: 700;
  opacity: .9;
}

/* v48w — Human Made statement in the footer */
.human-made {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
  gap: clamp(1.5rem, 3vw, 3.5rem);
  align-items: center;
  padding-top: 0;
  padding-bottom: clamp(2.5rem, 5vw, 5rem);
  color: var(--violet-pale);
}
.human-made-icon {
  display: block;
  width: 130px;
  height: auto;
}
.human-made-copy {
  max-width: 62rem;
}
.human-made-copy h2 {
  margin: 0 0 1rem;
  font-family: var(--heading);
  font-size: clamp(1.35rem, 2vw, 2rem);
  line-height: 1;
  letter-spacing: -.025em;
  text-transform: uppercase;
}
.human-made-copy p {
  max-width: 58rem;
  margin: 0 0 .8rem;
  font-size: .9rem;
  line-height: 1.55;
}
.human-made-copy .human-made-credit {
  margin: 1rem 0 0;
  font-family: var(--sans);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .055em;
  text-transform: uppercase;
}
.human-made-credit a {
  text-decoration: underline;
  text-underline-offset: .2em;
}
@media (max-width: 760px) {
  .human-made {
    grid-template-columns: 1fr;
  }
  .human-made-icon {
    width: 104px;
  }
}
#werke .work-card-expanded .project-link-groups {
  order: 3;
  position: static !important;
  width: 100%;
  max-width: 100%;
  margin-top: clamp(1.4rem, 2.5vw, 2.2rem) !important;
  clear: both;
}

@media (max-width: 1100px) {
  #werke .works-grid-expanded > .work-card:first-child,
  #werke .works-grid-expanded > .work-card + .work-card {
    padding-right: 0;
    padding-left: 0;
  }
}

/* Align both project images and link sections without changing column widths. */
@media (min-width: 1101px) {
  #werke .work-card-expanded > .project-image.portrait {
    margin-top: auto !important;
    padding-top: clamp(2rem, 4vw, 3.5rem);
  }
}

/* V4.8K — contact submit button: remove native browser border */
#kontakt .contact-form button.button {
  border: 0;
}


/* V4.8l — Dresden Files project image */
.dresden-image {
  margin: 1.35rem 0 1.15rem;
  width: 100%;
}
.dresden-image img {
  display: block;
  width: 100%;
  height: auto;
}

/* v48r — Desktop hero safety gap.
   Keep typography and line breaks unchanged; give the title column more real width
   and a larger gutter before the body-copy column. Tablet/mobile rules remain untouched. */
@media (min-width:1101px) {
  .hero {
    grid-template-columns: minmax(0,1.62fr) minmax(280px,.76fr) minmax(220px,.70fr);
    column-gap: clamp(56px,5.6vw,96px);
  }
  .hero-title-wrap {
    padding-right: 0;
  }
}


/* v48t — Dresden Files credit: exact project-credit formatting */
.dresden-image figcaption {
  display: block;
  position: static;
  width: 100%;
  max-width: 100%;
  margin-top: .55rem;
}
