:root {
  --page-max-width: 1000px;
  --content-max-width: 920px;
  --surface: rgba(20, 18, 22, 0.62);
  --surface-strong: rgba(15, 14, 18, 0.78);
  --surface-soft: rgba(255, 255, 255, 0.05);
  --panel-background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.03));
  --border-soft: rgba(255, 255, 255, 0.1);
  --text-primary: #f7f1ea;
  --text-muted: rgba(247, 241, 234, 0.74);
  --accent: #d9a28c;
  --accent-strong: #efbf9d;
  --shadow: 0 28px 70px rgba(7, 7, 11, 0.34);
  --shadow-soft: 0 18px 40px rgba(7, 7, 11, 0.2);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --space-1: 0.5rem;
  --space-2: 0.75rem;
  --space-3: 1rem;
  --space-4: 1.5rem;
  --space-5: 2rem;
  --space-6: 3rem;
  --space-7: 4.5rem;
  --transition-fast: 180ms ease;
  --transition-medium: 320ms ease;
  --name-pride-progress: 0;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: clip;
  background-color: #08080b;
  overscroll-behavior-x: none;
}

html.no-js {
  #about,
  #projects,
  .hero-action-links,
  .hero-meta {
    display: none;
  }

  .language-overlay,
  .language-switcher {
    display: none !important;
  }
}

body,
html {
  min-height: 100%;
  margin: 0;
}

body {
  font-family: 'Outfit', Arial, sans-serif;
  color: var(--text-primary);
  overflow-x: clip;
  background-color: #08080b;
  background:
    radial-gradient(circle at top left, rgba(217, 162, 140, 0.22), transparent 26%),
    radial-gradient(circle at bottom right, rgba(127, 78, 63, 0.28), transparent 28%),
    linear-gradient(180deg, rgba(9, 9, 12, 0.4), rgba(8, 8, 11, 0.82)),
    url('assets/optimized/background.webp') center / cover fixed no-repeat;
  -webkit-overflow-scrolling: touch;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

hr {
  width: 100%;
  border: 0;
  border-top: 1px solid var(--border-soft);
  margin: 0;
}

.page-shell {
  width: min(calc(100% - 6rem), var(--page-max-width));
  margin: 0 auto;
  padding: var(--space-6) 0 var(--space-7);
}

.panel {
  background: var(--panel-background);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  backdrop-filter: blur(28px);
}

.eyebrow {
  margin: 0 0 var(--space-2);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-strong);
}

.section-heading {
  max-width: 44rem;
}

.section-heading-centered {
  margin-inline: auto;
  text-align: center;
}

.section-heading.compact {
  max-width: 52rem;
}

