/* Hallmark · shape: Nachtband (light open over a giant wordmark, a night band for who and how, the work as prints on a table, contact on the page, a yellow close) · genre: editorial · theme: custom · job: hire · idea: "cream opens on the name set wall to wall, the night band says who builds, and how in five steps beside a numeral that rolls like a counter, the work lands on the table print by print, and the page closes in butter yellow where your project starts" · vibe: "warm, exact, after hours, moving under the thumb"
 * paper: oklch(97.8% 0.012 95) on a 24px dot grid · night: oklch(16% 0.008 90) · accent: oklch(88% 0.12 96) butter, oklch(47% 0.06 95) olive for type · display: Clash Grotesk · body: Switzer · hero: meta row with status and place, two-tone head, disc actions, "DK LABS" across the foot between rules, the DK Labs logo sampled in dots on the right, grey dots the cursor marks yellow · nav: floating pill · footer: yellow field with the close and the mast · imagery: the product, screenshots 4 (weltstunde.de, vocabrary.app) as prints on the table, the phone as a small print beside, a portrait slot · signature: the projects thrown onto the dotted table one by one as you scroll, each print swinging in and settling askew on the last, taped, its name on the paper
 * axes: light-night/grotesk-sans/chromatic-butter · posture: committed (two-tone heads, the second line in olive; night band between cream and butter) · contrast: pass · fold: pass · v2.0.0 */
/* Hallmark · pre-emit critique: P4 H4 E4 S4 R4 V5 · weakest: S, the user asked for a page in the manner of a reference; kept it this studio's by its own projects, its own prints-on-the-table code and a butter story from cream through night to the yellow close */
/* Hallmark · hero-review: not rerun, the v4 hero is the reference layout the user specified element by element (status, place, time, CTAs, wordmark, hover mark) · finish-review: subagent, fix · 7 findings · 5 resolved (statement tone as its own line, echoes cut and the fixed-price tile swapped for websites-and-apps, studio head rewritten, fallback slot spans its row, ring dissolve toward the accent, since replaced by the iMac), 2 declined (the bento of icon tiles and the two-tone tile heads are the reference layout the user asked for by name) */
/* Hallmark · waive 38iii · every head is a statement and its answer, the answer always a whole second line set display:block, never one coloured word · the two-tone head is the reference voice the user asked for by name (miscstudio.nl), carried in olive and butter */
/* Hallmark · dismissed F4 · .btn--light is the same primary action inverted for the yellow field, never a second primary on the cream page */
/* Hallmark · dismissed F20 · the third card is the open slot, set across the full row on purpose so it reads as the invitation, not a third project */
/* Hallmark · dismissed F18 · the hallmarkSlots script lives in site.js with the page's other behaviours */
/* Hallmark · dismissed 40 · the studio statement, the Ablauf head and steps sit on the night band (oklch 16%), checked in Chrome at 1280, 1440 and 1920; the lint's full-page capture stretches the svh hero and misreads the pixels behind */
/* Hallmark · dismissed 23 · .roll__rail i::after fills a 4px progress bar under the steps, not a viewport-scale field */
/* Hallmark · dismissed 44d · in Chrome at 1920x1080 the hero ends at 1080; its min-height is in svh, which the full-page capture stretches */
/* Hallmark · waive 39b · the hero's disc buttons carry a caption under the label (Kostenloses Erstgespräch), 56px is the label, caption and disc · the reference button the user asked for by name */
/* Hallmark · dismissed 58 · the window counted is the FAQ with every answer, but the answers sit in closed <details>; on screen it is the questions only, about 40 words */
@import url("./tokens.css");
@import url("./base.css");

:root { --nav-top: var(--space-md); --nav-h: 60px; --nav-scroll-padding: calc(var(--nav-h) + var(--space-xl)); }
html { scroll-padding-top: var(--nav-scroll-padding); }
/* the page is a sheet of fine dots, as on a cutting mat; dark and yellow bands cover it */
body {
  background: radial-gradient(circle, var(--color-grain) 1px, transparent 1.6px) 0 0 / 24px 24px, var(--color-paper);
  color: var(--color-ink);
}
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: clip; }
/* the statement: a marker runs over it as it scrolls, marked words go dark on yellow */
.is-sweeping .sweep__w {
  color: var(--color-night-muted);
  background-image: linear-gradient(var(--color-accent), var(--color-accent)); background-repeat: no-repeat;
  background-position: 0 55%; background-size: calc(var(--on, 0) * 100%) 100%;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.is-sweeping .sweep__w.is-on { color: var(--color-ink); }

/* ---------- type ---------- */
h1, h2, h3 { font-family: var(--font-display); font-weight: var(--display-weight); letter-spacing: var(--tracking-display); }
h1 { font-size: clamp(3.25rem, 8.2vw, 8.25rem); line-height: 0.98; max-width: 13ch; }
h2 { font-size: clamp(2.25rem, 4.2vw, 4rem); line-height: 1.02; max-width: 18ch; }
h3 { letter-spacing: -0.02em; }
/* the answer line of a head: same ink, a highlighter stroke under it, drawn once as it comes into view */
.tone { display: block; --marker: var(--color-accent); }
.tone__mk {
  background-image: linear-gradient(var(--marker), var(--marker)); background-repeat: no-repeat;
  background-position: 0 88%; background-size: 100% 0.46em; padding-inline: 0.06em; margin-inline: -0.06em;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
  transition: background-size 1.1s var(--ease-in-out) 0.2s;
}
.has-marker .tone:not(.is-marked) .tone__mk { background-size: 0% 0.46em; }
.lead { font-size: var(--text-lead); line-height: 1.45; color: var(--color-ink-2); max-width: 38ch; }

/* ---------- controls ---------- */
/* every button is a key: a flat face, an ink edge and a hard shadow it sinks into when pressed */
.btn {
  --base: var(--color-paper); --copy: var(--color-ink); --edge: var(--color-ink); --drop: var(--key-drop);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: var(--space-sm);
  min-height: 52px; padding: 0 var(--space-lg);
  border: var(--key-edge) solid var(--edge); border-radius: var(--radius-key);
  background: var(--base); color: var(--copy); box-shadow: var(--drop) var(--drop) 0 var(--edge);
  font: 500 var(--text-md)/1 var(--font-body); white-space: nowrap; text-decoration: none; cursor: pointer;
  transition: transform var(--dur-micro) var(--ease-out), box-shadow var(--dur-micro) var(--ease-out), background-color var(--dur-short) var(--ease-out);
}
.btn:hover { transform: translate(calc(var(--drop) / 2), calc(var(--drop) / 2)); box-shadow: calc(var(--drop) / 2) calc(var(--drop) / 2) 0 var(--edge); }
.btn:active { transform: translate(var(--drop), var(--drop)); box-shadow: 0 0 0 var(--edge); }
.btn:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 5px; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; transform: none; box-shadow: var(--drop) var(--drop) 0 var(--edge); }
.btn[aria-busy="true"] { cursor: progress; }
.btn--primary { --base: var(--color-accent); --copy: var(--color-accent-ink); }
.btn--quiet { --base: var(--color-paper); }
.btn--sm { --drop: 3px; min-height: 44px; padding: 0 var(--space-md); font-size: var(--text-sm); border-radius: var(--radius-key-sm); }
.actions { display: flex; flex-wrap: wrap; gap: var(--space-md); }

