/* Inter, self-hosted (no requests to Google): file in /public/fonts */
@font-face { font-family: "Inter"; src: url("fonts/InterVariable.ttf") format("truetype"); font-weight: 100 900; font-style: normal; font-display: swap; }
/* =====================================================================
   DESIGN TOKENS — Victoria Schmidt Portfolio
   Typeface: Inter (Regular 400 · Semibold 600)
   ===================================================================== */
:root {
  /* Typeface */
  --font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --font-display: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;

  /* Colour */
  --color-black: oklch(0.15 0 0);
  --color-white: oklch(1 0 0);
  --color-grey-700: oklch(0.38 0 0);
  --color-grey-500: oklch(0.52 0 0);
  --color-grey-200: oklch(0.94 0 0);
  --color-grey-50: oklch(0.975 0 0);
  --text-primary: var(--color-black);
  --text-secondary: var(--color-grey-700);
  --text-tertiary: var(--color-grey-500);
  --surface: var(--color-white);
  --surface-alt: var(--color-grey-50);
  --surface-muted: var(--color-grey-200);
  --line: oklch(0.15 0 0 / 28%);
  --line-strong: var(--color-black);

  /* Type scale */
  --fs-mega: clamp(4.5rem, 15vw, 14rem);
  --fs-display: clamp(3.5rem, 11vw, 11rem);
  --fs-h1: clamp(2.25rem, 4.2vw, 3.75rem);
  --fs-h2: clamp(1.75rem, 3vw, 2.75rem);
  --fs-h3: clamp(1.375rem, 2vw, 2rem);
  --fs-h4: clamp(1.125rem, 1.4vw, 1.375rem);
  --fs-lead: 1.125rem;
  --fs-body: 1rem;
  --fs-small: .875rem;
  --fs-label: .75rem;
  --fs-number: clamp(2.75rem, 5vw, 4.5rem);
  --ls-mega: -.045em; --ls-display: -.04em; --ls-h1: -.03em; --ls-h2: -.02em; --ls-h3: -.015em; --ls-h4: -.01em; --ls-number: -.03em; --ls-label: .06em;
  --fw-regular: 400; --fw-medium: 500; --fw-semibold: 600;
  --lh-mega: .85; --lh-display: .9; --lh-h1: 1.05; --lh-h2: 1.1; --lh-h3: 1.2; --lh-h4: 1.3; --lh-lead: 1.5; --lh-body: 1.5; --lh-small: 1.5; --lh-label: 1.4; --lh-number: 1;

  /* Spacing (4px base) */
  --space-1: .25rem; --space-2: .5rem; --space-3: .75rem; --space-4: 1rem; --space-5: 1.25rem; --space-6: 1.5rem; --space-7: 2rem;
  --space-8: 2.5rem; --space-9: 3rem; --space-10: 4rem; --space-11: 5rem; --space-12: 6rem; --space-13: 8rem; --space-14: 10rem;
  --gutter: 1.5rem;
  --accent-dot: #03ff68;
}
@media (max-width: 760px) { :root { --gutter: 1rem; } }

:root {
  --background: var(--surface);
  --foreground: var(--text-primary);
  --card: var(--surface); --card-foreground: var(--text-primary);
  --popover: var(--surface); --popover-foreground: var(--text-primary);
  --primary: var(--text-primary); --primary-foreground: var(--surface);
  --secondary: var(--surface-muted); --secondary-foreground: var(--text-primary);
  --muted: var(--surface-muted); --muted-foreground: var(--text-tertiary);
  --accent: var(--text-primary); --accent-foreground: var(--surface);
  --destructive: var(--text-primary);
  --border: var(--line); --input: var(--line); --ring: var(--text-primary);
  --signal: var(--text-primary); --paper: var(--surface-alt); --ink: var(--text-primary);
}


  * { border-color: var(--border); }
  html { scroll-behavior: smooth; overflow-x: clip; }
  body { margin: 0; background: var(--background); color: var(--foreground); font-family: var(--font-sans); font-optical-sizing: auto; font-size: var(--fs-body); line-height: 1.5; -webkit-font-smoothing: antialiased; overflow-x: clip; }
  a { color: inherit; text-decoration: none; }
  button, a { -webkit-tap-highlight-color: transparent; }
  ::selection { background: var(--foreground); color: var(--background); }

.text-signal { color: var(--foreground); }
.site-header { height: 64px; position: sticky; top: 0; z-index: 50; display: flex; align-items: center; justify-content: space-between; padding: 0 var(--gutter); border-bottom: 1px solid var(--border); background: color-mix(in oklab, var(--background) 96%, transparent); backdrop-filter: blur(10px); }
.site-mark { font-size: var(--fs-small); font-weight: 400; line-height: var(--lh-small); }
.desktop-nav { display: flex; align-items: center; gap: var(--space-6); font-size: var(--fs-label); text-transform: uppercase; letter-spacing: var(--ls-label); line-height: var(--lh-label); }
.desktop-nav > a:not(.cv-link) { position: relative; }
.desktop-nav > a:not(.cv-link)::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -5px; height: 1px; background: var(--foreground); transition: right .25s ease; }
.desktop-nav > a:hover::after, .desktop-nav .nav-link-active::after { right: 0; }
.cv-link { display: flex; align-items: center; gap: var(--space-2); border: 1px solid var(--foreground); padding: var(--space-2) var(--space-3); transition: background .2s, color .2s; }
.cv-link:hover { background: var(--foreground); color: var(--background); }
.menu-toggle { display: none; border: 0; background: none; color: inherit; padding: var(--space-2); }
.lang-toggle { display: flex; align-items: center; gap: var(--space-1); font-size: var(--fs-label); text-transform: uppercase; letter-spacing: var(--ls-label); line-height: var(--lh-label); }
.lang-toggle button { border: 0; background: none; color: var(--text-secondary); padding: 0; font: inherit; cursor: pointer; transition: color .2s; }
.lang-toggle button:hover, .lang-toggle button.is-active { color: var(--foreground); }
.lang-toggle span { color: var(--text-secondary); }
.mobile-actions { display: none; align-items: center; gap: var(--space-4); }
@media (max-width: 760px) { .mobile-actions { display: flex; } }
.mobile-nav { position: absolute; inset: 72px 0 auto; display: grid; background: var(--background); border-bottom: 1px solid var(--border); padding: var(--space-6) var(--gutter); gap: var(--space-5); font-size: var(--fs-h4); letter-spacing: var(--ls-h4); line-height: var(--lh-h4); }
.mobile-nav[hidden] { display: none; }

.kinetic-section { display: grid; grid-template-rows: clamp(165px, 14vw, 215px) auto; padding: var(--space-8) var(--gutter) 0; overflow: hidden; }
.kinetic-meta { display: flex; justify-content: space-between; padding-bottom: var(--space-4); font-size: var(--fs-label); text-transform: uppercase; line-height: var(--lh-label); letter-spacing: var(--ls-label); }
.kinetic-meta span:last-child { text-align: right; }
.kinetic-stage { position: relative; min-height: 0; overflow: hidden; }
.kinetic-body { position: absolute; left: 0; top: 0; z-index: 3; display: flex; align-items: center; justify-content: center; border: 1px solid var(--foreground); border-radius: 999px; background: var(--background); font-family: var(--font-sans); font-size: var(--fs-body); cursor: grab; touch-action: none; user-select: none; will-change: transform; line-height: var(--lh-body); }
.kinetic-body:active { cursor: grabbing; }
.kinetic-dark { background: var(--foreground); color: var(--background); }
.kinetic-arrow { border-radius: 0; font-family: var(--font-sans); }
.kinetic-smile { border-radius: 50%; font-size: var(--fs-number); letter-spacing: var(--ls-number); line-height: var(--lh-number); }
.kinetic-rect { border-radius: 8px; }
.kinetic-image { overflow: hidden; border: 0; border-radius: 0; padding: 0; background: var(--muted); }
.kinetic-image img { width: 100%; height: 100%; object-fit: cover; object-position: 54% 35%; pointer-events: none; }
.kinetic-name { z-index: 0; width: 100%; margin: 0; padding-top: .02em; text-align: center; font-size: var(--fs-mega); letter-spacing: var(--ls-mega); font-weight: 400; line-height: var(--lh-mega); white-space: nowrap; }

.home-intro { padding: var(--space-13) var(--gutter) var(--space-9); }
.home-intro h1 { margin: 0; max-width: 76%; color: var(--foreground); font-size: var(--fs-h1); letter-spacing: var(--ls-h1); font-weight: 400; line-height: var(--lh-h1); }

.works-section { padding: 0 var(--gutter) var(--space-14); }
.section-heading { display: flex; justify-content: space-between; align-items: baseline; padding-bottom: var(--gutter); margin-bottom: var(--space-5); }
.section-heading h2 { margin: 0; font-family: var(--font-display); font-size: var(--fs-h2); letter-spacing: var(--ls-h2); font-weight: var(--fw-semibold); line-height: var(--lh-h2); }
.section-heading h2 small { margin-left: var(--space-3); color: var(--text-tertiary); font-size: var(--fs-label); font-weight: 400; line-height: var(--lh-label); }
.project-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-9) var(--gutter); }
.project-image-wrap { position: relative; overflow: hidden; aspect-ratio: 16/9; background: var(--muted); }
.project-image-wrap > img { width: 100%; height: 100%; object-fit: cover;  transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.project-open { position: absolute; right: 1rem; top: 1rem; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--background); transform: translateY(-70px); transition: transform .35s ease; }
.project-card a:hover .project-image-wrap > img { transform: scale(1.025); }
.project-card a:hover .project-open { transform: translateY(0); }
.project-caption-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: var(--space-2) var(--space-6); padding: var(--space-3) var(--space-1) 0; }
.project-caption-row h3 { margin: 0; font-size: var(--fs-h4); letter-spacing: var(--ls-h4); font-weight: var(--fw-regular); line-height: var(--lh-h4); }
.project-caption-row span { font-size: var(--fs-h4); letter-spacing: var(--ls-h4); line-height: var(--lh-h4); }

.contact-banner { padding: var(--space-7) var(--gutter) var(--space-10); min-height: 46vh; display: flex; flex-direction: column; justify-content: space-between; border-top: 1px solid var(--foreground); background: var(--background); color: var(--foreground); }
.contact-banner p { margin: 0; text-transform: uppercase; font-size: var(--fs-label); letter-spacing: var(--ls-label); line-height: var(--lh-label); }
.contact-banner a { font-family: var(--font-display); font-size: var(--fs-mega); letter-spacing: var(--ls-mega); line-height: var(--lh-mega); display: flex; justify-content: space-between; align-items: flex-end; }
.contact-banner svg { width: .55em; height: .55em; transition: transform .3s; }
.contact-banner a:hover svg { transform: translate(8px,-8px); }
.site-footer { min-height: 260px; display: grid; grid-template-columns: 1fr 1fr auto; align-items: end; padding: var(--space-9) var(--gutter); background: var(--foreground); color: var(--background); }
.site-footer > p { font-family: var(--font-display); font-size: var(--fs-h2); letter-spacing: var(--ls-h2); margin: 0; line-height: var(--lh-h2); }
.site-footer > div { display: flex; gap: var(--space-7); }
.site-footer a { display: flex; gap: var(--space-1); align-items: center; }
.site-footer > span { font-size: var(--fs-label); text-transform: uppercase; letter-spacing: var(--ls-label); line-height: var(--lh-label); }
.site-footer-legal { display: flex; flex-direction: row; align-items: center; justify-content: flex-end; gap: var(--space-4); flex-wrap: nowrap; }
.site-footer-legal a { font-size: var(--fs-label); text-transform: uppercase; text-decoration: underline; text-underline-offset: .18em; letter-spacing: var(--ls-label); line-height: var(--lh-label); }
.site-footer-legal a:hover { opacity: .55; }
.site-footer-legal span { font-size: var(--fs-label); text-transform: uppercase; letter-spacing: var(--ls-label); line-height: var(--lh-label); }
@media (max-width: 700px) { .site-footer > .site-footer-legal { flex-direction: row; gap: var(--space-2); } .site-footer-legal a, .site-footer-legal span { font-size: var(--fs-label); white-space: nowrap; line-height: var(--lh-label); } }

.legal-page { max-width: 760px; padding: var(--space-12) var(--gutter) var(--space-13); }
.legal-page h1 { margin: 0 0 var(--space-10); font-size: var(--fs-h1); letter-spacing: var(--ls-h1); font-weight: var(--fw-medium); line-height: var(--lh-h1); }
.legal-block { margin-bottom: var(--space-10); }
.legal-block h2 { margin: 0 0 var(--space-6); font-size: var(--fs-h3); letter-spacing: var(--ls-h3); font-weight: var(--fw-semibold); line-height: var(--lh-h3); }
.legal-block h3 { margin: var(--space-7) 0 var(--space-2); font-size: var(--fs-body); font-weight: var(--fw-semibold); line-height: var(--lh-body); }
.legal-block p { margin: 0 0 var(--space-4); line-height: 1.55; color: var(--text-secondary); }
.legal-block a { text-decoration: underline; text-underline-offset: .18em; }
.legal-block h3[id] { scroll-margin-top: 88px; }