.section-heading h2,
.legal-hero h1,
.hero-copy h1 {
  margin: 0;
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.hero-section {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: var(--space-6);
  align-items: start;
  padding: clamp(2rem, 4vw, 4rem);
}

.hero-copy h1 {
  max-width: 11ch;
  font-size: clamp(3rem, 8vw, 5.9rem);
  color: var(--text-primary);
}

.hero-name-part {
  position: relative;
  display: inline-block;
  margin-right: 0.28em;
  color: var(--text-primary);
}

.hero-name-part::after {
  content: attr(data-name);
  position: absolute;
  left: 0;
  top: 0;
  white-space: nowrap;
  pointer-events: none;
  color: transparent;
}

.hero-name-part::after {
  --name-pride-reveal: clamp(0, var(--name-pride-progress), 1);
  width: calc(var(--name-pride-reveal) * (100% + 0.14em));
  overflow: hidden;
  color: transparent;
  background-size: 100% 100%;
  background: linear-gradient(
      to right,
      #e40303 0%,
      #e40303 16.66%,
      #ff8c00 16.66%,
      #ff8c00 33.33%,
      #ffed00 33.33%,
      #ffed00 50%,
      #008026 50%,
      #008026 66.66%,
      #004dff 66.66%,
      #004dff 83.33%,
      #750787 83.33%,
      #750787 100%
    )
    no-repeat 0 50%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-name-part:last-child {
  margin-right: 0;
}

.hero-section > *,
.story-grid > *,
.project-entry > *,
.project-header > *,
.footer-inner > * {
  min-width: 0;
}

.hero-copy {
  grid-column: 1;
  align-self: start;
  justify-self: start;
  text-align: left;
}

.hero-copy,
.hero-copy-main,
.hero-actions,
.hero-action-links,
.hero-meta,
.hero-visual,
.portrait-media,
.story-copy,
.story-detail,
.project-copy,
.project-title-wrap,
.project-languages,
.legal-contact-box,
.language-copy,
.language-switcher-copy {
  min-width: 0;
  max-width: 100%;
}

.hero-copy-main {
  display: block;
}

.hero-intro,
.legal-intro,
.project-description,
.story-copy p,
.story-detail p,
.detail-panel p,
.legal-contact-box p {
  color: var(--text-muted);
  line-height: 1.75;
}

.hero-intro,
.legal-intro,
.project-description,
.story-copy p,
.story-detail p,
.detail-panel p,
.legal-contact-box p,
.legal-provider-name,
.project-link,
.project-language-chip,
.portrait-caption,
.portrait-click-hint,
.inline-link {
  overflow-wrap: anywhere;
}

.hero-intro {
  max-width: 34rem;
  margin: var(--space-4) 0 0;
  font-size: clamp(1.05rem, 2vw, 1.2rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-5);
  align-items: center;
}

.hero-action-links {
  flex-basis: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.hero-contact-block {
  display: grid;
  justify-items: center;
  gap: 0.45rem;
  width: min(100%, 22rem);
}

.hero-contact-title {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-align: center;
}

.hero-contact-area {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  gap: 0.6rem;
  width: 100%;
  justify-items: center;
}

#contact-links {
  scroll-margin-top: 0.65rem;
}

.hero-contact-area a {
  width: min(100%, 2.8rem);
  height: auto;
  aspect-ratio: 1;
}

.openpgp-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: var(--space-4);
  align-items: center;
  margin-top: var(--space-4);
  padding: 1.25rem 1.4rem;
}

.openpgp-copy,
.openpgp-actions {
  min-width: 0;
}

.openpgp-copy {
  display: grid;
  gap: 0.45rem;
}

.openpgp-description,
.openpgp-fingerprint {
  margin: 0;
}

.openpgp-description {
  color: var(--text-muted);
  line-height: 1.6;
}

.openpgp-actions {
  display: grid;
  gap: 0.7rem;
  justify-items: end;
}

.openpgp-download-link {
  width: 100%;
  min-width: min(100%, 15rem);
}

.openpgp-fingerprint {
  display: grid;
  gap: 0.2rem;
  text-align: right;
  color: var(--text-muted);
  font-size: 0.8rem;
}

.openpgp-fingerprint strong {
  color: var(--text-primary);
  line-height: 1.55;
  letter-spacing: 0.06em;
  word-break: break-word;
}

.action-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  min-height: 3rem;
  padding: 0 1.25rem;
  border-radius: 999px;
  border: 1px solid var(--border-soft);
  font: inherit;
  color: inherit;
  line-height: 1.35;
  overflow-wrap: anywhere;
  white-space: normal;
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
  transition:
    transform var(--transition-fast),
    border-color var(--transition-fast),
    background var(--transition-fast),
    box-shadow var(--transition-fast);
}

.action-link:hover {
  transform: translateY(-2px) scale(1.03);
  border-color: rgba(255, 255, 255, 0.95);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.55),
    0 0 16px rgba(255, 255, 255, 0.28);
}

.action-link-primary {
  background: linear-gradient(135deg, rgba(239, 191, 157, 0.22), rgba(217, 162, 140, 0.14));
  border-color: rgba(239, 191, 157, 0.32);
}