/* a key with a caption under its label and an arrow at its end */
.btn--disc { justify-content: flex-start; min-height: 56px; padding: 0 var(--space-md) 0 var(--space-lg); }
.btn__copy { display: grid; gap: var(--space-3xs); text-align: left; white-space: nowrap; }
.btn__label { line-height: 1.1; }
.btn__caption { font-size: var(--text-xs); font-weight: 400; line-height: 1.2; opacity: 0.82; }
.btn__fill { display: none; }
.btn__arrow { display: grid; place-items: center; width: 20px; height: 20px; margin-left: var(--space-sm); transition: transform var(--dur-short) var(--ease-out); }
.btn__arrow svg { width: 16px; height: 16px; }
.btn:hover .btn__arrow { transform: translateX(3px); }

.skip { position: absolute; left: var(--space-md); top: calc(-1 * var(--space-3xl)); z-index: var(--z-toast); padding: var(--space-xs) var(--space-md); background: var(--color-ink); color: var(--color-paper); border-radius: var(--radius-pill); }
.skip:focus-visible { top: var(--space-md); }

/* ---------- nav: a floating pill ---------- */
.nav { position: sticky; top: var(--nav-top); z-index: var(--z-sticky-nav); padding-inline: var(--gutter); margin-top: var(--nav-top); }
.nav__pill {
  display: flex; align-items: center; gap: var(--space-lg);
  max-width: 980px; height: var(--nav-h); margin-inline: auto; padding: 0 var(--space-xs) 0 var(--space-lg);
  background: var(--color-paper); border: var(--rule-hair) solid var(--color-rule); border-radius: var(--radius-pill);
}
.nav__brand { display: grid; place-items: center; flex: none; min-width: 44px; min-height: 44px; margin-inline-end: auto; }
.nav__brand img { display: block; width: auto; height: 40px; }
.nav__brand:focus-visible, .nav__links a:focus-visible, .menu a:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 4px; border-radius: 4px; }
.nav__links { display: flex; gap: var(--space-lg); }
.nav__links a, .menu a { font-size: var(--text-sm); font-weight: 500; color: var(--color-ink-2); text-decoration: none; white-space: nowrap; transition: color var(--dur-short) var(--ease-out); }
.nav__links a:hover, .menu a:hover { color: var(--color-accent-deep); }
.menu-btn {
  display: none; place-items: center; width: 44px; height: 44px; padding: 0;
  border: var(--rule-hair) solid var(--color-rule-2); border-radius: var(--radius-pill);
  background: transparent; color: var(--color-ink); cursor: pointer;
  transition: background-color var(--dur-short) var(--ease-out);
}
.menu-btn:hover { background: var(--color-paper-3); }
.menu-btn:active { transform: translateY(1px); }
.menu-btn:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.menu {
  inset: auto; position: fixed; top: calc(var(--nav-top) + var(--nav-h) + var(--space-xs)); left: var(--gutter); right: var(--gutter);
  margin: 0; padding: var(--space-xs); display: none; flex-direction: column;
  max-height: calc(100dvh - var(--nav-top) - var(--nav-h) - 2 * var(--space-xs));
  overflow-y: auto; overscroll-behavior: contain;
  background: var(--color-paper); color: var(--color-ink);
  border: var(--rule-hair) solid var(--color-rule); border-radius: var(--radius-card);
}
.menu:popover-open { display: flex; }
.menu a { padding: var(--space-sm) var(--space-md); font-size: var(--text-md); }
@media (max-width: 52rem) {
  .nav__links { display: none; }
  .menu-btn { display: inline-grid; }
  .nav__pill { gap: var(--space-xs); }
}