.playground-intro { padding: var(--space-9) var(--gutter) var(--space-7); }
.about-profile { min-height: calc(100vh - 64px); display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-8); padding: var(--space-9) var(--gutter) var(--space-11); align-items: start; }
.about-copy { max-width: 620px; }
.section-kicker { margin: 0 0 var(--space-9); font-size: var(--fs-h1); letter-spacing: var(--ls-h1); font-weight: var(--fw-medium); line-height: var(--lh-h1); }
.about-copy h1, .about-copy > p { margin: 0 0 var(--space-4); font-size: var(--fs-h3); letter-spacing: var(--ls-h3); font-weight: 400; line-height: var(--lh-h3); }
.about-links { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-2); margin-top: var(--space-7); }
.about-links p { margin: 0; font-size: var(--fs-lead); line-height: var(--lh-lead); color: var(--text-secondary); }
.about-links a { display: inline-flex; align-items: center; gap: var(--space-2); font-size: var(--fs-lead); text-decoration: underline; text-underline-offset: .18em; line-height: var(--lh-lead); }
.about-links a:hover { opacity: .55; }
.about-links-line { margin: var(--space-7) 0 0; font-size: var(--fs-lead); line-height: var(--lh-lead); color: var(--text-secondary); }
.about-links-line a { display: inline-flex; align-items: center; gap: var(--space-2); font-size: inherit; text-decoration: underline; text-underline-offset: .18em; color: var(--foreground); }
.about-links-line a:hover { opacity: .55; }
.about-links-line a svg { display: inline; }
.about-portrait { width: 100%; margin: 0; aspect-ratio: 4 / 4.5; overflow: hidden; background: var(--muted); }
.about-portrait img { width: 100%; height: 100%; object-fit: cover; object-position: 52% 28%;  }
.about-details { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 8vw; padding: var(--space-12) var(--gutter) var(--space-13); border-top: 1px solid var(--border); }
.about-detail-block h2 { margin: 0 0 var(--space-9); font-size: var(--fs-h1); letter-spacing: var(--ls-h1); font-weight: var(--fw-medium); line-height: var(--lh-h1); }
.about-detail-row { display: grid; grid-template-columns: minmax(110px, .7fr) 2fr; gap: var(--space-4); padding: var(--space-4) 0; border-top: 1px solid var(--border); }
.edu-place { color: var(--foreground); font-size: var(--fs-small); margin: 0 0 var(--space-7); line-height: var(--lh-small); }
.about-detail-row > span, .about-detail-row p { color: var(--text-tertiary); font-size: var(--fs-small); line-height: var(--lh-small); }
.about-detail-row h3, .about-detail-row p { margin: 0; font-weight: 400; }
.about-detail-row h3 { margin-bottom: var(--space-1); font-size: var(--fs-body); font-weight: var(--fw-semibold); line-height: var(--lh-body); }
.about-skill-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--border); }
.about-skill-list li { padding: var(--space-4) 0; border-bottom: 1px solid var(--border); font-size: var(--fs-body); line-height: var(--lh-body); }

.reel-grid { padding: var(--space-7); display: grid; grid-template-columns: repeat(3,1fr); gap: var(--space-4); }
.reel-card { position: relative; display: flex; flex-direction: column; justify-content: space-between; aspect-ratio: 9/16; padding: var(--space-4); overflow: hidden; border: 1px solid var(--border); background: var(--foreground); color: var(--background); }

@media (max-width: 760px) {
  .site-header { height: 62px; padding: 0 var(--gutter); }
  .desktop-nav { display: none; }
  .menu-toggle { display: block; }
  .mobile-nav { top: 62px; }
  .kinetic-section { padding: var(--space-6) var(--gutter) 0; grid-template-rows: 185px auto; }
  .kinetic-stage { min-height: 0; }
  .kinetic-body { font-size: var(--fs-body); line-height: var(--lh-body); }
  .kinetic-name { font-size: var(--fs-mega); letter-spacing: var(--ls-mega); line-height: var(--lh-mega); }
  .home-intro { padding: var(--space-10) var(--gutter) var(--space-8); }
  .home-intro h1 { max-width: 100%; font-size: var(--fs-h1); letter-spacing: var(--ls-h1); line-height: var(--lh-h1); }
  .works-section { padding: var(--space-11) var(--gutter); }
  .section-heading { grid-template-columns: 1fr; gap: var(--space-7); }
  .project-grid { grid-template-columns: 1fr; gap: var(--space-8); }
  .contact-banner { padding: var(--space-4); min-height: 34vh; }
  .contact-banner a { font-size: var(--fs-mega); letter-spacing: var(--ls-mega); line-height: var(--lh-mega); }
  .site-footer { grid-template-columns: 1fr; gap: var(--space-7); min-height: 300px; padding: var(--space-7) var(--gutter); }
  .site-footer > div { flex-direction: column; gap: var(--space-3); }
  .playground-intro { padding: var(--space-9) var(--gutter) var(--space-6); }
  .about-profile { min-height: auto; grid-template-columns: 1fr; gap: var(--space-9); padding: var(--space-9) var(--gutter) var(--space-10); }
  .about-copy h1, .about-copy > p { font-size: var(--fs-h4); letter-spacing: var(--ls-h4); line-height: var(--lh-h4); }
  .about-portrait { aspect-ratio: 4 / 5; }
  .about-details { grid-template-columns: 1fr; gap: var(--space-11); padding: var(--space-11) var(--gutter) var(--space-12); }
  .about-detail-row { grid-template-columns: 110px 1fr; }
  .reel-grid { padding: var(--space-4); grid-template-columns: 1fr 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
/* Case study */
.case-hero { padding: var(--space-10) var(--gutter) var(--space-9); }
.case-back { display: inline-flex; align-items: center; gap: var(--space-2); margin-bottom: var(--space-9); font-size: var(--fs-small); color: var(--text-tertiary); line-height: var(--lh-small); }
.case-back:hover { color: var(--foreground); }
.case-hero h1 { margin: 0; font-size: var(--fs-display); letter-spacing: var(--ls-display); font-weight: 400; line-height: var(--lh-display); }
.case-summary { max-width: 760px; margin: var(--space-7) 0 0; font-size: var(--fs-h3); letter-spacing: var(--ls-h3); line-height: var(--lh-h3); }
.case-meta { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gutter); padding: var(--gutter); border-top: 1px solid var(--border); }
.case-meta dt { font-size: var(--fs-label); color: var(--text-tertiary); margin-bottom: var(--space-2); line-height: var(--lh-label); }
.case-meta dd { margin: 0; font-size: var(--fs-body); line-height: var(--lh-body); }
.case-cover { margin: 0; padding: 0 var(--gutter); }
.case-cover img, .case-gallery img { width: 100%; display: block;  }
.case-section { display: grid; grid-template-columns: 1fr 2fr; gap: var(--space-9); padding: var(--space-13) var(--gutter) 0; }
.case-section h2 { margin: 0; font-size: var(--fs-small); font-weight: var(--fw-semibold); color: var(--text-tertiary); line-height: var(--lh-small); }
.case-section h2 span { margin-right: var(--space-2); }
.case-section p { margin: 0 0 var(--space-6); max-width: 720px; color: var(--text-secondary); font-size: var(--fs-h4); letter-spacing: var(--ls-h4); line-height: var(--lh-h4); }
.case-section ul { margin: var(--space-6) 0 0; padding: 0; list-style: none; max-width: 720px; }
.case-section li { padding: var(--space-5) 0; border-top: 1px solid var(--border); font-size: var(--fs-body); line-height: var(--lh-body); }
.case-gallery { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3); padding: var(--space-12) var(--gutter) 0; }
.case-gallery img:first-child { grid-column: 1 / -1; }
.case-nav { display: flex; justify-content: space-between; align-items: flex-start; gap: var(--space-7); margin: var(--space-13) var(--gutter) 0; padding: var(--gutter) 0 0; border-top: 1px solid var(--border); }
.case-nav-link { display: flex; flex-direction: column; gap: var(--space-4); min-width: 0; font-size: var(--fs-h4); letter-spacing: var(--ls-h4); line-height: var(--lh-h4); }
.case-nav-link small { font-size: var(--fs-small); color: var(--text-tertiary); line-height: var(--lh-small); }
.case-nav-link span { display: inline-flex; align-items: center; gap: var(--space-2); }
.case-nav-link svg { width: .8em; height: .8em; flex: none; }
.case-nav-thumb { width: min(420px, 82%); aspect-ratio: 16/9; object-fit: cover;  }
.case-nav-link.is-next { text-align: right; align-items: flex-end; }
.case-nav-link.is-next span { justify-content: flex-end; }
.case-nav-link:hover span { opacity: .6; }
@media (max-width: 700px) { .case-nav { gap: var(--space-5); } .case-nav-thumb { width: 100%; } }
@media (max-width: 760px) {
  .case-meta { grid-template-columns: 1fr 1fr; }
  .case-section { grid-template-columns: 1fr; gap: var(--space-4); padding-top: var(--space-10); }
  .case-gallery { grid-template-columns: 1fr; }
}
.case-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gutter); margin-top: var(--space-10); }
.case-stats.is-pair { grid-template-columns: repeat(2, 1fr); margin-top: var(--gutter); }
.case-stats.is-pair div { border-top: 0; padding-top: 0; }
.dabei-stat-groups { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-8) var(--space-10); margin-top: var(--space-10); }
.dabei-stat-group > h3 { margin: 0; font-size: var(--fs-small); font-weight: var(--fw-semibold); color: var(--text-tertiary); padding-bottom: var(--space-4); border-bottom: 1px solid var(--foreground); line-height: var(--lh-small); }
.case-stats.is-pair small { font-size: var(--fs-label); text-transform: uppercase; color: var(--text-tertiary); letter-spacing: var(--ls-label); line-height: var(--lh-label); }
.case-stats.is-pair strong { font-size: var(--fs-number); letter-spacing: var(--ls-number); font-weight: var(--fw-semibold); line-height: var(--lh-number); }
.case-stats div { border-top: 1px solid var(--foreground); padding-top: var(--space-5); }
.case-stats strong { display: block; margin: var(--gutter) 0 var(--space-4); font-size: var(--fs-number); letter-spacing: var(--ls-number); font-weight: var(--fw-semibold); line-height: var(--lh-number); }
.case-stats span { display: block; color: var(--text-secondary); font-size: var(--fs-small); line-height: var(--lh-small); }
.case-stats div { border-top: 1px solid var(--foreground); padding-top: var(--space-5); }
.case-stats strong { display: block; margin: var(--gutter) 0 var(--space-4); font-size: var(--fs-number); letter-spacing: var(--ls-number); font-weight: var(--fw-semibold); line-height: var(--lh-number); }
.case-stats span { display: block; color: var(--text-secondary); font-size: var(--fs-small); line-height: var(--lh-small); }
.case-stats small { display: block; color: var(--text-tertiary); font-size: var(--fs-label); line-height: var(--lh-label); }
.case-duo { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-9); }
.case-duo h3, .case-persona h3 { margin: 0 0 var(--space-4); font-size: var(--fs-small); font-weight: var(--fw-semibold); color: var(--text-tertiary); line-height: var(--lh-small); }
.case-persona { display: grid; grid-template-columns: 1.35fr 1.4fr 1.05fr; gap: var(--space-6) var(--space-6); padding: var(--space-6); background: var(--muted); }
.case-persona > div { padding: var(--space-6); }
.case-persona blockquote { margin: var(--space-4) 0 0; font-size: var(--fs-h4); letter-spacing: var(--ls-h4); line-height: var(--lh-h4); }
.case-feature { display: grid; grid-template-columns: 1.4fr 1fr; gap: var(--space-8); align-items: end; padding: var(--space-9) var(--gutter) 0; }
.case-feature:nth-child(even) img { order: 2; }
.case-feature img, .case-screens img { width: 100%; display: block;  }
.case-feature h3 { margin: 0 0 var(--space-2); font-size: var(--fs-h4); letter-spacing: var(--ls-h4); font-weight: var(--fw-semibold); line-height: var(--lh-h4); }
.case-feature p { margin: 0; color: var(--text-tertiary); }
.case-screens { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-3); padding: var(--space-9) var(--gutter) 0; }
.case-prototype { display: flex; justify-content: space-between; align-items: center; margin: var(--space-12) 0 0; padding: var(--space-9) var(--gutter); background: var(--foreground); color: var(--background); font-size: var(--fs-h2); letter-spacing: var(--ls-h2); line-height: var(--lh-h2); }
.case-prototype:hover { opacity: .85; }
@media (max-width: 760px) {
  .case-stats, .case-duo, .case-persona, .case-feature, .case-screens { grid-template-columns: 1fr; }
  .case-feature:nth-child(even) img { order: 0; }
}