.action-link-pride {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: #0f0f10;
  font-weight: 700;
  border-color: rgba(255, 255, 255, 0.24);
  background: transparent;
}

.action-link-pride::before {
  content: '';
  position: absolute;
  inset: -2px -8px -10px -2px;
  z-index: -2;
  filter: blur(1.6px) saturate(0.88);
  background-size: 100% 100%;
  background: linear-gradient(
      to right,
      #e40303 0%,
      #e40303 16.66%,
      #ff8c00 16.66%,
      #ff8c00 33.33%,
      #ffed00 33.33%,
      #ffed00 50%,
      #008026 50%,
      #008026 66.66%,
      #004dff 66.66%,
      #004dff 83.33%,
      #750787 83.33%,
      #750787 100%
    )
    0 50%;
  transform: translate(2px, 2px);
}

.action-link-pride::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(255, 255, 255, 0.28);
}

.action-link-pride:hover {
  color: #080809;
}

.action-link-pride:hover::before {
  background: repeating-linear-gradient(
    to right,
    #e40303 0 24px,
    #ff8c00 24px 48px,
    #ffed00 48px 72px,
    #008026 72px 96px,
    #004dff 96px 120px,
    #750787 120px 144px
  );
  background-size: 144px 100%;
  animation: pride-ticker 3.2s linear infinite;
}

@keyframes pride-ticker {
  from {
    background-position: 0 50%;
  }
  to {
    background-position: 144px 50%;
  }
}

.hero-meta {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
  max-width: 34rem;
  margin-top: var(--space-4);
}

.hero-meta div {
  padding-top: var(--space-3);
  border-top: 1px solid var(--border-soft);
}

.meta-label {
  display: block;
  margin-bottom: var(--space-1);
  font-size: 0.84rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.hero-visual {
  grid-column: 2;
  display: grid;
  gap: var(--space-4);
  align-content: start;
}

.portrait-highlight {
  display: grid;
  gap: var(--space-3);
  padding: var(--space-4);
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-soft);
  justify-items: center;
}

.portrait-highlight-button {
  display: block;
  width: min(100%, 560px);
  padding: 0;
  margin: 0;
  border: 0;
  background: transparent;
  border-radius: 24px;
  overflow: hidden;
  cursor: pointer;
  transition: transform var(--transition-fast);
}

.portrait-highlight-button:hover {
  transform: scale(1.015);
}

.portrait-media {
  position: relative;
}

.portrait-media-switching {
  animation: portrait-switch 250ms ease;
}

.hero-feature-image {
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 24px;
  box-shadow: 0 20px 48px rgba(9, 9, 12, 0.34);
}

.portrait-caption {
  position: absolute;
  right: 1.1rem;
  bottom: 1.1rem;
  max-width: calc(100% - 2.2rem);
  padding: 0.5rem 0.9rem;
  border-radius: 0.65rem;
  background: #ffffff;
  color: #000000;
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.2;
}

.portrait-click-hint {
  position: absolute;
  left: 1.1rem;
  top: 1.1rem;
  max-width: calc(100% - 2.2rem);
  padding: 0.5rem 0.9rem;
  border-radius: 0.65rem;
  background: #ffffff;
  color: #000000;
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.2;
}

.hero-note {
  max-width: 22rem;
  margin-left: auto;
  padding: var(--space-4);
  border-radius: var(--radius-lg);
  background: var(--surface-soft);
  border: 1px solid var(--border-soft);
}

.hero-note h2 {
  margin: 0 0 var(--space-2);
  font-size: clamp(1.4rem, 3vw, 2rem);
  letter-spacing: -0.03em;
}

.hero-note p {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.7;
}

.story-section,
.contact-strip,
.legal-hero {
  margin-top: var(--space-5);
  padding: clamp(1.5rem, 3vw, 2.5rem);
}

.story-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: var(--space-5);
  margin-top: var(--space-5);
}

.about-scroll-anim-enabled {
  --about-scroll-progress: 0;
}

