/* Agenturseite: a personal letter laid out like the new midpoint.film.
   White ground, ink, 1px hairlines, square photos, red ballpoint marks.
   Fluid: width and type follow the browser window (vw), like marty-trezzini.com. */

@font-face {
  font-family: 'Janic Hand';
  src: url('fonts/janic-hand.otf') format('opentype');
  font-display: block;
}

:root {
  --paper: #fbfbfa;       /* neutral white of the Figma light pages */
  --paper-2: #ececea;      /* image placeholders */
  --ink: #0b0b0a;
  --ink-soft: #2b2a27;     /* hover on solid buttons */
  --grey: #666662;         /* meta, labels: 5.6:1 on paper */
  --hair: #d1d1ce;
  --red: #e3242b;          /* the red ballpoint mark (?stift=rot) */
  --marker: #ffe14a;       /* test 29.09.: yellow highlighter */
  --night: #0b0b0a;        /* intro slate */
  --chalk: #efece5;
  --chalk-dim: rgba(239, 236, 229, 0.72);

  --font: 'DM Sans', ui-sans-serif, system-ui, sans-serif;
  --font-hand: 'Janic Hand', 'Bradley Hand', cursive;   /* Janic's own handwriting, tools/handschrift */

  --bar-h: 56px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  /* Phone: everything in vw of a ~390px screen. */
  --gutter: 5.1vw;                 /* 20px */
  --space: 25vw;                   /* between sections */
  /* Type scale: six steps for the whole page, nothing in between.
     display (header question) > h2 (every section title) > lead (letter, offer text, big links)
     > body (running text, quotes) > small (contacts, names, buttons) > meta (labels, captions). */
  --fs-meta: 13px;
  --fs-small: 15.5px;
  --fs-body: 17px;
  --btn-h: 52px;
  --fs-lead: 5.2vw;                /* 20px */
  --fs-h2: 7.8vw;                  /* 30px */
  --fs-h1: 9.3vw;                  /* the header question */
}
@media (min-width: 768px) {
  :root {
    --gutter: clamp(20px, 1.8vw, 48px);
    --space: clamp(120px, 11vw, 260px);
    --fs-meta: clamp(12.5px, 0.88vw, 18px);
    --fs-small: clamp(15px, 1.05vw, 22px);
    --fs-body: clamp(16px, 1.25vw, 26px);
    --btn-h: clamp(52px, 3.8vw, 78px);
    --fs-lead: 2.5vw;
    --fs-h2: 4.6vw;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scrollbar-color: var(--hair) var(--paper);
  background: var(--paper);
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: 1.5;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  caret-color: var(--red);
}
body.is-intro { overflow: hidden; }
img, video, svg { display: block; max-width: 100%; }
[hidden] { display: none !important; }
h1, h2, h3, p, figure, dl, dd, ol, ul, blockquote { margin: 0; }
ol, ul { padding: 0; list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
::selection { background: var(--ink); color: var(--paper); }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }

.wrap { width: 100%; padding-inline: var(--gutter); }
.skip {
  position: fixed; left: 12px; top: -60px; z-index: 300;
  background: var(--ink); color: var(--paper); padding: 10px 14px; text-decoration: none;
}
.skip:focus { top: 12px; }
.link-btn { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
.link-btn:disabled { text-decoration: none; cursor: default; }

/* ---------- shared type ---------- */
.section-title, .wild__title, .why__title, .close__title {
  font-size: var(--fs-h2);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.meta {
  display: flex; justify-content: space-between; gap: 16px;
  font-size: var(--fs-meta); color: var(--grey);
}

/* ---------- buttons ---------- */
.actions { display: flex; gap: 10px; margin-top: 28px; }
.btn {
  flex: 1 1 0;
  display: inline-flex; align-items: center; justify-content: center;
  min-height: var(--btn-h); padding: 0 12px; white-space: nowrap;
  font-size: var(--fs-small); font-weight: 500; letter-spacing: -0.005em;
  text-decoration: none; text-align: center;
  border: 1px solid var(--ink);
  transition: background-color 0.2s, color 0.2s;
}
.btn--solid { background: var(--ink); color: var(--paper); }
.btn--solid:hover { background: var(--ink-soft); border-color: var(--ink-soft); }
.btn--line { color: var(--ink); }
.btn--line:hover { background: var(--ink); color: var(--paper); }

/* ---------- rows: call sheet and lists ---------- */
.rows { border-top: 1px solid var(--hair); font-variant-numeric: tabular-nums; }
.rows__row {
  display: grid; grid-template-columns: 7.5em minmax(0, 1fr); gap: 12px;
  padding: 14px 0; border-bottom: 1px solid var(--hair);
}
.rows dt { font-size: var(--fs-meta); color: var(--grey); padding-top: 0.15em; }
.rows dd { font-size: var(--fs-small); line-height: 1.45; }
.rows dd strong { font-weight: 600; }

/* ==========================================================================
   INTRO: the digital twin of the clapperboard in the parcel
   ========================================================================== */
.intro { display: none; }
.js .intro {
  position: fixed; inset: 0; z-index: 200;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: max(24px, env(safe-area-inset-top)) var(--gutter) max(24px, env(safe-area-inset-bottom));
  background: radial-gradient(120% 80% at 50% 40%, #1a1a18 0%, var(--night) 62%, #050505 100%);
  color: var(--chalk);
  cursor: pointer; -webkit-tap-highlight-color: transparent; /* a tap anywhere claps the slate */
}
.intro:focus { outline: none; }
.js.slate-seen .intro, .intro.is-done { display: none; }
.intro__stage { flex: 1; width: 100%; display: grid; place-items: center; perspective: 1400px; min-height: 0; }
.slate {
  width: min(92vw, 760px, calc(80svh * 1600 / 1820));
  height: auto; overflow: visible;
  filter: drop-shadow(0 40px 60px rgba(0, 0, 0, 0.6));
  transform-style: preserve-3d;
}
.slate__labels text { font-family: var(--font); font-weight: 700; font-size: 54px; letter-spacing: 8px; }
.slate__chalk text { font-family: var(--font-hand); font-weight: 400; }
.intro__flash { position: absolute; inset: 0; background: #fff; opacity: 0; pointer-events: none; }
/* "Wildcard einlösen": motion-graphic sequence (take2.js). */
.play { position: fixed; inset: 0; z-index: 260; overflow: hidden; color: var(--paper); }
.play__bg { position: absolute; inset: 0; background: var(--night); }
.play__card { position: absolute; left: 50%; top: 6vh; width: min(74vw, 44vh); translate: -51.2% 1.35%; perspective: 1400px; } /* the face sits off-centre in the photo */
.play__turn { position: relative; transform-style: preserve-3d; }
.play__face { display: block; width: 100%; height: auto; backface-visibility: hidden; -webkit-backface-visibility: hidden;
  /* Only the card face. Measured per side in the card photos (tools: face edge, not a flat margin):
     light comes from the top right, so the edge and the shadow sit left and below the face. */
  clip-path: inset(5.8% 8.4% 8.5% 10.8% round 3.3% / 2.4%); }
.play__face--front { position: absolute; inset: 0; transform: rotateY(180deg); }
.play__words {
  position: absolute; left: var(--gutter); right: var(--gutter); bottom: 9vh; margin: 0;
  font-size: min(17vw, 15vh); font-weight: 700; line-height: 0.98; letter-spacing: -0.04em;
}
.play__line { display: block; overflow: hidden; padding-bottom: 0.06em; }
.play__line > span { display: inline-block; }
.play__mark { position: relative; white-space: nowrap; }
.play__mark svg { position: absolute; left: -7%; top: -10%; width: 114%; height: 122%; max-width: none; overflow: visible; pointer-events: none; }
.play__mark path { fill: none; stroke: var(--red); stroke-width: 4; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.play__bar {
  position: absolute; left: -2%; right: -2%; height: 50.5%;
  background-color: var(--night);
  background-image: repeating-linear-gradient(-58deg, var(--night) 0 7vmin, var(--paper) 7vmin 14vmin);
}
.play__bar--top { top: 0; border-bottom: 1vmin solid var(--night); }
.play__bar--bottom { bottom: 0; background-image: repeating-linear-gradient(58deg, var(--night) 0 7vmin, var(--paper) 7vmin 14vmin); border-top: 1vmin solid var(--night); }
.play__flash { position: absolute; inset: 0; background: #fff; opacity: 0; }
.play .take2__fallback { position: absolute; }
.take2__fallback {
  position: absolute; left: var(--gutter); right: var(--gutter); top: 50%; transform: translateY(-50%);
  display: grid; gap: 12px; max-width: 420px; margin-inline: auto;
}
.take2__fallback[hidden] { display: none; }
.play :focus-visible { outline-color: var(--paper); }

/* ==========================================================================
   TOP
   ========================================================================== */
.top {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: max(16px, env(safe-area-inset-top)); padding-bottom: 16px;
}
.top__logo img { width: auto; height: clamp(22px, 1.7vw, 36px); filter: brightness(0); }
/* The agency's own logo (or name) opposite ours: Midpoint left, them right. */
.top__agency { display: flex; align-items: center; }
.top__agency-logo { width: auto; height: calc(clamp(12px, 1.05vw, 22px) * var(--logo-scale, 1)); max-width: 48vw; object-fit: contain; filter: brightness(0) invert(1); }
.top__agency-name { font-size: var(--fs-body); font-weight: 700; letter-spacing: -0.02em; line-height: 1; }

/* ==========================================================================
   OPENING: greeting, meta line, hero still
   ========================================================================== */
.open { padding-top: clamp(20px, 6vw, 96px); }
.open__title {
  font-size: var(--fs-h1);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.04em;
  text-wrap: balance;
}
.open__title:focus { outline: none; }
.open__hello, .open__line { display: block; }
/* The greeting reads like the salutation of a letter; the question is the headline. */
.open__hello { font-size: var(--fs-lead); font-weight: 500; letter-spacing: -0.015em; line-height: 1.2; margin-bottom: 0.4em; }
.open .meta { margin-top: clamp(20px, 3vw, 40px); }

.hero { margin-top: 22px; }
.hero__media {
  position: relative; overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--paper-2);
}
.hero__poster, .hero__video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: var(--hero-pos, 50% 50%);
}
.hero__cap { margin-top: 10px; font-size: var(--fs-meta); color: var(--grey); }

/* Trial: the hero film fills the first screen, white type on top (like the original midpoint.film). */
.top--over { position: absolute; top: 0; left: 0; right: 0; z-index: 5; color: #fff; }
.top--over .top__logo img { filter: none; }
.open--over {
  position: relative; min-height: 100svh; padding-top: 0;
  display: flex; flex-direction: column; justify-content: flex-end;
  color: var(--paper); background: var(--night); overflow: hidden;
}
.open--over .hero { position: absolute; inset: 0; margin: 0; padding: 0; }
.open--over .hero__media { position: absolute; inset: 0; aspect-ratio: auto; height: 100%; background: var(--night); }
.open--over .hero::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(11, 11, 10, 0.45) 0%, rgba(11, 11, 10, 0) 22%, rgba(11, 11, 10, 0) 38%, rgba(11, 11, 10, 0.78) 100%);
}
.open--over > .wrap { position: relative; z-index: 2; padding-bottom: calc(var(--bar-h) + 44px); }
.open--over .meta { color: rgba(251, 251, 250, 0.86); }
.open--over .hero__cap {
  position: absolute; left: 0; right: 0; bottom: calc(var(--bar-h) + 14px); z-index: 2;
  margin: 0; color: rgba(251, 251, 250, 0.72);
}
.open--over :focus-visible { outline-color: var(--paper); }

/* ==========================================================================
   NOTE: the researched letter, one red ballpoint circle
   ========================================================================== */
.note { margin-top: clamp(48px, 8vw, 160px); }
.note__text { font-size: var(--fs-lead); line-height: 1.34; letter-spacing: -0.015em; text-wrap: pretty; }
.note__line + .note__line { margin-top: 0.8em; }
.note__sign { margin-top: 22px; font-size: var(--fs-meta); color: var(--grey); }

.circled { position: relative; white-space: nowrap; }
.circled svg {
  position: absolute; left: -8%; top: -16%; width: 116%; height: 134%; max-width: none;
  overflow: visible; pointer-events: none;
}
.circled path {
  fill: none; stroke: var(--red); stroke-width: 2.2; stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}
/* page.js measures each mark's on-screen length (--len) so the pen can draw it. */
.js .circled path { opacity: 0; }
.js .circled.is-ready path {
  opacity: 1;
  stroke-dasharray: var(--len); stroke-dashoffset: var(--len);
  transition: stroke-dashoffset 1.1s cubic-bezier(0.65, 0, 0.35, 1) 0.2s;
}
.js .circled.is-ready.is-drawn path { stroke-dashoffset: 0; }
.circled--under svg { left: -2%; top: 80%; width: 104%; height: 30%; }
.why__title .circled svg, .wild__title .circled svg { top: -8%; height: 116%; }
.open__title .circled path, .why__title .circled path { stroke-width: 3; }

/* Test 29.09.: a yellow highlighter swipe behind the word instead of the red pen (html.marker). */
html.marker .circled { isolation: isolate; }
html.marker .circled svg { z-index: -1; left: -0.08em; top: 22%; width: calc(100% + 0.16em); height: 70%; }
html.marker .circled path {
  stroke: var(--marker); stroke-width: 0.62em; stroke-linecap: butt; stroke-linejoin: round; opacity: 0.92;
}
/* Over the hero film the words stay white: the marker runs underneath them as a yellow underline. */
html.marker .open__title .circled svg { top: 76%; height: 34%; }
html.marker .open__title .circled path { stroke-width: 0.17em; opacity: 1; }
html.marker.js .circled.is-ready path { transition-duration: 0.7s; transition-timing-function: cubic-bezier(0.45, 0, 0.2, 1); }

/* ==========================================================================
   WILDCARD: the offer as a real letterpress card, plus the call sheet
   ========================================================================== */
.wild { margin-top: var(--space); }
/* Phone: title, card, copy, contact. Desktop: title and copy left, the card right, contact in one row below. */
.wild { display: grid; grid-template-areas: "title" "stage" "copy" "contact"; }
.wild__title { grid-area: title; }
.wild__stage { grid-area: stage; display: grid; justify-items: center; margin-top: clamp(28px, 4vw, 56px); }
.wild__copy { grid-area: copy; margin-top: 32px; }
/* Floor and ceiling on both sides of 768px, so the text never drops to 13px or swells to 38px. */
.wild__text { font-size: var(--fs-lead); line-height: 1.34; letter-spacing: -0.015em; }
.wild__coffee { margin-top: 18px; font-size: var(--fs-body); line-height: 1.5; max-width: 44ch; }
.wild__coffee .ln { display: block; width: fit-content; } /* question on its own line, then the invitation */
.contact {
  grid-area: contact; margin-top: clamp(40px, 5vw, 80px); padding-top: 18px; border-top: 1px solid var(--hair);
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 16px;
}
.contact dt, .contact__label { font-size: var(--fs-meta); color: var(--grey); }
.contact dd, .contact__value { margin-top: 4px; font-size: var(--fs-small); }
.contact a { text-decoration-thickness: 1px; }
/* One button only: full width on phones, a firm button (not a bar) on desktop. */
@media (min-width: 768px) { .actions--single .btn { flex: 0 0 auto; min-width: min(100%, 300px); } }

/* The card: a photographed letterpress card generated per agency (front-<slug>.jpg) plus a shared back. */
.card { display: block; width: min(56vw, 360px); perspective: 1600px; border-radius: 4%; }
.card__tilt, .card__inner { display: block; position: relative; transform-style: preserve-3d; }
.card__inner { transition: transform 0.9s cubic-bezier(0.2, 0.75, 0.2, 1); }
.card.is-flipped .card__inner { transform: rotateY(180deg); }
.card__face { display: block; position: relative; -webkit-backface-visibility: hidden; backface-visibility: hidden; }
.card__face--back { position: absolute; inset: 0; transform: rotateY(180deg); }
.card__face img { width: 100%; height: auto; }
.card:focus-visible { outline-offset: 6px; }

/* ==========================================================================
   FILMS: every still visible at once (2 columns on phones, 3 on desktop), then the way to all films
   ========================================================================== */
.films { margin-top: var(--space); }
.films .section-title { margin-bottom: 28px; }
.films__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 8px; }
.film__btn { width: 100%; display: block; text-align: left; }
.film__thumb { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--paper-2); }
.film__thumb img, .film__thumb video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.film__thumb img { transition: transform 0.8s var(--ease-out); }
.film__thumb video { opacity: 0; transition: opacity 0.3s; }
.film__btn.is-playing .film__thumb video { opacity: 1; }
.film__title { display: block; margin-top: 10px; font-size: var(--fs-body); font-weight: 500; line-height: 1.3; letter-spacing: -0.01em; }
.film__client { display: block; margin-top: 2px; font-size: var(--fs-meta); color: var(--grey); }
@media (hover: hover) and (pointer: fine) {
  .film__btn:hover .film__thumb img { transform: scale(1.03); }
}
/* "Alle Filme": a big, full-width line, the fastest way to more of our work. */
.films__all {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  margin-top: clamp(32px, 4vw, 72px); padding: 18px 0;
  border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink);
  font-size: var(--fs-lead); font-weight: 700; line-height: 1.1; letter-spacing: -0.02em;
  text-decoration: none;
}
.films__all svg { flex: none; width: 0.8em; height: 0.8em; fill: none; stroke: currentColor; stroke-width: 2.2; transition: transform 0.35s var(--ease-out); }
.films__all:hover svg { transform: translate(0.12em, -0.12em); }
.films__warm { margin-top: 24px; max-width: 46ch; }
.films__clients { margin-top: 18px; max-width: 56ch; font-size: var(--fs-small); color: var(--grey); }
.films__clients span { color: var(--ink); }

/* ==========================================================================
   WHY: claim, one line of manifesto, three facts
   ========================================================================== */
.why { margin-top: var(--space); }
.why__lede { margin: 20px 0 36px; max-width: 52ch; }
.rows--wide .rows__row { grid-template-columns: minmax(0, 1fr); gap: 6px; padding: 18px 0 20px; }
.rows--wide dt { font-size: var(--fs-body); color: var(--ink); font-weight: 500; letter-spacing: -0.01em; padding: 0; }
.rows--wide dd { font-size: var(--fs-body); max-width: 56ch; }

/* ==========================================================================
   O-TON
   ========================================================================== */
.oton { margin-top: var(--space); }
.oton .section-title { margin-bottom: 28px; }
.oton__list { display: grid; gap: 40px; }
.oton__item { display: flex; flex-direction: column; border-top: 1px solid var(--hair); padding-top: 18px; }
.oton__quote { flex: 1 1 auto; font-size: var(--fs-body); line-height: 1.45; letter-spacing: -0.005em; }
.oton__who { display: flex; align-items: center; gap: 12px; margin-top: auto; padding-top: 22px; }
.oton__photo { width: clamp(48px, 3.4vw, 72px); height: clamp(48px, 3.4vw, 72px); object-fit: cover; background: var(--paper-2); flex: none; }
.oton__name { display: block; font-size: var(--fs-small); font-weight: 500; }
.oton__role { display: block; font-size: var(--fs-meta); color: var(--grey); }
.oton__credits { margin-top: 28px; font-size: var(--fs-meta); color: var(--grey); }

/* ==========================================================================
   CREW + AM SET
   ========================================================================== */
.crew { margin-top: var(--space); }
.crew__head { margin-bottom: 28px; }
.crew__lede { margin-top: 12px; max-width: 52ch; }
.crew__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px 10px; }
.person__media { position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden; background: var(--paper-2); }
.person__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* Hover: an obviously AI "version" of the portrait glitches in (crew.js), no caption. */
.person__ki { opacity: 0; transition: opacity 0.15s; }
.person.is-ki .person__ki { opacity: 1; animation: glitch-in 0.34s steps(1, end); }