/* Dabei case study */
.dabei-hero-phones { display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--space-3); padding: var(--space-9) var(--gutter) 0; }
.dabei-screen { margin: 0; }
.dabei-phone { position: relative; max-width: 300px; margin: 0 auto; padding: 7px; border-radius: 2.6rem; background: var(--foreground); box-shadow: 0 18px 40px -22px color-mix(in oklab, var(--foreground) 45%, transparent); }
.dabei-phone::before { content: ""; position: absolute; top: 7px; left: 50%; z-index: 2; width: 38%; height: 16px; transform: translateX(-50%); border-radius: 0 0 10px 10px; background: var(--foreground); }
.dabei-screen img, .dabei-screen video { width: 100%; display: block; aspect-ratio: 1080 / 2340; object-fit: cover; object-position: top; border-radius: 2.2rem; background: var(--background); }
.dabei-phases { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gutter); }
.dabei-phases article { border-top: 1px solid var(--foreground); padding-top: var(--space-4); }
.dabei-phase-number { display: block; font-size: var(--fs-label); color: var(--text-tertiary); margin-bottom: var(--space-2); line-height: var(--lh-label); }
.dabei-phases h3 { margin: 0 0 var(--space-3); font-size: var(--fs-lead); font-weight: var(--fw-semibold); line-height: var(--lh-lead); }
.dabei-phases ul { margin: 0; padding: 0; list-style: none; }
.dabei-phases li { padding: var(--space-2) 0; border-top: 1px solid var(--border); font-size: var(--fs-small); line-height: var(--lh-small); }
.dabei-findings { margin-top: var(--space-11); }
.dabei-takeaway { display: flex; gap: var(--space-4); margin: var(--space-11) 0 0 !important; font-size: var(--fs-h3) !important; letter-spacing: var(--ls-h3); line-height: var(--lh-h3) !important; font-weight: var(--fw-semibold); }
.dabei-takeaway > svg { flex: none; width: 1.15em; height: 1.15em; }
.dabei-takeaway strong { font-weight: var(--fw-semibold); }
.dabei-persona-img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; display: block; margin-bottom: var(--space-4); }
.dabei-journey { margin-top: var(--space-4); padding-bottom: var(--space-9); }
.dabei-journey-grid { display: grid; grid-template-columns: minmax(0,1fr) 2.2rem minmax(0,1fr) 2.2rem minmax(0,1fr) 2.2rem minmax(0,1fr) 2.2rem minmax(0,1fr); align-items: stretch; }
.dabei-journey-step { min-width: 0; display: flex; flex-direction: column; justify-content: flex-end; gap: var(--space-2); min-height: 11rem; padding: var(--space-5) var(--gutter); border: 1px solid var(--foreground); background: var(--background); }
.dabei-journey-step .dabei-journey-num { margin-bottom: auto; }
.dabei-journey-step.is-decision { border: 0; background: none; padding: 0; align-items: center; justify-content: center; }
.dabei-diamond { width: min(9.5rem, 82%); aspect-ratio: 1; transform: rotate(45deg); border: 1px solid var(--foreground); background: var(--background); display: grid; place-items: center; }
.dabei-diamond > span { transform: rotate(-45deg); display: block; max-width: 72%; text-align: center; font-size: var(--fs-body); font-weight: 600; line-height: var(--lh-body); }
.dabei-journey-step.is-final { background: var(--foreground); color: var(--background); border-color: var(--foreground); }
.dabei-journey-step.is-final .dabei-journey-title { color: var(--background); }
.dabei-journey-step.is-final .dabei-journey-num, .dabei-journey-step.is-final .dabei-journey-sub { color: var(--background); opacity: .65; }
.dabei-journey-num { font-size: var(--fs-small); color: var(--text-tertiary); line-height: var(--lh-small); }
.dabei-journey-title { margin: 0; font-size: var(--fs-lead); font-weight: var(--fw-semibold); line-height: var(--lh-lead); color: var(--foreground); }
.dabei-journey-sub { margin: 0; font-size: var(--fs-small); color: var(--text-tertiary); line-height: var(--lh-small); }
.dabei-journey-arrow { align-self: center; justify-self: center; font-size: var(--fs-h4); letter-spacing: var(--ls-h4); color: var(--text-secondary); display: flex; flex-direction: column; align-items: center; gap: var(--space-1); line-height: var(--lh-h4); }
.dabei-journey-arrow em { font-style: normal; font-size: var(--fs-label); text-transform: uppercase; color: var(--text-tertiary); letter-spacing: var(--ls-label); line-height: var(--lh-label); }
.dabei-journey-loop { grid-column: 3 / 8; position: relative; margin-top: 0; height: 4.5rem; border-left: 1px solid var(--foreground); border-top: 1px solid var(--foreground); }
.dabei-journey-loop::before { content: ""; position: absolute; left: -5px; top: -1px; border-left: 5px solid transparent; border-right: 5px solid transparent; border-bottom: 8px solid var(--foreground); transform: translateY(-100%); }
.dabei-journey-loop > span { position: absolute; left: 50%; top: 100%; transform: translate(-50%, .8rem); white-space: nowrap; font-size: var(--fs-body); color: var(--text-tertiary); line-height: var(--lh-body); }
.dabei-persona-identity > p { margin: 0 0 var(--space-1); font-size: var(--fs-h4); letter-spacing: var(--ls-h4); line-height: var(--lh-h4); }
.dabei-persona-identity > span { font-size: var(--fs-small); color: var(--text-tertiary); line-height: var(--lh-small); }
.dabei-persona-identity { grid-column: 1; grid-row: 1 / span 2; }
.dabei-persona-needs ul { margin-top: 0; }
.dabei-persona-needs li { padding: var(--space-3) 0; }
.dabei-persona-needs h3:not(:first-child) { margin-top: var(--space-7); }
.dabei-persona-needs > p { margin: 0; font-size: var(--fs-h4); letter-spacing: var(--ls-h4); line-height: var(--lh-h4); }
.case-persona .dabei-persona-quote { grid-column: 2; margin: 0; padding: var(--space-6); font-size: var(--fs-h4); letter-spacing: var(--ls-h4); line-height: var(--lh-h4); }
.dabei-persona-quote > span { display: block; margin-bottom: var(--space-4); font-size: var(--fs-label); color: var(--text-tertiary); line-height: var(--lh-label); }
.case-persona .dabei-persona-hmw { grid-column: 1 / -1; margin: 0; padding: var(--space-6); font-size: var(--fs-h2); letter-spacing: var(--ls-h2); line-height: var(--lh-h2); }
.dabei-persona-hmw > span { display: block; margin-bottom: var(--space-4); font-size: var(--fs-label); color: var(--text-tertiary); line-height: var(--lh-label); }
.dabei-decision { display: grid; grid-template-columns: minmax(0, 870px) minmax(360px, 430px); align-items: center; gap: var(--space-11); width: min(calc(100% - 2 * var(--gutter)), 1380px); margin: 0 auto; padding: var(--space-13) 0 0; }
.dabei-decision:nth-child(odd) { grid-template-columns: minmax(360px, 430px) minmax(0, 870px); }
.dabei-decision:nth-child(odd) .dabei-decision-screens { order: 2; }
.dabei-decision-screens { display: flex; flex-wrap: wrap; --dpw: clamp(0px, (100cqw - 574px) / 4, 180px); justify-content: flex-end; align-items: flex-start; gap: var(--space-5); min-width: 0; }
.dabei-decision:nth-child(odd) .dabei-decision-screens { justify-content: flex-start; }
.dabei-decision-screens .dabei-screen { flex: 0 0 var(--dpw); width: var(--dpw); min-width: 0; }
.dabei-screen.is-overflow .dabei-phone { background: transparent; box-shadow: none; }
.dabei-screen.is-overflow .dabei-phone::before { display: none; }
.dabei-screen.is-overflow img { aspect-ratio: auto; object-fit: contain; border: 7px solid var(--foreground); border-radius: 2.6rem; }
.dabei-decision-copy h3 { margin: 0 0 var(--space-6); font-size: var(--fs-h4); letter-spacing: var(--ls-h4); font-weight: var(--fw-semibold); line-height: var(--lh-h4); }
.dabei-decision-copy { width: 100%; margin: 0; }
.dabei-decision-copy dl { margin: 0; }
.dabei-decision-copy dt { font-size: var(--fs-label); color: var(--text-tertiary); margin-bottom: var(--space-1); line-height: var(--lh-label); }
.dabei-decision-copy dd { margin: 0 0 var(--space-4); font-size: var(--fs-body); line-height: var(--lh-body); }
.dabei-flow { display: grid; grid-template-columns: repeat(4, minmax(0, 180px)); justify-content: center; gap: var(--space-11) var(--space-8); padding: var(--space-11) var(--gutter) 0; }
.dabei-flow-step { margin: 0; }
.dabei-flow-step > figcaption { margin-top: var(--space-6); }
.dabei-flow-step > figcaption h4 { margin: 0 0 var(--space-2); font-size: var(--fs-body); font-weight: var(--fw-semibold); color: var(--foreground); line-height: var(--lh-body); }
.dabei-flow-step > figcaption p { margin: 0; font-size: var(--fs-small); line-height: var(--lh-small); color: var(--text-secondary); }
.dabei-supporting { padding: var(--space-13) var(--gutter) 0; }
.dabei-supporting-intro h3 { margin: 0 0 var(--space-2); font-size: var(--fs-h3); letter-spacing: var(--ls-h3); font-weight: var(--fw-semibold); line-height: var(--lh-h3); }
.dabei-supporting-intro p { margin: 0; max-width: 560px; color: var(--text-secondary); }
.dabei-supporting-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 380px)); justify-content: center; gap: var(--space-9); margin-top: var(--space-10); }
.dabei-supporting-grid h4 { margin: var(--space-6) 0 var(--space-2); font-size: var(--fs-body); font-weight: var(--fw-semibold); line-height: var(--lh-body); }
.dabei-supporting-grid p { margin: 0; font-size: var(--fs-small); color: var(--text-secondary); line-height: var(--lh-small); }
.dabei-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 180px)); justify-content: center; gap: var(--space-3); }
.dabei-testing { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-9); padding: var(--space-12) var(--gutter) 0; }
.dabei-testing figure { width: min(100%, 300px); margin: 0 auto; }
.dabei-testing > figure > figcaption { margin-top: var(--space-6); }
.dabei-testing > figure > figcaption h4 { margin: 0 0 var(--space-2); font-size: var(--fs-body); font-weight: var(--fw-semibold); color: var(--foreground); line-height: var(--lh-body); }
.dabei-testing > figure > figcaption p { margin: 0; font-size: var(--fs-small); line-height: var(--lh-small); color: var(--text-secondary); }
@media (max-width: 860px) {
  .dabei-hero-phones { grid-template-columns: repeat(3, 1fr); }
  .dabei-phases, .dabei-flow, .dabei-supporting-grid, .dabei-testing { grid-template-columns: 1fr 1fr; }
  .dabei-decision { grid-template-columns: 1fr; }
  .dabei-decision:nth-child(odd) { grid-template-columns: 1fr; }
  .dabei-decision:nth-child(odd) .dabei-decision-screens { order: 0; }
  .dabei-decision-screens, .dabei-decision:nth-child(odd) .dabei-decision-screens { justify-content: center; }
}
.dabei-band { padding: 0 0 var(--space-14); }
.dabei-band.is-alt { background: var(--surface-alt); }
.dabei-band > .case-section { padding-top: var(--space-14); }
.dabei-header-image { margin: 0; padding: 0 var(--gutter); }
.dabei-header-image img { width: 100%; height: auto; aspect-ratio: 16 / 8; object-fit: cover; display: block; }
.dabei-hero-phones { padding-bottom: var(--space-12); }
.dabei-findings li:has(svg), .dabei-supported li { display: flex; align-items: center; gap: var(--space-2); }
.dabei-findings li svg, .dabei-supported li svg { flex: none; width: 15px; height: 15px; stroke-width: 1.5; }
.dabei-testing-lead { margin: 0 0 var(--space-11) !important; font-size: var(--fs-h3) !important; letter-spacing: var(--ls-h3); font-weight: var(--fw-semibold); line-height: var(--lh-h3) !important; }
.dabei-supported { margin-top: var(--space-2) !important; }
.dabei-decision-list { margin: 0; padding: 0; list-style: none; }
.dabei-decision-list li { display: grid; grid-template-columns: 9rem 1fr; gap: var(--space-6); padding: var(--gutter) 0; border-top: 1px solid var(--border); color: var(--text-secondary); font-size: var(--fs-body); line-height: var(--lh-body); }
.dabei-decision-list strong { color: var(--foreground); font-weight: var(--fw-semibold); }
.dabei-kpi { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-7); margin: var(--space-4) 0 var(--space-10); padding-top: var(--space-4); border-top: 1px solid var(--foreground); }
.dabei-kpi span { display: block; margin-bottom: var(--space-2); font-size: var(--fs-label); color: var(--text-tertiary); line-height: var(--lh-label); }
.dabei-kpi h3 { margin: 0; max-width: 440px; font-size: var(--fs-h1); letter-spacing: var(--ls-h1); font-weight: var(--fw-medium); line-height: var(--lh-h1); }
.dabei-kpi p { margin: 0 !important; max-width: 560px; font-size: var(--fs-body) !important; line-height: var(--lh-body) !important; padding-top: var(--space-6); }
.case-nav-link span { max-width: 100%; }
.dabei-funnel { margin: var(--space-6) 0 0; padding: 0; list-style: none; counter-reset: f; }
.dabei-funnel li { counter-increment: f; }
.dabei-funnel li::before { content: counter(f) ". "; color: var(--text-tertiary); }
.dabei-funnel li + li::after { content: ""; }
.dabei-abtest { margin-top: var(--space-9); }
.dabei-abtest h3 { margin: 0 0 var(--space-4); font-size: var(--fs-small); font-weight: var(--fw-semibold); color: var(--text-tertiary); line-height: var(--lh-small); }
.dabei-abtest .case-duo > div { padding: var(--gutter); border: 1px solid var(--border); }
.dabei-abtest .case-duo span { font-size: var(--fs-label); color: var(--text-tertiary); line-height: var(--lh-label); }
.dabei-abtest .case-duo p { margin: var(--space-2) 0 0; }
.dabei-abtest-note { margin-top: var(--space-4) !important; font-size: var(--fs-body) !important; color: var(--text-tertiary); line-height: var(--lh-body) !important; }
.dabei-learning-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-4); max-width: none !important; margin-top: 0 !important; }
.dabei-learning-grid li { padding: var(--gutter) !important; border: 1px solid var(--border) !important; line-height: 1.45; }
@media (max-width: 900px) { .dabei-journey-grid { grid-template-columns: 1fr; gap: var(--space-4); } .dabei-journey-arrow { transform: rotate(90deg); } .dabei-journey-loop { grid-column: auto; border-top: 0; height: auto; padding: var(--space-2) 0 var(--space-2) var(--gutter); } .dabei-journey-loop::before { display: none; } .dabei-journey-loop > span { position: static; transform: none; white-space: normal; } }
@media (max-width: 760px) { .dabei-stat-groups { grid-template-columns: 1fr; } .case-stats.is-pair { grid-template-columns: 1fr 1fr; } .dabei-persona-identity, .case-persona .dabei-persona-quote, .dabei-persona-hmw { grid-column: auto; grid-row: auto; } .dabei-decision-list li { grid-template-columns: 1fr; gap: var(--space-1); } .dabei-band { padding-bottom: var(--space-12); } .dabei-band > .case-section { padding-top: var(--space-12); } .dabei-kpi { grid-template-columns: 1fr; } .dabei-flow { grid-template-columns: repeat(2, minmax(0, 110px)); gap: var(--space-10) var(--space-4); } .dabei-pair { grid-template-columns: repeat(2, minmax(0, 110px)); } .dabei-learning-grid { grid-template-columns: 1fr; } }
.dabei-journey-svg { display: block; width: 100%; height: auto; color: var(--foreground); overflow: visible; }
.dabei-journey-svg .dj-box { fill: var(--background); stroke: var(--foreground); stroke-width: 1; }
.dabei-journey-svg .dj-final { fill: var(--text-secondary); }
.dabei-journey-svg .dj-line { fill: none; stroke: var(--foreground); stroke-width: 1.2; }
.dabei-journey-svg text { font-family: inherit; fill: var(--foreground); }
.dabei-journey-svg .dj-num { font-size: 17px; }
.dabei-journey-svg .dj-title { font-size: 26px; font-weight: 600; }
.dabei-journey-svg .dj-sub { font-size: 18px; fill: var(--text-tertiary); }
.dabei-journey-svg .dj-q { font-size: 17px; font-weight: 600; }
.dabei-journey-svg .dj-yes { font-size: 14px; fill: var(--text-tertiary); }
.dabei-journey-svg .is-inverse { fill: var(--background); }
/* Screen lightbox + mobile case study */
button.dabei-phone { display: block; width: 100%; border: 0; font: inherit; color: inherit; cursor: zoom-in; }
.dabei-lightbox { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: var(--space-9) var(--gutter) var(--space-6); background: color-mix(in oklab, var(--foreground) 88%, transparent); cursor: zoom-out; }
.dabei-lightbox .dabei-screen { width: min(86vw, 380px); max-height: 100%; }
.dabei-lightbox .dabei-phone { max-width: none; }
.dabei-lightbox button.dabei-phone { cursor: default; }
.dabei-lightbox-close { position: absolute; top: 1rem; right: 1rem; display: grid; place-items: center; width: 2.4rem; height: 2.4rem; border: 1px solid var(--background); background: transparent; color: var(--background); cursor: pointer; }
.dabei-lightbox-close svg { width: 18px; height: 18px; }
.back-to-top { position: fixed; right: var(--gutter); bottom: var(--gutter); z-index: 60; display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border: 1px solid var(--line-strong); border-radius: 50%; background: var(--surface); color: var(--foreground); cursor: pointer; opacity: .9; transition: opacity .2s ease, transform .2s ease; }
.back-to-top:hover { opacity: 1; transform: translateY(-2px); }
.back-to-top:focus-visible { outline: 2px solid var(--text-primary); outline-offset: 2px; }
.back-to-top[hidden] { display: none; }
@media (prefers-reduced-motion: reduce) { .back-to-top { transition: none; } .back-to-top:hover { transform: none; } }
@media (max-width: 760px) {
  .case-stats.is-pair strong { font-size: var(--fs-number); letter-spacing: var(--ls-number); font-weight: var(--fw-semibold); line-height: var(--lh-number); }
  .case-section p { font-size: var(--fs-h4); letter-spacing: var(--ls-h4); line-height: var(--lh-h4); }
  .dabei-decision-copy h3 { font-size: var(--fs-lead); font-weight: var(--fw-semibold); line-height: var(--lh-lead); }
  .dabei-phone { padding: 3px; border-radius: 1rem; }
  .dabei-phone::before { top: 3px; height: 6px; border-radius: 0 0 4px 4px; }
  .dabei-screen img, .dabei-screen video { border-radius: .8rem; }
  .dabei-decision { gap: var(--space-8); padding-top: var(--space-11); }
  .dabei-decision-screens, .dabei-decision:nth-child(odd) .dabei-decision-screens { order: 0; justify-content: center; gap: var(--space-2); }
  .dabei-decision-copy { order: 1; }
  .dabei-flow { grid-template-columns: repeat(2, minmax(0, 110px)); justify-content: center; }
  .dabei-supporting-grid { grid-template-columns: 1fr; gap: var(--space-10); }
  .dabei-pair { grid-template-columns: repeat(2, minmax(0, 110px)); gap: var(--space-4); }
  .dabei-testing { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-3); }
  .dabei-testing > figure > figcaption { margin-top: var(--space-4); font-size: var(--fs-label); line-height: var(--lh-label); }
}
@media (max-width: 700px) {
  .case-nav { flex-direction: row; align-items: flex-start; gap: var(--space-4); padding-top: var(--space-4); }
  .case-nav-link { font-size: var(--fs-body); line-height: var(--lh-body); }
  .case-nav-link.is-next { text-align: right; }
  .case-nav-link.is-next span { justify-content: flex-end; }
}