.about-scroll-anim-enabled .story-copy,
.about-scroll-anim-enabled .story-detail {
  opacity: calc(0.12 + (var(--about-scroll-progress) * 0.88));
  will-change: opacity, transform;
}

.about-scroll-anim-enabled .story-copy {
  transform: translate3d(
    calc((1 - var(--about-scroll-progress)) * -44px),
    calc((1 - var(--about-scroll-progress)) * 26px),
    0
  );
}

.about-scroll-anim-enabled .story-detail {
  transform: translate3d(
    calc((1 - var(--about-scroll-progress)) * 44px),
    calc((1 - var(--about-scroll-progress)) * 26px),
    0
  );
}

.story-copy p:first-child,
.detail-panel p:first-child {
  margin-top: 0;
}

.story-copy p:last-child,
.detail-panel p:last-child {
  margin-bottom: 0;
}

.detail-toggle,
.back-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  width: fit-content;
  max-width: 100%;
  border: 0;
  border-radius: 999px;
  padding: 0.9rem 1.1rem;
  font: inherit;
  color: var(--text-primary);
  line-height: 1.35;
  overflow-wrap: anywhere;
  white-space: normal;
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
  transition:
    transform var(--transition-fast),
    background var(--transition-fast),
    border-color var(--transition-fast),
    box-shadow var(--transition-fast);
}

.detail-toggle:hover,
.back-link:hover {
  transform: translateY(-2px) scale(1.03);
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.95);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.55),
    0 0 16px rgba(255, 255, 255, 0.28);
}

.detail-panel {
  margin-top: var(--space-3);
  padding: var(--space-4);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-soft);
  opacity: 0;
  transform: translateY(10px);
  transition:
    opacity 300ms ease,
    transform 300ms ease;
}

.detail-panel-enter {
  opacity: 1;
  transform: translateY(0);
}

.detail-panel-leave {
  opacity: 0;
  transform: translateY(10px);
}

@keyframes portrait-switch {
  0% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.55;
    transform: scale(0.985);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.inline-link {
  color: var(--accent-strong);
  font-weight: 600;
}

.inline-link-button {
  padding: 0;
  border: 0;
  font: inherit;
  background: transparent;
  cursor: pointer;
}

.contact-strip {
  display: grid;
  gap: var(--space-4);
}

.contact-area {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  gap: var(--space-3);
  width: 100%;
  justify-items: center;
}

.contact-area a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: min(100%, 3.3rem);
  height: auto;
  aspect-ratio: 1;
  min-width: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-soft);
  transition:
    transform var(--transition-fast),
    background var(--transition-fast),
    border-color var(--transition-fast),
    box-shadow var(--transition-fast);
}

.contact-area a:hover {
  transform: translateY(-2px) scale(1.06);
  background: rgba(239, 191, 157, 0.13);
  border-color: rgba(255, 255, 255, 0.95);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.55),
    0 0 16px rgba(255, 255, 255, 0.28);
}

.projects-section {
  margin-top: var(--space-6);
}

.project-list {
  display: grid;
  gap: var(--space-4);
  margin-top: var(--space-5);
}

.project-entry {
  --project-entry-progress: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: var(--space-5);
  padding: clamp(1.4rem, 3vw, 2rem);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  opacity: calc(0.12 + (var(--project-entry-progress) * 0.88));
  transition:
    border-color var(--transition-fast),
    background var(--transition-fast),
    box-shadow var(--transition-fast);
  will-change: opacity, transform;
}

.project-entry.project-entry-from-right {
  transform: translate3d(
    calc((1 - var(--project-entry-progress)) * 54px),
    calc((1 - var(--project-entry-progress)) * 16px),
    0
  );
}

.project-entry.project-entry-from-left {
  transform: translate3d(
    calc((1 - var(--project-entry-progress)) * -54px),
    calc((1 - var(--project-entry-progress)) * 16px),
    0
  );
}