.person { cursor: default; }
@keyframes glitch-in {
  0%   { clip-path: inset(12% 0 68% 0); transform: translateX(-7%); }
  18%  { clip-path: inset(58% 0 18% 0); transform: translateX(6%); }
  36%  { clip-path: inset(28% 0 44% 0); transform: translateX(-4%); }
  54%  { clip-path: inset(0 0 62% 0);   transform: translateX(3%); }
  72%  { clip-path: inset(42% 0 0 0);   transform: translateX(-2%); }
  90%  { clip-path: inset(0);           transform: translateX(1%); }
  100% { clip-path: inset(0);           transform: none; }
}
.person__name { margin-top: 10px; font-size: var(--fs-small); font-weight: 500; line-height: 1.3; }
.person__role { margin-top: 2px; font-size: var(--fs-meta); color: var(--grey); line-height: 1.35; }

.set { margin-top: var(--space); }
.set__head { margin-bottom: 28px; }
.set__lede { margin-top: 12px; max-width: 64ch; }
/* Portrait tiles take one column, landscape pictures two; every tile in a row has the same height
   (4:5 of one column), so a landscape picture sits in place of two portrait clips. */
.bts__grid {
  --cols: 2; --gx: 8px;
  --tile-h: calc((100cqw - (var(--cols) - 1) * var(--gx)) / var(--cols) * 1.25);
  container-type: inline-size;
  display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); grid-auto-flow: row dense;
  gap: 24px var(--gx); align-items: start;
}
.bts__item--l { grid-column: span 2; }
.bts__media { position: relative; margin: 0; }
.bts__media img, .bts__media video {
  width: 100%; height: var(--tile-h); object-fit: cover; background: var(--paper-2);
}
.bts__foot { display: flex; justify-content: center; margin-top: clamp(24px, 3vw, 48px); }
.bts__more { flex: none; min-width: min(100%, 320px); }
.bts__media video { position: absolute; top: 0; left: 0; height: 100%; opacity: 0; transition: opacity 0.3s; }
.bts__item.is-playing video { opacity: 1; }
.bts__cap { margin-top: 8px; font-size: var(--fs-meta); color: var(--grey); line-height: 1.35; }