.rise-figure { margin: 0 auto; padding: var(--space-10) 0 0; width: min(calc(100% - 2 * var(--gutter)), 1380px); }
.rise-figure img { width: 100%; height: auto; display: block; }
.rise-figure figcaption { margin-top: var(--space-4); font-size: var(--fs-small); color: var(--text-tertiary); line-height: var(--lh-small); }
.rise-text { width: min(calc(100% - 2 * var(--gutter)), 1380px); margin: 0 auto; padding: var(--space-12) 0 var(--space-2); }
.rise-text p:last-child { margin-bottom: 0; }
.rise-pair { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gutter); width: min(calc(100% - 2 * var(--gutter)), 1380px); margin: var(--space-10) auto 0; }
.rise-pair .rise-figure { width: 100%; padding-top: 0; }
/* aufeinanderfolgende Bildpaare: gleicher Abstand horizontal wie vertikal */
.rise-pair + .rise-pair { margin-top: var(--gutter); }
@media (max-width: 700px) {
  .rise-pair { grid-template-columns: 1fr; margin-top: var(--space-9); }
  .rise-figure { padding-top: var(--space-9); }
  .rise-text { padding: var(--space-10) 0 0; }
}

/* ---- Round 3 ---- */
.site-footer { align-items: last baseline; }
.site-footer > div, .site-footer-legal { align-items: baseline; }
.project-open { display: none; }
.dabei-learning-grid li { display: flex; flex-direction: column; gap: var(--space-3); }
.dabei-learning-grid li h3 { margin: 0; color: var(--text-primary); font-size: var(--fs-h4); line-height: var(--lh-h4); letter-spacing: var(--ls-h4); font-weight: var(--fw-semibold); }
.case-section .dabei-learning-grid li p { margin: 0; max-width: none; color: var(--text-secondary); font-size: var(--fs-body); line-height: var(--lh-body); }

.case-section .dabei-section-lead, .case-section .dabei-testing-lead { white-space: pre-line; }
/* ---- Round 21: overflow screens keep the phone size, sheets sit on a dimmed screen ---- */
.dabei-screen.is-overflow .dabei-phone { position: relative; padding: 7px 7px 0; background: transparent; box-shadow: none; overflow: visible; }
.dabei-screen.is-overflow .dabei-phone::after { content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 0; padding-bottom: calc((100% - 14px) * 812 / 375); box-sizing: content-box; border: 7px solid var(--text-primary); border-left: 0; border-right: 0; box-shadow: inset 7px 0 0 var(--text-primary), inset -7px 0 0 var(--text-primary); pointer-events: none; z-index: 1; }
.dabei-screen.is-overflow .dabei-phone::before { display: block; top: 7px; z-index: 3; }
.dabei-screen.is-overflow img { aspect-ratio: auto; height: auto; object-fit: fill; border: 0; }
.dabei-screen.is-overflow.is-sheet img, .dabei-screen.is-sheet img { border-radius: 0; }
.dabei-sheet-screen { display: flex; flex-direction: column; justify-content: flex-end; width: 100%; aspect-ratio: 375 / 812; background: oklch(0.62 0 0); overflow: hidden; }
.dabei-sheet-screen img { width: 100%; height: auto !important; aspect-ratio: auto !important; border-radius: 0 !important; display: block; }
.dabei-screen.is-overflow .dabei-sheet-screen { aspect-ratio: auto; justify-content: flex-start; padding-top: 0; overflow: visible; background: var(--surface); }
.dabei-screen.is-overflow .dabei-sheet-screen img { border-radius: 1.25rem 1.25rem 0 0 !important; }
@media (max-width: 760px) { .dabei-screen.is-overflow .dabei-phone { padding: 3px 3px 0; } .dabei-screen.is-overflow .dabei-phone::after { padding-bottom: calc((100% - 6px) * 812 / 375); border-width: 3px 0; box-shadow: inset 3px 0 0 var(--text-primary), inset -3px 0 0 var(--text-primary); } .dabei-screen.is-overflow .dabei-phone::before { top: 3px; } }
/* ---- Round 23 ---- */
/* Project meta: items spread across the full width, the last one flush right */
@media (min-width: 761px) {
  .case-meta { display: flex; justify-content: space-between; gap: var(--space-8); }
}
.agency-note { text-align: right; }