.project-entry.project-entry-from-right:hover {
  transform: translate3d(
    calc((1 - var(--project-entry-progress)) * 54px),
    calc((1 - var(--project-entry-progress)) * 16px - 2px),
    0
  );
  border-color: rgba(255, 255, 255, 0.24);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.04));
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.26),
    var(--shadow-soft);
}

.project-entry.project-entry-from-left:hover {
  transform: translate3d(
    calc((1 - var(--project-entry-progress)) * -54px),
    calc((1 - var(--project-entry-progress)) * 16px - 2px),
    0
  );
  border-color: rgba(255, 255, 255, 0.24);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.04));
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.26),
    var(--shadow-soft);
}

.project-entry-reverse {
  grid-template-columns: minmax(0, 1fr) auto;
}

.project-entry-reverse .project-icon {
  order: 2;
}

.project-entry-reverse .project-copy {
  order: 1;
}

.project-copy {
  display: grid;
  gap: 0.35rem;
}

.project-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--space-4);
}

.project-title-wrap {
  min-width: 0;
}

.project-kicker {
  margin: 0 0 var(--space-1);
  color: var(--accent-strong);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.project-link {
  font-size: clamp(1.6rem, 2vw, 2.15rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.08;
  text-wrap: balance;
  transition: color var(--transition-fast);
}

.project-link:hover {
  color: var(--accent-strong);
}

.project-languages {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.45rem;
  max-width: 22rem;
}

.project-language-chip {
  display: inline-flex;
  align-items: center;
  min-height: 1.9rem;
  padding: 0.15rem 0.65rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.01em;
}

.project-description {
  max-width: 46rem;
  margin: var(--space-3) 0 0;
  text-wrap: pretty;
}

.project-icon {
  width: clamp(84px, 12vw, 108px);
  min-width: clamp(84px, 12vw, 108px);
  height: auto;
  object-fit: contain;
  object-position: center;
  box-shadow: none;
}

.project-icon-circle {
  border-radius: 50%;
}

.imprint-page {
  display: grid;
  gap: var(--space-5);
}

.legal-hero {
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.72fr);
}

.legal-hero .back-link {
  margin-bottom: 0;
}

.legal-hero h1 {
  font-size: clamp(2.7rem, 6vw, 5.1rem);
  max-width: 11ch;
}

.legal-intro {
  max-width: 38rem;
  margin: var(--space-4) 0 0;
  font-size: clamp(1.02rem, 1.7vw, 1.16rem);
  line-height: 1.8;
}

.legal-section {
  margin-top: var(--space-5);
}

.legal-section .story-grid {
  align-items: start;
}

.legal-provider-name {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0;
  color: var(--text-primary);
}

.legal-contact-box {
  display: grid;
  gap: 0.5rem;
  width: 100%;
  align-self: stretch;
  justify-items: start;
  text-align: left;
}

.legal-contact-box p {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.6;
}

.legal-contact-box .hero-contact-title {
  text-align: left;
}

.site-footer {
  padding: 0 0 var(--space-6);
  content-visibility: auto;
  contain-intrinsic-size: 1px 180px;
}

.footer-shell {
  padding-top: 0;
  padding-bottom: var(--space-4);
}

.noscript-panel {
  padding: var(--space-4);
  text-align: center;
}

.footer-inner {
  width: min(calc(100% - 6rem), var(--page-max-width));
  margin: 0 auto;
  padding-top: var(--space-4);
  border-top: 1px solid var(--border-soft);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-3);
  color: var(--text-muted);
}

.footer-inner p {
  margin: 0;
}

.footer-inner a {
  color: var(--text-primary);
  margin-left: auto;
  text-align: right;
}