/* ---------- hero: the offer at the foot, the mark in yellow dots, the wordmark across ---------- */
.hero { position: relative; min-height: calc(100svh - var(--nav-h) - var(--nav-top)); display: flex; flex-direction: column; overflow: clip; }
.hero__grid { position: relative; z-index: 1; flex: 1; display: grid; align-content: end; gap: var(--space-lg); padding-block: var(--space-2xl) var(--space-lg); }
.hero__mark {
  position: absolute; inset-block-start: var(--space-lg); inset-inline-end: var(--gutter);
  width: min(32%, 390px, 45svh); aspect-ratio: 153 / 139;
}
.hero__mark img { width: 100%; }
.hero__mark.is-dotted img { visibility: hidden; }
.hero__mark.is-dotted::before {
  content: ""; position: absolute; inset: 0.65% 3.92% 4.32% 0.65%;
  --mark-shadow: clamp(4px, 0.65vw, 8px);
  border: var(--key-edge) solid var(--color-ink); border-radius: 10%;
  background: color-mix(in oklab, var(--color-accent) 52%, var(--color-paper));
  box-shadow: var(--mark-shadow) var(--mark-shadow) 0 var(--color-ink);
  transition: background-color var(--dur-short) var(--ease-out);
}
.hero__mark.is-dotted:hover::before { background: color-mix(in oklab, var(--color-accent) 72%, var(--color-paper)); }
.hero__mark canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
@media (width < 48rem) { .hero__mark { display: none; } }
.hero__meta { display: flex; flex-wrap: wrap; gap: var(--space-xs) var(--space-lg); font-size: var(--text-sm); color: var(--color-muted); }
.status { display: inline-flex; align-items: center; gap: var(--space-xs); color: var(--color-ink-2); }
.status::before {
  content: ""; flex: 0 0 8px; height: 8px; border-radius: var(--radius-pill); background: var(--color-live);
  animation: breathe 3.6s ease-in-out infinite;
}
@keyframes breathe {
  0%, 100% { box-shadow: 0 0 0 0 color-mix(in oklab, var(--color-live) 55%, transparent); }
  50% { box-shadow: 0 0 0 6px color-mix(in oklab, var(--color-live) 0%, transparent); }
}
.hero__title { font-size: clamp(1.875rem, min(1.2rem + 1.8vw, 4.8svh), 3.25rem); line-height: 1.04; letter-spacing: -0.03em; max-width: 21ch; }
.hero__title .tone { display: inline; }

.wordmark {
  position: relative; z-index: 1; padding-bottom: var(--space-md); margin-right: auto;
  font-family: var(--font-display); font-size: var(--text-lg); font-weight: 600; letter-spacing: -0.03em;
  color: var(--color-ink); text-decoration: none; white-space: nowrap;
}
.wordmark hr { margin: 0; border: 0; border-top: var(--rule-hair) solid var(--color-rule); }
.wordmark__inner { display: grid; overflow: clip; padding-block: var(--space-sm); }
.wordmark__word {
  grid-area: 1 / 1; display: flex; justify-content: space-between; min-inline-size: 0;
  font-family: var(--font-display); font-weight: 600; font-size: min(17.5vw, calc(var(--container) * 0.175)); line-height: 0.74; letter-spacing: -0.04em;
  white-space: nowrap; padding-top: 0.05em; padding-inline-end: 0.04em; color: var(--color-ink);
}
.wordmark__word span { display: inline-block; position: relative; z-index: 1; }
/* a marker bar runs behind the name as the hero scrolls away */
.wordmark__word { position: relative; isolation: isolate; }
.wordmark__word::before {
  content: ""; position: absolute; z-index: 0; left: 0; right: 0; top: 46%; height: 30%;
  background: var(--color-accent); border-radius: 4px; transform-origin: 0 50%; transform: scaleX(var(--bar, 1));
}
@media (prefers-reduced-motion: no-preference) {
  .wordmark__word span { animation: rise 1.5s var(--ease-out) both; animation-delay: calc(200ms + var(--i, 0) * 70ms); }
  @keyframes rise { from { translate: 0 150%; } }
}

/* ---------- sections, shared ---------- */
.section { padding-block: var(--section-gap); }
.head { display: grid; gap: var(--space-md); margin-bottom: var(--space-2xl); }

/* ---------- the night band ---------- */
.night { position: relative; isolation: isolate; color: var(--color-night-ink); }
.night::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--color-night); border-radius: 32px;
}
.night .tone { color: var(--color-accent-light); }
.night .tone__mk { background-image: none; padding-inline: 0; margin-inline: 0; }
.night .lead { color: var(--color-night-muted); }
.night :focus-visible { outline-color: var(--color-accent-light); }

/* Studio */
.studio { padding-block: var(--section-gap-s); }
.studio__statement {
  max-width: 30ch; font-family: var(--font-display); font-size: clamp(1.75rem, 3.1vw, 3rem); line-height: 1.12; letter-spacing: -0.025em; font-weight: 500;
  color: var(--color-night-ink); margin-bottom: var(--space-3xl);
}
.studio__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--space-md); }
.card {
  grid-column: span 3; min-width: 0; display: grid; align-content: space-between; gap: var(--space-2xl);
  padding: var(--space-xl); border-radius: var(--radius-card);
  background: var(--color-night-2); color: var(--color-night-ink); border: var(--rule-hair) solid var(--color-night-rule);
}
.card h3 { font-size: var(--text-xl); line-height: 1.15; color: var(--color-night-ink); }
.card h3 .tone { color: var(--color-night-muted); }
.card__icon { color: var(--color-accent-light); }
.card--me {
  grid-column: span 6; grid-row: span 2; align-content: space-between;
  background: var(--color-night-3); color: var(--color-night-ink); border-color: var(--color-night-3);
}
.me__text { display: grid; gap: var(--space-md); }
.card--me h2 { font-size: clamp(2rem, 3.4vw, 3.25rem); color: var(--color-night-ink); max-width: 14ch; }
.card--me p { color: var(--color-night-muted); max-width: 46ch; font-size: var(--text-lead); line-height: 1.45; }
.me__photo { width: 128px; height: 128px; border-radius: var(--radius-pill); display: grid; place-items: center; background: var(--color-accent); }
.me__photo--sm { width: 72px; height: 72px; }
.me__initials { font-family: var(--font-display); font-weight: 600; font-size: var(--text-lg); letter-spacing: -0.02em; color: var(--color-accent-ink); }