/* Visual Art: animations only run on hover or after a click */
/* Visual Art: echte Reels (Video), laufen im Loop; ein Knopf pausiert alle */
.reel-card { display: block; padding: 0; border: 0; background: var(--surface-alt); }
.reel-card video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.reel-card.is-cropped video { transform: scale(1.04); }
.reel-controls { grid-column: 1 / -1; position: sticky; top: calc(64px + var(--space-3)); z-index: 5; display: flex; justify-content: flex-end; pointer-events: none; }
.reel-toggle { pointer-events: auto; display: inline-flex; align-items: center; gap: var(--space-2); padding: var(--space-2) var(--space-3); border: 1px solid var(--foreground); background: var(--surface); color: var(--text-primary); font: inherit; font-size: var(--fs-small); cursor: pointer; transition: background .2s, color .2s; }
.reel-toggle:hover { background: var(--foreground); color: var(--background); }
.reel-toggle:focus-visible { outline: 2px solid var(--text-primary); outline-offset: 3px; }
.reel-toggle .icon-play { display: none; }
.reel-toggle[aria-pressed="true"] .icon-play { display: block; }
.reel-toggle[aria-pressed="true"] .icon-pause { display: none; }
@media (min-width: 1100px) { .reel-grid { grid-template-columns: repeat(4, 1fr); } }
/* About portrait 4:5 */
.about-portrait { aspect-ratio: 4 / 5 !important; }

/* Header meta line only as wide as the header image */
.case-meta { margin-inline: var(--gutter); padding-inline: 0; }
/* Cursor dot */
.cursor-dot { position: fixed; left: 0; top: 0; z-index: 1000; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: var(--accent-dot); pointer-events: none; opacity: 0; transition: opacity .15s ease; will-change: transform; }
/* The dot replaces the arrow; over clickable things the hand appears and the dot steps aside */
html.has-cursor-dot, html.has-cursor-dot * { cursor: none; }
html.has-cursor-dot :is(a, button, [role="button"], summary, label[for], select), html.has-cursor-dot :is(a, button, [role="button"], summary, label[for]) * { cursor: pointer; }
html.has-cursor-dot :is(input, textarea, [contenteditable="true"]) { cursor: text; }
html.is-over-link .cursor-dot { opacity: 0 !important; }
/* Visual Art: six more studies */

/* Full-height sheet (opens like a page from the bottom) docks at the top of the screen */
.dabei-screen.is-overflow.is-sheet .dabei-sheet-screen img { border-radius: var(--screen-r) var(--screen-r) 0 0 !important; }
.case-section .dabei-wireframes-note { margin: var(--space-6) 0 0; max-width: 46em; color: var(--text-secondary); font-size: var(--fs-body); line-height: var(--lh-body); }

/* Visual Art: same line length as the home intro */
.playground-intro .about-copy { max-width: 76%; }
@media (max-width: 760px) { .playground-intro .about-copy { max-width: 100%; } }

/* About and Visual Art: more air between paragraphs */
.about-copy h1, .about-copy > p { margin-bottom: .9em; line-height: 1.3; }
.about-copy > p:last-child { margin-bottom: 0; }

.site-header { background: color-mix(in oklab, var(--surface) 55%, transparent); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.site-header .site-mark { flex: none; }
.availability { display: inline-flex; align-items: center; gap: var(--space-2); margin-right: auto; margin-left: var(--space-6); color: var(--text-secondary); font-size: var(--fs-small); line-height: 1; white-space: nowrap; }
.availability i { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--accent-dot); }
.availability i::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: inherit; animation: availability-pulse 1.8s ease-out infinite; }
@keyframes availability-pulse { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(2.8); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .availability i::after { animation: none; } }
@media (max-width: 980px) { .availability > span { display: none; } .availability { margin-left: var(--space-4); } }

.agency-note { margin: var(--space-4) var(--gutter) 0; color: var(--text-tertiary); font-size: var(--fs-small); line-height: var(--lh-small); }
/* ---- Round 22: iPhone 13 mini proportions (375 × 812 pt, display corner radius 44 pt, notch 162 × 30 pt) ---- */
.dabei-screen { container-type: inline-size; --bezel: 7px; --screen-r: calc((100cqw - 2 * var(--bezel)) * .117); }
.dabei-phone { border-radius: calc(var(--screen-r) + var(--bezel)); }
.dabei-phone::before { width: 43%; height: auto; aspect-ratio: 162 / 30; top: var(--bezel); border-radius: 0 0 calc(var(--screen-r) * .45) calc(var(--screen-r) * .45); }
.dabei-screen img, .dabei-screen video, .dabei-sheet-screen { border-radius: var(--screen-r); }
.dabei-screen.is-overflow .dabei-phone { border-radius: 0; }
.dabei-screen.is-overflow .dabei-phone::after { border-radius: calc(var(--screen-r) + var(--bezel)); }
.dabei-screen.is-overflow img, .dabei-screen.is-overflow .dabei-sheet-screen { border-radius: var(--screen-r) var(--screen-r) 0 0; }
.dabei-screen.is-overflow.is-sheet img { border-radius: var(--screen-r) var(--screen-r) 0 0 !important; }
/* Sheets bring their own rounded corners (transparent PNG): no fill behind the image, no extra rounding */
.dabei-sheet-screen img, .dabei-screen.is-sheet img { background: transparent !important; border-radius: calc(var(--screen-r) * .75) calc(var(--screen-r) * .75) 0 0 !important; }
.dabei-screen.is-overflow .dabei-sheet-screen { background: none; }
.proto-frame { container-type: inline-size; }
.proto-frame::before { width: 43%; height: auto; aspect-ratio: 162 / 30; }
@media (max-width: 760px) { .dabei-screen { --bezel: 3px; } }
/* ---- Round 20: password gate ---- */
.gate-content.is-locked { position: fixed; inset: 0; height: 100vh; height: 100dvh; overflow-y: auto; overscroll-behavior: contain; filter: blur(14px); user-select: none; }
.gate-content.is-locked * { pointer-events: none; }
.gate-overlay { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: var(--gutter); background: color-mix(in oklab, var(--surface) 35%, transparent); pointer-events: none; }
.gate-dialog { pointer-events: auto; }
.gate-dialog { width: min(100%, 460px); padding: var(--space-9); background: var(--surface); border: 1px solid var(--line); box-shadow: 0 30px 80px -30px color-mix(in oklab, var(--text-primary) 35%, transparent); }
.gate-label { margin: 0 0 var(--space-5); color: var(--text-tertiary); font-size: var(--fs-label); line-height: var(--lh-label); letter-spacing: var(--ls-label); text-transform: uppercase; }
#gate-title { margin: 0; font-size: var(--fs-h3); line-height: var(--lh-h3); letter-spacing: var(--ls-h3); font-weight: var(--fw-semibold); }
.gate-form { margin-top: var(--space-8); }
.gate-form label { display: block; margin-bottom: var(--space-2); color: var(--text-secondary); font-size: var(--fs-small); }
.gate-row { display: flex; gap: var(--space-2); }
.gate-field { position: relative; flex: 1; min-width: 0; display: flex; }
.gate-row input { flex: 1; min-width: 0; height: 48px; padding: 0 var(--space-10) 0 var(--space-4); border: 1px solid var(--line-strong); background: var(--surface); color: var(--text-primary); font: inherit; font-size: var(--fs-body); }
.gate-row input:focus-visible { outline: 2px solid var(--text-primary); outline-offset: -2px; }
.gate-row input[aria-invalid="true"] { border-width: 2px; }
.gate-toggle { position: absolute; top: 50%; right: var(--space-2); transform: translateY(-50%); padding: var(--space-2) var(--space-3); border: 0; background: transparent; color: var(--text-secondary); font: inherit; font-size: var(--fs-small); font-weight: var(--fw-semibold); cursor: pointer; }
.gate-toggle:hover { color: var(--text-primary); }
.gate-toggle:focus-visible { outline: 2px solid var(--text-primary); outline-offset: 0; }
.gate-row > button { height: 48px; padding: 0 var(--space-6); border: 0; background: var(--text-primary); color: var(--surface); font-weight: var(--fw-semibold); cursor: pointer; }
.gate-row > button:hover { opacity: .85; }
.gate-row > button:focus-visible { outline: 2px solid var(--text-primary); outline-offset: 2px; }
.gate-error { margin: var(--space-3) 0 0; color: var(--text-primary); font-size: var(--fs-small); font-weight: var(--fw-semibold); }
.gate-note { margin: var(--space-7) 0 0; padding-top: var(--space-5); border-top: 1px solid var(--line); color: var(--text-secondary); font-size: var(--fs-small); }
.gate-note a { color: var(--text-primary); text-decoration: underline; text-underline-offset: .18em; }
.gate-legal { margin: var(--space-4) 0 0; font-size: var(--fs-small); }
.gate-legal a { color: var(--text-tertiary); }
.gate-legal a:hover, .gate-legal a:focus-visible { color: var(--text-primary); text-decoration: underline; text-underline-offset: .18em; }
@media (prefers-reduced-transparency: reduce) { .gate-overlay { background: var(--surface); } }
/* Gate: soft reveal after the correct password */
.gate-content.is-locked { transition: filter .8s cubic-bezier(.2,.7,.2,1); }
.gate-content.is-leaving { filter: blur(0); }
.gate-overlay { transition: background-color .6s ease, opacity .6s ease; }
.gate-overlay.hidden-gate { display: none; }
.gate-dialog { transition: opacity .35s ease, transform .5s cubic-bezier(.2,.7,.2,1); }
.gate-overlay.is-leaving { background-color: transparent; }
.gate-overlay.is-leaving .gate-dialog { opacity: 0; transform: translateY(12px) scale(.98); }
@media (prefers-reduced-motion: reduce) { .gate-content.is-locked, .gate-overlay, .gate-dialog { transition: none; } }