@media (max-width: 900px) {
  .hero-section,
  .story-grid,
  .project-entry,
  .project-entry-reverse {
    grid-template-columns: 1fr;
  }

  .hero-note {
    margin-left: 0;
  }

  .hero-copy,
  .hero-visual,
  .hero-actions,
  .hero-meta {
    grid-column: auto;
    justify-self: stretch;
    text-align: left;
  }

  .project-entry {
    align-items: start;
    gap: var(--space-4);
    padding: clamp(1.1rem, 3.8vw, 1.5rem);
  }

  .project-header {
    flex-direction: column;
    gap: var(--space-3);
  }

  .project-languages {
    justify-content: flex-start;
    max-width: none;
  }

  .legal-hero {
    gap: var(--space-4);
  }

  .legal-hero .hero-copy {
    display: grid;
    gap: var(--space-4);
  }

  .legal-hero .hero-actions {
    margin-top: 0;
  }
}

@media (max-width: 700px) {
  html {
    scroll-behavior: auto;
  }

  .page-shell,
  .footer-inner {
    width: min(calc(100% - 2rem), var(--page-max-width));
  }

  .page-shell {
    padding: var(--space-4) 0 var(--space-6);
  }

  .hero-section {
    padding: clamp(1rem, 4vw, 1.2rem);
  }

  .imprint-page {
    gap: var(--space-4);
  }

  .hero-copy h1,
  .legal-hero h1 {
    max-width: none;
  }

  .hero-copy h1 {
    font-size: clamp(3.35rem, 13vw, 4.75rem);
    line-height: 0.96;
  }

  .hero-copy {
    display: contents;
  }

  .legal-hero .hero-copy {
    display: grid;
  }

  .legal-hero h1 {
    font-size: clamp(2.35rem, 11vw, 3.55rem);
    line-height: 0.98;
  }

  .legal-intro {
    margin-top: var(--space-3);
    font-size: 1rem;
    line-height: 1.68;
  }

  .legal-section {
    margin-top: var(--space-4);
    padding: clamp(1rem, 4vw, 1.2rem);
    border-radius: var(--radius-lg);
  }

  .legal-section .story-grid {
    gap: var(--space-3);
  }

  .legal-contact-box {
    padding: var(--space-3);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-soft);
    background: rgba(255, 255, 255, 0.04);
  }

  .legal-contact-box p {
    line-height: 1.5;
  }

  .hero-copy-main {
    order: 1;
  }

  .hero-visual {
    order: 2;
  }

  .hero-actions {
    order: 3;
    margin-top: var(--space-4);
  }

  .hero-meta {
    order: 4;
    margin-top: var(--space-3);
  }

  .hero-meta,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    flex-direction: row;
    align-items: center;
  }

  .project-icon {
    width: 64px;
    min-width: 64px;
    height: auto;
    align-self: start;
  }

  .project-entry {
    grid-template-columns: 64px minmax(0, 1fr);
    align-items: start;
    padding: 0.95rem;
    gap: 0.9rem;
    border-radius: var(--radius-lg);
  }

  .project-entry-reverse {
    grid-template-columns: minmax(0, 1fr) 64px;
  }

  .project-entry-reverse .project-copy {
    order: 1;
  }

  .project-entry-reverse .project-icon {
    order: 2;
    justify-self: end;
  }

  .project-copy {
    gap: 0.25rem;
  }

  .project-header {
    gap: 0.55rem;
  }

  .project-link {
    font-size: clamp(1.12rem, 5.9vw, 1.35rem);
  }

  .project-description {
    margin-top: 0.45rem;
    line-height: 1.58;
    font-size: 0.93rem;
  }

  .project-language-chip {
    min-height: 1.6rem;
    padding: 0.08rem 0.52rem;
    font-size: 0.74rem;
  }

  .hero-actions,
  .hero-contact-area,
  .hero-action-links {
    justify-content: center;
  }

  .hero-actions {
    align-items: center;
  }

  .hero-action-links {
    width: 100%;
  }

  .hero-meta {
    justify-items: center;
    text-align: center;
  }

  .openpgp-section {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .openpgp-actions,
  .openpgp-fingerprint {
    width: 100%;
    justify-items: center;
    text-align: center;
  }

  .hero-meta div {
    width: min(100%, 24rem);
  }

  .portrait-highlight {
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    justify-items: center;
  }

  .panel,
  .language-overlay,
  .language-switcher {
    backdrop-filter: none;
  }

  .projects-section,
  .story-section,
  .legal-section {
    content-visibility: visible;
  }
}