/* ==========================================================================
   CLOSE + FOOTER + ACTION BAR
   ========================================================================== */
/* Closing: "Sprechen wir über euren nächsten Film." in the we-voice, one button, the slate for
   that next film, and one contact line with Janic (photo, phone, e-mail). */
.close {
  position: relative; margin-top: var(--space);
  padding: clamp(56px, 7vw, 140px) 0 clamp(40px, 4.5vw, 90px);
  color: var(--paper); overflow: hidden;
  background: radial-gradient(120% 90% at 70% 40%, #1a1a18 0%, var(--night) 60%, #050505 100%);
}
.close__inner { display: grid; grid-template-areas: "content" "slate" "contact"; row-gap: clamp(32px, 4vw, 64px); }
/* The slate's drop shadow (a filter) would paint over the text next to it. */
.close__content { grid-area: content; position: relative; z-index: 1; }
.close__lede { margin-top: 18px; max-width: 40ch; font-size: var(--fs-body); line-height: 1.5; color: rgba(251, 251, 250, 0.78); }
.close .actions { margin-top: clamp(24px, 2.4vw, 44px); }
.close__slate { grid-area: slate; margin: 0; display: grid; place-items: center; }
.close__slate .slate { width: min(100%, 460px); }
.contact--close { margin-top: 0; border-top-color: rgba(251, 251, 250, 0.2); }
.contact--close .contact__label { color: rgba(251, 251, 250, 0.6); }
.contact__person { display: flex; align-items: center; gap: 14px; }
.contact__face { flex: none; width: clamp(44px, 3.4vw, 72px); aspect-ratio: 1; height: auto; object-fit: cover; background: #222; }
.contact__name { display: block; font-size: var(--fs-small); font-weight: 500; }
.contact__org { display: block; margin-top: 2px; font-size: var(--fs-meta); color: rgba(251, 251, 250, 0.6); }
/* The page ends here (no footer). Phone: Janic with our logo opposite, phone and e-mail below.
   Desktop: Janic left, logo in the middle, phone and e-mail right. */
.contact__pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 16px; grid-column: 1 / -1; }
.contact__logo { justify-self: end; align-self: center; }
.contact__logo img { width: auto; height: clamp(20px, 1.5vw, 30px); }
.btn--light { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.btn--light:hover { background: #fff; border-color: #fff; }
.btn--light-line { color: var(--paper); border-color: var(--paper); background: rgba(11, 11, 10, 0.5); }
.btn--light-line:hover { background: var(--paper); color: var(--ink); }
.close :focus-visible { outline-color: var(--paper); }


.bar { display: none; }
@media (max-width: 767px) {
  .js .bar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    display: grid; grid-template-columns: 1fr;
    padding-bottom: env(safe-area-inset-bottom);
    background: var(--ink); color: var(--paper);
    transform: translateY(100%); transition: transform 0.45s var(--ease-out);
  }
  .js .bar.is-on { transform: none; }
  .bar a {
    display: flex; align-items: center; justify-content: center;
    min-height: var(--bar-h);
    font-size: var(--fs-body); font-weight: 500; text-decoration: none;
  }
  .bar a:focus-visible { outline-color: var(--paper); outline-offset: -6px; }
  .js .close { padding-bottom: calc(clamp(40px, 4.5vw, 90px) + env(safe-area-inset-bottom)); } /* the bar steps aside here */
}

/* ==========================================================================
   LIGHTBOX
   ========================================================================== */
.lightbox { position: fixed; inset: 0; z-index: 260; display: grid; place-items: center; padding: var(--gutter); }
.lightbox[hidden] { display: none; }
.lightbox__backdrop { position: absolute; inset: 0; background: rgba(11, 11, 10, 0.94); }
.lightbox__inner { position: relative; width: min(100%, 1280px, calc((100svh - 140px) * 16 / 9)); color: var(--paper); }
.lightbox__player { aspect-ratio: 16 / 9; background: #000; }
.lightbox__player iframe { width: 100%; height: 100%; border: 0; }
.lightbox__meta { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 14px; font-size: var(--fs-small); }
.lightbox__close { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; }
.lightbox__close svg { width: 14px; height: 14px; stroke: currentColor; stroke-width: 1.5; fill: none; }
.lightbox :focus-visible { outline-color: var(--paper); }

/* ==========================================================================
   DESKTOP
   ========================================================================== */
@media (min-width: 768px) {
  .top { padding-top: 28px; }
  .hero { padding-inline: var(--gutter); }
  .hero__media { aspect-ratio: 2.1 / 1; }
  .hero__cap { padding-inline: 0; }
  .open--over .hero { padding: 0; }
  .open--over .hero__media { aspect-ratio: auto; }
  .open--over > .wrap { padding-bottom: 64px; }
  .open--over .hero__cap { bottom: 22px; padding-inline: var(--gutter); }
  /* Copy on the left at its natural width, the card in the space to its right.
     The card is exactly as tall as the copy: its face starts at the cap height of the title and
     ends at the last line, at every window width (sized from the stage height, cqh). */
  .wild {
    margin-top: calc(var(--space) * 0.8);
    grid-template-columns: max-content minmax(0, 1fr); column-gap: 4vw;
    grid-template-areas: "title stage" "copy stage" "contact contact"; grid-template-rows: auto auto auto;
    align-items: start;
  }
  .wild__title { white-space: nowrap; } /* one line */
  /* The copy breaks where Janic set it: after "auf einen" and after "vorhabt." */
  .wild__text .ln { display: block; white-space: nowrap; }
  .wild__copy { margin-top: 2.6vw; }
  .wild__copy .actions { margin-top: 2.4vw; }
  .actions--single .btn { min-width: clamp(220px, 20vw, 460px); }
  .wild__coffee { margin-top: 1.6vw; max-width: none; }
  .wild__stage { position: relative; align-self: stretch; margin-top: 0; container-type: size; }
  .wild__stage .card {
    /* Card face inside the photo (measured): top 5.52 %, bottom 8.27 % of the height,
       left 10.56 %, right 8.11 % of the width. Title cap height sits 0.171 em below its line top,
       the last line's baseline 0.29 em above the copy's bottom (DM Sans metrics). */
    --face: calc(100cqh - 0.171 * var(--fs-h2) - 0.29 * var(--fs-body));
    --h: calc(var(--face) / 0.8621);
    --w: calc(var(--h) * 900 / 1269);
    position: absolute; width: var(--w); height: var(--h);
    top: calc(0.171 * var(--fs-h2) - 0.0552 * var(--h));
    left: calc(50% - 0.51225 * var(--w) - 2vw); /* face centred between copy and page edge (half the column gap) */
  }
  .wild__stage .card__tilt, .wild__stage .card__inner, .wild__stage .card__face { height: 100%; }
  .wild__stage .card__face img { height: 100%; }
  .contact { margin-top: 4.5vw; padding-top: 1.4vw; grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .films__list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3vw 1.4vw; } /* two per row: big stills */
  .film__title { margin-top: 12px; }
  .rows__row { grid-template-columns: 9em minmax(0, 1fr); }
  .rows--wide .rows__row { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 40px; }
  .oton__list { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 3vw; }
  .crew__list { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
  .bts__grid { --cols: 4; --gx: 0.9vw; row-gap: 2vw; }
  /* Like the Wildcard: copy at its natural width, the slate centred in the space to its right
     (half the column gap shifted back), so no hole opens up on wide screens. */
  .close__inner { grid-template-columns: max-content minmax(0, 1fr); grid-template-areas: "content slate" "contact contact"; column-gap: 4vw; align-items: center; }
  .close__title .ln { display: block; white-space: nowrap; } /* "Sprechen wir über euren / nächsten Film." */
  .close__slate { justify-self: center; width: 33vw; translate: -2vw 0; }
  .close__slate .slate { width: 100%; }
  .contact--close { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; column-gap: 4vw; }
  .contact__person { grid-column: auto; }
  .contact__logo { justify-self: center; }
  .contact__pair { grid-column: auto; justify-self: end; grid-template-columns: repeat(2, max-content); column-gap: clamp(32px, 4vw, 96px); }
}

/* ==========================================================================
   MOTION: calm. Pictures and videos fade in with a small rise from below (no sideways wipes).
   Hidden states exist only with .motion (JS on, no reduced-motion).
   ========================================================================== */
.motion .open__title:not(.is-split) { opacity: 0; }
.motion .hero__media:not(.is-in) { opacity: 0; }
.motion-ready [data-cut]:not(.is-in) { opacity: 0; transform: translateY(24px); }
.motion .hero__media { transform: none !important; }
.motion [data-cut] {
  transition: opacity 0.9s cubic-bezier(0.25, 0.6, 0.3, 1) var(--d, 0s), transform 0.9s var(--ease-out) var(--d, 0s);
}
.motion [data-cut].is-in { opacity: 1; transform: none; }
/* Failsafe: if the scripts never start, show everything after a moment. */
.motion:not(.motion-ready) .open__title,
.motion:not(.motion-ready) .hero__media { animation: failsafe 0.01s 2.5s forwards; }
@keyframes failsafe { to { opacity: 1; transform: none; } }
.line { padding-bottom: 0.08em; margin-bottom: -0.08em; }

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