/* ---- Round 19: embedded prototype ---- */
.proto-section { display: grid; grid-template-columns: minmax(0, 520px) minmax(320px, 420px); justify-content: center; gap: var(--space-11) var(--space-13); align-items: center; margin: var(--space-13) var(--gutter) 0; padding: var(--space-11) var(--space-10); background: #000; color: var(--surface); }
.proto-label { margin: 0 0 var(--space-5); color: color-mix(in oklab, var(--surface) 65%, transparent); font-size: var(--fs-label); line-height: var(--lh-label); letter-spacing: var(--ls-label); text-transform: uppercase; }
.proto-copy h2 { margin: 0; font-size: var(--fs-h1); line-height: var(--lh-h1); letter-spacing: var(--ls-h1); font-weight: var(--fw-medium); }
.proto-copy > p:not(.proto-label) { max-width: 30em; margin: var(--space-6) 0 0; color: color-mix(in oklab, var(--surface) 75%, transparent); font-size: var(--fs-h4); line-height: var(--lh-h4); }
.proto-link { display: inline-flex; align-items: center; gap: var(--space-2); margin-top: var(--space-8); padding-bottom: .15em; border-bottom: 1px solid currentColor; font-weight: var(--fw-semibold); }
.proto-copy > p.proto-note { max-width: 30em; margin: var(--space-7) 0 0; font-size: var(--fs-small); line-height: 1.5; color: color-mix(in oklab, var(--surface) 55%, transparent); }
.proto-note a { color: inherit; text-decoration: underline; text-underline-offset: .18em; }
.proto-link:hover { opacity: .7; }
.proto-link:focus-visible, .proto-start:focus-visible { outline: 2px solid var(--surface); outline-offset: 4px; }
.proto-frame { position: relative; justify-self: center; width: min(100%, 420px); aspect-ratio: 420 / 760; }
.proto-frame::before { content: none; }
.proto-frame > * { border-radius: 2.4rem; overflow: hidden; }
.proto-start { position: absolute; inset: 0; display: grid; place-items: center; width: 100%; padding: 0; border: 0; border-radius: 0 !important; background: transparent; cursor: pointer; overflow: visible !important; }
/* Preview = Figma's own device frame with the first screen, so the switch to the live embed is invisible */
.proto-start img { position: absolute; left: 50%; top: 50%; width: 323px; max-width: none; height: auto; transform: translate(-50%, -50%); }
.proto-start span { position: relative; transform: translateY(170px); padding: var(--space-4) var(--space-7); background: var(--text-primary); color: var(--surface); font-weight: var(--fw-semibold); border-radius: 999px; }
.proto-start:hover span { opacity: .85; }
@media (max-width: 860px) { .proto-section { grid-template-columns: 1fr; padding: var(--space-9) var(--space-6); } .proto-frame { display: none; } }
/* ---- Round 18: wide decision block (six screens) ---- */
.dabei-decision.is-wide, .dabei-decision.is-wide:nth-child(odd) { grid-template-columns: minmax(0, 1fr); gap: var(--space-9); }
.dabei-decision.is-wide .dabei-decision-copy { order: 1; max-width: 640px; }
.dabei-decision.is-wide .dabei-decision-screens, .dabei-decision.is-wide:nth-child(odd) .dabei-decision-screens { order: 2; justify-content: flex-start; gap: var(--space-3); }
.dabei-decision.is-wide .dabei-decision-screens > :nth-child(2n+1):not(:first-child) { margin-left: auto; }
@media (max-width: 860px) { .dabei-decision.is-wide .dabei-decision-screens { flex-wrap: wrap; justify-content: flex-start; } }
/* ---- Round 17: wireframes under the decision journey ---- */
.dabei-wireframes { margin-top: var(--space-12); }
.dabei-wireframes-label { margin: 0 0 var(--space-7) !important; color: var(--text-primary) !important; font-size: var(--fs-h4) !important; line-height: var(--lh-h4) !important; letter-spacing: var(--ls-h4); font-weight: var(--fw-semibold); }
.dabei-wireframes { container-type: inline-size; }
.dabei-wire-row { --dpw: min(clamp(0px, (100cqw - 574px) / 4, 180px), (100cqw - 6 * var(--space-5)) / 7); display: flex; flex-wrap: wrap; gap: var(--space-5); row-gap: var(--space-7); }
.dabei-wire { flex: 0 0 var(--dpw); width: var(--dpw); }
@media (max-width: 1100px) { .dabei-wire-row { --dpw: min(180px, (100cqw - 3 * var(--space-5)) / 4); } }
@media (max-width: 760px) { .dabei-wire-row { --dpw: min(180px, (100cqw - 3 * var(--space-2)) / 4); gap: var(--space-2); row-gap: var(--space-6); } }
.dabei-wire { margin: 0; min-width: 0; }
.dabei-wire img { width: 100%; height: auto; aspect-ratio: 570 / 1155; object-fit: cover; object-position: top; display: block; }
.dabei-wire figcaption { margin-top: var(--space-3); font-size: var(--fs-small); line-height: var(--lh-small); color: var(--text-primary); }
.dabei-wire figcaption span { display: inline-block; min-width: 2em; color: var(--text-tertiary); }
.case-section .dabei-wireframes-note { margin: var(--space-6) 0 0; color: var(--text-tertiary); font-size: var(--fs-small); line-height: var(--lh-small); }
/* ---- Round 16: core journey uses the full width ---- */
.dabei-flow { grid-template-columns: repeat(4, minmax(0, 1fr)); justify-content: stretch; gap: var(--space-11) var(--space-8); width: min(100% - 2 * var(--gutter), 3 * 380px + 2 * var(--space-9)); margin-inline: auto; padding: var(--space-11) 0 0; }
.dabei-flow .dabei-phone { max-width: 300px; margin: 0; }
@media (max-width: 760px) { .dabei-flow { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-9) var(--space-4); } }
.dabei-supporting-grid .dabei-pair { justify-content: space-between; }
/* ---- Round 15 ---- */
.stat-panel strong sup { margin-left: .06em; font-size: .38em; vertical-align: super; line-height: 0; font-weight: var(--fw-regular); }
.case-section .stat-footnote { margin: var(--space-4) 0 0; color: var(--text-tertiary); font-size: var(--fs-small); line-height: var(--lh-small); }
.dabei-testing-label { margin: var(--space-12) var(--gutter) 0; color: var(--text-primary); font-size: var(--fs-h4); line-height: var(--lh-h4); letter-spacing: var(--ls-h4); font-weight: var(--fw-semibold); }
.dabei-testing-label + .dabei-testing { padding-top: var(--space-6); }
.dabei-ds-figure { margin: var(--space-10) var(--gutter) 0; }
.dabei-ds-figure img { width: 100%; height: auto; display: block; }
.dabei-ds-figure figcaption { margin-top: var(--space-3); color: var(--text-tertiary); font-size: var(--fs-small); }
/* ---- Round 14: journey with save and no paths ---- */
.dabei-journey-svg .dj-muted { fill: var(--surface-muted); stroke: none; }
.dabei-journey-svg .dj-dash { stroke-dasharray: 6 6; }
.dabei-journey-svg .dj-fill { fill: var(--text-primary); }
.dabei-journey-svg .dj-inv-stroke { stroke: var(--surface); }
.dabei-journey-svg .dj-final { fill: var(--text-primary); }
/* ---- Round 13: research as two panels ---- */
.stat-panels { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); margin-top: var(--space-10); }
.stat-panel { padding: var(--space-8); border: 1px solid var(--line); }
.stat-panel.is-own { background: var(--surface-alt); border-color: var(--surface-alt); color: var(--text-primary); }
.stat-panel h3, .stat-panel small { display: block; margin: 0; color: var(--text-tertiary); font-size: var(--fs-label); line-height: var(--lh-label); letter-spacing: var(--ls-label); text-transform: uppercase; font-weight: var(--fw-regular); }
.stat-panel-pair { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-6); margin-top: var(--space-9); }
.stat-panel strong { display: block; margin-top: var(--space-2); font-size: var(--fs-number); line-height: var(--lh-number); letter-spacing: var(--ls-number); font-weight: var(--fw-semibold); }
.stat-panel span { display: block; margin-top: var(--space-3); max-width: 16em; color: var(--text-secondary); font-size: var(--fs-small); line-height: var(--lh-small); }

@media (max-width: 860px) { .stat-panels, .stat-panel-pair { grid-template-columns: 1fr; } }
/* ---- Round 12: persona as profile sheet (question inside the card) ---- */
.persona-sheet { background: var(--surface); padding: var(--space-8); }
.persona-sheet-top { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 6fr); gap: var(--space-8); align-items: stretch; }
.persona-sheet-img { width: 100%; height: 100%; min-height: 320px; object-fit: cover; display: block; }
.persona-sheet-label { display: block; margin: 0 0 var(--space-3); color: var(--text-tertiary); font-size: var(--fs-label); line-height: var(--lh-label); letter-spacing: var(--ls-label); text-transform: uppercase; }
.persona-sheet-name { margin: 0; font-size: var(--fs-h1); line-height: var(--lh-h1); letter-spacing: var(--ls-h1); font-weight: var(--fw-medium); }
.case-section .persona-sheet-quote { margin: var(--space-6) 0 var(--space-8); color: var(--text-primary); font-size: var(--fs-h4); line-height: var(--lh-h4); letter-spacing: var(--ls-h4); }
.persona-sheet-cols { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: var(--space-7); }
.case-section .persona-sheet-cols ul { margin: 0; }
.case-section .persona-sheet-cols li { padding: var(--space-3) 0; font-size: var(--fs-body); line-height: var(--lh-body); }
.case-section .persona-sheet-need { margin: 0; padding: var(--space-3) 0; border-top: 1px solid var(--border); color: var(--text-primary); font-size: var(--fs-body); line-height: var(--lh-body); letter-spacing: 0; font-weight: var(--fw-regular); }
.persona-sheet-hmw { margin-top: var(--space-8); padding-top: var(--space-7); border-top: 1px solid var(--line); }
.case-section .persona-sheet-hmw p { margin: 0; max-width: 26em; color: var(--text-primary); font-size: var(--fs-h3); line-height: var(--lh-h3); letter-spacing: var(--ls-h3); font-weight: var(--fw-medium); }
.case-section:has(.persona-sheet) { align-items: start; }
.case-section:has(.persona-sheet) > h2 { padding-top: var(--space-8); }
@media (max-width: 860px) { .persona-sheet { padding: var(--space-6); } .persona-sheet-top, .persona-sheet-cols { grid-template-columns: 1fr; } .persona-sheet-img { max-width: 260px; } }
/* ---- Round 11: section headlines on H1, labels share their baseline ---- */
.case-section { align-items: baseline; }
.case-section .dabei-section-lead, .case-section .dabei-testing-lead, .dabei-supporting-intro h3 { max-width: 16em; font-size: var(--fs-h1) !important; line-height: var(--lh-h1) !important; letter-spacing: var(--ls-h1) !important; font-weight: var(--fw-medium) !important; }
.case-section .dabei-section-lead { margin-bottom: var(--space-7); }
/* ---- Round 10: decision journey full width ---- */
.case-section:has(.dabei-journey) > div { grid-column: 1 / -1; }
.dabei-journey { margin-top: var(--space-9); }
.dabei-journey-svg .dj-line { stroke-width: 1.4; stroke-linecap: butt; stroke-linejoin: miter; }
.dabei-journey-svg .dj-final { fill: var(--text-primary); }
/* ---- Round 9 ---- */
.dabei-supporting { margin: var(--space-13) var(--gutter) 0; padding: var(--space-11) 0 0; border-top: 1px solid var(--line); }
.dabei-supporting-intro h3 { margin: 0 0 var(--space-6); color: var(--text-primary); font-size: var(--fs-h3); line-height: var(--lh-h3); letter-spacing: var(--ls-h3); font-weight: var(--fw-semibold); }
.dabei-supporting-intro p { max-width: 720px; color: var(--text-secondary); font-size: var(--fs-h4); line-height: var(--lh-h4); letter-spacing: var(--ls-h4); }
.dabei-list-num { display: inline-block; min-width: 2.25em; color: var(--text-tertiary); }
.dabei-journey-step.is-final .dabei-journey-num, .dabei-journey-step.is-final .dabei-journey-sub { color: var(--text-tertiary); opacity: 1; }
/* ---- Round 8: one section-lead style (same as "The structure held.") ---- */
.case-section .dabei-section-lead { margin: 0 0 var(--space-6); max-width: 820px; color: var(--text-primary); font-size: var(--fs-h3); line-height: var(--lh-h3); letter-spacing: var(--ls-h3); font-weight: var(--fw-semibold); }
.case-section .dabei-testing-lead { color: var(--text-primary); max-width: 820px; }
/* ---- Round 7 ---- */
.dabei-band.is-alt .case-persona { background: var(--surface); }
/* ---- Round 6 ---- */
.case-section .dabei-ai-list li { display: flex; flex-direction: column; gap: var(--space-2); padding: var(--space-6) 0; }
.dabei-ai-list li h3 { margin: 0; color: var(--text-primary); font-size: var(--fs-h4); line-height: var(--lh-h4); letter-spacing: var(--ls-h4); font-weight: var(--fw-semibold); }
.case-section .dabei-ai-list li p { margin: 0; color: var(--text-secondary); font-size: var(--fs-body); line-height: var(--lh-body); }
.case-prototype { margin: var(--space-13) var(--gutter) 0; min-height: 22rem; padding: var(--space-11) var(--space-10); align-items: flex-end; font-size: var(--fs-h1); line-height: var(--lh-h1); letter-spacing: var(--ls-h1); font-weight: var(--fw-medium); }
.case-prototype svg { flex: none; width: .9em; height: .9em; }
@media (max-width: 760px) { .case-prototype { min-height: 14rem; padding: var(--space-8) var(--space-6); } }
/* ---- Round 5 ---- */
.case-nav-link { flex: 1 1 0; }
.case-nav-thumb { width: min(420px, 100%); }
.dabei-abtest .case-duo h4 { margin: var(--space-2) 0 0; color: var(--text-primary); font-size: var(--fs-h4); line-height: var(--lh-h4); letter-spacing: var(--ls-h4); font-weight: var(--fw-semibold); }
/* ---- Round 4 ---- */
.case-nav { margin-bottom: var(--space-12); }
.contact-banner svg { stroke-width: 1.2; }
/* Education: place as label under the title, contents separated by space */
.about-detail-row:has(.edu-place) { row-gap: 0; }
.about-detail-row:has(.edu-place) > div { display: block; }
.about-detail-row:has(.edu-place) .edu-place { margin: var(--space-2) 0 var(--space-5); color: var(--text-tertiary); font-size: var(--fs-label); line-height: var(--lh-label); letter-spacing: var(--ls-label); text-transform: uppercase; }
.about-detail-row:has(.edu-place) p:not(.edu-place) { color: var(--text-secondary); }

