@font-face {
  font-family: "Barlow Condensed";
  src: url("heading.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --ink: #f7f5ef;
  --muted: #c3ceda;
  --base: #081521;
  --panel: #13293a;
  --line: #91b1cf3d;
  --accent: #ff536a;
  --button: #c91742;
  --button-hover: #a91035;
  --display: "Barlow Condensed", "Arial Narrow", system-ui, sans-serif;
  --body: "Inter", "Segoe UI", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html {
  min-width: 320px;
  scroll-padding-top: calc(var(--portfolio-header-height, 5rem) + 1.45rem);
}
body {
  margin: 0;
  color: var(--ink);
  background: var(--base);
  font: 16px/1.6 var(--body);
}
body[data-profile="general"] {
  --accent: #86caff;
  --button: #156196;
  --button-hover: #124e7a;
}
img { max-width: 100%; }
a { color: inherit; }
a:hover { text-decoration-color: var(--accent); }
a:focus-visible, button:focus-visible, video:focus-visible {
  outline: 3px solid #ffd488;
  outline-offset: 4px;
}
[hidden] { display: none !important; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { line-height: 1.08; }
h1, h2, h3, .wordmark, .work-title {
  font-family: var(--display);
  font-weight: 700;
}
h2 { font-size: clamp(2rem, 3.65vw, 3rem); }
h3 { font-size: clamp(1.45rem, 2.4vw, 2rem); }
.wrap { width: min(94%, 1490px); margin-inline: auto; }
.narrow { width: min(92%, 1060px); margin-inline: auto; }
.visually-hidden, .skip:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip:focus {
  position: absolute;
  z-index: 6;
  top: 8px;
  left: 8px;
  padding: .6rem 1rem;
  color: #080f17;
  background: #fff;
}
.landscape {
  position: absolute;
  z-index: -1;
  inset: 0 0 auto;
  overflow: hidden;
  height: clamp(38rem, 62vw, 52rem);
  background: #0c2644;
  pointer-events: none;
}
.landscape::before, .landscape::after {
  position: absolute;
  inset: 0;
  content: "";
}
.landscape::before {
  background: url("../media/landscape.jpg") center 58% / cover no-repeat;
  filter: brightness(.58) saturate(.86) hue-rotate(7deg);
}
.landscape::after {
  background:
    radial-gradient(ellipse 29% 12% at 29% 60%, #ec8b669e 0%, #b75b5152 48%, transparent 100%),
    linear-gradient(180deg, #04152ee0 1%, #061e3aaa 36%, #0c1e39a8 62%, #081521 98%);
}
.page { position: relative; isolation: isolate; min-height: 100vh; }
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem 1.5rem;
  flex-wrap: wrap;
  position: sticky;
  z-index: 5;
  top: .7rem;
  padding: .35rem clamp(.8rem, 2vw, 2.15rem);
  margin-bottom: .7rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #12273be8;
  box-shadow: inset 0 1px 14px #c9e3ff0b;
  backdrop-filter: blur(14px);
}
.header-brand {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
}
.homepage-link {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 9px;
}
.homepage-link:hover { background: #d3e6ff1a; }
.homepage-link img { display: block; }
.wordmark {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: .85rem;
  text-decoration: none;
  font-size: 1.85rem;
  white-space: nowrap;
}
.wordmark::after {
  content: "";
  display: block;
  width: 2rem;
  height: 3px;
  background: var(--accent);
}
.header-controls, .header-links, .languages {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}
.header-controls { gap: .3rem 1rem; }
.header-links { gap: clamp(.55rem, 2.1vw, 2.25rem); }
.header-links a, .languages a, .languages span {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.header-links a {
  font-weight: 600;
  text-decoration: none;
  text-underline-offset: .35em;
}
.header-links a:hover, .header-links a[aria-current="page"] {
  text-decoration: underline;
}
.languages { padding-inline: .2rem; border: 1px solid var(--line); border-radius: 10px; }
.languages a, .languages span {
  justify-content: center;
  min-width: 44px;
  text-decoration: none;
  font-size: .79rem;
  letter-spacing: .04em;
  font-weight: 750;
}
.languages [aria-current="true"] { color: var(--accent); }
.languages a:hover { color: var(--accent); }

.hero {
  display: grid;
  grid-template-columns: minmax(0, .87fr) minmax(0, 1.24fr);
  align-items: center;
  gap: clamp(1.4rem, 2.7vw, 3rem);
  padding-block: clamp(1.7rem, 4vw, 3.45rem) clamp(2.6rem, 4.7vw, 4.8rem);
}
.hero-copy { padding-inline: clamp(0rem, 1.45vw, 1.6rem) 0; }
.hero-masthead, .hero-projects-link { display: none; }
.prepared {
  display: flex;
  align-items: center;
  gap: .55rem;
  margin-bottom: .55rem;
  color: #e7edf5;
  font-size: clamp(.83rem, 1.2vw, 1.02rem);
  font-weight: 600;
}
.prepared img { display: block; width: clamp(67px, 8vw, 98px); height: auto; }
.role { margin-top: .2rem; color: var(--muted); font-size: .9rem; }
.hero h1 {
  margin-bottom: .25rem;
  font-size: clamp(3.9rem, 7.4vw, 7.15rem);
  line-height: .96;
  letter-spacing: -.015em;
  text-wrap: balance;
  text-shadow: 0 4px 30px #030e26a8;
}
.tagline {
  font-size: clamp(1.45rem, 2.8vw, 2.9rem);
  line-height: 1.15;
  letter-spacing: -.026em;
}
.intro {
  margin-block: .85rem 1.45rem;
  max-width: 38ch;
  font-size: clamp(1rem, 1.65vw, 1.35rem);
  color: #e0e9f2;
}
.action {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: .6rem 1.12rem;
  border-radius: 9px;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid #ffffff3b;
  background: var(--panel);
}
.action:hover { background: #1d3a50; }
.action-primary { background: var(--button); color: #fff; }
.action-primary:hover { background: var(--button-hover); }
.film-panel { min-width: 0; }
.xp-live { margin-block: 0 2.5rem; scroll-margin-top: .5rem; }
.xp-live .action-list { align-items: center; }
.xp-live .action { cursor: pointer; }
.xp-live .action[aria-pressed="true"] { border-color: var(--accent); }
.xp-live iframe {
  display: block;
  width: 100%;
  height: clamp(450px, 72vh, 830px);
  margin-top: .7rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #102537;
}
.film-choices {
  display: flex;
  flex-wrap: wrap;
  gap: .42rem;
  margin: 0 0 .58rem;
  padding: 0;
  border: 0;
}
.film-choice {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .35rem .65rem;
  min-height: 44px;
  padding: .5rem .85rem;
  border: 1px solid #87abcc59;
  border-radius: 9px;
  background: #10253ae8;
  color: #f5f8fc;
  font: 650 .93rem var(--body);
  cursor: pointer;
}
.film-choice span { color: #d1dce7; font-weight: 500; font-size: .78rem; }
.film-choice[aria-pressed="true"] { border-color: var(--accent); background: #263545; }
.film-choice:hover { filter: brightness(1.18); }
.featured-video, .video-frame {
  overflow: hidden;
  border: 1px solid #c7dce78c;
  border-radius: 15px;
  background: #070e15;
  box-shadow: 0 14px 28px #0208143b;
}
video { display: block; width: 100%; background: #050a11; }
.media-surface { position: relative; }
.media-surface > .media-starter {
  position: absolute; inset: 0; width: 100%; height: 100%;
  aspect-ratio: auto; object-fit: contain; pointer-events: none;
}
.work-preview > .media-starter { object-fit: cover; }
.featured-video video, .video-frame video {
  aspect-ratio: 16 / 9;
  object-fit: contain;
}
.featured-video figcaption, .video-frame figcaption {
  padding: .6rem .9rem;
  color: #e9f0f7;
  background: #152534;
  font-size: .94rem;
}
.film-launch {
  position: relative;
  isolation: isolate;
}
.film-description {
  margin: .55rem 0 .76rem;
  color: var(--ink);
  font-size: clamp(1.02rem, 1.45vw, 1.3rem);
  font-weight: 650;
  line-height: 1.38;
}
.play-film {
  position: absolute;
  z-index: 1;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  padding: 0;
  width: clamp(52px, 7vw, 84px);
  aspect-ratio: 1;
  border: 2px solid #f1f5f7e6;
  border-radius: 50%;
  color: #fff;
  background: #14283ad9;
  cursor: pointer;
  backdrop-filter: blur(10px);
}
.play-film:hover { background: #1d384b; }
.play-film svg { display: block; width: 34%; margin-left: 5%; fill: currentColor; }
.player-error { color: #ffd2d9; margin: .55rem 0 0; }
.featured-branches {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(.85rem, 2vw, 1.65rem);
  margin-bottom: 3.5rem;
}
.feature-card {
  display: flex;
  flex-direction: column;
  gap: .75rem;
  padding: clamp(.85rem, 2.2vw, 1.7rem);
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #122637;
  scroll-margin-top: 1rem;
}
.feature-card h2 { font-size: clamp(1.75rem, 3.5vw, 2.7rem); }
.feature-card p { color: #e0e8ef; }
.feature-action { align-self: flex-start; }
.feature-photo {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  border-radius: 10px;
  background: #0c1928;
}
.coaching-frame { display: grid; }
.coaching-frame .feature-photo { grid-area: 1 / 1; transition: opacity .45s ease; }
.coaching-frame .feature-photo[aria-hidden="true"] { opacity: 0; }
.coaching-controls { display: flex; flex-wrap: wrap; gap: .55rem; margin-top: .65rem; }
.coaching-controls .action { cursor: pointer; min-height: 44px; }
.work { padding-bottom: 3.5rem; scroll-margin-top: 1rem; }
.work h2 { margin-bottom: .9rem; }
.work-grid, .evidence-grid, .partner-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(.9rem, 1.5vw, 1.45rem);
}
.work-grid {
  --work-columns: 3;
  --work-expanded: 2;
  grid-template-columns: repeat(var(--work-columns), minmax(0, 1fr));
  grid-auto-rows: minmax(0, 1fr);
  grid-auto-flow: row dense;
}
.work-card {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto auto auto;
  position: relative;
  min-width: 0;
  scroll-margin-top: .5rem;
}
.work-card[data-size="expanded"] {
  grid-column: span var(--work-expanded);
  grid-row: span 2;
}
.work-card[data-size="maximum"] {
  grid-column: span var(--work-columns);
  grid-row: span var(--work-columns);
}
.work-visual {
  position: relative;
  min-width: 0;
  min-height: 0;
  aspect-ratio: 16 / 10;
}
.work-card[data-size] .work-visual { aspect-ratio: auto; }
.work-visual .work-image,
.work-visual .work-preview { position: absolute; inset: 0; width: 100%; height: 100%; }
.work-card[data-size] .work-image { object-fit: contain; }
.work-grid[data-expandable] .work-link::before { content: none; }
.work-enlarge, .work-maximum {
  position: absolute;
  cursor: pointer;
  font: inherit;
  font-size: .85rem;
  font-weight: 650;
  color: var(--ink);
  z-index: 1;
}
.work-enlarge { inset: 0; width: 100%; border: 0; border-radius: 14px; background: transparent; }
.work-enlarge span, .work-maximum {
  display: grid;
  place-items: center;
  min-height: 44px;
  padding: .2rem .65rem;
  border: 1px solid #b5cce480;
  border-radius: 9px;
  background: #0c1928ed;
}
.work-enlarge span { position: absolute; top: .55rem; right: .55rem; }
.work-maximum { top: .55rem; left: .55rem; z-index: 2; }
.work-maximum[aria-pressed="true"] { border-color: var(--accent); }
.work-enlarge:hover span, .work-maximum:hover { background: #1d384b; }
.work-link { display: block; text-decoration: none; }
.work-link::before { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: 14px; }
.work-link:focus-visible::before { outline: 2px solid #ffd488; outline-offset: 4px; }
.work-image {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  border: 1px solid #c7dce78c;
  border-radius: 14px;
  object-fit: cover;
  background: #142637;
}
.work-preview { position: relative; }
.work-preview .work-image,
.work-card:is([data-work-project="bilderwelt"], [data-work-project="maerchenbibliothek"]) .work-image { object-fit: contain; }
.preview-play { z-index: 2; width: clamp(46px, 5vw, 64px); }
.preview-play .preview-icon-pause { display: none; }
.preview-play[data-playing="true"] .preview-icon-play { display: none; }
.preview-play[data-playing="true"] .preview-icon-pause { display: block; }
.preview-error {
  position: absolute;
  inset: auto .65rem .65rem;
  padding: .3rem .55rem;
  color: #ffd2d9;
  background: #14283aee;
}
@media (hover: hover) and (pointer: fine) {
  .preview-play[data-playing="true"]:not(:hover):not(:focus-visible) { opacity: 0; }
}
.work-title {
  display: flex;
  align-items: baseline;
  gap: .4rem;
  padding-top: .52rem;
  font-size: clamp(1.5rem, 2.2vw, 2.2rem);
  line-height: 1.15;
  text-wrap: balance;
}
.work-title::after { content: "›"; color: var(--accent); font-family: var(--body); }
.work-card:hover .work-title, .work-link:focus-visible .work-title { color: var(--accent); }
.work-client { display: block; margin-top: .25rem; color: var(--muted); }
.work-summary, .work-details p { max-width: 62ch; }
.work-summary { margin: .55rem 0 0; font-size: .94rem; }
.work-details { padding-top: .75rem; }
.work-details .action-list { margin-top: .7rem; }
.work-details figure { margin-top: .85rem; max-width: 42rem; }
.work-details img { display: block; width: 100%; border: 1px solid var(--line); border-radius: 9px; }
.work-details figcaption { margin-top: .35rem; font-size: .86rem; color: var(--muted); }
.client-projects { padding-block: 0 3.5rem; scroll-margin-top: 1rem; }
.client-projects h2 { margin-bottom: .9rem; }
.client-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 238px), 1fr));
  gap: .75rem;
}
.client-card {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: .75rem;
  align-items: center;
  padding: .65rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #122637;
  text-decoration: none;
}
.client-card:hover, .client-card:focus-visible { background: #1b364b; }
.client-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 6px; }
.client-card strong { display: block; }
.client-topic { display: block; color: var(--muted); font-size: .9rem; }
.client-summary { display: block; margin-top: .4rem; font-size: .87rem; }
.footer {
  display: flex;
  justify-content: space-between;
  gap: .8rem 1.5rem;
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
  padding: 1.4rem 0 2.5rem;
  color: var(--muted);
  font-size: .9rem;
}
.footer a { text-underline-offset: .23em; }

.detail, .cv-page { padding-block: clamp(1.55rem, 4vw, 3.5rem) 3.5rem; }
.back-link { display: inline-flex; min-height: 44px; align-items: center; color: #eff6fd; }
.detail-header, .cv-heading { margin: .65rem 0 1.7rem; }
.eyebrow { color: #f3b6c0; font-weight: 700; font-size: 1rem; margin-bottom: .65rem; }
.detail h1, .cv-page h1 {
  font-size: clamp(3.05rem, 7vw, 5.85rem);
  line-height: .98;
}
.lead { margin-top: .8rem; max-width: 64ch; font-size: clamp(1rem, 2vw, 1.27rem); color: #e5eef6; }
.detail-media { margin-block: 0 1.7rem; }
.detail-image { display: block; border-radius: 15px; border: 1px solid var(--line); max-height: 520px; }
.detail-media figcaption { margin-top: .45rem; color: var(--muted); }
.copy-block, .partners, .bus-evidence, .documents { padding-block: 1.5rem; }
.copy-block p, .bus-evidence p { max-width: 72ch; margin-top: .65rem; color: #e0e8ef; }
.action-list { display: flex; flex-wrap: wrap; gap: .65rem; margin: .9rem 0; }
.partners h2, .bus-evidence h2, .documents h2 { margin-bottom: .85rem; }
.partner-card {
  min-width: 0;
  padding: .9rem;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #122637;
  scroll-margin-top: 1rem;
}
.partner-card h3 { margin-bottom: .65rem; }
.partner-card .video-frame { margin-bottom: .65rem; border-radius: 9px; }
.partner-card a { color: #e6f4ff; }
.partner-screenshot { margin-top: 1rem; }
.partner-screenshot img { display: block; width: 100%; height: auto; }
.workspace-video video { aspect-ratio: 1746 / 746; }
.evidence-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
.evidence-grid .portrait { aspect-ratio: 29 / 53; max-height: 510px; }
.evidence-grid .original-frame { aspect-ratio: auto; }
.cv-heading .lead { color: var(--muted); }
.hero-actions, .cv-actions { display: flex; flex-wrap: wrap; gap: .55rem; }
.cv-actions { margin-top: .9rem; }
.action.cv-download { --button: #c91742; --button-hover: #a91035; gap: .35em; }
.cv-download small { font-size: .73em; }
.cv-table {
  width: 100%;
  border-spacing: 0;
  table-layout: fixed;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #0f2233;
  color: var(--ink);
}
.cv-table th, .cv-table td { padding: .8rem 1rem; text-align: left; vertical-align: top; }
.cv-table thead th { background: #1d374d; }
.cv-table tbody :is(th, td) { border-top: 1px solid var(--line); overflow-wrap: anywhere; }
.cv-table tbody th { font-weight: 650; }
.cv-table thead :nth-child(1) { width: 32%; }
.cv-table thead :nth-child(2) { width: 20%; }
.cv-client-link { margin-block: 1rem; }
.education { margin-block: 1.65rem .65rem; }
.education p { margin-top: .55rem; }
.downloads { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: .65rem; }
.downloads small { margin-left: .4rem; color: #d7e5f1; font-weight: 500; }

@media (min-width: 1280px) {
  .work-grid { --work-columns: 4; }
}
@media (max-width: 980px) {
  .work-grid { --work-columns: 2; }
  .hero { grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr); }
  .hero h1 { font-size: clamp(3.25rem, 8vw, 5.35rem); }
  .header-links { gap: .85rem; }
  .work-grid { gap: .8rem; }
  .cv-table th, .cv-table td { padding: .65rem .7rem; }
}
@media (max-width: 700px) {
  .wrap { width: 92%; }
  .header { gap: .25rem .4rem; padding: .35rem .65rem; }
  .header-controls {
    display: contents;
  }
  html { scroll-padding-top: calc(var(--portfolio-header-height, 9.5rem) + 1.45rem); }
  .header-brand { order: 0; gap: .25rem; }
  .header .wordmark { font-size: clamp(1.35rem, 6.1vw, 1.65rem); }
  .header .wordmark::after { display: none; }
  .header .languages { order: 1; margin-left: auto; }
  .header-links { width: 100%; order: 2; flex-wrap: wrap; gap: .2rem .75rem; font-size: .87rem; }
  .hero { grid-template-columns: minmax(0, 1fr); gap: .85rem; padding-block: 1.45rem 2rem; }
  .hero h1 { font-size: clamp(3.2rem, 12vw, 5.2rem); }
  .prepared { margin-bottom: .35rem; }
  .hero .intro { margin-block: .55rem .65rem; }
  .hero .action { min-height: 44px; padding-block: .4rem; }
  .film-choices { margin-bottom: .43rem; }
  .film-choice { font-size: .83rem; gap: .28rem .4rem; padding-inline: .55rem; }
  .featured-branches, .partner-grid { grid-template-columns: minmax(0, 1fr); gap: 1.2rem; }
  .work-grid {
    --work-columns: 1;
    --work-expanded: 1;
    grid-auto-rows: auto;
    gap: 1.2rem;
  }
  .work-card[data-size] { grid-row: auto; }
  .work-card[data-size="expanded"] .work-visual { min-height: 17rem; }
  .work-card[data-size="maximum"] .work-visual { min-height: min(60vh, 29rem); }
  .work-image { aspect-ratio: 16 / 9; }
  .cv-table { font-size: .88rem; line-height: 1.45; }
  .cv-table th, .cv-table td { padding: .56rem .44rem; }
  .cv-table thead :nth-child(1) { width: 33%; }
  .cv-table thead :nth-child(2) { width: 25%; }
}
@media (max-width: 420px) {
  .evidence-grid { grid-template-columns: minmax(0, 1fr); }
  .featured-video figcaption, .video-frame figcaption { font-size: .84rem; }
}
@media print {
  .cv-actions, .cv-client-link { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}

.rubia-open {
  position: fixed;
  inset: auto max(1rem, env(safe-area-inset-right)) max(1rem, env(safe-area-inset-bottom)) auto;
  z-index: 8;
  border-color: #e6a783;
  background: #73401f;
  border-radius: 999px;
}
.rubia-panel {
  width: min(94vw, 31rem);
  max-height: min(88dvh, 60rem);
  padding: 0;
  color: var(--ink);
  background: var(--panel);
  border: 1px solid #e6a783;
  border-radius: 15px;
  margin: auto min(3vw, 2rem) auto auto;
}
.rubia-panel::backdrop { background: #02080da8; }
.rubia-heading {
  position: sticky;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .8rem 1rem;
  background: var(--panel);
  border-bottom: 1px solid var(--line);
  z-index: 1;
}
.rubia-heading h2 { font-size: 2rem; }
.rubia-content { padding: .95rem 1rem; }
.rubia-content form { display: grid; gap: .75rem; }
.rubia-content textarea, .rubia-content select, .rubia-mcp input {
  max-width: 100%;
  color: var(--ink);
  background: var(--base);
  border: 1px solid #aebecf;
  border-radius: 8px;
  padding: .4rem .55rem;
  font: inherit;
  min-height: 44px;
}
.rubia-content textarea { display: block; width: 100%; resize: vertical; }
.rubia-controls, .rubia-sources { display: flex; flex-wrap: wrap; gap: .5rem; }
.rubia-content button { cursor: pointer; }
.rubia-content button:disabled { opacity: .48; cursor: default; }
.rubia-content ul { list-style: none; padding: 0; }
.rubia-content li, [data-rubia-result] p, .rubia-sources { margin-bottom: .65rem; }
[data-rubia-status]:not(:empty) { margin-top: .65rem; }

.rubia-mcp { border-top: 1px solid var(--line); margin-top: .9rem; padding-top: .7rem; }
.rubia-mcp .action { margin-block: .4rem; }
.rubia-mcp input { display: block; width: 100%; margin-bottom: .35rem; }

/* The opaque sticky rail owns the top gap and visually clips the scrolling page. */
.header-rail {
  position: sticky;
  z-index: 5;
  top: 0;
  padding: .65rem 0 .45rem;
  background: var(--base);
}
.header-rail .header {
  position: static;
  margin-bottom: 0;
  background: #12273b;
  backdrop-filter: none;
}
.header-rail .header-links { gap: .32rem clamp(.35rem, 1.35vw, 1.2rem); }
.header-rail .header-links a[aria-current] {
  border-radius: .4rem;
  background: #ffffff19;
  color: #fff;
  text-decoration: underline solid var(--accent) 2px;
  text-underline-offset: .23em;
}
body:is([data-profile="all-inkl"], [data-profile="public"]) .skip:focus { z-index: 6; }
.film-choice img {
  align-self: center;
  aspect-ratio: 16 / 9;
  width: 3.25rem;
  height: auto;
  object-fit: cover;
  border-radius: .25rem;
}
.mcp-overview { margin: 0 auto 2.2rem; padding: 1rem 1.2rem; border-inline-start: 3px solid var(--accent); background: #12273b; }
.mcp-overview h2 { font: 700 1.04rem/1.35 var(--body); }
.mcp-overview p { max-width: 85ch; margin-top: .25rem; color: var(--muted); font-size: .94rem; }
.xp-automatic { margin: .55rem 0 0; }
.xp-automatic iframe, .xp-automatic .xp-fallback {
  display: block;
  width: 100%;
  height: clamp(330px, 52vh, 590px);
  margin: 0;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #102537;
}
.xp-scaled {
  position: relative;
  margin: 0;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #102537;
}
.xp-scaled .xp-fallback { width: 100%; height: 100%; border: 0; border-radius: 0; }
.xp-scaled iframe {
  position: absolute;
  inset: 0;
  width: 1280px;
  height: 720px;
  border: 0;
  border-radius: 0;
  transform: scale(var(--xp-desktop-scale, 1));
  transform-origin: top left;
}
.xp-scaled:not([data-xp-ready]) iframe { visibility: hidden; }
.showcase-grid { overflow-anchor: none; }
[data-coaching-gallery], .work-slideshow { position: relative; }
body:is([data-profile="all-inkl"], [data-profile="public"]) .coaching-controls {
  position: absolute;
  inset: 0;
  display: block;
  margin: 0;
  pointer-events: none;
}
.photo-arrow {
  position: absolute;
  z-index: 2;
  top: 50%;
  width: 44px;
  height: 44px;
  transform: translateY(-50%);
  border: 1px solid #d5e0eb;
  border-radius: .5rem;
  background: #0c1a28e8;
  color: var(--ink);
  font: 700 1.55rem/1 var(--body);
  cursor: pointer;
  pointer-events: auto;
}
.photo-arrow.previous { left: .45rem; }
.photo-arrow.next { right: .45rem; }
.photo-arrow:hover { background: #314760; }

.showcase-grid {
  --work-columns: 4;
  --work-expanded: 2;
  gap: 1.25rem;
  grid-auto-rows: auto;
}
.showcase-reveal {
  display: grid;
  align-content: center;
  justify-items: start;
  gap: .55rem;
  min-height: 9rem;
  padding: clamp(1.05rem, 2.4vw, 2rem);
  border: 1px solid #547690;
  border-radius: .9rem;
  background: linear-gradient(150deg, #193c54, #102637);
  color: #fff;
  text-align: start;
  font: 800 clamp(1.27rem, 1.9vw, 1.6rem)/1.2 var(--body);
  text-wrap: balance;
  cursor: pointer;
}
.showcase-reveal small { color: #c3d6e7; font-size: .9rem; font-weight: 550; }
.showcase-reveal [aria-hidden] { color: #ff9aab; }
.showcase-reveal:hover { border-color: #9dc2db; background: #224861; }
.showcase-card {
  grid-template-areas: "title" "visual" "copy";
  grid-template-rows: min-content min-content 1fr;
  border: 1px solid #7799b66b;
  border-radius: .9rem;
  background: #102434;
  box-shadow: 0 .35rem 1.2rem #05101866;
}
.showcase-titlebar {
  grid-area: title;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: .55rem;
  padding: .75rem .72rem .72rem .85rem;
  border-inline-start: 3px solid var(--accent);
  border-block-end: 1px solid #45617a;
  border-radius: .85rem .85rem 0 0;
  background: linear-gradient(150deg, #16314a, #102637);
}
.showcase-titlebar .showcase-heading {
  display: grid;
  flex: 1 1 auto;
  gap: .35rem;
  min-width: 0;
  font-family: var(--body);
  overflow-wrap: anywhere;
}
.showcase-client-name {
  color: #fff;
  font-size: clamp(1.28rem, 1.72vw, 1.55rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -.012em;
  text-wrap: balance;
}
.showcase-project-title {
  color: #c3d6e7;
  font-size: .92rem;
  font-weight: 550;
  line-height: 1.32;
  text-wrap: pretty;
}
.showcase-card:not([data-size]) :is(.showcase-titlebar .showcase-heading, .work-visual) { cursor: zoom-in; }
.showcase-window-actions { display: flex; flex: none; gap: .25rem; }
.showcase-window-actions button {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid #a2b9cb88;
  border-radius: .32rem;
  background: linear-gradient(#36546c, #1d354a);
  color: #fff;
  cursor: pointer;
}
.showcase-window-actions button:hover { background: #42637d; }
.window-icon { width: .72rem; height: .65rem; border: 1.5px solid currentColor; border-top-width: 3px; }
.showcase-card[data-size] [data-work-enlarge] .window-icon { height: 2px; border: 0; background: currentColor; }
[data-work-maximum] .window-icon { box-shadow: .14rem -.13rem 0 0 #203a50, .24rem -.22rem 0 0 currentColor; }
[data-work-maximum][aria-pressed="true"] { border-color: #fff; }
.showcase-card[data-size="maximum"] { grid-row: auto; }
.showcase-card:not([data-size]), .showcase-reveal {
  min-height: clamp(16rem, 21vw, 20.25rem);
}
body:is([data-profile="all-inkl"], [data-profile="public"]) .featured-branches { grid-template-columns: minmax(0, 1fr); }
body:is([data-profile="all-inkl"], [data-profile="public"]) #coaching { width: min(100%, 56rem); margin-inline: auto; }

.showcase-card .work-visual, .showcase-card[data-size] .work-visual {
  grid-area: visual;
  aspect-ratio: 16 / 9;
  background: #081521;
}
.showcase-card .work-image { object-fit: contain; border: 0; border-radius: 0; }
.showcase-card .work-slideshow { position: absolute; inset: 0; }
.showcase-copy { grid-area: copy; padding: .55rem .8rem 1rem; }
.showcase-points { margin: 0; padding-inline-start: 1.05rem; font-size: .92rem; }
.showcase-summary { margin-block: 0 .6rem; font-weight: 650; }
.showcase-more > p { margin-top: .75rem; }
.showcase-more figure { max-width: 36rem; }
.showcase-more figure img { max-height: 23rem; object-fit: contain; background: #081521; }
.website-detail-examples { display: grid; gap: 1rem; margin-top: 1rem; }
.website-detail-examples img { max-height: 36rem; object-fit: contain; }
@media (min-width: 1101px) {
  .showcase-card[data-size="maximum"] {
    grid-template-columns: minmax(0, 3fr) minmax(19rem, 2fr);
    grid-template-areas: "title title" "visual copy";
    grid-template-rows: min-content 1fr;
    align-content: start;
  }
  .showcase-card[data-size="maximum"] .work-visual { align-self: start; }
  .showcase-card[data-size="maximum"] .showcase-copy { padding: .85rem 1rem; }
}
@media (max-width: 1100px) {
  .showcase-grid { --work-columns: 2; }
}
@media (max-width: 700px) {
  .header-rail { padding-block: .35rem; }
  .header-rail .header-links { gap: .24rem .55rem; }
  .showcase-grid { --work-columns: 1; --work-expanded: 1; }
  .showcase-card:not([data-size]), .showcase-reveal { min-height: 0; }
  .showcase-grid .showcase-card[data-size] { grid-row: auto; }
  .showcase-grid .showcase-card[data-size] .work-visual { min-height: 0; }
  .showcase-window-actions button { min-width: 44px; min-height: 44px; }
}

.aurubia-tutorial { margin: 1rem 0; }
.aurubia-tutorial figcaption { margin-bottom: .45rem; font-weight: 700; }
.aurubia-tutorial video { display: block; width: 100%; aspect-ratio: 16 / 9; background: #081521; border-radius: .55rem; }