/* ---------- Ablauf: one big numeral rolls from 1 to 5 ---------- */
.roll { padding-block: var(--section-gap-s) var(--section-gap-l); }
.roll__stage { display: grid; gap: var(--space-2xl); }
.roll__stage h2 { max-width: 24ch; }
.roll__body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-2xl); align-items: center; }
.roll__num, .roll__rail { display: none; }
.roll__side { grid-column: 1 / -1; }
.roll__steps { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-xl); }
.roll__step { display: grid; gap: var(--space-sm); padding-top: var(--space-lg); border-top: var(--rule-hair) solid var(--color-night-rule); }
.roll__of { font-size: var(--text-sm); font-weight: 500; font-variant-numeric: tabular-nums; color: var(--color-night-muted); }
.roll__step h3 {
  justify-self: start; font-size: clamp(3rem, 6vw, 5.5rem); line-height: 0.95; letter-spacing: -0.045em; color: var(--color-night-ink); overflow-wrap: break-word; min-width: 0;
  background: linear-gradient(var(--color-accent), var(--color-accent)) 0 100% / 100% 0.12em no-repeat; padding-bottom: 0.08em;
}
.roll__text { font-size: clamp(1.15rem, 1.6vw, 1.4rem); line-height: 1.45; color: var(--color-night-muted); max-width: 30ch; }

/* with scripting: a sticky stage, the numeral as a counter, one step at a time beside it */
.roll.is-run { padding-block: 0; height: var(--roll-h, 450vh); scroll-margin-top: calc(-1 * var(--nav-scroll-padding)); }
.roll.is-run .roll__stage {
  position: sticky; top: 0; height: 100dvh; grid-template-rows: auto minmax(0, 1fr); gap: var(--space-lg);
  padding-block: calc(var(--nav-top) * 2 + var(--nav-h) + var(--space-lg)) var(--space-xl); overflow: hidden;
}
.roll.is-run .roll__side { grid-column: auto; display: grid; gap: var(--space-lg); }
.roll.is-run .roll__num {
  display: block; height: 1em; overflow: hidden; font-family: var(--font-display); font-weight: 600; font-size: min(52dvh, 30vw);
  line-height: 1; letter-spacing: -0.06em; color: var(--color-accent);
}
.roll__col { will-change: transform; }
.roll__col span { display: block; height: 1em; }
.roll.is-run .roll__steps { gap: 0; }
.roll.is-run .roll__step {
  grid-area: 1 / 1; padding: 0; border: 0; opacity: 0; transform: translateY(var(--space-md));
  transition: opacity var(--dur-long) var(--ease-out), transform var(--dur-long) var(--ease-out);
}
.roll.is-run .roll__step.is-current { opacity: 1; transform: none; }
.roll.is-run .roll__step h3 { background-size: 0% 0.12em; transition: background-size 700ms var(--ease-out); }
.roll.is-run .roll__step.is-current h3 { background-size: 100% 0.12em; transition-delay: 150ms; }
.roll.is-run .roll__rail { display: flex; gap: var(--space-xs); }
.roll__rail i { position: relative; flex: 1; height: 4px; border-radius: 4px; overflow: hidden; background: var(--color-night-rule); }
.roll__rail i::after { content: ""; position: absolute; inset: 0; background: var(--color-accent); transform-origin: 0 50%; transform: scaleX(var(--f, 0)); }
@media (height < 36rem) {
  .roll { scroll-margin-top: calc(-1 * var(--section-gap-s)); }
  .roll__stage { gap: var(--space-lg); }
  .roll__step { padding-top: var(--space-md); }
}