@media (hover: none) and (pointer: coarse) {
  body {
    position: relative;
    isolation: isolate;
    background: transparent;
  }

  body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
      radial-gradient(circle at top left, rgba(217, 162, 140, 0.18), transparent 28%),
      radial-gradient(circle at bottom right, rgba(127, 78, 63, 0.24), transparent 32%),
      linear-gradient(180deg, rgba(9, 9, 12, 0.72), rgba(8, 8, 11, 0.96)),
      url('assets/optimized/background.webp') center / cover fixed no-repeat;
  }
}

@media (hover: none) and (pointer: coarse) {
  .action-link:hover,
  .detail-toggle:hover,
  .back-link:hover,
  .contact-area a:hover,
  .project-entry.project-entry-from-right:hover,
  .project-entry.project-entry-from-left:hover,
  .language-close:hover,
  .language-switcher:hover,
  .portrait-highlight-button:hover {
    transform: none;
    box-shadow: none;
    background: inherit;
    border-color: inherit;
  }

  .action-link-pride:hover::before {
    animation: none;
    background: linear-gradient(
        to right,
        #e40303 0%,
        #e40303 16.66%,
        #ff8c00 16.66%,
        #ff8c00 33.33%,
        #ffed00 33.33%,
        #ffed00 50%,
        #008026 50%,
        #008026 66.66%,
        #004dff 66.66%,
        #004dff 83.33%,
        #750787 83.33%,
        #750787 100%
      )
      0 50%;
    background-size: 100% 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .portrait-media-switching,
  .action-link-pride:hover::before {
    animation: none;
  }

  .project-entry,
  .about-scroll-anim-enabled .story-copy,
  .about-scroll-anim-enabled .story-detail,
  .detail-panel,
  .action-link,
  .detail-toggle,
  .back-link,
  .contact-area a,
  .language-close,
  .language-switcher,
  .portrait-highlight-button {
    transition: none;
    transform: none;
    will-change: auto;
  }
}
.language-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  padding: 1.25rem;
  background:
    radial-gradient(circle at 50% 18%, rgba(217, 162, 140, 0.2), transparent 24%),
    linear-gradient(180deg, rgba(3, 3, 5, 0.78), rgba(7, 7, 10, 0.94));
  backdrop-filter: blur(18px);
}

.language-card {
  position: relative;
  display: grid;
  gap: 1.15rem;
  width: min(100%, 500px);
  padding: clamp(1.1rem, 4vw, 1.45rem);
  background:
    radial-gradient(circle at top left, rgba(217, 162, 140, 0.18), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02)), rgba(11, 10, 14, 0.82);
  border: 1px solid rgba(239, 191, 157, 0.16);
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.language-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
}

.language-copy {
  display: grid;
  gap: 0.18rem;
  padding-right: 3.4rem;
}

.language-card h2,
.language-card p {
  margin: 0;
}

.language-copy h2 {
  font-size: clamp(1.85rem, 4vw, 2.5rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

.language-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.language-option {
  position: relative;
  display: grid;
  gap: 0.55rem;
  justify-items: start;
  align-content: center;
  min-height: 7.4rem;
  padding: 1rem 1rem 1.05rem;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.018)), rgba(14, 13, 18, 0.72);
  color: inherit;
  text-align: left;
  cursor: pointer;
  transition:
    transform var(--transition-fast),
    border-color var(--transition-fast),
    box-shadow var(--transition-fast),
    background var(--transition-fast);
}

.language-option:hover {
  transform: translateY(-2px);
  border-color: rgba(239, 191, 157, 0.24);
  box-shadow:
    0 0 0 1px rgba(239, 191, 157, 0.08),
    0 16px 30px rgba(0, 0, 0, 0.2);
}

