/* Jürgen Rammlmair — Druckgraphik
   A printmaker's site: warm paper, deep ink, and the three plate colours the
   work itself is built from. Everything else gets out of the way of the images. */

:root {
  --paper:      #FAF8F3;
  --paper-deep: #F2EEE5;
  --ink:        #15141A;
  --ink-soft:   #4A474F;
  --ink-faint:  #8B8781;
  --line:       #E2DCD0;

  --cobalt:     #2B5FD9;
  --vermillion: #C7401F;
  --ochre:      #C88A1E;

  --measure: 62ch;
  --gutter: clamp(1.1rem, 4vw, 4rem);
  --section: clamp(3.4rem, 7vh, 6rem);

  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-soft: cubic-bezier(.4, 0, .2, 1);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
  font-size: clamp(1rem, .96rem + .2vw, 1.075rem);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

::selection { background: var(--ochre); color: #fff; }

/* ---------------------------------------------------------------- type */

h1, h2, h3, .display {
  /* Instrument Serif: a quiet, high-contrast face that holds its own at
     poster size without the mannerisms of a display grotesque. */
  font-family: "Instrument Serif", Georgia, "Times New Roman", serif;
  font-weight: 400;
  letter-spacing: -.01em;
  line-height: 1.04;
  margin: 0;
}

.eyebrow {
  font-family: Inter, sans-serif;
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.section-title { font-size: clamp(2.1rem, 1.3rem + 3.4vw, 4rem); }
.lede {
  font-size: clamp(1.1rem, 1rem + .55vw, 1.42rem);
  line-height: 1.5;
  color: var(--ink-soft);
  max-width: 46ch;
}

/* ------------------------------------------------------------ structure */

.shell { padding-inline: var(--gutter); }
section { padding-block: var(--section); position: relative; }
.section-head { margin-bottom: clamp(1.8rem, 3.2vw, 3rem); }
.section-head .eyebrow { display: block; margin-bottom: .8rem; }

.rule { height: 1px; background: var(--line); border: 0; margin: 0; }

/* No decorative divider. Chapters are separated by tone and air, and the
   drama is put where it belongs — in how a section arrives. */
.seam { height: clamp(1.5rem, 4vh, 3rem); }
.tone-deep { background: var(--paper-deep); }

/* The dark chapters open out of the page: they start inset with rounded
   corners and widen to full bleed as you scroll into them. */
.panel-open {
  clip-path: inset(0 6vw 0 6vw round 26px);
  transition: clip-path .9s var(--ease);
}
.panel-open.is-in { clip-path: inset(0 0 0 0 round 0px); }

/* ----------------------------------------------------------------- hero */

/* A wall of prints, drifting. The columns move at different speeds and the
   whole thing dissolves into the paper, so the name below reads as ink on
   the page rather than as a caption stuck on a photograph. */
.hero {
  position: relative; min-height: 100svh;
  display: grid; align-items: end;
  padding: 0 0 clamp(2.6rem, 7vh, 5.5rem);
  overflow: clip; isolation: isolate;
}

.hero__wall {
  position: absolute; inset: -6% 0 0 0; z-index: 0;
  display: grid; gap: clamp(.5rem, 1.1vw, 1rem);
  grid-template-columns: repeat(2, 1fr);
  padding-inline: clamp(.5rem, 1.1vw, 1rem);
  will-change: transform;
}
@media (min-width: 760px)  { .hero__wall { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1080px) { .hero__wall { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1560px) { .hero__wall { grid-template-columns: repeat(5, 1fr); } }

.hero__col {
  display: flex; flex-direction: column; --loop-gap: clamp(.5rem, 1.1vw, 1rem); gap: var(--loop-gap);
  animation: drift var(--dur, 90s) linear infinite;
  animation-direction: var(--dir, normal);
  will-change: transform;
  contain: paint;
}
.hero__col img {
  width: 100%; height: auto; display: block;
  background: var(--paper-deep);
}
@keyframes drift { from { transform: translate3d(0,0,0); } to { transform: translate3d(0,calc(-50% - var(--loop-gap) / 2),0); } }

/* Paper wins the bottom of the frame. */
.hero__veil {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(to bottom,
      color-mix(in srgb, var(--paper) 18%, transparent) 0%,
      transparent 10%,
      transparent 34%,
      color-mix(in srgb, var(--paper) 22%, transparent) 45%,
      color-mix(in srgb, var(--paper) 58%, transparent) 54%,
      color-mix(in srgb, var(--paper) 88%, transparent) 62%,
      var(--paper) 70%,
      var(--paper) 100%);
}

.hero__inner { position: relative; z-index: 2; }
.hero h1 {
  font-size: clamp(3rem, 1.1rem + 9vw, 10rem);
  line-height: .98; letter-spacing: -.028em;
  text-wrap: balance; color: var(--ink);
}
.hero__sub {
  margin-top: clamp(1rem, 2vw, 1.7rem);
  display: flex; flex-wrap: wrap; align-items: center; gap: .7rem 1.4rem;
  font-size: clamp(.86rem, .8rem + .3vw, 1rem);
  color: var(--ink-soft);
}
.hero__sub .dot { width: 4px; height: 4px; border-radius: 50%; background: currentColor; opacity: .38; }

.hero__cue {
  position: absolute; left: 50%; bottom: 1.5rem; z-index: 3;
  translate: -50% 0; width: 1px; height: 44px;
  background: linear-gradient(to bottom, transparent, color-mix(in srgb, var(--ink) 28%, transparent));
}
.hero__cue::after {
  content: ""; position: absolute; inset: 0;
  background: var(--ink); opacity: .55;
  animation: cue 2.8s var(--ease) infinite;
}
@keyframes cue { 0% { transform: scaleY(0); transform-origin: top; }
                 45% { transform: scaleY(1); transform-origin: top; }
                 55% { transform: scaleY(1); transform-origin: bottom; }
                 100% { transform: scaleY(0); transform-origin: bottom; } }

/* ------------------------------------------------------------- progress */

.progress {
  position: fixed; inset: 0 auto auto 0; z-index: 70;
  height: 2px; width: 100%;
  transform: scaleX(0); transform-origin: left;
  background: linear-gradient(90deg, var(--cobalt), var(--vermillion), var(--ochre));
}

/* ---------------------------------------------------------------- intro */

.intro__grid {
  display: grid; gap: clamp(2rem, 5vw, 5rem);
  grid-template-columns: 1fr;
}
@media (min-width: 900px) { .intro__grid { grid-template-columns: 1fr 1fr; align-items: start; } }
.intro__plate { margin-top: clamp(2rem, 3.5vw, 3rem); max-width: 26rem; perspective: 1100px; }
.intro__cap { font-size: .8rem; color: var(--ink-faint); margin-top: .8rem; }

.pull {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(1.6rem, 1.1rem + 2.3vw, 3.1rem);
  line-height: 1.16; letter-spacing: -.02em;
  text-wrap: balance;
}
.pull em { font-style: italic; }

.intro__body p { margin: 0 0 1.1rem; color: var(--ink-soft); max-width: 48ch; }
.intro__body p:first-child { color: var(--ink); }

.facts { display: flex; flex-wrap: wrap; gap: clamp(1.4rem, 3vw, 2.8rem); margin-top: 2rem; }
.fact__n {
  font-family: "Instrument Serif", Georgia, serif; font-size: clamp(1.9rem, 1.4rem + 1.6vw, 2.9rem);
  line-height: 1; display: block;
}
.fact__l { font-size: .78rem; color: var(--ink-faint); margin-top: .35rem; }

/* ---------------------------------------------------------------- werke */

.filters { display: flex; flex-wrap: wrap; gap: .45rem; margin-bottom: 2.4rem; }
.filter {
  font: inherit; font-size: .8rem; cursor: pointer;
  padding: .42rem .9rem; border-radius: 999px;
  border: 1px solid var(--line); background: transparent; color: var(--ink-soft);
  transition: background .3s var(--ease-soft), color .3s var(--ease-soft),
              border-color .3s var(--ease-soft), transform .3s var(--ease);
}
.filter:hover { border-color: var(--ink-faint); transform: translateY(-1px); }
.filter[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }

.grid {
  columns: 1; column-gap: clamp(.9rem, 2vw, 1.8rem);
}
@media (min-width: 620px)  { .grid { columns: 2; } }
@media (min-width: 1040px) { .grid { columns: 3; } }
@media (min-width: 1600px) { .grid { columns: 4; } }

.card {
  break-inside: avoid; margin-bottom: clamp(.9rem, 1.8vw, 1.5rem);
  position: relative; cursor: pointer;
  content-visibility: auto;
  contain-intrinsic-size: auto 320px;
}
.card.is-tilting { perspective: 1100px; }
.card.is-hidden { display: none; }

/* A sheet behind glass: paper mat, a hairline where the glass sits, and a
   shadow that puts it a few millimetres off the wall. */
.frame {
  position: relative;
  background: linear-gradient(168deg, #FFFEFB 0%, #F7F3EA 100%);
  padding: clamp(10px, 1.5vw, 20px);
  transform-style: preserve-3d;
  clip-path: inset(0 0 100% 0);
  box-shadow:
    inset 0 0 0 1px rgba(26,22,16,.08),
    0 1px 1px rgba(26,22,16,.05),
    0 10px 20px -12px rgba(26,22,16,.32);
  transition:
    clip-path .5s var(--ease),
    box-shadow .55s var(--ease),
    transform .55s var(--ease);
  transition-delay: var(--d, 0ms);
}
.card.is-in .frame, .tile.is-in .frame { clip-path: inset(0 0 0 0); }

.frame__mat { position: relative; transform: translateZ(14px); }
.frame__mat img { width: 100%; display: block; }
/* the glass line */
.frame__mat::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(26,22,16,.13);
}
.card:hover .frame {
  box-shadow:
    inset 0 0 0 1px rgba(26,22,16,.09),
    0 3px 5px rgba(26,22,16,.07),
    0 30px 50px -20px rgba(26,22,16,.42);
}

.card__meta {
  position: absolute; inset: auto 0 0 0;
  padding: 2.4rem 1rem .9rem;
  color: #fff;
  background: linear-gradient(to top, rgba(14,12,16,.86), rgba(14,12,16,0));
  opacity: 0; transform: translateY(6px);
  transition: opacity .45s var(--ease), transform .45s var(--ease);
}
.card:hover .card__meta, .card:focus-visible .card__meta { opacity: 1; transform: none; }
.card__title { font-family: "Instrument Serif", Georgia, serif; font-size: 1.05rem; line-height: 1.2; }
.card__sub { font-size: .76rem; opacity: .78; margin-top: .2rem; }

/* Shared by the "Neue Blätter" tiles. */
.tile { margin: 0; cursor: pointer; perspective: 1100px; }
.tile .frame { padding: clamp(8px, 1.1vw, 14px); }
.tile:hover .frame {
  transform: translateY(-3px);
  box-shadow:
    inset 0 0 0 1px rgba(26,22,16,.09),
    0 3px 5px rgba(26,22,16,.07),
    0 26px 44px -20px rgba(26,22,16,.4);
}

/* ------------------------------------------------------------ werkstatt */

.werkstatt { background: #131217; color: #F3F0EA; }
.werkstatt .eyebrow { color: rgba(243,240,234,.5); }
.werkstatt .lede { color: rgba(243,240,234,.72); }

.strip {
  display: grid; gap: clamp(.6rem, 1.4vw, 1.1rem);
  grid-template-columns: repeat(2, 1fr);
  margin-top: clamp(2.2rem, 5vw, 3.6rem);
}
@media (min-width: 760px)  { .strip { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1200px) { .strip { grid-template-columns: repeat(4, 1fr); } }
.strip figure { margin: 0; overflow: hidden; background: #1C1B21; aspect-ratio: 4 / 3; cursor: pointer; }
.tile--photo {
  opacity: 0; transform: translateY(14px) scale(.985);
  transition: opacity .45s var(--ease), transform .45s var(--ease);
  transition-delay: var(--d, 0ms);
}
.tile--photo.is-in { opacity: 1; transform: none; }
.strip img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease), opacity .6s; }
.strip figure:hover img { transform: scale(1.06); }
.strip figure:nth-child(4n+1) { grid-row: span 1; }

/* A film feature with a real video thumbnail and a quiet editorial caption. */
.studio-film { display: grid; grid-template-columns: .65fr 1.35fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; padding-block: clamp(2rem, 4vw, 4rem); border-block: 1px solid #ffffff26; }
.studio-film__intro h3 { font-size: clamp(2.8rem, 4.5vw, 5rem); line-height: 1.03; margin-top: 1.3rem; }
.studio-film__intro h3 em { color: #b8b6ae; }
.studio-film__intro p { color: #b8b6ae; font-size: .9rem; max-width: 27ch; margin-block: 1.5rem 2rem; }
.studio-film__external { font-size: .75rem; text-decoration-thickness: 1px; text-underline-offset: 6px; }
.film { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #1c1b21; }
.film__trigger { display: block; width: 100%; height: 100%; padding: 0; border: 0; cursor: pointer; background: transparent; color: white; }
.film__trigger img { width: 100%; height: 100%; object-fit: cover; opacity: .86; transition: opacity .3s, transform .6s var(--ease); }
.film__trigger:hover img { opacity: 1; transform: scale(1.015); }
.film__trigger:focus-visible { outline-offset: -4px; }
.film__play { position: absolute; inset: auto auto 1.25rem 1.25rem; display: flex; align-items: center; gap: .8rem; padding: .4rem 1rem .4rem .4rem; border-radius: 3rem; background: var(--paper); color: var(--ink); pointer-events: none; }
.film__disc { width: 40px; aspect-ratio: 1; display: grid; place-items: center; border-radius: 50%; background: var(--ink); color: var(--paper); }
.film__disc svg { width: 16px; translate: 1px 0; }
.film__label { font: 500 .78rem Inter, sans-serif; }
.film iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.studio-film__caption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .3rem 1rem; margin-top: .8rem; font-size: .68rem; color: #a5a39e; }
@media (max-width:760px) {
  .studio-film { grid-template-columns: 1fr; }
  .studio-film__intro h3 br { display: none; }
  .studio-film__intro p { max-width: none; margin-block: 1rem; }
  .film__play { left: .7rem; bottom: .7rem; }
}

/* -------------------------------------------------------- ausstellungen */

.ex { border-top: 1px solid var(--line); }
.ex__item {
  display: grid; gap: clamp(.6rem, 2vw, 2.4rem);
  grid-template-columns: 1fr;
  padding-block: clamp(1.5rem, 3vw, 2.4rem);
  border-bottom: 1px solid var(--line);
  align-items: start;
  transition: background .4s var(--ease-soft);
}
@media (min-width: 880px) {
  .ex__item { grid-template-columns: 8rem 1fr 11rem; align-items: center; }
}
.ex__item:hover { background: color-mix(in srgb, var(--paper-deep) 60%, transparent); }

.ex__year {
  font-family: "Instrument Serif", Georgia, serif; font-size: 1.45rem; color: var(--ink-faint);
  font-variant-numeric: tabular-nums;
}
.ex__title { font-family: "Instrument Serif", Georgia, serif; font-size: clamp(1.15rem, 1rem + .7vw, 1.7rem); line-height: 1.2; }
.ex__where { color: var(--ink-soft); font-size: .92rem; margin-top: .35rem; }
.ex__note  { color: var(--ink-faint); font-size: .84rem; margin-top: .3rem; }
.ex__dates { color: var(--ink-faint); font-size: .86rem; font-variant-numeric: tabular-nums; }
@media (min-width: 880px) { .ex__dates { text-align: right; } }

.ex__poster {
  margin-top: .9rem; width: min(190px, 46%); cursor: pointer;
  border: 1px solid var(--line); background: #fff;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.ex__poster:hover { transform: translateY(-3px) rotate(-.5deg); box-shadow: 0 16px 36px -16px rgba(20,18,15,.35); }

/* ----------------------------------------------------------------- vita */

.vita__grid { display: grid; gap: clamp(2rem, 5vw, 4.5rem); grid-template-columns: 1fr; }
@media (min-width: 900px) { .vita__grid { grid-template-columns: .9fr 1.1fr; } }

.vita__list { list-style: none; margin: 0; padding: 0; }
.vita__list li {
  display: grid; gap: .1rem .5rem; padding-block: .95rem;
  border-bottom: 1px solid var(--line);
  grid-template-columns: 9rem 1fr;
}
@media (max-width: 620px) { .vita__list li { grid-template-columns: 1fr; } }
.vita__when { font-size: .82rem; color: var(--ink-faint); font-variant-numeric: tabular-nums; padding-top: .15rem; }
.vita__what { font-weight: 500; }
.vita__detail { font-size: .86rem; color: var(--ink-faint); grid-column: 2; }
@media (max-width: 620px) { .vita__detail { grid-column: 1; } }

.portrait { background: var(--paper-deep); overflow: hidden; }
.portrait img { width: 100%; will-change: transform; }

/* --------------------------------------------------------------- presse */

.quote {
  border-left: 2px solid var(--vermillion);
  padding-left: clamp(1.1rem, 2.5vw, 2rem);
  max-width: 54ch;
}
.quote p {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(1.15rem, 1rem + .9vw, 1.65rem);
  line-height: 1.34; margin: 0 0 1rem;
}
.quote__src { font-size: .84rem; color: var(--ink-faint); }
.quote__src a { color: var(--cobalt); text-underline-offset: 3px; }

/* -------------------------------------------------------------- kontakt */

.kontakt { background: var(--ink); color: var(--paper); }
.kontakt .eyebrow { color: rgba(250,248,243,.45); }
.kontakt a { text-decoration: none; }

.kontakt__call {
  font-size: clamp(2.2rem, 1.3rem + 3.8vw, 4.6rem);
  line-height: 1.02; letter-spacing: -.02em;
  margin-top: 1.4rem;
}
.kontakt__line {
  margin: 1.4rem 0 0;
  max-width: 44ch;
  font-size: clamp(1rem, .95rem + .35vw, 1.2rem);
  color: rgba(250,248,243,.66);
}

.mailto {
  display: inline-block; margin-top: 2.6rem;
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(1.25rem, .85rem + 2.2vw, 2.6rem);
  letter-spacing: -.02em; line-height: 1.1;
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0% 1px; background-position: 0 100%; background-repeat: no-repeat;
  transition: background-size .55s var(--ease);
  word-break: break-word;
}
.mailto:hover { background-size: 100% 1px; }

.kontakt__meta {
  display: flex; flex-wrap: wrap; gap: 1rem 2.6rem; margin-top: 2.8rem;
  font-size: .9rem; color: rgba(250,248,243,.66);
}
.kontakt__meta a { border-bottom: 1px solid rgba(250,248,243,.28); padding-bottom: 1px; }
.kontakt__meta a:hover { border-bottom-color: currentColor; }

.foot {
  padding: clamp(2.6rem, 6vw, 4.4rem) var(--gutter) 2.6rem;
  background: var(--ink); color: rgba(250,248,243,.38);
  border-top: 1px solid rgba(250,248,243,.12);
}

/* The three plates, overprinting — the same mark as the app. */
.foot__mark { display: flex; }
.foot__mark i {
  width: 22px; height: 22px; border-radius: 3px;
  mix-blend-mode: screen; opacity: .78;
}
.foot__mark i:nth-child(1) { background: var(--ochre); }
.foot__mark i:nth-child(2) { background: var(--cobalt); margin-left: -7px; }
.foot__mark i:nth-child(3) { background: var(--vermillion); margin-left: -7px; }

.foot__coda {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(1.3rem, 1rem + 1.6vw, 2.2rem);
  line-height: 1.2; letter-spacing: -.01em;
  color: rgba(250,248,243,.82);
  margin: 1.2rem 0 clamp(2.4rem, 5vw, 3.6rem);
  max-width: 24ch;
}

.foot__row {
  display: flex; flex-wrap: wrap; gap: .6rem 1.6rem;
  justify-content: space-between;
  font-size: .76rem;
  border-top: 1px solid rgba(250,248,243,.1);
  padding-top: 1.4rem;
}

/* ------------------------------------------------------------- lightbox */

.lb {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(12,11,14,.94);
  display: grid; grid-template-rows: 1fr auto; place-items: center;
  padding: clamp(1rem, 4vw, 3rem);
  opacity: 0; pointer-events: none;
  transition: opacity .42s var(--ease);
}
.lb.is-open { opacity: 1; pointer-events: auto; }
.lb__img {
  max-width: 100%; max-height: 74svh; object-fit: contain;
  transform: scale(.97); opacity: 0;
  transition: transform .5s var(--ease), opacity .4s var(--ease);
  box-shadow: 0 40px 90px -40px rgba(0,0,0,.9);
}
.lb.is-open .lb__img { transform: none; opacity: 1; }
.lb__cap { color: #fff; text-align: center; margin-top: 1.4rem; max-width: 60ch; }
.lb__t { font-family: "Instrument Serif", Georgia, serif; font-size: clamp(1.1rem, 1rem + .7vw, 1.6rem); }
.lb__s { font-size: .86rem; color: rgba(255,255,255,.62); margin-top: .35rem; }
.lb__btn {
  position: fixed; top: 50%; translate: 0 -50%;
  width: 46px; height: 46px; border-radius: 50%;
  background: rgba(255,255,255,.09); border: 1px solid rgba(255,255,255,.2);
  color: #fff; cursor: pointer; display: grid; place-items: center;
  transition: background .3s, transform .3s var(--ease);
}
.lb__btn:hover { background: rgba(255,255,255,.2); transform: translateY(-50%) scale(1.06); }
.lb__prev { left: clamp(.5rem, 2vw, 2rem); }
.lb__next { right: clamp(.5rem, 2vw, 2rem); }
.lb__close { position: fixed; top: clamp(.8rem, 2vw, 1.6rem); right: clamp(.8rem, 2vw, 1.6rem); translate: 0; }
@media (max-width: 620px) { .lb__prev, .lb__next { display: none; } }

/* --------------------------------------------------------------- reveal */

[data-reveal] {
  opacity: 0; transform: translateY(22px);
  transition: opacity .5s var(--ease), transform .5s var(--ease);
  transition-delay: var(--d, 0ms);
}
[data-reveal].is-in { opacity: 1; transform: none; }

/* Headings arrive word by word.
   The mask has to be taller than the line box or it shaves the descenders
   off "Jürgen" and the accents off "Ü". Padding grows the clipping box;
   the matching negative margin keeps the layout exactly where it was. */
[data-split] { --wd: 0ms; }
[data-split] .word {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
  padding-block: .16em .28em;
  margin-block: -.16em -.28em;
}
[data-split] .word > span {
  display: inline-block;
  transform: translateY(105%);
  transition: transform .6s var(--ease);
  transition-delay: calc(var(--i, 0) * 55ms + var(--wd));
}
[data-split].is-in .word > span { transform: none; }

/* A whisper of tilt under the pointer — the sheet leans, the frame with it. */
.card.is-tilting .frame {
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(-5px);
  transition: transform .2s linear, box-shadow .55s var(--ease), clip-path .5s var(--ease);
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1 !important; transform: none !important; }
  .frame { clip-path: none !important; }
  .tile--photo { opacity: 1 !important; transform: none !important; }

  [data-split] .word > span { transform: none !important; }
  .hero__col { animation: none !important; }
  .panel-open { clip-path: none !important; }
  .hero__cue::after { animation: none; }
  .progress { display: none; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}

/* Navigation belongs to the page from first paint. */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 80;
  display: flex; align-items: center; justify-content: space-between; gap: 2rem;
  padding: 1rem var(--gutter); background: rgba(250,248,243,.96);
  border-bottom: 1px solid var(--line);
}
.nav a { text-decoration: none; }
.nav__brand { display: flex; align-items: center; gap: .8rem; white-space: nowrap; }
.nav__name { font-family: "Instrument Serif", Georgia, serif; font-size: 1.45rem; }
.nav__mark { display: flex; width: 26px; }
.nav__mark i { width: 12px; height: 18px; flex-shrink: 0; background: var(--cobalt); mix-blend-mode: multiply; }
.nav__mark i + i { margin-left: -5px; background: var(--ochre); }
.nav__mark i:last-child { background: var(--vermillion); }
.nav__links { display: flex; gap: clamp(.8rem, 1.8vw, 2rem); font-size: .78rem; }
.nav__links a { padding-block: .25rem; border-bottom: 1px solid transparent; }
.nav__links a:hover, .nav__links a:focus-visible { border-color: currentColor; }
:focus-visible { outline: 2px solid var(--cobalt); outline-offset: 5px; }
section { scroll-margin-top: 95px; }
.skip-link { position: fixed; top: -80px; left: 1rem; z-index: 110; padding: .8rem; background: var(--paper); }
.skip-link:focus { top: 1rem; }
[hidden] { display: none !important; }
.hero { min-height: 105svh; padding-top: 90px; }
@media (min-width:1560px) { .hero__wall { grid-template-columns: repeat(4, 1fr); } }
.hero__col { align-self: start; }
.hero__wall { top: 65px; }
.hero__inner { padding-bottom: 1rem; }

/* Two offset print plates, moving gently in opposing directions. */
#intro { padding-top: clamp(5rem, 10vw, 10rem); padding-bottom: clamp(6rem, 12vw, 13rem); }
.intro__grid { grid-template-columns: 1.05fr 1fr; gap: 8vw; align-items: center; max-width: 1600px; margin: auto; }
.intro__visual { position: relative; padding-bottom: 4rem; }
.intro__plate { max-width: none; margin: 2.3rem 0 0; transform: rotate(-3deg); }
.intro__plate img { width: 100%; border: clamp(10px, 1.4vw, 22px) solid #fffdf7; box-shadow: 0 16px 30px -20px #45342166; }
.intro__edition { display: block; position: absolute; right: -2rem; bottom: -2rem; font: clamp(3rem, 7vw, 8rem)/.8 "Instrument Serif", Georgia, serif; color: var(--cobalt); transform: rotate(-7deg); }
.intro__edition em { font-size: 1.3em; }
.intro__cap { color: var(--ink-soft); font-size: .72rem; }
.pull { font-size: clamp(3.2rem, 5.4vw, 6rem); line-height: .99; margin: 0 0 2.4rem; }
.pull em { color: var(--cobalt); }
.intro__body { font-size: .95rem; max-width: 42ch; }
.text-link { display: inline-flex; gap: 2rem; padding-block: .45rem; border-bottom: 1px solid var(--ink); text-decoration: none; font-size: .8rem; }
.text-link span { transition: transform .25s; }
.text-link:hover span { transform: translate(3px,-3px); }
.facts { border-top: 1px solid var(--line); padding-top: 1.6rem; margin-top: 2.5rem; }
.fact__n { font-size: 2.3rem; }
.fact__l { display: block; font-size: .67rem; }
.seam { height: 0; }
#werke { border-top: 1px solid var(--line); }
#werke .section-head { display: grid; grid-template-columns: 1fr 1fr; align-items: end; gap: .5rem 4rem; }
#werke .eyebrow { grid-column: 1/-1; }
#werke .section-title { font-size: clamp(4rem, 9vw, 9rem); }
#werke .lede { font-size: 1rem; max-width: 35ch; margin: 0 !important; padding-bottom: .7rem; }
.filter { border-radius: 0; border: 0; border-bottom: 1px solid var(--line); padding: .6rem 1rem; }
.filter[aria-pressed="true"] { background: transparent; color: var(--ink); border-bottom: 2px solid var(--ink); }
.grid { column-gap: clamp(.75rem, 1.25vw, 1.3rem); }
.card { margin: 0 0 clamp(.9rem, 1.5vw, 1.6rem); content-visibility: visible; contain-intrinsic-size: none; }
.frame { clip-path: none; padding: clamp(8px, 1vw, 15px); box-shadow: none; background: #fffdf7; }
.card__meta { position: static; opacity: 1; transform: none; background: none; color: var(--ink); padding: 1rem 0 .25rem; }
.card__title { font-size: 1.1rem; text-transform: none; }
.card__sub { font-size: .7rem; color: var(--ink-soft); }
.card:hover .frame { box-shadow: 0 18px 30px -25px #45342188; }

/* Recent prints follow the natural vertical reading direction. */
#neu { margin-top: clamp(4rem, 7vw, 8rem); padding-top: clamp(4rem, 7vw, 8rem); overflow: hidden; }
#neu .section-title { font-size: clamp(4rem, 8vw, 8rem); }
#neu .section-head { margin-bottom: 1rem; }
#neu .lede { font-size: 1rem; }
.print-number { font-size: .68rem; letter-spacing: .08em; margin-top: .8rem; color: var(--ink-soft); }
.panel-open { clip-path: none; }
.werkstatt { padding-top: clamp(5rem, 8vw, 9rem); }
.werkstatt .section-title { font-size: clamp(3rem, 6vw, 7rem); max-width: 12ch; }
.lb__btn:hover { transform: scale(1.06); }
@media (max-width:899px) {
  .nav { gap: .45rem; flex-wrap: wrap; padding-block: .6rem; }
  .nav__name { font-size: 1.3rem; }
  .nav__links { width: 100%; overflow-x: auto; gap: 1.3rem; white-space: nowrap; font-size: .72rem; }
  .hero__wall { top: 90px; }
  .intro__grid { grid-template-columns: 1fr; gap: 6rem; }
  .intro__visual { max-width: 560px; width: 88%; }
  .intro__edition { font-size: 4.5rem; right: -1.5rem; }
  .intro__story { max-width: 580px; }
  .pull { font-size: clamp(3rem, 10vw, 5rem); }
  #werke .section-head { grid-template-columns: 1fr; gap: 1.4rem; }
}
@media (prefers-reduced-motion: reduce) {
  .intro__visual, .intro__story { transform: none !important; }
}

/* Content stays readable if scripting is unavailable. */
html:not(.js) [data-reveal], html:not(.js) .tile--photo { opacity: 1; transform: none; }
@media (min-width:1800px) {
  .shell { padding-inline: max(var(--gutter), calc((100vw - 1600px) / 2)); }
}

.new-gallery { columns: 3; column-gap: clamp(2rem, 5vw, 5rem); padding-top: 3rem; }
.new-gallery .tile { display: inline-block; width: 100%; break-inside: avoid; margin: 0 0 clamp(2rem, 5vw, 5rem); }
.new-gallery .tile:nth-child(3n+2) { padding-inline: 5%; }
.new-gallery .frame { padding: clamp(8px, 1vw, 14px); }
.new-gallery img { width: 100%; height: auto; object-fit: contain; }
@media (min-width:1100px) {
  .new-gallery { column-gap: 5vw; }
  .new-gallery .tile:nth-child(8) { margin-top: 5rem; }
  .new-gallery .tile:nth-child(15) { margin-top: 2rem; }
}
@media (max-width:899px) { .new-gallery { columns: 2; } }
@media (max-width:560px) {
  .new-gallery { columns: 1; padding-top: 1.5rem; }
  .new-gallery .tile:nth-child(3n+2) { padding-inline: 0; }
}

/* Compact catalogue: the print, a small caption, then the next sheet. */
#werke .section-head { margin-bottom: 1.6rem; }
#werke .filters { margin-bottom: 1.5rem; }
.card .frame { padding: clamp(6px, .65vw, 10px); }
.card__meta { padding: .65rem .1rem .15rem; }
.card__title { font-size: 1rem; }
.card__sub { font-size: .67rem; line-height: 1.5; }
@media (min-width:1200px) { .grid { columns: 4; } }
@media (min-width:1600px) { .grid { columns: 5; } }

/* Overlapping paper edges bridge chapters without a full-width straight cut.
   Only these shallow decorative strips move; section content stays unclipped. */
#neu, #werkstatt, #ausstellungen, #kontakt { isolation: isolate; overflow: visible; }
#neu { --edge-color: var(--paper-deep); margin-top: clamp(6rem, 10vw, 10rem); }
#werkstatt { --edge-color: #131217; }
#ausstellungen { --edge-color: var(--paper); background: var(--paper); }
#kontakt { --edge-color: var(--ink); }
#neu::before, #werkstatt::before, #ausstellungen::before, #kontakt::before {
  content: ""; position: absolute; pointer-events: none; z-index: -1;
  inset: auto 0 calc(100% - 2px); height: clamp(65px, 7vw, 120px);
  background: var(--edge-color); transform-origin: bottom;
  transform: scaleY(var(--edge-rise, 1));
  clip-path: polygon(0 44%, 7% 52%, 15% 37%, 23% 46%, 32% 25%, 41% 31%, 49% 17%, 58% 28%, 68% 11%, 77% 20%, 87% 5%, 94% 12%, 100% 0, 100% 100%, 0 100%);
}
#werkstatt::before {
  clip-path: polygon(0 4%, 8% 14%, 18% 8%, 28% 30%, 37% 21%, 47% 41%, 56% 34%, 65% 55%, 75% 47%, 84% 63%, 93% 56%, 100% 70%, 100% 100%, 0 100%);
}
#ausstellungen::before {
  clip-path: polygon(0 62%, 9% 55%, 18% 66%, 27% 43%, 36% 52%, 45% 29%, 55% 39%, 63% 18%, 72% 27%, 81% 7%, 91% 17%, 100% 0, 100% 100%, 0 100%);
}
#neu, #werkstatt, #presse { padding-bottom: clamp(7rem, 10vw, 11rem); }
#ausstellungen { padding-top: clamp(3rem, 5vw, 6rem); }
#ausstellungen .section-title { font-size: clamp(3rem, 6vw, 6.5rem); }
.motion-in-view > .frame, .motion-in-view .section-title { will-change: translate, rotate; }
@media (prefers-reduced-motion: reduce) {
  #neu::before, #werkstatt::before, #ausstellungen::before, #kontakt::before { transform: none; }
  .card > .frame, .new-gallery .frame, .section-title { translate: none !important; rotate: none !important; }
}

/* A compact mobile masthead and a deliberately composed first screen. */
.nav__toggle { display: none; }
@media (max-width:759px) {
  .nav { flex-wrap: nowrap; min-height: 64px; padding: .8rem var(--gutter); background: var(--paper); }
  .nav__name { font-size: 1.3rem; }
  .nav__toggle { display: flex; align-items: center; gap: .7rem; padding: .4rem 0 .4rem .7rem; font: 500 .8rem Inter, sans-serif; border: 0; color: var(--ink); background: none; cursor: pointer; }
  .nav__toggle span { font-size: 1.3rem; font-weight: 400; transition: transform .25s; }
  .menu-open .nav__toggle span { transform: rotate(45deg); }
  .nav__links { display: none; position: absolute; left: 0; right: 0; top: 100%; width: auto; padding: 1rem var(--gutter) 1.5rem; background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: 0 12px 18px -16px #15141a66; }
  .menu-open .nav__links { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem 1.4rem; }
  .nav__links a { padding: .75rem 0; font-size: .85rem; }
  .hero { min-height: 0; padding-top: 64px; padding-bottom: 1.5rem; }
  .hero__wall { top: 64px; bottom: auto; height: 55svh; max-height: 520px; overflow: hidden; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 8px; padding-inline: 8px; mask-image: linear-gradient(to bottom, #000 55%, transparent 100%); -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent 100%); transform: none !important; opacity: 1 !important; }
  .hero__col { --loop-gap: 8px; gap: var(--loop-gap); }
  .hero__col img { height: 26svh; max-height: 250px; width: 100%; object-fit: cover; }
  .hero__veil { display: none; }
  .hero__inner { padding-top: min(55svh, 520px); padding-bottom: 0; }
  .hero h1 { font-size: clamp(3rem, 13vw, 4.5rem); line-height: .94; letter-spacing: -.025em; }
  .hero h1 span { display: block; }
  .hero__inner > .eyebrow { font-size: .61rem; margin-bottom: 1.1rem; }
  .hero__sub { display: block; max-width: none; font-size: .73rem; line-height: 1.9; margin-top: 1rem; }
  .hero__sub > span { display: inline-block; white-space: nowrap; }
  .hero__sub > span:not(:nth-last-child(3)):not(:last-child)::after { content: "·"; margin-inline: .45rem; color: var(--ink-faint); }
  .hero__sub > span:last-child { display: block; margin-top: .2rem; color: var(--ink-faint); }
  .hero__sub .dot { display: none; }
  .hero__cue { display: none; }
  #intro { padding-top: 3rem; }
}
/* The former panel reveal must not clip the overlapping chapter edges. */
.panel-open, .panel-open.is-in { clip-path: none; }

/* Biography and press share the scale and materials of the opening chapters. */
#vita { padding-block: clamp(5rem, 9vw, 10rem); }
.vita__grid { grid-template-columns: .95fr 1.05fr; gap: clamp(3rem, 8vw, 9rem); align-items: start; }
.vita__portrait .section-title { font-size: clamp(3.2rem, 5.5vw, 6.4rem); line-height: 1.02; }
.vita__portrait .section-title em { color: var(--cobalt); }
.vita__art { margin: 2.5rem 1rem 2.5rem 0; max-width: 510px; transform: rotate(-2deg); }
.vita__art img { width: 100%; border: 10px solid #fffdf7; box-shadow: 0 16px 28px -24px #45342199; }
.vita__art figcaption { margin-top: .9rem; font-size: .65rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); }
.vita__born { font-size: .9rem; max-width: 35ch; line-height: 1.8; }
.vita__interests { color: var(--ink-soft); font-size: .8rem; margin-top: 1.2rem; }
.vita__timeline { padding-top: 1rem; }
.vita__list { margin-top: 2rem; border-left: 1px solid var(--line); }
.vita__list li { position: relative; display: block; border-bottom: 0; padding: 0 0 2.6rem 2rem; }
.vita__list li::before { content: ""; position: absolute; left: -4px; top: .65rem; width: 7px; height: 7px; border-radius: 50%; background: var(--ink); }
.vita__list li:first-child::before { background: var(--cobalt); }
.vita__when { color: var(--ink-soft); padding: 0; margin-bottom: .5rem; font-size: .76rem; }
.vita__when:empty { display: none; }
.vita__what { font: 400 clamp(1.35rem, 1.8vw, 2rem)/1.18 "Instrument Serif", Georgia, serif; max-width: 30ch; }
.vita__list li:first-child .vita__what { font-size: clamp(2.5rem, 4vw, 4.5rem); color: var(--cobalt); }
.vita__detail { margin-top: .5rem; font-size: .8rem; color: var(--ink-soft); }
#presse { background: var(--paper); padding-top: 1rem; }
.press-layout { display: grid; grid-template-columns: .24fr 1fr; gap: 3rem; padding-top: 3rem; border-top: 1px solid var(--line); }
.press-mark { display: block; font: clamp(7rem, 14vw, 14rem)/.9 "Instrument Serif", Georgia, serif; color: var(--cobalt); margin-top: 1.5rem; }
.press-body .quote { border: 0; padding: 0; margin: 0; max-width: 100%; }
.press-body .quote p { font-size: clamp(1.8rem, 3.1vw, 3.5rem); line-height: 1.2; letter-spacing: -.015em; max-width: 37ch; text-wrap: pretty; }
.press-body .quote__src { max-width: 64ch; font-size: .75rem; margin-top: 2rem; color: var(--ink-soft); }
.press-body .quote__src a { color: var(--ink); text-decoration-thickness: 1px; text-underline-offset: 4px; }
@media (max-width:899px) {
  .vita__grid { grid-template-columns: 1fr; gap: 3rem; }
  .vita__art { max-width: 460px; }
  .vita__timeline { padding-top: 0; }
  .press-layout { grid-template-columns: 1fr; gap: 1.5rem; }
  .press-heading { display: flex; align-items: center; justify-content: space-between; }
  .press-mark { font-size: 5rem; line-height: .5; margin-top: 1rem; }
}

.nav__icon, .nav__arrow, .mobile-more { display: none; }
@media (max-width:759px) {
  .nav__links { padding: .7rem var(--gutter) 1.2rem; max-height: calc(100dvh - 64px); overflow-y: auto; }
  .menu-open .nav__links { grid-template-columns: 1fr; gap: 0; }
  .nav__links a { display: grid; grid-template-columns: 42px 1fr 24px; align-items: center; gap: .8rem; padding: .65rem 0; border-bottom: 1px solid var(--line); font: 400 1.8rem/1.1 "Instrument Serif", Georgia, serif; }
  .nav__icon { display: block; width: 34px; height: 34px; fill: none; stroke: currentColor; stroke-width: 1.25; stroke-linejoin: round; stroke-linecap: round; color: var(--cobalt); transition: transform .4s var(--ease); }
  .nav__links a:nth-child(2n) .nav__icon { color: var(--vermillion); }
  .nav__links a:nth-child(3n) .nav__icon { color: var(--ochre); }
  .nav__arrow { display: block; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; color: var(--ink-soft); }
  .nav__links a:hover .nav__icon { transform: rotate(-12deg) scale(1.15); }
  .menu-open .nav__links a { animation: menu-entry .45s var(--ease) both; }
  .nav__links a:nth-child(2) { animation-delay: 40ms; }
  .nav__links a:nth-child(3) { animation-delay: 80ms; }
  .nav__links a:nth-child(4) { animation-delay: 120ms; }
  .nav__links a:nth-child(5) { animation-delay: 160ms; }
  .nav__links a:nth-child(6) { animation-delay: 200ms; }
  .is-mobile-hidden { display: none !important; }
  .mobile-more { display: flex; align-items: center; gap: .8rem; margin: 1.5rem auto 0; padding: .5rem 1rem .5rem .5rem; border: 0; background: transparent; color: var(--ink); font: 500 .85rem Inter, sans-serif; text-align: left; cursor: pointer; }
  .mobile-more__icon { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid currentColor; border-radius: 50%; font-size: 1.5rem; transition: transform .3s; }
  .mobile-more:hover .mobile-more__icon { transform: rotate(90deg); }
  .mobile-more small { display: block; margin-top: .3rem; font-size: .65rem; font-weight: 400; opacity: .65; }
  .werkstatt .mobile-more { color: var(--paper); }
}
@keyframes menu-entry { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .menu-open .nav__links a { animation: none; } }

@media (max-width:759px) and (prefers-reduced-motion: no-preference) {
  .hero__col { animation-duration: 60s; }
}
@media (prefers-reduced-motion: reduce) {
  .hero__col { translate: none !important; }
}

/* Mobile: one entrance per catalogue print, bounded parallax elsewhere. */
@media (max-width:759px) {
  .progress { display: none; }
  .frame { transform-style: flat; transition: none; }
  .frame__mat { transform: none; }
  .card, .tile { perspective: none; }
  .card:hover .frame, .tile:hover .frame { transform: none; box-shadow: none; }
  .card { margin-bottom: 2rem; }
  .strip figure img { scale: 1.1; transition: none; }
  .strip figure:hover img { transform: none; }
  #neu::before, #werkstatt::before, #ausstellungen::before, #kontakt::before { transform: none; }
  .motion-in-view > .frame, .motion-in-view .section-title { will-change: auto; }
}
@media (max-width:759px) and (prefers-reduced-motion: no-preference) {
  .card.print-arrived > .frame { animation: print-appear .3s ease-out; }
}
@keyframes print-appear {
  from { opacity: .78; }
  to { opacity: 1; }
}

/* Keep the large introduction print on one composited layer while it moves. */
@media (prefers-reduced-motion: no-preference) {
  .intro__visual { will-change: transform; }
}

@media (max-width:759px) {
  .section-title { translate: none !important; }
}