/* Research: interview quotes, loosely scattered */
.dabei-quotes { margin-top: var(--space-11); }
.dabei-quotes > h3 { margin: 0 0 var(--space-9); font-size: var(--fs-small); font-weight: var(--fw-semibold); color: var(--text-tertiary); line-height: var(--lh-small); }
.dabei-quote-wall { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: start; gap: var(--space-9) var(--space-5); }
.dabei-quote { position: relative; margin: 0; padding: var(--space-7) var(--space-6) var(--space-5); background: var(--surface-alt); }
.dabei-quote:nth-child(1) { grid-column: 1 / span 6; margin-top: var(--space-9); }
.dabei-quote:nth-child(2) { grid-column: 7 / span 6; }
.dabei-quote:nth-child(3) { grid-column: 2 / span 6; }
.dabei-quote:nth-child(4) { grid-column: 8 / span 5; margin-top: var(--space-10); }
@media (min-width: 761px) { .dabei-quote:nth-child(3):last-child { grid-column: 4 / span 6; } }
.dabei-quote-tag { position: absolute; top: 0; right: var(--space-5); transform: translateY(-50%); padding: var(--space-1) var(--space-3); background: var(--foreground); color: var(--background); font-size: var(--fs-label); letter-spacing: var(--ls-label); line-height: var(--lh-label); text-transform: uppercase; white-space: nowrap; }
.dabei-quote:nth-child(-n+2) .dabei-quote-tag { right: auto; left: var(--space-5); }
.dabei-quote blockquote { margin: 0; }
.case-section .dabei-quote p { margin: 0; max-width: none; color: var(--text-primary); font-size: var(--fs-body); letter-spacing: 0; line-height: var(--lh-body); }
.case-section .dabei-quote p.is-placeholder { color: var(--text-tertiary); font-style: italic; }
.dabei-quote figcaption { margin-top: var(--space-4); text-align: right; color: var(--text-tertiary); font-size: var(--fs-label); letter-spacing: var(--ls-label); line-height: var(--lh-label); text-transform: uppercase; }
@media (max-width: 760px) {
  .dabei-quote-wall { grid-template-columns: 1fr; gap: var(--space-8); }
  .dabei-quote:nth-child(n) { grid-column: auto; margin-top: 0; }
  .dabei-quote:nth-child(odd) { margin-right: 12%; }
  .dabei-quote:nth-child(even) { margin-left: 12%; }
}