/* ---------- Arbeiten: the projects pass across an iMac like desktops on a Mac ---------- */
.work {
  --work-stage-top: var(--nav-scroll-padding);
  --work-padding: max(var(--section-gap), var(--work-stage-top));
  position: relative; padding-block: var(--work-padding) var(--section-gap-s);
  /* Fragment links land where the stage meets the navigation. */
  scroll-margin-top: calc(var(--work-stage-top) - var(--nav-scroll-padding) - var(--work-padding));
}
.work__stage { display: grid; gap: var(--space-xl); }
.work__head { display: flex; justify-content: space-between; align-items: end; gap: var(--space-lg); }
.work__head h2 { font-size: clamp(2rem, 3.6vw, 3.5rem); overflow-wrap: break-word; min-width: 0; }
.work__count { font-size: var(--text-sm); font-weight: 500; font-variant-numeric: tabular-nums; color: var(--color-muted); white-space: nowrap; }
.work__desk, .work__bar, .work__count { display: none; }
.work__cursor {
  position: fixed; top: 0; left: 0; z-index: var(--z-dropdown);
  display: grid; align-content: center; justify-items: center; gap: var(--space-2xs);
  width: 78px; height: 78px; border: var(--key-edge) solid var(--color-accent-ink); border-radius: 50%;
  background: var(--color-accent); color: var(--color-accent-ink); pointer-events: none;
  font: 500 var(--text-sm)/1 var(--font-body);
  translate: -50% -50%;
}
.work__cursor span { max-width: 62px; text-align: center; }
@media (hover: hover) and (pointer: fine) {
  .work .is-project-hovered { cursor: none; }
}
/* the grid: without scripting, and the source of the spaces */
.work-grid {
  list-style: none; margin: var(--space-3xl) auto 0; padding: 0 var(--gutter); max-width: var(--container);
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-2xl) var(--gap-columns);
}
.work-card { display: grid; gap: var(--space-lg); color: inherit; text-decoration: none; border-radius: var(--radius-card); }
.work-card:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 6px; }
.case__media {
  position: relative; display: block; aspect-ratio: 16 / 10.5; border-radius: var(--radius-card); overflow: hidden;
  background: var(--color-paper-3);
}
.case__media > .case__desk {
  position: absolute; inset: auto; left: 6%; top: 8%; width: 80%; height: auto; object-fit: initial; border-radius: var(--radius-inner);
  outline: var(--rule-hair) solid var(--color-rule); outline-offset: -1px;
  transition: transform var(--dur-long) var(--ease-out);
}
.case__media > .case__phone {
  position: absolute; inset: auto; right: 5%; bottom: -14%; width: 21%; height: auto; object-fit: initial; z-index: 2; border-radius: var(--radius-inner);
  outline: var(--rule-hair) solid var(--color-rule-2); outline-offset: -1px;
  transition: transform var(--dur-long) var(--ease-out);
}
.work-card:hover .case__phone { transform: translateY(-4%); }
.work-card__meta { display: grid; gap: var(--space-2xs); }
.work-card__title { font-family: var(--font-display); font-size: var(--text-2xl); font-weight: 500; letter-spacing: -0.02em; line-height: 1.1; }
.work-card__tag { color: var(--color-muted); }
.work-card__action { justify-self: start; margin-top: var(--space-xs); }
.work-card--slot { grid-column: 1 / -1; }
.work-card__next {
  display: flex; align-items: center; gap: var(--space-lg); padding: var(--space-2xl) var(--space-xl);
  border-radius: var(--radius-card); background: var(--color-paper-3);
  transition: background-color var(--dur-short) var(--ease-out);
}
.work-card--slot:hover .work-card__next { background: var(--color-blush); }
.work-card__plus { flex: 0 0 56px; height: 56px; border-radius: var(--radius-pill); background: var(--color-accent); position: relative; }
.work-card__plus::before, .work-card__plus::after { content: ""; position: absolute; left: 50%; top: 50%; width: 20px; height: 2px; background: var(--color-accent-ink); border-radius: 2px; transform: translate(-50%, -50%); }
.work-card__plus::after { transform: translate(-50%, -50%) rotate(90deg); }
.work-card__next-line { font-family: var(--font-display); font-size: var(--text-3xl); line-height: 1.05; letter-spacing: -0.03em; font-weight: 500; }
.work-card__next-line .tone { display: inline; }

/* Pin the prints below the nav when the viewport has room for the full stage. */
@media (min-height: 36rem) {
  .work.is-run {
    --work-stage-top: calc(var(--nav-top) * 2 + var(--nav-h));
    --work-padding: max(var(--section-gap-s), var(--work-stage-top));
    padding-block-end: 0; height: var(--work-h, 340vh);
  }
  .work.is-run .work-grid { display: none; }
  .work.is-run .work__count { display: block; }
  .work.is-run .work__stage {
    position: sticky; top: var(--work-stage-top); height: calc(100dvh - var(--work-stage-top)); grid-template-rows: auto minmax(0, 1fr) auto; gap: var(--space-md);
    padding-block: var(--space-sm) var(--space-lg); overflow: hidden;
  }
  .work.is-run .work__desk { display: grid; place-items: center; min-height: 0; }
  .work.is-run .work__bar { display: flex; align-items: center; justify-content: space-between; gap: var(--space-lg); }
}
@media (height < 36rem) {
  .work { --work-stage-top: calc(var(--nav-top) + var(--nav-h) + var(--space-sm)); }
  .work-grid { margin-top: var(--space-sm); }
  .work-card { gap: var(--space-sm); }
  .work-card__action { margin-top: var(--space-2xs); }
  .case__media { max-height: max(80px, calc(100dvh - 21rem)); }
}
@media (width > 40rem) and (36rem <= height <= 52rem) {
  .work.is-run .work__stage { padding-block: var(--space-xs) var(--space-sm); }
}