.language-option-active {
  border-color: rgba(239, 191, 157, 0.5);
  background: linear-gradient(180deg, rgba(217, 162, 140, 0.16), rgba(255, 255, 255, 0.03)), rgba(17, 14, 18, 0.84);
  box-shadow:
    0 0 0 1px rgba(239, 191, 157, 0.18),
    0 18px 34px rgba(0, 0, 0, 0.22);
}

.language-option strong {
  font-size: 1.18rem;
  line-height: 1.04;
  letter-spacing: -0.03em;
}

.language-option-accent,
.language-switcher-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 1.9rem;
  padding: 0.18rem 0.7rem;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.language-option-accent {
  color: var(--accent-strong);
  background: rgba(239, 191, 157, 0.1);
  border: 1px solid rgba(239, 191, 157, 0.18);
}

.language-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 1;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-primary);
  font: inherit;
  font-size: 1.25rem;
  cursor: pointer;
  transition:
    transform var(--transition-fast),
    border-color var(--transition-fast),
    background var(--transition-fast);
}

.language-close:hover {
  transform: translateY(-2px);
  border-color: rgba(239, 191, 157, 0.28);
  background: rgba(239, 191, 157, 0.08);
}

.language-switcher {
  position: fixed;
  right: 1rem;
  top: 1rem;
  z-index: 2000;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 3.15rem;
  padding: 0.42rem 0.78rem 0.42rem 0.42rem;
  border: 1px solid rgba(239, 191, 157, 0.18);
  border-radius: 999px;
  background:
    radial-gradient(circle at top left, rgba(217, 162, 140, 0.15), transparent 58%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.018)), rgba(12, 12, 16, 0.86);
  color: var(--text-primary);
  box-shadow:
    0 14px 32px rgba(5, 5, 8, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(14px);
  cursor: pointer;
  transition:
    transform var(--transition-fast),
    border-color var(--transition-fast),
    background var(--transition-fast),
    box-shadow var(--transition-fast);
}

.language-switcher:hover {
  transform: translateY(-2px);
  border-color: rgba(239, 191, 157, 0.34);
  background:
    radial-gradient(circle at top left, rgba(217, 162, 140, 0.2), transparent 58%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.022)), rgba(16, 15, 20, 0.92);
  box-shadow:
    0 18px 38px rgba(5, 5, 8, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.language-switcher-tag {
  min-width: 2.15rem;
  color: #1a1514;
  background: linear-gradient(180deg, #f0c2a7, #d9a28c);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.language-switcher-copy {
  display: grid;
  justify-items: start;
  line-height: 1.1;
}

.language-switcher-copy strong {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(247, 241, 234, 0.78);
}

.language-switcher-copy span {
  color: var(--text-primary);
  font-size: 0.86rem;
  font-weight: 600;
}

.app-content[aria-hidden='true'] {
  user-select: none;
  pointer-events: none;
}

@media (max-width: 700px) {
  .language-card {
    width: min(100%, 440px);
    gap: 0.9rem;
    padding: 0.95rem;
    padding-top: 1.15rem;
  }

  .language-card-header {
    display: grid;
  }

  .language-options {
    grid-template-columns: 1fr;
  }

  .language-copy h2 {
    font-size: clamp(1.9rem, 9vw, 2.5rem);
  }

  .language-option {
    min-height: 5.5rem;
  }

  .language-switcher {
    right: 0.75rem;
    top: 0.75rem;
    gap: 0.45rem;
    min-height: 2.6rem;
    padding: 0.34rem 0.58rem 0.34rem 0.34rem;
  }

  .language-switcher-tag {
    min-width: 1.85rem;
    min-height: 1.58rem;
    padding: 0.12rem 0.5rem;
    font-size: 0.68rem;
  }

  .language-switcher-copy strong {
    font-size: 0.62rem;
    letter-spacing: 0.1em;
  }

  .language-switcher-copy span {
    font-size: 0.74rem;
  }
}