/* Dabei! header: tilted collage of app screens on the category yellow */
.dabei-pattern { position: relative; overflow: hidden; aspect-ratio: 16 / 8; background: #fffc00; container-type: inline-size; }
.project-image-wrap .dabei-pattern { aspect-ratio: auto; height: 100%; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.project-card a:hover .dabei-pattern { transform: scale(1.025); }
.dabei-pattern-track { --pw: calc((132cqw - 18cqw) / 7); position: absolute; left: 50%; top: 50%; display: flex; gap: 3cqw; width: 132cqw; transform: translate(calc(-50% - 4.4cqw), calc(-50% - 7.1cqw)) rotate(-18deg); }
.dabei-pattern-col { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 3cqw; }
.dabei-pattern-col:nth-child(odd) { transform: translateY(8cqw); }
.dabei-pattern-col:nth-child(even) { transform: translateY(-8cqw); }
.dabei-pattern-phone { --b: calc(var(--pw) * .0233); --r: calc((var(--pw) - 2 * var(--b)) * .117); position: relative; display: block; padding: var(--b); border-radius: calc(var(--r) + var(--b)); background: #111; box-shadow: 0 1.6cqw 3cqw -1.4cqw rgb(0 0 0 / .35); }
.dabei-pattern-phone::before { content: ""; position: absolute; top: var(--b); left: 50%; z-index: 1; width: 43%; aspect-ratio: 162 / 30; transform: translateX(-50%); border-radius: 0 0 calc(var(--r) * .45) calc(var(--r) * .45); background: #111; }
.dabei-pattern-phone img { display: block; width: 100%; height: auto; aspect-ratio: 540 / 1169; object-fit: cover; object-position: top; border-radius: var(--r); background: #fff; }

/* Section 06: one phone width for every row, derived from the widest row (4 screens) */
.dabei-decision { container-type: inline-size; }
@media (max-width: 1100px) {
  .dabei-decision, .dabei-decision:nth-child(odd), .dabei-decision.is-wide, .dabei-decision.is-wide:nth-child(odd) { grid-template-columns: minmax(0, 1fr); }
  .dabei-decision-screens, .dabei-decision:nth-child(odd) .dabei-decision-screens { order: 0; justify-content: center; --dpw: min(180px, (100cqw - 3 * var(--space-5)) / 4); }
  .dabei-decision-copy { order: 1; }
  .dabei-decision.is-wide .dabei-decision-screens, .dabei-decision.is-wide:nth-child(odd) .dabei-decision-screens { justify-content: center; gap: var(--space-5); max-width: calc(3 * var(--dpw) + 2 * var(--space-5)); margin-inline: auto; }
  .dabei-decision.is-wide .dabei-decision-screens > :nth-child(2n+1):not(:first-child) { margin-left: 0; }
}
@media (max-width: 760px) {
  .dabei-decision-screens, .dabei-decision:nth-child(odd) .dabei-decision-screens { --dpw: min(180px, (100cqw - 3 * var(--space-2)) / 4); }
  .dabei-decision.is-wide .dabei-decision-screens, .dabei-decision.is-wide:nth-child(odd) .dabei-decision-screens { gap: var(--space-2); max-width: calc(3 * var(--dpw) + 2 * var(--space-2)); }
}
.proto-frame > .proto-fallback { position: absolute; top: 100%; left: 0; right: 0; margin-top: var(--space-4); overflow: visible; border-radius: 0; text-align: center; color: var(--text-tertiary); font-size: var(--fs-small); line-height: var(--lh-small); text-decoration: underline; text-underline-offset: 3px; }
.proto-frame > .proto-fallback:hover { color: var(--surface); }
/* Prototype: the Figma embed loads hidden behind the preview and fades in once rendered.
   The preview phone matches the size of Figma's own device frame, so nothing jumps. */
.proto-frame { transition: background-color .5s ease, box-shadow .5s ease; }
.proto-frame::before, .proto-start { transition: opacity .5s ease; }
.proto-frame > .proto-live { position: absolute; left: 50%; top: 50%; z-index: 3; width: 420px; height: 760px; transform: translate(-50%, -50%); border-radius: 0; opacity: 0; pointer-events: none; transition: opacity .5s ease; }
.proto-live iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; }
.proto-frame.is-loading .proto-start { cursor: progress; }
.proto-frame.is-live { background-color: transparent; box-shadow: none; }
.proto-frame.is-live::before, .proto-frame.is-live .proto-start { opacity: 0; pointer-events: none; }
.proto-frame.is-live > .proto-live { opacity: 1; pointer-events: auto; }
.proto-frame > .proto-fallback { z-index: 4; }
@media (prefers-reduced-motion: reduce) { .proto-frame, .proto-frame::before, .proto-start, .proto-frame > .proto-live { transition: none; } }
.proto-dots { display: inline-block; width: 1.2em; text-align: left; font-style: normal; }
.proto-dots::after { content: "…"; animation: proto-dots 1.4s steps(4, end) infinite; display: inline-block; overflow: hidden; vertical-align: bottom; width: 0; }
@keyframes proto-dots { to { width: 1.2em; } }
@media (prefers-reduced-motion: reduce) { .proto-dots::after { animation: none; width: auto; } }
.case-jump { display: inline-flex; align-items: center; gap: var(--space-2); margin-top: var(--space-6); padding-bottom: .15em; border-bottom: 1px solid currentColor; font-weight: var(--fw-semibold); }
.case-jump:hover { opacity: .7; }
.case-jump:focus-visible { outline: 2px solid var(--text-primary); outline-offset: 4px; }
#prototype { scroll-margin-top: 88px; }

/* Bilder und Videos: kein Ziehen, kein Speichern-Menü per langem Tippen (kein echter Schutz, nur eine Hürde) */
img, video { -webkit-user-drag: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }

/* R!SE: Videos im Bildfluss */
.rise-video-wide, .rise-video-tall { position: relative; overflow: hidden; }
.rise-video-wide { aspect-ratio: 2800 / 1576; }
.rise-video-wide video { position: absolute; left: 50%; top: 50%; width: 70%; height: auto; transform: translate(-50%, -50%); -webkit-mask-image: linear-gradient(to right, transparent, #000 9%, #000 91%, transparent); mask-image: linear-gradient(to right, transparent, #000 9%, #000 91%, transparent); }
.rise-video-tall { aspect-ratio: 1400 / 1749; }
.rise-video-tall video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }

/* Projektseiten: Videos in Bildgröße, zugeschnittene Kacheln, Reihe mit gleicher Höhe */
.rise-video { position: relative; overflow: hidden; }
.rise-video video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.rise-row { display: flex; gap: var(--gutter); width: min(calc(100% - 2 * var(--gutter)), 1380px); margin: var(--space-10) auto 0; }
.rise-row .rise-figure { flex-basis: 0; flex-shrink: 1; width: auto; min-width: 0; padding-top: 0; }
.rise-pair + .rise-row, .rise-row + .rise-pair, .rise-row + .rise-row { margin-top: var(--gutter); }
@media (max-width: 700px) { .rise-row { flex-direction: column; } .rise-row .rise-figure { flex-grow: 0 !important; width: 100%; } }
/* Video im Bildschirm einer Stele (Bundesregister): Bildschirmfläche 124–500 × 139–807 px im 608 × 1080-Video */
.rise-video video.rise-screen-overlay { inset: auto; left: 20.3%; top: 12.8%; width: 62.2%; height: 62.1%; object-fit: cover; }
.case-section p.rise-note { margin-top: var(--space-7); color: var(--text-tertiary); font-size: var(--fs-small); line-height: var(--lh-small); letter-spacing: 0; }
/* Bundesregister-Stelen: Kachel 608:960, Szene oben/unten beschnitten (sichtbar y 70–1030 von 1080).
   „Ecke“-Video (864 × 1080) auf denselben Ausschnitt wie die Stele (608 × 1080): Stele sitzt dort 130 px weiter rechts, 3 px höher. */
.rise-frame { position: absolute; left: 0; top: -7.29%; width: 100%; height: 112.5%; }
.rise-frame.is-ecke { left: -21.38%; top: -6.98%; width: 142.11%; }


/* Projektseiten im Raster der Dabei!-Case-Study:
   Inhalte bis zum Seitenrand (Gutter), keine Maximalbreite; Headerbild 16:9 wie die Kacheln auf der Startseite (auch der Dabei!-Header), direkt unter den Projektangaben. */
.rise-figure, .rise-pair, .rise-row, .rise-text { width: calc(100% - 2 * var(--gutter)); }
.rise-hero { padding-top: var(--gutter); }
.case-meta + .rise-hero { padding-top: 0; }
.rise-hero > img, .rise-hero > .rise-video { width: 100%; aspect-ratio: 16 / 9; }
.rise-hero > img { height: auto; object-fit: cover; }
.dabei-header-image > .dabei-pattern, .dabei-header-image > img { aspect-ratio: 16 / 9; }

/* Projektseiten: Übersicht aller Seiten (lange Screens nebeneinander, oben bündig) + Lightbox zum Durchscrollen */
.page-strips { width: calc(100% - 2 * var(--gutter)); margin: var(--gutter) auto 0; padding: var(--space-9) var(--space-7); background: var(--surface-alt); overflow-x: auto; }
.page-strips-track { display: flex; align-items: flex-start; gap: var(--space-5); min-width: 880px; }
.page-strip { flex: 1 1 0; min-width: 0; padding: 0; border: 0; background: none; cursor: zoom-in; transition: transform .3s cubic-bezier(.2,.7,.2,1); }
.page-strip img { display: block; width: 100%; height: auto; box-shadow: 0 0 0 1px var(--border); }
.page-strip:hover, .page-strip:focus-visible { transform: translateY(-4px); }
.page-strip:focus-visible { outline: 2px solid var(--text-primary); outline-offset: 4px; }
.page-lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(0, 0, 0, .88); overflow-y: auto; overscroll-behavior: contain; }
.page-lightbox[hidden] { display: none; }
.page-lightbox img { display: block; width: min(1100px, 92vw); height: auto; margin: 6vh auto; }
.page-lightbox-close { position: fixed; top: var(--space-5); right: var(--space-5); z-index: 1; width: 2.75rem; height: 2.75rem; border: 0; border-radius: 50%; background: var(--surface); color: var(--text-primary); font-size: 1.5rem; line-height: 1; cursor: pointer; }
@media (prefers-reduced-motion: reduce) { .page-strip { transition: none; } .page-strip:hover { transform: none; } }
/* Dreierreihe (gleich große Kacheln) */
.rise-pair.is-trio { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 700px) { .rise-pair.is-trio { grid-template-columns: 1fr; } }
/* Straßen-Stele (Header-Video 1732 × 1080) auf dieselbe Bildschirmgröße und -position wie die beiden Tram-Stelen:
   Ausschnitt x 538–1173, y 54–1057 */
.rise-frame.is-street { left: -84.72%; top: -5.38%; width: 272.76%; height: 107.68%; }
/* „Pitch“-Typo im Stelen-Bildschirm: Schwarz etwas zurücknehmen, damit es zu den anderen Stelen passt */
.rise-video video.rise-screen-overlay { filter: contrast(.9) saturate(.92); }
/* Viererraster (gleich große Kacheln, z. B. Merchandise) */
.rise-pair.is-quad { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 700px) { .rise-pair.is-quad { grid-template-columns: 1fr 1fr; } }

/* Projektseiten: Kapitel mit kleiner Überschrift. Innerhalb eines Kapitels überall derselbe Abstand (Gutter),
   waagerecht wie senkrecht; zwischen Kapiteln mehr Luft. */
.rise-group { display: flex; flex-direction: column; gap: var(--gutter); width: calc(100% - 2 * var(--gutter)); margin: var(--space-12) auto 0; }
.rise-group > .rise-figure, .rise-group > .rise-pair, .rise-group > .rise-row { width: 100%; margin: 0; padding: 0; }
.rise-group-title { margin: 0 0 calc(var(--space-3) - var(--gutter) + var(--space-4)); font-size: var(--fs-small); font-weight: var(--fw-semibold); line-height: var(--lh-small); color: var(--text-tertiary); }
@media (max-width: 700px) { .rise-group { margin-top: var(--space-10); } }
.rise-group > .page-strips { width: 100%; margin: 0; }
/* Hochformat-Video mittig im 16:9-Header, Ränder laufen weich in die Hintergrundfarbe aus */
.rise-video video.is-contained { inset: auto; left: 50%; top: 50%; width: 70%; height: auto; object-fit: contain; transform: translate(-50%, -50%); -webkit-mask-image: linear-gradient(to right, transparent, #000 7%, #000 93%, transparent); mask-image: linear-gradient(to right, transparent, #000 7%, #000 93%, transparent); }

/* Mosaik: links ein hohes Bild über zwei Reihen, rechts zwei Bilder übereinander (3:2); gleiche Abstände */
.rise-mosaic { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gutter); }
.rise-mosaic > .rise-figure { width: 100%; margin: 0; padding: 0; }
.rise-mosaic > .rise-figure:not(.is-tall) img { aspect-ratio: 3 / 2; object-fit: cover; }
.rise-mosaic > .is-tall { grid-row: span 2; }
.rise-mosaic > .is-tall img { height: 100%; object-fit: cover; }
@media (max-width: 700px) { .rise-mosaic { grid-template-columns: 1fr; } .rise-mosaic > .is-tall { grid-row: auto; } .rise-mosaic > .is-tall img { height: auto; aspect-ratio: 3 / 4; } }
/* Bild kleiner auf Farbfläche (z. B. bei niedriger Auflösung): Fläche in Kachelbreite, Bild ca. 70 % */
.rise-group > .rise-figure.is-inset, .rise-figure.is-inset { display: flex; justify-content: center; align-items: center; padding: 7% 0; }
.rise-figure.is-inset img { width: 70%; -webkit-mask-image: linear-gradient(to right, transparent, #000 3%, #000 97%, transparent), linear-gradient(to bottom, transparent, #000 4%, #000 96%, transparent); -webkit-mask-composite: source-in; mask-image: linear-gradient(to right, transparent, #000 3%, #000 97%, transparent), linear-gradient(to bottom, transparent, #000 4%, #000 96%, transparent); mask-composite: intersect; }

/* Laptop mit durchscrollender Website (reines CSS, keine Videodatei).
   Jede Seite: kurz stehen, nach unten scrollen, in die nächste überblenden. --i = Position, --shift = Scrollweg */
.laptop { position: absolute; left: 50%; top: 50%; width: 66%; transform: translate(-50%, -50%); }
.laptop-screen { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #fff; border: clamp(6px, 1.1cqw, 16px) solid #18181a; border-bottom-width: clamp(8px, 1.6cqw, 22px); border-radius: clamp(8px, 1.4cqw, 18px) clamp(8px, 1.4cqw, 18px) 0 0; }
.laptop-base { position: relative; left: -8%; width: 116%; height: clamp(8px, 1.3cqw, 18px); background: linear-gradient(#3a3a3e, #1f1f22); border-radius: 0 0 clamp(8px, 1.4cqw, 18px) clamp(8px, 1.4cqw, 18px); }
.laptop-base::before { content: ""; position: absolute; left: 50%; top: 0; width: 16%; height: 45%; transform: translateX(-50%); background: #111; border-radius: 0 0 8px 8px; }
.rise-video:has(.laptop) { container-type: inline-size; }

.laptop-screen img { position: absolute; left: 0; top: 0; width: 100%; height: auto; opacity: 0; animation: var(--anim) var(--dur, calc(var(--n) * 7s)) linear infinite both; animation-delay: var(--delay, calc(var(--i) * 7s)); }
.rise-pair .laptop { width: 84%; }
@keyframes laptop-scroll-2 { 0% { opacity: 0; transform: translateY(0); } 3.50% { opacity: 1; } 12.00% { transform: translateY(0); animation-timing-function: ease-in-out; } 43.50% { transform: translateY(var(--shift)); } 50.00% { opacity: 1; } 53.50% { opacity: 0; transform: translateY(var(--shift)); } 100% { opacity: 0; transform: translateY(var(--shift)); } }
@keyframes laptop-scroll-3 { 0% { opacity: 0; transform: translateY(0); } 2.33% { opacity: 1; } 8.00% { transform: translateY(0); animation-timing-function: ease-in-out; } 29.00% { transform: translateY(var(--shift)); } 33.33% { opacity: 1; } 35.67% { opacity: 0; transform: translateY(var(--shift)); } 100% { opacity: 0; transform: translateY(var(--shift)); } }
@keyframes laptop-scroll-4 { 0% { opacity: 0; transform: translateY(0); } 1.75% { opacity: 1; } 6.00% { transform: translateY(0); animation-timing-function: ease-in-out; } 21.75% { transform: translateY(var(--shift)); } 25.00% { opacity: 1; } 26.75% { opacity: 0; transform: translateY(var(--shift)); } 100% { opacity: 0; transform: translateY(var(--shift)); } }
@keyframes laptop-scroll-5 { 0% { opacity: 0; transform: translateY(0); } 1.40% { opacity: 1; } 4.80% { transform: translateY(0); animation-timing-function: ease-in-out; } 17.40% { transform: translateY(var(--shift)); } 20.00% { opacity: 1; } 21.40% { opacity: 0; transform: translateY(var(--shift)); } 100% { opacity: 0; transform: translateY(var(--shift)); } }
@keyframes laptop-scroll-6 { 0% { opacity: 0; transform: translateY(0); } 1.17% { opacity: 1; } 4.00% { transform: translateY(0); animation-timing-function: ease-in-out; } 14.50% { transform: translateY(var(--shift)); } 16.67% { opacity: 1; } 17.83% { opacity: 0; transform: translateY(var(--shift)); } 100% { opacity: 0; transform: translateY(var(--shift)); } }
@media (prefers-reduced-motion: reduce) { .laptop-screen img { animation: none; } .laptop-screen img:first-child { opacity: 1; } }
.page-strips { box-sizing: border-box; }
/* mendi.net: Startseite ganz durchscrollen, dann »Was wir machen« bis zur Infografik und dort kurz stehen bleiben */
@keyframes mendi-1 { 0% { opacity: 1; transform: translateY(0); } 6% { transform: translateY(0); animation-timing-function: ease-in-out; } 54% { transform: translateY(var(--shift)); } 58% { opacity: 1; } 61% { opacity: 0; transform: translateY(var(--shift)); } 62% { opacity: 0; transform: translateY(0); } 97% { opacity: 0; transform: translateY(0); } 100% { opacity: 1; transform: translateY(0); } }
@keyframes mendi-2 { 0% { opacity: 0; transform: translateY(0); } 58% { opacity: 0; transform: translateY(0); } 61% { opacity: 1; } 65% { transform: translateY(0); animation-timing-function: ease-in-out; } 86% { transform: translateY(var(--shift)); } 97% { opacity: 1; } 100% { opacity: 0; transform: translateY(var(--shift)); } }


/* Bundesregister: rechte Stele – Bildschirm nachgebaut: animierte Verlaufsecke (Bewegung aus dem Originalvideo vermessen) + richtig gesetzter Claim und URL */
.stele-screen { position: absolute; left: 29.537%; top: 12.593%; width: 43.796%; height: 62.519%; overflow: hidden; background: #fff; }
.stele-grad { position: absolute; inset: 0; background: linear-gradient(160deg, #8DE38F, #CEF369); clip-path: polygon(67% 0%, 100% 0%, 100% 27%, 100% 27%, 67% 0%); animation: stele-corner 10s ease-in-out infinite; }
.rise-figure .stele-screen img.stele-claim { position: absolute; left: 6.81%; top: 24.94%; width: 87.54%; height: auto; }
.rise-figure .stele-screen img.stele-url { position: absolute; left: 8.55%; top: 88.14%; width: 47.54%; height: auto; }
@keyframes stele-corner {
  0% { clip-path: polygon(67% 0%, 100% 0%, 100% 27%, 100% 27%, 67% 0%); }
  5% { clip-path: polygon(0% 0%, 100% 0%, 100% 62%, 100% 62%, 0% 24%); }
  10% { clip-path: polygon(0% 0%, 100% 0%, 100% 63%, 100% 63%, 0% 25%); }
  15% { clip-path: polygon(10% 0%, 100% 0%, 100% 82%, 100% 82%, 10% 0%); }
  20% { clip-path: polygon(13% 0%, 100% 0%, 100% 83%, 100% 83%, 13% 0%); }
  25% { clip-path: polygon(21% 0%, 100% 0%, 100% 19%, 100% 19%, 21% 0%); }
  30% { clip-path: polygon(22% 0%, 100% 0%, 100% 17%, 100% 17%, 22% 0%); }
  35% { clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 90% 100%, 0% 30%); }
  40% { clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 35% 100%, 0% 66%); }
  45% { clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 76% 100%, 0% 60%); }
  50% { clip-path: polygon(0% 0%, 100% 0%, 100% 44%, 100% 44%, 0% 62%); }
  55% { clip-path: polygon(0% 0%, 100% 0%, 100% 17%, 100% 17%, 0% 69%); }
  60% { clip-path: polygon(0% 0%, 100% 0%, 100% 15%, 100% 15%, 0% 42%); }
  65% { clip-path: polygon(16% 0%, 100% 0%, 100% 15%, 100% 15%, 16% 0%); }
  70% { clip-path: polygon(0% 0%, 100% 0%, 100% 37%, 100% 37%, 0% 3%); }
  75% { clip-path: polygon(0% 0%, 100% 0%, 100% 93%, 100% 93%, 0% 42%); }
  80% { clip-path: polygon(0% 0%, 100% 0%, 100% 85%, 100% 85%, 0% 33%); }
  85% { clip-path: polygon(67% 0%, 100% 0%, 100% 27%, 100% 27%, 67% 0%); }
  100% { clip-path: polygon(67% 0%, 100% 0%, 100% 27%, 100% 27%, 67% 0%); }
}
@media (prefers-reduced-motion: reduce) { .stele-grad { animation: none; } }

/* Dabei!-Header, Varianten zum Testen */
.dabei-pattern.is-20 .dabei-pattern-track { transform: translate(calc(-50% - 3cqw), calc(-50% - 5.3cqw)) rotate(-20deg); width: 140cqw; --pw: calc((140cqw - 18cqw) / 7); }
.dabei-pattern-row { position: absolute; left: 50%; top: 50%; display: flex; align-items: center; gap: var(--gap, 2.2cqw); transform: translate(-50%, -50%); --pw: var(--phone, 9.4cqw); }
.dabei-pattern-row .dabei-pattern-phone { flex: 0 0 var(--pw); width: var(--pw); }
.dabei-pattern-row .dabei-pattern-phone:nth-child(odd) { transform: translateY(var(--lift, 3.2cqw)); }
.dabei-pattern-row .dabei-pattern-phone:nth-child(even) { transform: translateY(calc(var(--lift, 3.2cqw) * -1)); }
/* Video als Bildschirminhalt im CSS-Laptop (R!SE): Bildschirm im Quellvideo x 186–896, y 433–886 von 1080 × 1350 */
.rise-video .laptop-screen video.laptop-video { inset: auto; left: -26.16%; top: -97.44%; width: 151.9%; height: auto; max-width: none; object-fit: fill; }
.dabei-header-image > img.dabei-header-photo { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; display: block; }
.project-image-wrap > img.dabei-header-photo { width: 100%; height: 100%; object-fit: cover; }

/* Sprachwahl: »DE / EN« als Text, aktive Sprache unterstrichen wie die Navigation */
.lang-toggle button { position: relative; }
.lang-toggle button::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -5px; height: 1px; background: var(--foreground); transition: right .25s ease; }
.lang-toggle button.is-active::after, .lang-toggle button:hover::after { right: 0; }
.lang-toggle button.is-active { cursor: default; }
@media (prefers-reduced-motion: reduce) { .lang-toggle button::after { transition: none; } }
.case-meta-link { text-decoration: underline; text-underline-offset: .18em; white-space: nowrap; }

/* Bildmaße im HTML (width/height) nur als Seitenverhältnis-Hinweis nutzen, nie als feste Höhe */
:where(img) { height: auto; }