/* the table: every project a print with a white border, its name on the paper, a strip of tape on top */
.table { position: relative; width: 100%; height: 100%; container-type: size; --print-width-limit: 80cqw; }
.print {
  /* Size against the space between the header and the bar, with room for the label and tilt. */
  --w: min(840px, var(--print-width-limit), max(0px, calc((100cqh - 40px) * 1.48)));
  position: absolute; left: 50%; top: 50%; width: var(--w); margin-left: calc(var(--w) / -2); translate: 0 -50%;
  padding: var(--space-sm) var(--space-sm) 0; border-radius: 6px; background: var(--color-print);
  box-shadow: 0 2px 3px var(--color-device-shadow-soft), 0 22px 40px var(--color-device-shadow-soft);
  will-change: transform; cursor: pointer;
}
.print__img { aspect-ratio: 16 / 10; overflow: hidden; border-radius: 2px; background: var(--color-paper); }
.print__img img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.print__label { display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-sm); padding: var(--space-sm) var(--space-2xs) var(--space-md); }
.print__name { font-family: var(--font-display); font-size: var(--text-lg); font-weight: 500; letter-spacing: -0.02em; line-height: 1; }
.print__tag { color: var(--color-muted); font-size: var(--text-sm); text-align: right; }
.print__tape { position: absolute; left: 50%; top: calc(var(--space-sm) * -1); width: 120px; height: 30px; margin-left: -60px; background: var(--color-tape); rotate: -3deg; }
.print__phone {
  position: absolute; right: -6%; bottom: 14%; width: 20%; padding: var(--space-xs); border-radius: 18px; background: var(--color-print);
  box-shadow: 0 16px 30px var(--color-device-shadow);
}
.print__phone img { display: block; width: 100%; aspect-ratio: 9 / 19.5; object-fit: cover; object-position: top; border-radius: 12px; }
.print__slot {
  display: grid; place-content: center; justify-items: center; gap: 0.5em; height: 100%; text-align: center;
  font-family: var(--font-display); font-weight: 500; font-size: clamp(1.1rem, 2.4vw, 2.1rem); line-height: 1.1; letter-spacing: -0.03em;
  background: radial-gradient(circle, var(--color-grain) 1px, transparent 1.6px) 0 0 / 18px 18px, var(--color-paper);
}
.print__slot .tone { display: block; }
.print__plus { width: 2em; height: 2em; border-radius: var(--radius-pill); background: var(--color-accent); position: relative; }
.print__plus::before, .print__plus::after { content: ""; position: absolute; left: 50%; top: 50%; width: 40%; height: 2px; background: var(--color-accent-ink); border-radius: 2px; transform: translate(-50%, -50%); }
.print__plus::after { transform: translate(-50%, -50%) rotate(90deg); }

/* the bar: name and kind, the desktops as tabs, the way in */
.work__caption { display: grid; gap: var(--space-3xs); min-width: 0; }
.work__name { font-family: var(--font-display); font-size: var(--text-2xl); font-weight: 500; letter-spacing: -0.02em; line-height: 1.1; }
.work__tag { color: var(--color-muted); }
.work.is-switch .work__caption { animation: caption-in var(--dur-long) var(--ease-out); }
@keyframes caption-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ---------- Preise ---------- */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-md); align-items: stretch; }
.plan {
  display: grid; grid-template-rows: auto auto auto 1fr auto; gap: var(--space-sm);
  padding: var(--space-xl); border-radius: var(--radius-card);
  background: var(--color-paper); border: var(--rule-hair) solid var(--color-rule);
}
.plan--lead { background: var(--color-paper-3); border-color: var(--color-rule-2); }
.plan h3 { font-size: var(--text-2xl); }
.plan__sub { color: var(--color-muted); }
.plan__price { font-family: var(--font-display); font-size: var(--text-2xl); font-weight: 500; letter-spacing: -0.02em; margin-top: var(--space-md); }
.plan__list { list-style: none; margin: var(--space-md) 0 var(--space-lg); padding: 0; border-top: var(--rule-hair) solid var(--color-rule); }
.plan__list li { padding-block: var(--space-sm); border-bottom: var(--rule-hair) solid var(--color-rule); color: var(--color-ink-2); }
.plan .btn { justify-self: start; }
.plans__note { max-width: 72ch; margin-top: var(--space-lg); color: var(--color-muted); font-size: var(--text-sm); }

/* ---------- Fragen ---------- */
.section#fragen { padding-bottom: var(--section-gap-s); }
.faq { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--gap-columns); }
.faq__head { position: sticky; top: calc(var(--nav-top) + var(--nav-h) + var(--space-xl)); align-self: start; }
.faq__head h2 { max-width: 11ch; }
.faq__groups { display: grid; gap: var(--space-2xl); }
.faq__group h3 { font-family: var(--font-body); font-size: var(--text-md); font-weight: 500; letter-spacing: 0; color: var(--color-accent-deep); margin-bottom: var(--space-sm); }
.faq__group details { border-top: var(--rule-hair) solid var(--color-rule); }
.faq__group details:last-child { border-bottom: var(--rule-hair) solid var(--color-rule); }
.faq__group summary {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-lg);
  min-height: 80px; cursor: pointer; list-style: none;
  font-family: var(--font-display); font-size: var(--text-title); font-weight: 500; letter-spacing: -0.015em;
  transition: color var(--dur-short) var(--ease-out);
}
.faq__group summary::-webkit-details-marker { display: none; }
.faq__group summary:hover { color: var(--color-accent-deep); }
.faq__group summary:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 4px; border-radius: 4px; }
.faq__icon { flex-shrink: 0; color: var(--color-accent-deep); transition: transform var(--dur-short) var(--ease-out); }
.faq__group details[open] .faq__icon { transform: rotate(45deg); }
.answer { padding-bottom: var(--space-lg); }
.answer p { color: var(--color-ink-2); font-size: var(--text-lead); line-height: 1.5; max-width: 52ch; }

/* ---------- the yellow close and the mast ---------- */
.field { background: var(--color-field); color: var(--color-field-ink); }
.field .tone { --marker: var(--color-paper); }
.close { padding-block: var(--section-gap) var(--section-gap-s); border-radius: 32px 32px 0 0; }
.close__inner { display: grid; gap: var(--space-xl); justify-items: start; }
.close h2 { font-size: clamp(2.75rem, 6.4vw, 6.25rem); line-height: 0.98; max-width: 16ch; color: var(--color-field-ink); }
/* on the yellow field the keys are paper and the field itself */
.btn--light { --base: var(--color-paper); --copy: var(--color-ink); --edge: var(--color-field-ink); }
.btn--ghost { --base: var(--color-field); --copy: var(--color-field-ink); --edge: var(--color-field-ink); }
.btn--light:focus-visible, .btn--ghost:focus-visible { outline-color: var(--color-field-ink); }

.mast { padding-block: 0 var(--space-xl); background: var(--color-field); color: var(--color-field-ink); }
.mast__mark {
  margin: 0; font-family: var(--font-display); font-size: min(19vw, 17rem); line-height: 0.85; letter-spacing: -0.025em; font-weight: 600;
  color: var(--color-field-ink); white-space: nowrap; overflow-wrap: break-word; min-width: 0;
}
.mast__row {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--space-lg) var(--gap-columns);
  margin-top: var(--space-xl); padding-top: var(--space-lg); border-top: var(--rule-hair) solid var(--color-field-rule);
}
.mast__links { grid-column: 1 / span 6; display: flex; flex-wrap: wrap; gap: var(--space-xs) var(--space-lg); }
.mast__links a { color: var(--color-field-ink); text-decoration: none; transition: color var(--dur-short) var(--ease-out); }
.mast__links a:hover { color: var(--color-field-muted); }
.mast__links a:focus-visible, .mast__legal a:focus-visible { outline: 2px solid var(--color-field-ink); outline-offset: 4px; border-radius: 2px; }
.mast__legal { grid-column: 8 / span 5; display: grid; gap: var(--space-xs); font-size: var(--text-sm); color: var(--color-field-muted); }
.mast__legal a { color: var(--color-field-ink); text-decoration-color: var(--color-field-rule); }

/* ---------- Kontakt page ---------- */
.contact { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-3xl); align-items: start; }
.contact__info { display: grid; gap: var(--space-xl); position: sticky; top: calc(var(--nav-top) + var(--nav-h) + var(--space-xl)); }
.contact-sec { padding-top: var(--section-gap-s); }
.contact__info h2 { max-width: 10ch; }
.contact__me { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: var(--space-lg); }
.contact__facts { display: grid; gap: var(--space-sm); margin: 0; }
.contact__facts div { display: grid; gap: var(--space-3xs); }
.contact__facts dt { font-size: var(--text-sm); color: var(--color-muted); }
.contact__facts dt.status { color: var(--color-ink-2); }
.contact__facts dd { margin: 0; font-weight: 500; }

.enquiry {
  display: grid; gap: var(--space-md); padding: var(--space-xl);
  background: var(--color-paper-2); border: var(--rule-hair) solid var(--color-rule); border-radius: var(--radius-card);
}
.enquiry__pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-md); }
.field-row { position: relative; display: grid; gap: var(--space-xs); }
.field-row label, .services legend { font-size: var(--text-sm); font-weight: 500; color: var(--color-ink-2); }
.opt { font-weight: 400; color: var(--color-muted); }
.field-row input, .field-row select, .field-row textarea {
  width: 100%; min-height: 52px; padding: 0 var(--space-md);
  border: var(--rule-hair) solid var(--color-muted); border-radius: var(--radius-inner);
  background: var(--color-paper); color: var(--color-ink);
  outline: 2px solid transparent; outline-offset: 2px;
  transition: border-color var(--dur-short) var(--ease-out);
}
.field-row select { appearance: none; padding-right: var(--space-2xl); cursor: pointer; }
.select__chev { position: absolute; right: var(--space-md); bottom: 16px; color: var(--color-muted); pointer-events: none; }
.field-row textarea { min-height: 120px; padding: var(--space-sm) var(--space-md); resize: vertical; line-height: 1.5; }
.field-row textarea::placeholder { color: var(--color-muted); }
.field-row :is(input, select, textarea):hover { border-color: var(--color-ink); }
.field-row :is(input, select, textarea):focus-visible { outline-color: var(--color-focus); border-color: var(--color-ink); }
.field-row :is(input, select, textarea):disabled { opacity: 0.55; cursor: not-allowed; }
.field-row [aria-invalid] { border-color: var(--color-error); }
.services { margin: 0; padding: 0; border: 0; min-width: 0; }
.services legend { padding: 0; margin-bottom: var(--space-sm); }
.services__opts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-sm); }
@media (max-width: 90rem) { .services__opts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.service {
  position: relative; display: grid; gap: var(--space-3xs); padding: var(--space-md) var(--space-2xl) var(--space-md) var(--space-md);
  background: var(--color-paper); border: var(--rule-hair) solid var(--color-rule-2); border-radius: var(--radius-inner); cursor: pointer;
  transition: border-color var(--dur-short) var(--ease-out), background-color var(--dur-short) var(--ease-out);
}
.service input { position: absolute; top: var(--space-md); right: var(--space-md); width: 20px; height: 20px; margin: 0; accent-color: var(--color-accent-deep); cursor: pointer; }
.service__title { font-weight: 500; }
.service__text { font-size: var(--text-sm); color: var(--color-muted); }
.service:hover { border-color: var(--color-ink); }
.service:has(input:checked) { background: var(--color-paper-3); border-color: var(--color-accent-deep); }
.service:has(input:focus-visible) { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.service:has(input:disabled) { opacity: 0.55; cursor: not-allowed; }
.enquiry__foot { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-md) var(--space-lg); }
.enquiry__privacy { font-size: var(--text-sm); color: var(--color-muted); }
.enquiry__help { min-height: 1lh; font-size: var(--text-sm); color: var(--color-muted); }
.enquiry__help[data-state="error"] { color: var(--color-error); }
.enquiry__help[data-state="ok"] { color: var(--color-success); }

/* ---------- legal pages ---------- */
.legal-page { background: var(--color-paper); }
.legal, .legal__footer { max-width: calc(44rem + 2 * var(--gutter)); }
.legal { display: grid; gap: var(--space-xl); padding-block: var(--space-2xl); }
.legal h1 { font-size: clamp(1.75rem, 5vw, 3.5rem); max-width: none; }
.legal h2 { font-size: var(--text-title); max-width: none; }
.legal section { display: grid; gap: var(--space-sm); }
.legal address { font-style: normal; }
.legal__draft { padding: var(--space-sm) var(--space-md); background: var(--color-paper-2); border: var(--rule-hair) solid var(--color-rule); border-radius: var(--radius-inner); }
.legal-links { display: flex; flex-wrap: wrap; gap: var(--space-xs) var(--space-lg); }
.legal__footer { padding-bottom: var(--space-xl); }

/* ---------- legal window ---------- */
html:has(.legal-window[open]) { overflow: hidden; }
html.legal-embedded { scroll-padding-top: var(--space-md); overscroll-behavior: contain; }
.legal-embedded :is(.nav, .skip, .legal__footer) { display: none; }
.legal-embedded .legal { gap: var(--space-lg); padding: clamp(16px, 5vw, 36px); }
.legal-embedded .legal h1 {
  justify-self: start; font-size: clamp(1.75rem, 6vw, 2.5rem);
  background: linear-gradient(var(--color-accent), var(--color-accent)) 0 94% / 100% 0.26em no-repeat;
}

.legal-window {
  position: fixed; inset: 0; margin: auto; padding: 0; overflow: hidden;
  width: min(660px, calc(100% - var(--space-xl))); height: min(34rem, calc(100dvh - var(--space-xl)));
  max-width: none; max-height: none; color: var(--color-ink); background: var(--color-paper);
  border: var(--key-edge) solid var(--color-ink); border-radius: var(--radius-key);
  box-shadow: var(--key-drop) var(--key-drop) 0 var(--color-ink);
}
.legal-window[open] { display: grid; grid-template-rows: auto minmax(0, 1fr); }
.legal-window::backdrop { background: oklch(16% 0.008 90 / 0.52); }
.legal-window.is-maximized { width: calc(100% - var(--space-md)); height: calc(100dvh - var(--space-md)); }
.legal-window__bar {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-sm);
  padding: var(--space-3xs) var(--space-md) var(--space-3xs) var(--space-2xs);
  border-bottom: var(--rule-hair) solid var(--color-rule); background: var(--color-paper-2);
}
.legal-window__actions { display: flex; }
.legal-window__action {
  display: grid; place-items: center; width: 44px; height: 44px; padding: 0;
  background: transparent; color: var(--color-ink); border: 0; border-radius: var(--radius-inner); cursor: pointer;
}
.legal-window__action:focus-visible { outline-offset: -2px; }
.legal-window__action > span {
  display: grid; place-items: center; width: 22px; height: 22px;
  border: var(--rule-hair) solid currentColor; border-radius: 50%; background: var(--action-color);
}
.legal-window__action:hover > span { box-shadow: 1px 1px 0 currentColor; transform: translate(-1px, -1px); }
.legal-window__action--close { --action-color: oklch(80% 0.088 33); }
.legal-window__action--minimize { --action-color: var(--color-accent); }
.legal-window__action--maximize { --action-color: oklch(79% 0.085 122); }
.legal-window__action svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.legal-window__brand { color: var(--color-ink-2); font-size: var(--text-xs); font-weight: 600; white-space: nowrap; }
.legal-window__frame { width: 100%; height: 100%; border: 0; }
.legal-window__restore {
  position: fixed; z-index: var(--z-sticky-nav); inset-inline-start: var(--space-md);
  bottom: max(var(--space-md), env(safe-area-inset-bottom)); max-width: calc(100% - var(--space-xl));
}

/* ---------- narrow ---------- */
@media (max-width: 60rem) {
  .studio__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card { grid-column: span 1; }
  .card--me { grid-column: 1 / -1; grid-row: auto; gap: var(--space-xl); }
  .faq, .contact { grid-template-columns: minmax(0, 1fr); gap: var(--space-2xl); }
  .faq__head, .contact__info { position: static; }
  .roll__body { grid-template-columns: minmax(0, 1fr); gap: var(--space-md); align-content: center; }
  .plans { grid-template-columns: minmax(0, 1fr); }
  .work-grid { grid-template-columns: minmax(0, 1fr); }
  .work.is-run .work__bar { flex-wrap: wrap; }
  .table { --print-width-limit: 86cqw; }
  .print__phone { display: none; }
  .mast__links, .mast__legal { grid-column: 1 / -1; }
}
@media (max-width: 40rem) {
  .hero { min-height: 0; padding-block: var(--space-2xl) var(--space-3xl); }
  .studio__grid { grid-template-columns: minmax(0, 1fr); }
  .card { gap: var(--space-lg); padding: var(--space-lg); }
  .enquiry { padding: var(--space-lg); }
  .enquiry__pair, .services__opts { grid-template-columns: minmax(0, 1fr); }
  .plan { padding: var(--space-lg); }
  .work-card__next { flex-direction: column; align-items: start; }
  .work-card__next-line { font-size: var(--text-2xl); }
  .work.is-run .work__bar .btn { flex: 1 1 auto; }
  .print__tag { display: none; }
  .work__head h2 { font-size: var(--text-3xl); }
}
@media (max-width: 40rem) and (height <= 46rem) {
  .work__head h2 { font-size: clamp(1.75rem, 7.5vw, var(--text-3xl)); }
  .work.is-run .work__bar { gap: var(--space-sm); }
}

@media (prefers-reduced-motion: reduce) {
  .btn, .case__desk, .case__phone, .menu-btn, .faq__icon, .service, .work-card__next, .roll__step, .roll__step h3 { transition: none; }
  .work.is-switch .work__caption { animation: none; }
  .work-card:hover .case__phone { transform: none; }
  .status::before { animation: none; }
  .btn:hover, .btn:active { transform: none; }
  .btn__arrow { transition: none; }
}
