:root {
  --desktop-page-scale: 1;
  --bg: #d8dbe0;
  --surface: #f4f4f4;
  --card: #f7f7f7;
  --line: #e5e5e5;
  --text: #111111;
  --muted: #9c9c9c;
  --shadow: 0 10px 24px rgba(0, 0, 0, 0.06);
  --ui-icon: #1b1b1b;
  --ui-soft-text: #444444;
  --ui-muted-text: #7d7d7d;
  --ghost-bg: #efefef;
  --ghost-text: #222222;
  --ghost-border: rgba(0, 0, 0, 0.05);
  --avatar-frame-bg: #d5d8d8;
  --shell-border: rgba(255, 255, 255, 0.65);
  --section-dot-nav-dot: rgba(72, 82, 97, 0.36);
  --section-dot-nav-dot-border: rgba(32, 41, 55, 0.16);
  --section-dot-nav-dot-active: rgba(23, 34, 52, 0.86);
  --section-dot-nav-dot-active-border: rgba(15, 22, 36, 0.44);
  --section-dot-nav-jump: rgba(60, 69, 84, 0.82);
  --section-dot-nav-jump-hover: rgba(38, 49, 66, 0.94);
  --section-dot-nav-focus: rgba(23, 34, 52, 0.5);
  --theme-switch-duration: 540ms;
  --theme-switch-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

:root.theme-dark {
  --bg: #4e4e52;
  --surface: #16171a;
  --card: #1a1b1f;
  --line: #2b2d32;
  --text: #f2f3f5;
  --muted: #aeafb4;
  --shadow: 0 20px 48px rgba(0, 0, 0, 0.5);
  --ui-icon: #f2f3f5;
  --ui-soft-text: #d8d9dd;
  --ui-muted-text: #adaeb4;
  --ghost-bg: #2a2b2f;
  --ghost-text: #f2f3f5;
  --ghost-border: rgba(255, 255, 255, 0.08);
  --avatar-frame-bg: #44464c;
  --shell-border: rgba(255, 255, 255, 0.06);
  --section-dot-nav-dot: rgba(235, 241, 250, 0.36);
  --section-dot-nav-dot-border: rgba(236, 242, 250, 0.22);
  --section-dot-nav-dot-active: rgba(245, 249, 255, 0.98);
  --section-dot-nav-dot-active-border: rgba(245, 249, 255, 0.82);
  --section-dot-nav-jump: rgba(234, 241, 250, 0.8);
  --section-dot-nav-jump-hover: rgba(244, 250, 255, 0.97);
  --section-dot-nav-focus: rgba(226, 236, 249, 0.62);
}

* {
  box-sizing: border-box;
}

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

html {
  color-scheme: light;
}

:root.theme-dark {
  color-scheme: dark;
}

body {
  position: relative;
  background: radial-gradient(
      circle at 10% 15%,
      rgba(255, 255, 255, 0.45),
      transparent 52%
    ),
    radial-gradient(circle at 85% 80%, rgba(255, 255, 255, 0.3), transparent 55%),
    linear-gradient(180deg, #d5d8dd, #cfd3d9 45%, #d7dbe0);
  color: var(--text);
  font-family: "Manrope", system-ui, sans-serif;
}

:root.theme-dark body {
  background:
    radial-gradient(circle at 12% 18%, rgba(255, 255, 255, 0.018), transparent 52%),
    radial-gradient(circle at 86% 80%, rgba(255, 255, 255, 0.01), transparent 58%),
    linear-gradient(180deg, #0b0b0d, #080809 48%, #0e0e10);
}

:root.theme-dark .page-shell,
:root.theme-dark .card {
  background: #1a1b1f;
}

.grain {
  pointer-events: none;
  position: fixed;
  inset: 0;
  opacity: 0.15;
  background-image:
    repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.15) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(90deg, rgba(0, 0, 0, 0.11) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(45deg, rgba(0, 0, 0, 0.045) 0 1px, transparent 1px 7px),
    repeating-linear-gradient(-45deg, rgba(255, 255, 255, 0.05) 0 1px, transparent 1px 8px);
  background-size: 3px 3px, 3px 3px, 7px 7px, 8px 8px;
  background-position: 0 0, 0 0, 1px 0, 0 1px;
  mix-blend-mode: multiply;
  filter: contrast(115%);
}

:root.theme-dark .grain {
  opacity: 0.12;
  background-image:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.16) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.12) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.05) 0 1px, transparent 1px 7px),
    repeating-linear-gradient(-45deg, rgba(0, 0, 0, 0.18) 0 1px, transparent 1px 8px);
  background-size: 3px 3px, 3px 3px, 7px 7px, 8px 8px;
  background-position: 0 0, 0 0, 1px 0, 0 1px;
  mix-blend-mode: screen;
  filter: contrast(122%);
}

.page-shell {
  --project-section-margin: clamp(10px, 1.25cqw, 16px);
  position: relative;
  z-index: 1;
  width: min(1120px, calc(100% - 40px));
  margin: 34px auto 40px;
  background: var(--card);
  border: 0;
  box-shadow: var(--shadow);
  container-type: inline-size;
}

.page-shell > .card + .card {
  border-top: 0;
}

.desktop-scale-stage {
  width: 100%;
}

:root.is-desktop-scale-active body {
  overflow-x: hidden;
}

:root.is-desktop-scale-active .desktop-scale-stage {
  position: relative;
  margin:
    var(--desktop-scale-stage-gap-top, 34px)
    0
    var(--desktop-scale-stage-gap-bottom, 40px);
  height: var(--desktop-scale-stage-height, auto);
}

:root.is-desktop-scale-active .desktop-scale-stage .page-shell {
  position: absolute;
  top: 0;
  left: 50%;
  width: 1120px;
  margin: 0;
  transform-origin: top center;
  transform: translateX(-50%) scale(var(--desktop-scale-factor, 1));
}

:root.is-desktop-scale-active .project-terminal {
  --project-terminal-body-font-size: 0.72rem;
  --project-terminal-body-line-height: 1.38;
  --project-terminal-expanded-status-line-height: 1.42;
}

:root.is-desktop-scale-active .project-card.is-terminal-expanded .project-terminal,
:root.is-desktop-scale-active .project-terminal.is-expanded {
  --project-terminal-controls-margin-top: 10px;
  --project-terminal-ascii-inline-offset: 12px;
  --project-terminal-ascii-bottom: 74px;
  --project-terminal-ascii-font-size: 0.66rem;
  --project-terminal-ascii-line-height: 1.02;
}

.section-dot-nav[hidden] {
  display: none !important;
}

.section-dot-nav {
  --section-dot-nav-jump-gap: 12px;
  --section-dot-nav-jump-icon-nudge: 0.5px;
  position: fixed;
  top: 50%;
  right: clamp(6px, 1vw, 14px);
  z-index: 40;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 0;
  transform-origin: right center;
  transform: translate3d(8px, -50%, 0) scale(var(--desktop-page-scale, 1));
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 420ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 420ms cubic-bezier(0.22, 1, 0.36, 1);
}

.section-dot-nav.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translate3d(0, -50%, 0) scale(var(--desktop-page-scale, 1));
}

.section-dot-nav-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.section-dot-nav-list > li {
  display: flex;
}

.section-dot-nav-jump[data-nav-jump="top"] {
  margin-bottom: var(--section-dot-nav-jump-gap);
}

.section-dot-nav-jump[data-nav-jump="bottom"] {
  margin-top: var(--section-dot-nav-jump-gap);
}

.section-dot-nav-jump {
  width: 16px;
  height: 16px;
  display: grid;
  place-items: center;
  border: 0;
  padding: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--section-dot-nav-jump);
  cursor: pointer;
  opacity: 0.94;
  transform: scale(1);
  transition:
    color 260ms ease,
    opacity 260ms ease,
    transform 260ms cubic-bezier(0.22, 1, 0.36, 1);
}

.section-dot-nav-jump svg {
  display: block;
  width: 10px;
  height: 10px;
  transform: translateY(0);
  stroke: currentColor;
  stroke-width: 2.2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
}

.section-dot-nav-jump[data-nav-jump="top"] svg {
  transform: translateY(var(--section-dot-nav-jump-icon-nudge));
}

.section-dot-nav-jump[data-nav-jump="bottom"] svg {
  transform: translateY(calc(var(--section-dot-nav-jump-icon-nudge) * -1));
}

.section-dot-nav-jump .icon-arrow,
.section-dot-nav-jump .icon-line {
  transition:
    opacity 320ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 320ms cubic-bezier(0.22, 1, 0.36, 1);
  transform-origin: 50% 50%;
}

.section-dot-nav-jump .icon-line {
  stroke-width: 2.8;
  opacity: 0;
  transform: scaleX(0.5);
}

.section-dot-nav-jump[data-nav-jump="top"].is-edged .icon-arrow {
  opacity: 0;
  transform: translateY(1px) scale(0.78);
}

.section-dot-nav-jump[data-nav-jump="bottom"].is-edged .icon-arrow {
  opacity: 0;
  transform: translateY(-1px) scale(0.78);
}

.section-dot-nav-jump.is-edged .icon-line {
  opacity: 1;
  transform: scaleX(1);
}

.section-dot-nav-jump:hover {
  color: var(--section-dot-nav-jump-hover);
  opacity: 1;
  transform: scale(1.08);
}

.section-dot-nav-dot {
  display: block;
  width: 7px;
  height: 7px;
  padding: 0;
  line-height: 0;
  border-radius: 999px;
  border: 1px solid var(--section-dot-nav-dot-border);
  background: var(--section-dot-nav-dot);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.32);
  transform: scale(0.9);
  opacity: 0.88;
  cursor: pointer;
  transition:
    transform 360ms cubic-bezier(0.22, 1, 0.36, 1),
    background-color 360ms cubic-bezier(0.22, 1, 0.36, 1),
    border-color 360ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 360ms ease;
}

.section-dot-nav-dot:hover {
  transform: scale(1.06);
  opacity: 0.98;
}

.section-dot-nav-dot.is-current {
  transform: scale(1.34);
  background: var(--section-dot-nav-dot-active);
  border-color: var(--section-dot-nav-dot-active-border);
  opacity: 1;
}

.section-dot-nav-dot.is-current:hover {
  transform: scale(1.4);
}

.section-dot-nav-dot:focus-visible {
  outline: 2px solid var(--section-dot-nav-focus);
  outline-offset: 3px;
}

.section-dot-nav-jump:focus-visible {
  outline: 2px solid var(--section-dot-nav-focus);
  outline-offset: 3px;
}

@media (max-width: 760px) {
  .section-dot-nav {
    display: none !important;
  }
}

.page-load-line {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  pointer-events: none;
  overflow: visible;
  opacity: 0;
  transform-origin: left center;
  transition: none;
  z-index: 10;
  filter: drop-shadow(0 0 5px rgba(47, 124, 255, 0.11));
  -webkit-clip-path: inset(-10px 0 -22px 0);
  clip-path: inset(-10px 0 -22px 0);
}

.page-load-line::before {
  content: none;
}

.page-load-line.is-hidden-final {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  display: none !important;
  animation: none !important;
  filter: none !important;
}

.page-load-line > span {
  position: absolute;
  top: 0;
  left: 0;
  width: 0%;
  height: 100%;
  opacity: 1;
  border-radius: 999px;
  background:
    linear-gradient(
      90deg,
      rgba(8, 36, 128, 0.9) 0%,
      rgba(11, 44, 152, 0.98) 28%,
      rgba(14, 56, 184, 1) 56%,
      rgba(21, 76, 221, 0.98) 82%,
      rgba(45, 117, 247, 0.92) 100%
    );
  box-shadow:
    0 0 4px rgba(46, 126, 255, 0.2),
    0 0 9px rgba(46, 126, 255, 0.1);
  transition: width 140ms linear;
  will-change: width, opacity, filter, transform;
  transform-origin: left center;
}

.page-load-line > span::before,
.page-load-line > span::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.page-load-line > span::before {
  inset: -16px -14px;
  background:
    radial-gradient(
      ellipse at 100% 50%,
      rgba(86, 174, 255, 0.22) 0%,
      rgba(53, 141, 255, 0.11) 34%,
      rgba(28, 93, 212, 0.045) 58%,
      rgba(28, 93, 212, 0) 78%
    );
  filter: blur(6px);
  opacity: 0.62;
}

.page-load-line > span::after {
  top: -1px;
  right: -2px;
  bottom: -1px;
  width: 28px;
  border-radius: 999px;
  background:
    radial-gradient(
      ellipse at 28% 50%,
      rgba(224, 245, 255, 0.48) 0%,
      rgba(164, 215, 255, 0.22) 34%,
      rgba(100, 176, 255, 0.08) 58%,
      rgba(100, 176, 255, 0) 82%
    );
  mix-blend-mode: screen;
  filter: blur(1.4px);
  opacity: 0.82;
}

@keyframes site-load-line-shell-fade-out {
  0% {
    opacity: 1;
    transform: translateY(0) scaleY(1);
    filter: drop-shadow(0 0 5px rgba(47, 124, 255, 0.11));
  }

  35% {
    opacity: 0.9;
    transform: translateY(0) scaleY(0.985);
    filter: drop-shadow(0 0 4px rgba(47, 124, 255, 0.08));
  }

  100% {
    opacity: 0;
    transform: translateY(0.2px) scaleY(0.92);
    filter: drop-shadow(0 0 0 rgba(47, 124, 255, 0));
  }
}

@keyframes site-load-line-fill-fade-out {
  0% {
    opacity: 1;
    transform: scaleY(1);
    filter: saturate(1.04) brightness(1.04);
  }

  42% {
    opacity: 0.86;
    transform: scaleY(0.96);
    filter: saturate(1.02) brightness(1.02);
  }

  100% {
    opacity: 0;
    transform: scaleY(0.86);
    filter: saturate(0.94) brightness(0.96);
  }
}

@keyframes site-load-line-bloom-fade-out {
  0% {
    opacity: 0.62;
    filter: blur(6px);
    transform: scaleX(1) scaleY(1);
  }

  35% {
    opacity: 0.42;
    filter: blur(7px);
    transform: scaleX(1.02) scaleY(1.08);
  }

  100% {
    opacity: 0;
    filter: blur(9px);
    transform: scaleX(1.04) scaleY(1.18);
  }
}

@keyframes site-load-line-head-fade-out {
  0% {
    opacity: 0.82;
    filter: blur(1.4px);
    transform: translateX(0) scaleX(1);
  }

  45% {
    opacity: 0.5;
    filter: blur(1.8px);
    transform: translateX(0.8px) scaleX(0.98);
  }

  100% {
    opacity: 0;
    filter: blur(2.2px);
    transform: translateX(2px) scaleX(0.92);
  }
}

.card {
  background: var(--card);
}

.hero-card {
  position: relative;
  padding: 18px 24px 30px;
}

.topbar,
.topbar-compact-menu,
.hero-side,
.page-shell > :not(.hero-card):not(.page-load-line) {
  transition:
    opacity 760ms cubic-bezier(0.16, 0.82, 0.22, 1),
    transform 760ms cubic-bezier(0.16, 0.82, 0.22, 1),
    filter 760ms cubic-bezier(0.16, 0.82, 0.22, 1);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform, filter;
}

.intro-copy p::before {
  transition:
    opacity 700ms cubic-bezier(0.16, 0.84, 0.22, 1),
    transform 1200ms cubic-bezier(0.16, 0.84, 0.22, 1);
  transition-delay: var(--intro-line-reveal-delay, 0ms);
}

body.site-loading {
  overflow: hidden;
}

body.site-loading .page-load-line {
  opacity: 1;
}

body.site-loaded .page-load-line {
  opacity: 1;
  animation: none;
}

body.site-loaded .page-load-line > span {
  opacity: 1;
  filter: saturate(1.04) brightness(1.04);
}

body.site-load-line-fading .page-load-line,
.page-load-line.is-fading {
  animation: site-load-line-shell-fade-out 1400ms cubic-bezier(0.16, 0.84, 0.22, 1) forwards;
}

body.site-load-line-fading .page-load-line > span,
.page-load-line.is-fading > span {
  animation: site-load-line-fill-fade-out 1260ms cubic-bezier(0.16, 0.84, 0.22, 1) forwards;
}

body.site-load-line-fading .page-load-line > span::before,
.page-load-line.is-fading > span::before {
  animation: site-load-line-bloom-fade-out 1480ms cubic-bezier(0.16, 0.84, 0.22, 1) forwards;
}

body.site-load-line-fading .page-load-line > span::after,
.page-load-line.is-fading > span::after {
  animation: site-load-line-head-fade-out 1180ms cubic-bezier(0.16, 0.84, 0.22, 1) forwards;
}

body.site-loading .topbar,
body.site-loading .topbar-compact-menu {
  opacity: 0;
  transform: translateY(-14px);
  filter: blur(8px);
  pointer-events: none;
}

body.site-loading .hero-side {
  opacity: 0;
  transform: translateY(-14px) scale(0.94);
  filter: blur(10px);
  pointer-events: none;
}

body.site-loading .intro-copy p::before {
  opacity: 0;
  transform: scaleX(0);
}

body.site-loading .page-shell > :not(.hero-card):not(.page-load-line) {
  opacity: 0;
  transform: translateY(34px) scale(0.985);
  filter: blur(12px);
  pointer-events: none;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.topbar-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  min-width: 0;
}

.topbar-mainline {
  display: flex;
  align-items: baseline;
  gap: 16px;
  min-width: 0;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.topbar-compact-menu[hidden] {
  display: none !important;
}

.topbar-compact-menu {
  display: none;
}

.topbar-compact-toggle {
  position: relative;
  overflow: hidden;
}

.topbar-menu-line {
  position: absolute;
  left: 50%;
  width: 14px;
  height: 1.8px;
  border-radius: 999px;
  background: currentColor;
  transform-origin: center center;
  transition:
    transform 220ms cubic-bezier(0.2, 0.9, 0.24, 1),
    opacity 180ms cubic-bezier(0.2, 0.9, 0.24, 1);
}

.topbar-menu-line-1 {
  transform: translate(-50%, -4.5px);
}

.topbar-menu-line-2 {
  transform: translate(-50%, 0);
}

.topbar-menu-line-3 {
  transform: translate(-50%, 4.5px);
}

.brand {
  margin: 0;
  font-family: "Archivo", sans-serif;
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1;
}

.icon-button {
  border: 1px solid rgba(24, 32, 44, 0.28);
  background:
    radial-gradient(circle at 35% 24%, rgba(255, 255, 255, 0.72), transparent 52%),
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.9),
      rgba(238, 243, 252, 0.78)
    );
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.6),
    inset 0 -1px 0 rgba(12, 18, 28, 0.1),
    0 4px 14px rgba(15, 20, 30, 0.12);
  backdrop-filter: blur(14px) saturate(1.08);
  -webkit-backdrop-filter: blur(14px) saturate(1.08);
  padding: 0;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  cursor: pointer;
  color: color-mix(in srgb, var(--ui-icon) 92%, #111722);
}

.icon-button svg {
  width: 16px;
  height: 16px;
  display: block;
}

.icon-button svg path {
  fill: currentColor;
}

.theme-toggle-button {
  border: 1px solid rgba(24, 32, 44, 0.28);
  background:
    radial-gradient(circle at 35% 24%, rgba(255, 255, 255, 0.72), transparent 52%),
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.9),
      rgba(238, 243, 252, 0.78)
    );
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.6),
    inset 0 -1px 0 rgba(12, 18, 28, 0.1),
    0 4px 14px rgba(15, 20, 30, 0.12);
  backdrop-filter: blur(14px) saturate(1.08);
  -webkit-backdrop-filter: blur(14px) saturate(1.08);
  width: 36px;
  height: 36px;
  border-radius: 999px;
  padding: 0;
  display: grid;
  place-items: center;
  color: color-mix(in srgb, var(--ui-icon) 92%, #111722);
  cursor: pointer;
  position: relative;
}

.theme-toggle-button:hover,
.icon-button:hover {
  border-color: rgba(16, 24, 36, 0.38);
  background:
    radial-gradient(circle at 35% 24%, rgba(255, 255, 255, 0.84), transparent 52%),
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.98),
      rgba(236, 242, 251, 0.9)
    );
}

.theme-toggle-button:focus-visible,
.icon-button:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--text) 45%, transparent);
  outline-offset: 3px;
  border-radius: 999px;
}

:root.theme-dark .theme-toggle-button,
:root.theme-dark .icon-button {
  border-color: rgba(255, 255, 255, 0.15);
  background:
    radial-gradient(circle at 35% 24%, rgba(255, 255, 255, 0.11), transparent 52%),
    linear-gradient(
      180deg,
      rgba(40, 45, 55, 0.2),
      rgba(24, 28, 35, 0.1)
    );
}

:root.theme-dark .theme-toggle-button:hover,
:root.theme-dark .icon-button:hover {
  border-color: rgba(255, 255, 255, 0.22);
  background:
    radial-gradient(circle at 35% 24%, rgba(255, 255, 255, 0.15), transparent 52%),
    linear-gradient(
      180deg,
      rgba(40, 45, 55, 0.28),
      rgba(24, 28, 35, 0.14)
    );
}

.theme-icon {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: block;
  pointer-events: none;
  transition:
    opacity var(--theme-switch-duration) var(--theme-switch-ease),
    filter var(--theme-switch-duration) var(--theme-switch-ease);
}

.theme-icon-moon {
  fill: currentColor;
  stroke: none;
  opacity: 1;
}

.theme-icon-sun {
  opacity: 0;
}

:root.theme-dark .theme-icon-moon {
  opacity: 0;
}

:root.theme-dark .theme-icon-sun {
  opacity: 1;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 204px;
  gap: 24px;
  align-items: center;
}

.hero-title {
  margin: 0;
  font-family: "Archivo", sans-serif;
  font-size: clamp(3.1rem, 8.5cqw, 7.9rem);
  font-weight: 900;
  letter-spacing: -0.06em;
  line-height: 0.92;
  text-transform: uppercase;
  max-width: 8.4ch;
}

.hero-side {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding-top: 0;
  transform: translateY(-6px);
}

.avatar-frame {
  --hero-avatar-ring-size: 6px;
  width: 148px;
  height: 148px;
  border-radius: 50%;
  background: var(--text);
  display: grid;
  place-items: center;
  overflow: hidden;
  cursor: pointer;
}

.avatar-image {
  width: calc(100% - (var(--hero-avatar-ring-size) * 2));
  height: calc(100% - (var(--hero-avatar-ring-size) * 2));
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.intro-grid {
  margin-top: 46px;
  min-height: 0;
}

.hero-email-row {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-self: start;
  padding-top: 6px;
  min-width: 0;
  color: var(--text);
}

.hero-email-row-header {
  padding-top: 0;
  gap: 6px;
}

.hero-email-link {
  color: inherit;
  text-decoration: none;
  font-family: "Manrope", system-ui, sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1;
  overflow-wrap: anywhere;
}

.hero-email-row-header .hero-email-link {
  font-family: "Archivo", sans-serif;
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: normal;
}

.hero-email-link:hover {
  text-decoration: underline;
}

.mail-icon {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  color: var(--ui-icon);
}

.hero-email-row-header .mail-icon {
  width: 13px;
  height: 13px;
}

.contact-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  padding-top: 6px;
  flex-wrap: wrap;
}

.dot-sep {
  color: var(--ui-muted-text);
}

.contact-row-top {
  padding-top: 0;
  font-size: 0.82rem;
  color: var(--ui-soft-text);
  gap: 6px;
  line-height: 1;
}

.contact-row a {
  color: inherit;
  text-decoration: none;
}

.copy-button {
  border: 0;
  background: transparent;
  padding: 0;
  width: 16px;
  height: 16px;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.copy-icon,
.copy-icon::before {
  content: "";
  display: block;
  width: 9px;
  height: 9px;
  border: 1.5px solid color-mix(in srgb, var(--text) 88%, transparent);
  border-radius: 1px;
}

.copy-icon {
  position: relative;
}

.copy-icon::before {
  position: absolute;
  top: -4px;
  left: -4px;
  background: var(--card);
}

.intro-copy {
  margin: 0;
  width: 100%;
  max-width: none;
  display: grid;
  --intro-row-gap: 0.36em;
  row-gap: var(--intro-row-gap);
  --intro-group-gap: clamp(12px, 1.6cqw, 24px);
  font-family: "Archivo", sans-serif;
  font-weight: 700;
  letter-spacing: -0.03em;
  font-size: clamp(1.15rem, 2.3cqw, 2rem);
  line-height: 0.98;
  text-align: right;
}

.intro-copy p {
  margin: 0;
  position: relative;
  display: block;
}

.intro-copy > p:nth-child(2),
.intro-copy > p:nth-child(5) {
  margin-top: var(--intro-group-gap);
}

.intro-copy p::before {
  content: none;
}

.intro-copy > p:nth-child(2)::before,
.intro-copy > p:nth-child(5)::before {
  content: none;
}

.intro-row-text {
  display: inline-block;
  flex: 0 0 auto;
  white-space: nowrap;
}

/* Keep hero typography fixed on desktop; the outer page scaling handles size changes. */
@media (min-width: 761px) {
  .hero-title {
    font-size: 96px;
  }

  .intro-copy {
    --intro-group-gap: 18px;
    font-size: 26px;
  }
}

.section-card {
  padding: 20px 24px 26px;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.section-header h2 {
  margin: 0;
  font-family: "Archivo", sans-serif;
  font-size: clamp(1.62rem, 3.1cqw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.05em;
}

.section-header p {
  margin: 0;
  color: var(--ui-soft-text);
  font-family: "Manrope", sans-serif;
  font-size: clamp(0.7rem, 1.1cqw, 0.82rem);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1;
  align-self: center;
}

.project-section-header h2 {
  font-size: clamp(1.8rem, 3.4cqw, 2.45rem);
}

.project-stack-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0 var(--project-section-margin) 18px;
  padding: 18px 2px 0;
  background: var(--card);
}

.project-stack-header h2 {
  margin: 0;
  font-family: "Archivo", sans-serif;
  font-size: clamp(1.76rem, 3.1cqw, 2.32rem);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 0.98;
}

.project-stack-header p {
  margin: 0;
  color: var(--ui-soft-text);
  font-family: "Manrope", sans-serif;
  font-size: clamp(0.7rem, 1.1cqw, 0.82rem);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: right;
  line-height: 1;
  align-self: center;
}

.section-header,
.project-stack-header,
.freelancing-stack-header {
  position: relative;
}

.section-header h2,
.project-stack-header h2,
.freelancing-stack-header h2 {
  display: grid;
  grid-template-columns: max-content minmax(clamp(70px, 15cqw, 260px), 1fr);
  align-items: center;
  gap: clamp(10px, 1.6cqw, 18px);
  flex: 1 1 auto;
  min-width: 0;
}

.section-header h2::after,
.project-stack-header h2::after,
.freelancing-stack-header h2::after {
  content: "";
  grid-column: 2;
  grid-row: 1;
  height: 1px;
  pointer-events: none;
  border-radius: 999px;
  background:
    linear-gradient(
      270deg,
      color-mix(in srgb, var(--text) 88%, white 12%) 0%,
      color-mix(in srgb, var(--text) 74%, white 8%) 34%,
      color-mix(in srgb, var(--text) 42%, white 4%) 56%,
      color-mix(in srgb, var(--text) 16%, white 2%) 72%,
      rgba(0, 0, 0, 0) 86%,
      transparent 100%
    );
  transform: scaleX(0);
  transform-origin: left center;
  opacity: 0;
  transition:
    opacity 700ms cubic-bezier(0.16, 0.84, 0.22, 1),
    transform 1200ms cubic-bezier(0.16, 0.84, 0.22, 1);
}

.section-header.is-header-line-active h2::after,
.project-stack-header.is-header-line-active h2::after,
.freelancing-stack-header.is-header-line-active h2::after {
  transform: scaleX(1);
  opacity: 0.96;
}

.ghost-button {
  border: 1px solid var(--ghost-border);
  background: var(--ghost-bg);
  color: var(--ghost-text);
  padding: 11px 18px;
  font: 600 0.85rem/1 "Manrope", sans-serif;
  text-decoration: none;
  cursor: pointer;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(20px, 2.2cqw, 34px);
  row-gap: 16px;
  align-items: start;
}

.work-tile {
  display: grid;
  gap: 12px;
  align-content: start;
  justify-items: stretch;
}

.tile-visit-link,
.tile-caption p {
  justify-self: end;
  font-family: "Archivo", sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1;
  text-transform: uppercase;
}

.tile-visit-link {
  display: inline-flex;
  align-items: center;
  gap: 0.34em;
  color: var(--ui-soft-text);
  text-decoration: none;
}

.tile-visit-icon {
  width: 0.95em;
  height: 0.95em;
  flex: 0 0 auto;
  display: block;
  opacity: 0.92;
  transform: translateY(-0.02em);
}

:root.theme-dark .tile-visit-icon {
  filter: brightness(0) invert(1);
}

.tile-visit-link:hover {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 0.14em;
}

.media {
  border: 1px solid var(--line);
}

.media {
  position: relative;
  aspect-ratio: 1.28 / 1;
  overflow: hidden;
}

.media-soft {
  background: linear-gradient(180deg, #e6dfd4 0%, #e1dacd 40%, #d8d0c2 100%);
}

.media-elowen {
  position: relative;
  background:
    radial-gradient(circle at 18% 20%, rgba(255, 255, 255, 0.84), transparent 48%),
    radial-gradient(circle at 74% 80%, rgba(255, 255, 255, 0.34), transparent 54%),
    linear-gradient(180deg, #f5f6f8 0%, #eceef1 48%, #e6e8ec 100%);
  overflow: hidden;
}

.mini-elowen-hero {
  --heading-display: rgb(249, 249, 249);
  --heading-highlight: rgba(255, 255, 255, 0.96);
  --idle-shadow: drop-shadow(0.3px 0.58px 0 rgba(90, 97, 109, 0.56))
    drop-shadow(0.38px 2.3px 1.45px rgba(20, 24, 31, 0.35))
    drop-shadow(0.52px 4.35px 2.55px rgba(10, 13, 18, 0.25));
  --ceramic-logo-shadow: var(--idle-shadow);
  --logo-shift-x: 0%;
  --logo-shift-y: 6px;
  --cradle-shadow-stack:
    inset 0 -1px 0 rgba(165, 171, 181, 0.24),
    inset 0 -7px 4px -5px rgba(24, 30, 38, 0.16),
    inset 14px -2px 5px -6px rgba(24, 30, 38, 0.09),
    inset -14px -2px 5px -6px rgba(24, 30, 38, 0.09);
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  isolation: isolate;
  overflow: hidden;
  container-type: inline-size;
}

.mini-elowen-surface {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 14%, rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.36) 34%, transparent 60%),
    radial-gradient(circle at 50% 90%, rgba(204, 208, 216, 0.34), transparent 62%);
  pointer-events: none;
  z-index: 0;
}

.mini-elowen-wordmark {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 1;
  margin: 0;
  display: block;
  font-family: "Manrope", "SF Pro Text", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: clamp(42px, 16cqw, 92px);
  line-height: 1;
  letter-spacing: 0.045em;
  font-weight: 800;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--heading-display);
  text-shadow: 0 1px 0 var(--heading-highlight);
  transform: translate(
    calc(-50% + var(--logo-shift-x)),
    calc(-50% + var(--logo-shift-y))
  );
  filter: var(--ceramic-logo-shadow);
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
  will-change: filter, text-shadow;
}

:root.theme-dark .media-elowen {
  background:
    radial-gradient(circle at 18% 20%, rgba(255, 255, 255, 0.62), transparent 48%),
    radial-gradient(circle at 74% 80%, rgba(255, 255, 255, 0.22), transparent 54%),
    linear-gradient(180deg, #ebedf0 0%, #dee1e6 48%, #d7dbe0 100%);
}

.portrait-shape {
  position: absolute;
  left: 8%;
  bottom: -10%;
  width: 46%;
  height: 78%;
  border-radius: 54% 46% 50% 50% / 58% 52% 48% 42%;
  background:
    radial-gradient(circle at 45% 38%, #f1efec 0 30%, transparent 31%),
    radial-gradient(circle at 28% 64%, #d7d3ce 0 55%, transparent 56%),
    radial-gradient(circle at 70% 76%, #d98c60 0 12%, transparent 13%),
    linear-gradient(160deg, #f5f2ed, #d0c3b2);
  box-shadow: 20px 16px 30px rgba(0, 0, 0, 0.12);
}

.floating-spheres span {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ffd4b8, #cc7d4f 72%, #7c4a29);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

.floating-spheres span:nth-child(1) {
  width: 64px;
  height: 64px;
  top: 10%;
  left: 52%;
}

.floating-spheres span:nth-child(2) {
  width: 28px;
  height: 28px;
  top: 20%;
  left: 67%;
}

.floating-spheres span:nth-child(3) {
  width: 84px;
  height: 84px;
  top: 34%;
  left: 76%;
}

.floating-spheres span:nth-child(4) {
  width: 18px;
  height: 18px;
  top: 58%;
  left: 62%;
}

.media-orb {
  position: relative;
  background: #05060c;
  overflow: hidden;
}

.mini-space-hero {
  position: absolute;
  inset: 0;
  background: #05060c;
  isolation: isolate;
  overflow: hidden;
  cursor: auto;
  --glow-x: 50%;
  --glow-y: 50%;
  --glow-x2: 68%;
  --glow-y2: 68%;
  --glow-x3: 34%;
  --glow-y3: 18%;
  --glow-w1: 420px;
  --glow-h1: 240px;
  --glow-w2: 380px;
  --glow-h2: 220px;
  --glow-w3: 280px;
  --glow-h3: 180px;
}

.mini-space-hero::before {
  content: "";
  position: absolute;
  inset: -35% -25%;
  background:
    radial-gradient(var(--glow-w1) var(--glow-h1) at var(--glow-x) var(--glow-y), rgba(65, 179, 163, 0.22), transparent 68%),
    radial-gradient(var(--glow-w2) var(--glow-h2) at var(--glow-x2) var(--glow-y2), rgba(65, 179, 163, 0.18), transparent 70%),
    radial-gradient(var(--glow-w3) var(--glow-h3) at var(--glow-x3) var(--glow-y3), rgba(99, 102, 241, 0.10), transparent 72%);
  opacity: 0.92;
  -webkit-mask-image: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 0) calc(var(--glow-x) - 40%),
    rgba(0, 0, 0, 0.58) calc(var(--glow-x) - 14%),
    rgba(0, 0, 0, 1) calc(var(--glow-x) + 18%),
    rgba(0, 0, 0, 1) 100%
  );
  mask-image: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 0) calc(var(--glow-x) - 40%),
    rgba(0, 0, 0, 0.58) calc(var(--glow-x) - 14%),
    rgba(0, 0, 0, 1) calc(var(--glow-x) + 18%),
    rgba(0, 0, 0, 1) 100%
  );
  z-index: 0;
  pointer-events: none;
}

.mini-space-hero .space-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  isolation: isolate;
}

.mini-space-hero .space-bg::before {
  content: "";
  position: absolute;
  inset: -25%;
  background:
    radial-gradient(closest-side at 35% 30%, rgba(65, 179, 163, 0.16), transparent 62%),
    radial-gradient(closest-side at 72% 62%, rgba(90, 169, 255, 0.10), transparent 60%),
    radial-gradient(closest-side at 54% 86%, rgba(99, 102, 241, 0.12), transparent 62%),
    radial-gradient(closest-side at 18% 72%, rgba(244, 63, 94, 0.06), transparent 62%);
  filter: blur(34px);
  opacity: 0.88;
  animation: spaceNebulaDrift 18s ease-in-out infinite alternate;
  z-index: 0;
}

.mini-space-hero .space-bg canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  opacity: 1;
  z-index: 1;
}

.mini-space-hero .space-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(520px 320px at 74% 50%, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.55) 68%, rgba(0, 0, 0, 0.88) 100%),
    radial-gradient(460px 340px at 25% 0%, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.62) 74%, rgba(0, 0, 0, 0.92) 100%),
    linear-gradient(to bottom, rgba(5, 6, 12, 0.26), rgba(5, 6, 12, 0.72));
  opacity: 0.62;
  z-index: 2;
}

.mini-space-hero .sun-rays {
  position: absolute;
  left: -20%;
  top: -38%;
  width: 142%;
  height: 170%;
  pointer-events: none;
  z-index: 2;
  mix-blend-mode: screen;
  opacity: 0.96;
  filter: none;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(
    180deg,
    rgba(0, 0, 0, 1) 0%,
    rgba(0, 0, 0, 1) 78%,
    rgba(0, 0, 0, 0.58) 90%,
    rgba(0, 0, 0, 0) 100%
  );
  mask-image: linear-gradient(
    180deg,
    rgba(0, 0, 0, 1) 0%,
    rgba(0, 0, 0, 1) 78%,
    rgba(0, 0, 0, 0.58) 90%,
    rgba(0, 0, 0, 0) 100%
  );
}

.mini-space-hero .sun-rays .sun-fx-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
}

.mini-space-hero .mini-jogoty-logo {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  isolation: isolate;
  perspective: 900px;
  color: #41b3a3;
  font-family: "Josefin Sans", sans-serif;
  font-weight: 300;
  text-transform: uppercase;
  text-align: center;
  letter-spacing: 0.055em;
  line-height: 0.9;
  z-index: 4;
  pointer-events: none;
  opacity: 0.98;
}

.mini-space-hero .mini-jogoty-logo-image {
  position: relative;
  z-index: 1;
  display: block;
  width: min(56%, 270px);
  max-width: calc(100% - 32px);
  height: auto;
  user-select: none;
  -webkit-user-drag: none;
  filter: none;
  transform-origin: 50% 50%;
  will-change: transform;
  backface-visibility: hidden;
}

.mini-space-hero .mini-jogoty-logo-line {
  display: block;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
  white-space: nowrap;
  font-size: clamp(20px, 2.7cqw, 38px);
}

.mini-space-hero .mini-jogoty-logo-line + .mini-jogoty-logo-line {
  margin-top: 2px;
  letter-spacing: 0.07em;
}

.mini-space-hero .mini-jogoty-logo .logo-thick {
  font-weight: 700;
}

.mini-space-hero .hero-scene {
  position: absolute;
  inset: 0;
  z-index: 3;
  isolation: isolate;
  --sphere: clamp(195px, 90%, 360px);
  --globe-shell-multiplier: 1.34;
}

.mini-space-hero .hero-globe {
  --sx: 50%;
  --sy: 50%;
  position: absolute;
  left: 50%;
  top: 50%;
  width: calc(var(--sphere) * var(--globe-shell-multiplier));
  height: calc(var(--sphere) * var(--globe-shell-multiplier));
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 3;
  isolation: isolate;
}

.mini-space-hero .hero-globe::before {
  content: none;
  position: absolute;
  inset: -55%;
  border-radius: 999px;
  background:
    radial-gradient(circle at 38% 32%, rgba(65, 179, 163, 0.26), transparent 60%),
    radial-gradient(circle at 68% 76%, rgba(65, 179, 163, 0.18), transparent 62%),
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.12), transparent 66%);
  filter: blur(16px);
  opacity: 0.65;
  z-index: 0;
}

.mini-space-hero .hero-globe > * {
  position: relative;
  z-index: 1;
}

.mini-space-hero .hero-globe > .mini-jogoty-logo {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.mini-space-hero .globe-fx {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
  z-index: 3;
  opacity: 0.96;
  filter: drop-shadow(0 0 22px rgba(65, 179, 163, 0.18));
  -webkit-mask-image: radial-gradient(
    circle at 50% 50%,
    rgba(0, 0, 0, 1) 0%,
    rgba(0, 0, 0, 1) 74%,
    rgba(0, 0, 0, 0.88) 84%,
    rgba(0, 0, 0, 0.42) 94%,
    rgba(0, 0, 0, 0) 100%
  );
  mask-image: radial-gradient(
    circle at 50% 50%,
    rgba(0, 0, 0, 1) 0%,
    rgba(0, 0, 0, 1) 74%,
    rgba(0, 0, 0, 0.88) 84%,
    rgba(0, 0, 0, 0.42) 94%,
    rgba(0, 0, 0, 0) 100%
  );
  display: none;
}

.mini-space-hero .globe-sphere {
  position: absolute;
  width: var(--sphere);
  height: var(--sphere);
  left: var(--sx);
  top: var(--sy);
  transform: translate(-50%, -50%);
  border-radius: 999px;
  overflow: hidden;
  background:
    radial-gradient(closest-side at 38% 30%, rgba(255, 255, 255, 0.34), rgba(255, 255, 255, 0.08) 44%, rgba(15, 23, 42, 0.22) 76%, rgba(15, 23, 42, 0.30) 100%),
    radial-gradient(closest-side at 72% 78%, rgba(255, 255, 255, 0.06), transparent 60%),
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.08), transparent 58%);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 20px 50px rgba(15, 23, 42, 0.18);
}

.mini-space-hero .globe-sphere::before {
  content: none;
  position: absolute;
  inset: -18%;
  border-radius: 999px;
  background:
    radial-gradient(closest-side at 16% 22%, rgba(65, 179, 163, 0.22), transparent 60%),
    radial-gradient(closest-side at 86% 74%, rgba(65, 179, 163, 0.18), transparent 62%),
    radial-gradient(closest-side at 84% 18%, rgba(255, 255, 255, 0.10), transparent 68%);
  filter: blur(22px);
  opacity: 0.78;
  mix-blend-mode: screen;
  pointer-events: none;
  animation: globeMist 13.8s ease-in-out infinite;
}

.mini-space-hero .globe-sphere::after {
  content: none;
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  background:
    radial-gradient(circle, transparent 0 60%, rgba(255, 255, 255, 0.18) 63%, transparent 66%),
    radial-gradient(circle at 28% 24%, rgba(255, 255, 255, 0.18), transparent 54%),
    radial-gradient(circle at 72% 72%, rgba(65, 179, 163, 0.16), transparent 62%),
    radial-gradient(460px 320px at 30% 70%, rgba(255, 255, 255, 0.08), transparent 70%);
  opacity: 0.62;
  pointer-events: none;
}

.mini-space-hero .globe-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
  opacity: 0.92;
}

.mini-space-hero .globe-core {
  position: absolute;
  left: var(--sx);
  top: var(--sy);
  width: calc(var(--sphere) * 0.14);
  height: calc(var(--sphere) * 0.14);
  transform: translate(-50%, -50%);
  border-radius: 999px;
  background:
    radial-gradient(circle at 34% 28%, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.22) 36%, rgba(65, 179, 163, 0.92) 62%, rgba(65, 179, 163, 0) 84%),
    radial-gradient(circle at 70% 76%, rgba(65, 179, 163, 0.55), rgba(65, 179, 163, 0) 68%);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.18),
    0 0 18px rgba(65, 179, 163, 0.55),
    0 0 34px rgba(65, 179, 163, 0.32),
    0 0 70px rgba(65, 179, 163, 0.16);
  opacity: 0.94;
  z-index: 4;
  animation: globePulse 5.2s ease-in-out infinite;
}

.mini-space-hero .globe-core::after {
  content: "";
  position: absolute;
  inset: -70%;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  opacity: 0.35;
}

.mini-space-hero.hero-anim-paused .globe-sphere::before,
.mini-space-hero.hero-anim-paused .globe-core,
.mini-space-hero.hero-anim-paused .space-bg::before {
  animation-play-state: paused !important;
}

@keyframes globeMist {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotate(0deg);
    opacity: 0.74;
  }
  50% {
    transform: translate3d(2.2%, -1.8%, 0) rotate(10deg);
    opacity: 0.86;
  }
}

@keyframes globePulse {
  0%,
  100% {
    transform: translate(-50%, -50%) scale(1);
  }
  50% {
    transform: translate(-50%, -50%) scale(1.06);
  }
}

@keyframes spaceNebulaDrift {
  0% {
    transform: translate3d(0, 0, 0) scale(1.05);
    opacity: 0.82;
  }
  100% {
    transform: translate3d(-2%, 2%, 0) scale(1.08);
    opacity: 0.92;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mini-space-hero .globe-sphere::before,
  .mini-space-hero .globe-core,
  .mini-space-hero .space-bg::before {
    animation: none !important;
  }

  .mini-space-hero .mini-jogoty-logo-line {
    font-size: clamp(18px, 5.5cqw, 26px);
  }
}

.tile-caption {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
  font-size: 0.92rem;
}

.tile-caption p {
  margin: 0;
  justify-self: auto;
  color: var(--text);
}

.tile-caption span {
  color: var(--ui-muted-text);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.tile-comment {
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.tile-comment p {
  margin: 0;
  color: color-mix(in srgb, var(--text) 76%, var(--card) 24%);
  font-family:
    "Iowan Old Style",
    "Palatino Linotype",
    "Book Antiqua",
    Georgia,
    "Times New Roman",
    serif;
  font-size: clamp(0.94rem, 1.08cqw, 1.02rem);
  font-weight: 500;
  line-height: 1.62;
  letter-spacing: 0.008em;
  word-spacing: 0.04em;
  max-width: 64ch;
  text-wrap: pretty;
}

.tile-comment p + p {
  margin-top: 0.9rem;
}

.tile-comment p:first-of-type::first-letter {
  float: left;
  margin: 0.08em 0.14em -0.06em 0;
  font-family:
    "Iowan Old Style",
    "Palatino Linotype",
    "Book Antiqua",
    Georgia,
    "Times New Roman",
    serif;
  font-size: 3.2em;
  line-height: 0.72;
  font-weight: 600;
  color: color-mix(in srgb, var(--text) 92%, transparent);
}

.project-card {
  --project-heading-center-shift: 0px;
  --project-card-min-height: 500px;
  --project-card-terminal-radius: 14px;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  height: 500px;
  margin: var(--project-section-margin);
  padding: 28px 24px 28px;
  border: 1px solid var(--line);
  border-radius: 0;
  display: flex;
  flex-direction: column;
  transition: border-radius 360ms cubic-bezier(0.2, 0.9, 0.16, 1);
  will-change: border-radius;
}

.project-card.is-terminal-radius-expanded {
  border-radius: var(--project-card-terminal-radius);
}

/* Keep section reveal transitions, but also animate card corner radius during
   terminal expand/collapse. This must override the higher-specificity generic
   `.page-shell > :not(...)` transition rule above. */
.page-shell > .project-card:not(.hero-card):not(.page-load-line) {
  transition-property: opacity, transform, filter, border-radius;
  transition-duration: 760ms, 760ms, 760ms, 360ms;
  transition-timing-function:
    cubic-bezier(0.16, 0.82, 0.22, 1),
    cubic-bezier(0.16, 0.82, 0.22, 1),
    cubic-bezier(0.16, 0.82, 0.22, 1),
    cubic-bezier(0.2, 0.9, 0.16, 1);
  transition-delay:
    var(--reveal-delay, 0ms),
    var(--reveal-delay, 0ms),
    var(--reveal-delay, 0ms),
    0ms;
  will-change: opacity, transform, filter, border-radius;
}

.project-card:not(.project-card-clone) {
  --picasso-orb-shift-x: 0px;
  --picasso-orb-shift-y: 0px;
  --picasso-orb-flow-x: 0px;
  --picasso-orb-flow-y: 0px;
  --picasso-orb-energy: 0;
  --picasso-orb-tilt: 0deg;
  box-shadow: none;
}

body.project-terminal-zoom-active {
  overflow-x: hidden;
}

.project-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(
      118deg,
      rgba(246, 252, 255, 0.7) 0%,
      rgba(252, 242, 249, 0.58) 54%,
      rgba(255, 244, 226, 0.66) 100%
    ),
    radial-gradient(circle at 13% 74%, rgba(14, 127, 255, 0.26), transparent 56%),
    radial-gradient(circle at 38% 70%, rgba(108, 61, 244, 0.23), transparent 54%),
    radial-gradient(circle at 62% 66%, rgba(224, 43, 175, 0.22), transparent 52%),
    radial-gradient(circle at 81% 61%, rgba(229, 50, 74, 0.23), transparent 54%),
    radial-gradient(circle at 94% 56%, rgba(255, 120, 26, 0.22), transparent 52%),
    radial-gradient(circle at 100% 53%, rgba(255, 198, 58, 0.18), transparent 46%),
    linear-gradient(
      112deg,
      rgba(35, 132, 255, 0.105) 4%,
      rgba(109, 66, 245, 0.115) 30%,
      rgba(214, 48, 171, 0.12) 56%,
      rgba(223, 58, 90, 0.106) 74%,
      rgba(247, 129, 34, 0.102) 92%
    );
  background-size:
    120% 120%,
    118% 116%,
    116% 118%,
    114% 116%,
    112% 114%,
    112% 112%,
    110% 110%,
    118% 118%;
  background-position:
    50% 50%,
    13% 74%,
    38% 70%,
    62% 66%,
    81% 61%,
    94% 56%,
    100% 53%,
    50% 50%;
  animation: picassoPaletteShift 34s ease-in-out infinite alternate;
  will-change: background-position, transform, opacity;
}

.project-card.project-card-anim-paused::before {
  animation-play-state: paused !important;
}

@keyframes picassoPaletteShift {
  0% {
    background-position:
      50% 50%,
      13% 74%,
      38% 70%,
      62% 66%,
      81% 61%,
      94% 56%,
      100% 53%,
      50% 50%;
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 1;
  }

  50% {
    background-position:
      47% 53%,
      18% 70%,
      44% 66%,
      56% 62%,
      76% 58%,
      90% 54%,
      96% 50%,
      53% 47%;
    transform: translate3d(0, -1%, 0) scale(1.018);
    opacity: 0.96;
  }

  100% {
    background-position:
      54% 46%,
      10% 79%,
      33% 75%,
      66% 70%,
      84% 64%,
      98% 59%,
      102% 56%,
      46% 53%;
    transform: translate3d(0, 1%, 0) scale(1.022);
    opacity: 0.99;
  }
}

@media (prefers-reduced-motion: reduce) {
  .project-card::before {
    animation: none;
    transform: none;
  }
}

.project-glass-orbs {
  position: absolute;
  inset: -10% -8% -12% -8%;
  z-index: 0;
  pointer-events: none;
  overflow: visible;
  transform: translate3d(
    calc(var(--picasso-orb-flow-x) * 0.05),
    calc(var(--picasso-orb-flow-y) * 0.04),
    0
  );
  contain: layout paint;
  will-change: transform;
}

.project-glass-orb {
  position: absolute;
  left: var(--orb-left, 50%);
  top: var(--orb-top, 50%);
  width: calc(var(--orb-size, 520) * 1px);
  aspect-ratio: 1;
  border-radius: 50%;
  pointer-events: none;
  mix-blend-mode: normal;
  opacity: 0.7;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background:
    radial-gradient(
      circle at 22% 19%,
      rgb(var(--orb-core-rgb, 36 182 255) / 0.62) 0%,
      rgb(var(--orb-mid-rgb, 30 118 255) / 0.32) 34%,
      rgb(var(--orb-mid-rgb, 30 118 255) / 0.12) 58%,
      transparent 78%
    ),
    linear-gradient(
      150deg,
      rgb(var(--orb-rim-rgb, 170 231 255) / 0.08) 0%,
      rgb(var(--orb-mid-rgb, 30 118 255) / 0.11) 52%,
      rgb(var(--orb-mid-rgb, 30 118 255) / 0.07) 100%
    );
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    0 8px 16px rgba(8, 18, 38, 0.16);
  transform:
    translate3d(
      calc(
        var(--picasso-orb-shift-x) * var(--orb-depth, 0.5) * var(--orb-motion, 1) +
        var(--picasso-orb-flow-x) * (0.14 + var(--orb-depth, 0.5)) * var(--orb-motion, 1)
      ),
      calc(
        var(--picasso-orb-shift-y) * var(--orb-depth, 0.5) * var(--orb-motion, 1) +
        var(--picasso-orb-flow-y) * (0.1 + var(--orb-depth, 0.5)) * var(--orb-motion, 1)
      ),
      0
    )
    rotate(calc(var(--picasso-orb-tilt) * var(--orb-depth, 0.5)))
    scale(calc(1 + var(--picasso-orb-energy) * 0.018 * var(--orb-depth, 0.5) * var(--orb-motion, 1)));
  transform-origin: center center;
  will-change: transform;
}

.project-glass-orb.orb-lite {
  opacity: 0.46;
  border-color: rgba(255, 255, 255, 0.1);
  background:
    radial-gradient(
      circle at 28% 22%,
      rgb(var(--orb-core-rgb, 36 182 255) / 0.36) 0%,
      rgb(var(--orb-mid-rgb, 30 118 255) / 0.18) 42%,
      transparent 78%
    );
  box-shadow: none;
}

.project-glass-orb.orb-film {
  opacity: 0.29;
  border-color: rgb(var(--orb-rim-rgb, 170 231 255) / 0.16);
  background:
    radial-gradient(
      circle at 52% 52%,
      rgb(var(--orb-core-rgb, 36 182 255) / 0.14) 0%,
      rgb(var(--orb-mid-rgb, 30 118 255) / 0.1) 46%,
      transparent 72%
    );
  box-shadow: none;
}

.project-glass-orb::before,
.project-glass-orb::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
}

.project-glass-orb::before {
  background:
    radial-gradient(
      ellipse at 26% 18%,
      rgba(255, 255, 255, 0.28) 0%,
      rgba(255, 255, 255, 0.08) 18%,
      rgba(255, 255, 255, 0.03) 36%,
      rgba(255, 255, 255, 0) 60%
    );
  opacity: 0.62;
}

.project-glass-orb::after {
  inset: 6.5%;
  border: 1px solid rgb(var(--orb-rim-rgb, 170 231 255) / 0.3);
  background:
    radial-gradient(
      ellipse at 28% 20%,
      rgba(255, 255, 255, 0.18) 0%,
      rgba(255, 255, 255, 0) 56%
    ),
    radial-gradient(
      circle at 66% 64%,
      rgb(var(--orb-mid-rgb, 30 118 255) / 0.13),
      transparent 72%
    );
  box-shadow:
    inset 0 0 0 0.8px rgba(255, 255, 255, 0.14),
    inset 0 -1px 0 rgba(255, 255, 255, 0.08);
  opacity: 0.56;
}

.project-glass-orb.orb-lite::before {
  opacity: 0.34;
}

.project-glass-orb.orb-lite::after {
  inset: 7.5%;
  border: 1px solid rgb(var(--orb-rim-rgb, 170 231 255) / 0.26);
  background:
    radial-gradient(
      ellipse at 30% 20%,
      rgba(255, 255, 255, 0.14) 0%,
      rgba(255, 255, 255, 0) 60%
    );
  box-shadow: inset 0 0 0 0.8px rgba(255, 255, 255, 0.1);
  opacity: 0.52;
}

.project-glass-orb.orb-film::before,
.project-glass-orb.orb-film::after {
  content: "";
}

.project-glass-orb.orb-film::before {
  opacity: 0;
}

.project-glass-orb.orb-film::after {
  inset: 9%;
  border: 1px solid rgb(var(--orb-rim-rgb, 170 231 255) / 0.22);
  background: none;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
  opacity: 0.46;
}

:root.theme-dark .project-card::before {
  background:
    radial-gradient(circle at 13% 74%, rgba(14, 127, 255, 0.4), transparent 56%),
    radial-gradient(circle at 38% 70%, rgba(108, 61, 244, 0.35), transparent 54%),
    radial-gradient(circle at 62% 66%, rgba(224, 43, 175, 0.34), transparent 52%),
    radial-gradient(circle at 81% 61%, rgba(229, 50, 74, 0.34), transparent 54%),
    radial-gradient(circle at 94% 56%, rgba(255, 120, 26, 0.34), transparent 52%),
    radial-gradient(circle at 100% 53%, rgba(255, 198, 58, 0.26), transparent 46%),
    linear-gradient(
      112deg,
      rgba(9, 88, 220, 0.18) 4%,
      rgba(86, 41, 206, 0.192) 30%,
      rgba(179, 30, 132, 0.2) 56%,
      rgba(201, 34, 52, 0.184) 74%,
      rgba(236, 106, 15, 0.176) 92%
    );
}

:root.theme-dark .project-glass-orb {
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    0 10px 20px rgba(0, 0, 0, 0.2);
}

:root.theme-dark .project-glass-orb.orb-lite {
  border-color: rgba(255, 255, 255, 0.1);
}

:root.theme-dark .project-glass-orb.orb-film {
  border-color: rgb(var(--orb-rim-rgb, 170 231 255) / 0.2);
}

:root.theme-dark .project-glass-orb::after {
  border-color: rgb(var(--orb-rim-rgb, 170 231 255) / 0.34);
  box-shadow:
    inset 0 0 0 0.8px rgba(255, 255, 255, 0.2),
    inset 0 -1px 0 rgba(255, 255, 255, 0.1);
  opacity: 0.62;
}

:root.theme-dark .project-glass-orb.orb-lite::after {
  border-color: rgb(var(--orb-rim-rgb, 170 231 255) / 0.3);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
  opacity: 0.56;
}

:root.theme-dark .project-glass-orb.orb-film::after {
  border-color: rgb(var(--orb-rim-rgb, 170 231 255) / 0.26);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
  opacity: 0.5;
}

:root.theme-dark .project-terminal {
  --project-terminal-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.025),
    0 14px 26px rgba(0, 0, 0, 0.26);
  --project-terminal-shadow-expanded:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 26px 54px rgba(0, 0, 0, 0.28);
  border-color: rgba(255, 255, 255, 0.09);
  background:
    linear-gradient(
      180deg,
      rgba(20, 23, 28, 0.9) 0%,
      rgba(12, 15, 19, 0.86) 60%,
      rgba(9, 11, 14, 0.84) 100%
    );
  box-shadow: var(--project-terminal-shadow);
}

:root.theme-dark .project-terminal-bar {
  border-bottom-color: rgba(255, 255, 255, 0.05);
}

:root.theme-dark .project-terminal-dock {
  background:
    linear-gradient(
      180deg,
      rgba(40, 45, 55, 0.38) 0%,
      rgba(24, 28, 35, 0.28) 100%
    );
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 14px 28px rgba(0, 0, 0, 0.24);
}

:root.theme-dark .project-terminal-dock-app {
  background: transparent;
  box-shadow: none;
}

:root.theme-dark .project-terminal-dock-label {
  color: rgba(226, 231, 239, 0.78);
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.25);
}

:root.theme-dark .project-terminal-dock-app::after {
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 0 7px rgba(255, 255, 255, 0.26);
}

.project-meta {
  position: absolute;
  top: 20px;
  right: 24px;
  z-index: 2;
  display: grid;
  gap: 6px;
  text-align: left;
  font-size: 0.8rem;
  line-height: 1;
}

.project-meta span {
  color: color-mix(in srgb, var(--text) 38%, transparent);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-right: 4px;
}

.project-meta strong {
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.project-section-header {
  position: absolute;
  top: 20px;
  left: 24px;
  z-index: 2;
  margin: 0;
  padding-right: 0;
}

.project-showcase {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  grid-template-areas: "terminal image";
  gap: 8px;
  align-items: stretch;
  align-content: center;
  flex: 1;
  min-height: 0;
  height: 100%;
  padding: 0;
}

.project-pane {
  min-width: 0;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-pane-terminal {
  grid-area: terminal;
}

.project-pane-image {
  grid-area: image;
}

.project-card-clone {
  background: linear-gradient(
    180deg,
    #0e5fbb 0%,
    #1875d1 14%,
    #2e96e8 34%,
    #55b0ef 56%,
    #89ccf5 76%,
    #b8dff7 90%,
    #d4edfb 100%
  );
  color: #fff;
  box-shadow: none;
}

.project-card-clone::before {
  content: none;
}

.project-card-clone::after {
  content: none;
}

:root.theme-dark .project-card-clone {
  background: linear-gradient(
    180deg,
    #0a3d7a 0%,
    #0f56ae 18%,
    #1a7ad4 38%,
    #3a98e0 58%,
    #6ab8ec 78%,
    #99d0f3 92%,
    #bde2f8 100%
  );
  color: #fff;
}

.project-card-clone .project-meta {
  left: 24px;
  right: auto;
}

.project-card-clone .project-meta span {
  color: rgba(255, 255, 255, 0.55);
}

.project-card-clone .project-meta strong {
  color: rgba(255, 255, 255, 0.95);
}

.project-card-clone .project-showcase {
  grid-template-columns: minmax(0, 1.18fr) minmax(0, 0.82fr);
  grid-template-areas: "image terminal";
  z-index: 2;
  min-height: 0;
  align-items: stretch;
  padding: 0;
}

.project-card-clone .project-terminal-wrap {
  grid-column: 2;
  grid-row: 1;
  justify-content: center;
  align-self: stretch;
  min-height: 0;
  height: 100%;
  align-items: center;
}

.project-card-clone .project-heading {
  grid-column: 1;
  grid-row: 1;
  align-self: stretch;
  width: 100%;
  min-height: 0;
  height: 100%;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: visible;
}

.project-card-clone .project-heading .mini-elowen-hero {
  position: relative;
  inset: auto;
  width: 100%;
  min-height: 0;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  overflow: visible;
}

.project-clone-image {
  width: min(112%, 1120px);
  max-height: 106%;
  object-fit: contain;
  object-position: center center;
  display: block;
  margin: 0 auto;
  transform: translate3d(var(--project-heading-center-shift, 0px), 0, 0) scale(1.03);
  transform-origin: center center;
  transition: transform 300ms cubic-bezier(0.2, 0.82, 0.2, 1);
  will-change: transform;
  filter:
    drop-shadow(0 0 46px rgba(255, 255, 255, 0.52))
    drop-shadow(0 0 94px rgba(255, 255, 255, 0.34))
    drop-shadow(0 0 156px rgba(255, 255, 255, 0.2))
    drop-shadow(0 18px 34px rgba(146, 210, 255, 0.24));
}

.project-card-clone .mini-elowen-surface {
  display: none;
}

.project-card-clone .mini-elowen-wordmark {
  position: relative;
  top: auto;
  left: auto;
  z-index: 1;
  transform: none;
  font-size: 132px;
  font-size: clamp(132px, 27cqw, 260px);
  font-weight: 900;
  letter-spacing: 0.045em;
  line-height: 1;
}

.project-card-clone .project-terminal-dock {
  left: auto;
  right: 24px;
}

/* ─── SKY SCENE ───────────────────────────────────────── */

.sky-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  display: block;
}

/* ─────────────────────────────────────────────────────── */

.project-terminal-wrap {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-terminal-wrap.is-terminal-detached {
  height: var(--project-terminal-placeholder-height, auto);
}

.project-terminal {
  --project-terminal-radius: var(--project-card-terminal-radius, 14px);
  --project-terminal-body-padding-top: 13px;
  --project-terminal-body-padding-inline: 14px;
  --project-terminal-body-padding-bottom: 14px;
  --project-terminal-body-gap: 10px;
  --project-terminal-body-font-size: 0.75rem;
  --project-terminal-body-line-height: 1.42;
  --project-terminal-status-line-gap: 0.38ch;
  --project-terminal-controls-margin-top: 12px;
  --project-terminal-view-toggle-font-size: 0.74rem;
  --project-terminal-expanded-log-max-width: 94ch;
  --project-terminal-expanded-status-line-height: 1.5;
  --project-terminal-ascii-inline-offset: 14px;
  --project-terminal-ascii-bottom: clamp(118px, 24%, 240px);
  --project-terminal-ascii-font-size: 0.75rem;
  --project-terminal-ascii-line-height: 1.08;
  --project-terminal-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.03),
    0 16px 28px rgba(0, 0, 0, 0.14);
  --project-terminal-shadow-expanded:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 26px 54px rgba(0, 0, 0, 0.28);
  width: min(100%, 350px);
  min-height: 228px;
  display: flex;
  flex-direction: column;
  border-radius: var(--project-terminal-radius);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(
      180deg,
      rgba(23, 25, 29, 0.88) 0%,
      rgba(15, 17, 21, 0.84) 58%,
      rgba(11, 13, 16, 0.82) 100%
    );
  box-shadow: var(--project-terminal-shadow);
  position: relative;
  transition:
    opacity 220ms ease,
    box-shadow 280ms ease,
    border-color 280ms ease,
    background 280ms ease;
  will-change: transform, width, height, left, top;
}

.project-terminal.is-zoom-floating {
  position: fixed;
  left: var(--project-terminal-left, 0px);
  top: var(--project-terminal-top, 0px);
  width: var(--project-terminal-width, 350px);
  height: var(--project-terminal-height, 228px);
  transform-origin: top left;
  transform: scale(var(--project-terminal-floating-scale, 1));
  min-height: 0;
  max-width: none;
  z-index: 2600;
  margin: 0;
}

.project-terminal.is-zoom-transitioning {
  transition:
    left 360ms cubic-bezier(0.2, 0.9, 0.16, 1),
    top 360ms cubic-bezier(0.2, 0.9, 0.16, 1),
    width 360ms cubic-bezier(0.2, 0.9, 0.16, 1),
    height 360ms cubic-bezier(0.2, 0.9, 0.16, 1),
    transform 360ms cubic-bezier(0.2, 0.9, 0.16, 1),
    border-radius 360ms cubic-bezier(0.2, 0.9, 0.16, 1),
    opacity 320ms cubic-bezier(0.2, 0.9, 0.16, 1);
}

.project-terminal.is-zoom-transitioning,
.project-terminal.is-collapsing {
  box-shadow: var(--project-terminal-shadow);
}

.project-terminal.is-minimizing-to-dock {
  z-index: 2400;
  opacity: 1;
}

.project-terminal.is-minimized-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

@keyframes projectTerminalCloseOut {
  0% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
  32% {
    opacity: 0.96;
    transform: translate3d(0, 4px, 0) scale(0.985);
  }
  68% {
    opacity: 0.56;
    transform: translate3d(0, 9px, 0) scale(0.962);
  }
  100% {
    opacity: 0;
    transform: translate3d(0, 14px, 0) scale(0.934);
  }
}

@keyframes projectTerminalCloseIn {
  0% {
    opacity: 0;
    transform: translate3d(0, 14px, 0) scale(0.934);
  }
  36% {
    opacity: 0.62;
    transform: translate3d(0, 9px, 0) scale(0.962);
  }
  70% {
    opacity: 0.96;
    transform: translate3d(0, 4px, 0) scale(0.985);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

.project-terminal.is-closing-to-dock {
  animation: projectTerminalCloseOut 360ms cubic-bezier(0.2, 0.82, 0.2, 1) both;
  pointer-events: none;
}

.project-terminal.is-opening-from-close {
  animation: projectTerminalCloseIn 250ms cubic-bezier(0.2, 0.82, 0.2, 1) both;
}

.project-terminal.is-closed-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.project-terminal-bar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background:
    linear-gradient(180deg, rgba(20, 22, 27, 0.96), rgba(16, 18, 23, 0.93)),
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.05),
      rgba(255, 255, 255, 0.02)
    );
}

.project-terminal-lights {
  display: flex;
  align-items: center;
  gap: 7px;
}

.term-light {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: block;
  position: relative;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.term-light::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 6px;
  height: 1.35px;
  border-radius: 999px;
  background: rgba(28, 30, 34, 0.78);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.16);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.86);
  transform-origin: center;
  transition:
    opacity 120ms ease,
    transform 120ms ease;
  pointer-events: none;
}

.term-light::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 6px;
  height: 1.35px;
  border-radius: 999px;
  background: rgba(28, 30, 34, 0.78);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.16);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.86);
  transform-origin: center;
  transition:
    opacity 120ms ease,
    transform 120ms ease;
  pointer-events: none;
}

.term-light-close::before {
  transform: translate(-50%, -50%) rotate(45deg) scale(0.86);
}

.term-light-close::after {
  transform: translate(-50%, -50%) rotate(-45deg) scale(0.86);
}

.term-light-min::before {
  width: 6.5px;
  height: 1.4px;
  transform: translate(-50%, -50%) scale(0.86);
}

.term-light-min::after {
  content: none;
}

.term-light-max::before {
  transform: translate(-50%, -50%) rotate(90deg) scale(0.86);
}

.term-light-max::after {
  transform: translate(-50%, -50%) scale(0.86);
}

.project-terminal-lights:hover .term-light::before,
.project-terminal-lights:focus-within .term-light::before,
.project-terminal-lights:hover .term-light::after,
.project-terminal-lights:focus-within .term-light::after {
  opacity: 1;
}

.project-terminal-lights:hover .term-light-close::before,
.project-terminal-lights:focus-within .term-light-close::before {
  transform: translate(-50%, -50%) rotate(45deg) scale(1);
}

.project-terminal-lights:hover .term-light-close::after,
.project-terminal-lights:focus-within .term-light-close::after {
  transform: translate(-50%, -50%) rotate(-45deg) scale(1);
}

.project-terminal-lights:hover .term-light-min::before,
.project-terminal-lights:focus-within .term-light-min::before {
  transform: translate(-50%, -50%) scale(1);
}

.project-terminal-lights:hover .term-light-max::before,
.project-terminal-lights:focus-within .term-light-max::before {
  transform: translate(-50%, -50%) rotate(90deg) scale(1);
}

.project-terminal-lights:hover .term-light-max::after,
.project-terminal-lights:focus-within .term-light-max::after {
  transform: translate(-50%, -50%) scale(1);
}

.term-light-max-button {
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

.term-light-min-button {
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

.term-light-close-button {
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

.term-light-max-button:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.35);
  outline-offset: 2px;
}

.term-light-min-button:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.35);
  outline-offset: 2px;
}

.term-light-close-button:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.35);
  outline-offset: 2px;
}

.term-light-close {
  background: #ff5f57;
}

.term-light-min {
  background: #ffbd2e;
}

.term-light-max {
  background: #28c840;
}

.project-terminal-title {
  margin: 0;
  justify-self: center;
  transform: translateX(-10px);
  font: 600 0.74rem/1 "Manrope", sans-serif;
  letter-spacing: 0.01em;
  color: rgba(226, 229, 236, 0.74);
}

.project-terminal-body {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  border-bottom-left-radius: inherit;
  border-bottom-right-radius: inherit;
  padding:
    var(--project-terminal-body-padding-top)
    var(--project-terminal-body-padding-inline)
    var(--project-terminal-body-padding-bottom);
  display: flex;
  flex-direction: column;
  gap: var(--project-terminal-body-gap);
  font-family:
    ui-monospace,
    SFMono-Regular,
    Menlo,
    Monaco,
    Consolas,
    "Liberation Mono",
    monospace;
  font-size: var(--project-terminal-body-font-size);
  line-height: var(--project-terminal-body-line-height);
  color: #e5e7eb;
  background:
    radial-gradient(circle at 78% 94%, rgba(95, 130, 255, 0.06), transparent 58%),
    linear-gradient(180deg, rgba(9, 11, 15, 0.18), rgba(7, 9, 12, 0.24));
  -webkit-backdrop-filter: blur(8px) saturate(1.06) brightness(0.94);
  backdrop-filter: blur(8px) saturate(1.06) brightness(0.94);
}

.project-terminal-log {
  min-width: 0;
}

.project-terminal-controls {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  min-width: 0;
  margin-top: var(--project-terminal-controls-margin-top);
}

.project-terminal-view-toggle {
  appearance: none;
  border: 0;
  background: transparent;
  margin: 0;
  padding: 0;
  font-family:
    ui-monospace,
    SFMono-Regular,
    Menlo,
    Monaco,
    Consolas,
    "Liberation Mono",
    monospace;
  font-size: var(--project-terminal-view-toggle-font-size);
  line-height: 1;
  letter-spacing: 0.02em;
  font-weight: 700;
  color: #6be2ce;
  cursor: pointer;
  opacity: 0.96;
  -webkit-filter: blur(0);
  filter: blur(0);
  transition:
    -webkit-filter 160ms ease,
    filter 160ms ease,
    opacity 160ms ease,
    color 160ms ease;
}

.project-terminal-view-toggle:hover {
  opacity: 1;
  filter: brightness(1.04);
}

.project-terminal-view-toggle:active {
  opacity: 0.86;
}

.project-terminal-view-toggle:focus-visible {
  outline: 1px solid rgba(107, 226, 206, 0.55);
  outline-offset: 2px;
  border-radius: 3px;
}

.project-terminal.is-collapsing .project-terminal-body {
  overflow: hidden;
}

.project-terminal.is-collapsing .project-terminal-log {
  width: var(--project-terminal-log-freeze-width, auto);
  max-width: none;
  min-width: 0;
  flex: 0 0 auto;
  align-self: flex-start;
}

.project-terminal-body p {
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.project-terminal-body p + p {
  margin-top: 6px;
}

.project-terminal-status-line {
  display: flex;
  align-items: baseline;
  gap: var(--project-terminal-status-line-gap);
  min-width: 0;
  text-wrap: nowrap;
}

.project-terminal-status-copy,
.project-terminal-tail-copy {
  display: inline-block;
  vertical-align: baseline;
  -webkit-filter: blur(0);
  filter: blur(0);
  opacity: 1;
  will-change: filter, opacity;
  transition:
    -webkit-filter 260ms ease,
    filter 260ms ease,
    opacity 260ms ease;
}

.project-terminal-status-copy {
  flex: 1 1 auto;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.project-terminal-tail-copy {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.term-prompt {
  color: #d7e3ff;
}

.term-dim {
  color: rgba(220, 224, 233, 0.55);
}

.term-accent {
  color: #6be2ce;
  font-weight: 600;
}

.project-terminal-ascii {
  margin: 0;
  margin-top: auto;
  padding-top: 0;
  align-self: center;
  width: 100%;
  max-height: 0;
  overflow: hidden;
  text-align: center;
  font-family:
    ui-monospace,
    SFMono-Regular,
    Menlo,
    Monaco,
    Consolas,
    "Liberation Mono",
    monospace;
  font-size: clamp(1.05rem, 2cqw, 2rem);
  line-height: 0.9;
  letter-spacing: -0.03em;
  color: rgba(210, 219, 235, 0.14);
  opacity: 0;
  pointer-events: none;
  user-select: none;
}

.project-terminal.has-ascii-overlay .project-terminal-body > .project-terminal-ascii {
  display: none;
}

.project-terminal-ascii-overlay {
  position: absolute;
  left: var(--project-terminal-ascii-inline-offset);
  bottom: var(--project-terminal-ascii-bottom);
  margin: 0;
  width: calc(100% - (var(--project-terminal-ascii-inline-offset) * 2));
  text-align: left;
  font-family:
    ui-monospace,
    SFMono-Regular,
    Menlo,
    Monaco,
    Consolas,
    "Liberation Mono",
    monospace;
  font-size: var(--project-terminal-ascii-font-size);
  line-height: var(--project-terminal-ascii-line-height);
  letter-spacing: 0;
  white-space: pre;
  color: #e5e7eb;
  opacity: 0;
  transform: none;
  pointer-events: none;
  user-select: none;
  z-index: 3;
}

@keyframes projectTerminalHashReveal {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

.project-card.is-terminal-expanded .project-terminal-ascii {
  max-height: 13em;
  padding-top: 8px;
  opacity: 1;
  animation: none;
}

.project-card.is-terminal-expanded .project-terminal-ascii-overlay,
.project-terminal.is-expanded .project-terminal-ascii-overlay {
  opacity: 1;
}

.project-terminal-ascii-char {
  display: inline;
  opacity: 1;
}

.project-terminal-ascii-gap {
  opacity: 1;
}

.project-terminal-ascii-hash {
  opacity: 0;
}

.project-card.is-terminal-expanded .project-terminal-ascii-overlay .project-terminal-ascii-hash,
.project-terminal.is-expanded .project-terminal-ascii-overlay .project-terminal-ascii-hash {
  animation-name: projectTerminalHashReveal;
  animation-duration: 1ms;
  animation-timing-function: steps(1, end);
  animation-fill-mode: forwards;
  animation-delay: calc(90ms + (var(--ascii-step, 0) * var(--ascii-step-ms, 4ms)));
}

.project-terminal.is-collapsing .project-terminal-ascii,
.project-terminal.is-minimizing-to-dock .project-terminal-ascii {
  max-height: 0;
  padding-top: 0;
  opacity: 0;
  animation: none;
}

.project-terminal.is-collapsing .project-terminal-ascii-overlay,
.project-terminal.is-minimizing-to-dock .project-terminal-ascii-overlay {
  opacity: 0;
  animation: none;
  transition: none;
}

.project-terminal.is-collapsing .project-terminal-ascii-hash,
.project-terminal.is-minimizing-to-dock .project-terminal-ascii-hash,
.project-terminal:not(.is-expanded):not(.is-expanding) .project-terminal-ascii-hash {
  opacity: 0;
  animation: none;
}

.project-terminal.is-collapsing .project-terminal-status-copy,
.project-terminal.is-collapsing .project-terminal-tail-copy,
.project-terminal.is-collapsing .project-terminal-view-toggle,
.project-terminal.is-expanding .project-terminal-status-copy,
.project-terminal.is-expanding .project-terminal-tail-copy,
.project-terminal.is-expanding .project-terminal-view-toggle,
.project-terminal.is-collapse-blur-hold .project-terminal-status-copy,
.project-terminal.is-collapse-blur-hold .project-terminal-tail-copy,
.project-terminal.is-collapse-blur-hold .project-terminal-view-toggle,
.project-terminal.is-expand-blur-hold .project-terminal-status-copy,
.project-terminal.is-expand-blur-hold .project-terminal-tail-copy,
.project-terminal.is-expand-blur-hold .project-terminal-view-toggle {
  -webkit-filter: blur(5px);
  filter: blur(5px);
  opacity: 0.68;
  transition:
    -webkit-filter 140ms ease,
    filter 140ms ease,
    opacity 140ms ease;
}

.project-card.is-terminal-expanded .project-terminal,
.project-terminal.is-expanded {
  border-radius: var(--project-terminal-radius);
  border-color: rgba(255, 255, 255, 0.1);
  background:
    linear-gradient(
      180deg,
      rgba(23, 25, 29, 0.87) 0%,
      rgba(16, 19, 23, 0.84) 54%,
      rgba(10, 12, 16, 0.82) 100%
    );
  box-shadow: var(--project-terminal-shadow-expanded);
}

.project-terminal-dock {
  position: absolute;
  left: 24px;
  bottom: 18px;
  z-index: 6;
  display: inline-flex;
  align-items: flex-end;
  justify-content: flex-start;
  gap: 0;
  padding: 8px 10px 12px;
  border-radius: 16px;
  background:
    linear-gradient(
      180deg,
      rgba(248, 250, 255, 0.38) 0%,
      rgba(234, 239, 247, 0.26) 100%
    );
  border: 1px solid rgba(255, 255, 255, 0.26);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.26),
    inset 0 -1px 0 rgba(255, 255, 255, 0.08),
    0 10px 22px rgba(16, 18, 24, 0.14);
  -webkit-backdrop-filter: blur(22px) saturate(1.08);
  backdrop-filter: blur(22px) saturate(1.08);
  opacity: 1;
  visibility: hidden;
  transform: translate3d(0, calc(100% + 28px), 0);
  transform-origin: left bottom;
  pointer-events: none;
  overflow: visible;
  will-change: transform;
  transition:
    transform 360ms cubic-bezier(0.2, 0.9, 0.18, 1),
    visibility 0s linear 360ms;
}

.project-terminal-dock-overlay-host {
  position: fixed;
  inset: 0;
  z-index: 3200;
  pointer-events: none;
}

.project-terminal-dock-overlay {
  position: absolute;
  left: var(--project-terminal-dock-left, 0px);
  top: var(--project-terminal-dock-top, 0px);
  bottom: auto;
  --project-terminal-dock-overlay-scale: 1;
}

.project-terminal-dock-overlay.project-terminal-dock {
  transform-origin: top left;
  transform: translate3d(0, calc(100% + 28px), 0) scale(var(--project-terminal-dock-overlay-scale));
}

.project-terminal-dock-overlay.project-terminal-dock.is-overlay-visible {
  transform: translate3d(0, 0, 0) scale(var(--project-terminal-dock-overlay-scale));
}

.project-terminal-dock.is-overlay-proxy-active {
  opacity: 0 !important;
  pointer-events: none !important;
}

.project-terminal-dock::before {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  top: 0;
  height: 1px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.32);
  opacity: 0.8;
  pointer-events: none;
}

.project-terminal-dock::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background:
    radial-gradient(circle at 22% 18%, rgba(255, 255, 255, 0.18), transparent 56%),
    radial-gradient(circle at 82% 120%, rgba(255, 255, 255, 0.06), transparent 62%);
}

.project-card.is-terminal-dock-visible .project-terminal-dock {
  visibility: visible;
  transform: translate3d(0, 0, 0);
  pointer-events: auto;
  transition:
    transform 360ms cubic-bezier(0.2, 0.9, 0.18, 1),
    visibility 0s linear 0s;
}

.project-terminal-dock.is-overlay-visible {
  visibility: visible;
  transform: translate3d(0, 0, 0);
  pointer-events: auto;
  transition:
    transform 360ms cubic-bezier(0.2, 0.9, 0.18, 1),
    visibility 0s linear 0s;
}

.project-terminal-dock-app {
  position: relative;
  width: 56px;
  height: 56px;
  border: 0;
  border-radius: 14px;
  padding: 0;
  margin: 0;
  display: grid;
  place-items: center;
  cursor: pointer;
  background: transparent;
  box-shadow: none;
  z-index: 1;
}

.project-terminal-dock-app:hover {
  transform: none;
}

.project-terminal-dock-app:active {
  transform: none;
}

.project-terminal-dock-app:focus-visible {
  outline: 2px solid rgba(70, 160, 255, 0.55);
  outline-offset: 2px;
}

.project-terminal-dock-app-glow {
  display: none;
}

.project-terminal-dock-app-icon {
  width: 48px;
  height: 48px;
  object-fit: contain;
  display: block;
  border-radius: 12px;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
  filter:
    drop-shadow(0 1px 0 rgba(255, 255, 255, 0.14))
    drop-shadow(0 8px 14px rgba(8, 10, 14, 0.2));
}

.project-terminal-dock-app:hover .project-terminal-dock-app-icon {
  filter:
    drop-shadow(0 1px 0 rgba(255, 255, 255, 0.14))
    drop-shadow(0 8px 14px rgba(8, 10, 14, 0.2));
}

.project-terminal-dock-app-fallback {
  display: none;
  color: rgba(22, 24, 29, 0.82);
  font:
    700 0.9rem/1 ui-monospace,
    SFMono-Regular,
    Menlo,
    Monaco,
    Consolas,
    monospace;
  letter-spacing: -0.02em;
}

.project-terminal-dock-label {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 15px);
  transform: translateX(-50%) translateY(6px) scale(0.96);
  font: 600 0.62rem/1 "Manrope", sans-serif;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.94);
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.22);
  white-space: nowrap;
  padding: 5px 11px 6px;
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(61, 62, 67, 0.92), rgba(44, 45, 50, 0.88));
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.09),
    0 10px 18px rgba(0, 0, 0, 0.2);
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 150ms ease,
    transform 180ms cubic-bezier(0.2, 0.9, 0.2, 1);
}

.project-terminal-dock-label::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 100%;
  width: 10px;
  height: 10px;
  background: rgba(46, 47, 52, 0.9);
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transform: translate(-50%, -55%) rotate(45deg);
  border-bottom-right-radius: 2px;
}

.project-terminal-dock-app::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -6px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.9);
  box-shadow: none;
  opacity: 0.94;
}

.project-card.is-terminal-closed:not(.is-terminal-closed-launching) .project-terminal-dock-app::after {
  opacity: 0;
}

.project-terminal-dock.is-close-indicator-hidden .project-terminal-dock-app::after {
  opacity: 0;
}

.project-terminal-dock-app:hover::after {
  transform: translateX(-50%);
  opacity: 0.92;
}

.project-terminal-dock-app:hover + .project-terminal-dock-label,
.project-terminal-dock-app:focus-visible + .project-terminal-dock-label {
  opacity: 1;
  transform: translateX(-50%) translateY(0) scale(1);
}

.project-card.is-terminal-dock-visible .project-terminal-dock-label {
  pointer-events: none;
}

/* Keep the compact shadow while the terminal is physically resizing, even if
   the expanded-state classes are still present until the animation callback. */
.project-terminal.is-expanded.is-zoom-transitioning,
.project-terminal.is-expanded.is-collapsing,
.project-card.is-terminal-expanded .project-terminal.is-zoom-transitioning,
.project-card.is-terminal-expanded .project-terminal.is-collapsing {
  box-shadow: var(--project-terminal-shadow);
}

.project-card.is-terminal-expanded .project-terminal-body,
.project-terminal.is-expanded .project-terminal-body {
  flex: 1 1 auto;
  min-height: 0;
  padding:
    var(--project-terminal-body-padding-top)
    var(--project-terminal-body-padding-inline)
    var(--project-terminal-body-padding-bottom);
  gap: var(--project-terminal-body-gap);
  overflow: auto;
}

.project-card.is-terminal-expanded .project-terminal-body p,
.project-terminal.is-expanded .project-terminal-body p {
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
}

.project-card.is-terminal-expanded .project-terminal:not(.is-collapsing) .project-terminal-status-line,
.project-terminal.is-expanded:not(.is-collapsing) .project-terminal-status-line {
  display: block;
}

.project-card.is-terminal-expanded .project-terminal:not(.is-collapsing) .project-terminal-status-copy,
.project-terminal.is-expanded:not(.is-collapsing) .project-terminal-status-copy,
.project-card.is-terminal-expanded .project-terminal:not(.is-collapsing) .project-terminal-tail-copy,
.project-terminal.is-expanded:not(.is-collapsing) .project-terminal-tail-copy {
  display: inline;
  max-width: none;
  overflow: visible;
  text-overflow: clip;
  white-space: normal;
}

.project-card.is-terminal-expanded .project-terminal-log,
.project-terminal.is-expanded .project-terminal-log {
  max-width: var(--project-terminal-expanded-log-max-width);
}

.project-card.is-terminal-expanded .project-terminal-status-line,
.project-terminal.is-expanded .project-terminal-status-line {
  line-height: var(--project-terminal-expanded-status-line-height);
}

.project-section-header,
.project-meta,
.project-heading {
  transition:
    opacity 240ms ease,
    transform 280ms ease,
    filter 280ms ease;
}

.project-heading h3 {
  margin: 0;
  font-family: "Archivo", sans-serif;
  font-size: clamp(2.6rem, 6cqw, 5.6rem);
  line-height: 0.9;
  letter-spacing: -0.06em;
  font-weight: 800;
}

.project-heading {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-heading-visual {
  position: relative;
  width: min(100%, 760px);
  max-width: 100%;
  margin: 0 auto;
  isolation: isolate;
  overflow: visible;
  transform: translate3d(var(--project-heading-center-shift, 0px), 0, 0);
  transition: transform 300ms cubic-bezier(0.2, 0.82, 0.2, 1);
  will-change: transform;
}

.project-card.is-terminal-minimized .project-heading-visual {
  transition-duration: 760ms;
  transition-timing-function: cubic-bezier(0.16, 0.86, 0.2, 1);
}

.project-card.is-terminal-minimized .project-clone-image {
  transition-duration: 760ms;
  transition-timing-function: cubic-bezier(0.16, 0.86, 0.2, 1);
}

.project-heading-visual::before,
.project-heading-visual::after {
  content: none;
}

.project-heading-glow,
.project-heading-image {
  display: block;
  width: 100%;
  height: auto;
}

.project-heading-glow {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  transform: scale(1.01);
  opacity: 0.28;
  filter:
    blur(4px)
    saturate(1.08)
    brightness(1.02)
    contrast(1.01);
  mix-blend-mode: screen;
  animation: none;
}

.project-heading-image {
  position: relative;
  z-index: 2;
  filter: none;
}

@keyframes picassoAmbientDrift {
  0%,
  100% {
    transform: translate3d(-4px, -1px, 0) scale(1.005);
    opacity: 0.42;
    filter: blur(14px) saturate(1.16) brightness(1.04);
  }
  50% {
    transform: translate3d(4px, 1px, 0) scale(1.03);
    opacity: 0.62;
    filter: blur(22px) saturate(1.24) brightness(1.08);
  }
}

@keyframes picassoSheenSweep {
  0%,
  100% {
    transform: translate3d(-5px, -1px, 0) scale(1.002) rotate(-0.7deg);
    opacity: 0.12;
  }
  50% {
    transform: translate3d(5px, 1px, 0) scale(1.015) rotate(0.6deg);
    opacity: 0.28;
  }
}

@keyframes picassoGlowPulse {
  0%,
  100% {
    opacity: 0.54;
    transform: scale(1.018);
    filter:
      blur(8px)
      saturate(1.14)
      brightness(1.05)
      contrast(1.02);
  }
  50% {
    opacity: 0.72;
    transform: scale(1.032);
    filter:
      blur(12px)
      saturate(1.22)
      brightness(1.09)
      contrast(1.03);
  }
}

@media (prefers-reduced-motion: reduce) {
  .project-heading-visual::before,
  .project-heading-visual::after,
  .project-heading-glow {
    animation: none;
  }

  .project-heading-image,
  .project-heading-visual,
  .project-heading-glow {
    transition: none;
    transform: none;
  }

  .project-heading-visual::before,
  .project-heading-visual::after {
    transform: none;
  }
}

.about-card {
  padding-bottom: 30px;
}

.freelancing-card {
  position: relative;
  overflow: visible;
  padding: 0 var(--project-section-margin) 34px;
  background: var(--card);
}

.freelancing-stack-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 18px;
  padding: 24px 2px 0;
}

.about-card .section-header {
  margin-bottom: 32px;
}

.freelancing-stack-header h2 {
  margin: 0;
  font-family: "Archivo", sans-serif;
  font-size: clamp(1.76rem, 3.1cqw, 2.32rem);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 0.98;
}

.freelancing-stack-header p {
  margin: 0;
  color: var(--ui-soft-text);
  font-family: "Manrope", sans-serif;
  font-size: clamp(0.7rem, 1.1cqw, 0.82rem);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: right;
  line-height: 1;
  align-self: center;
}

.freelancing-shell {
  --freelancing-shell-inline-pad: 24px;
  position: relative;
  border: 1px solid var(--line);
  background: #ffffff;
  color: #111;
  padding: 0 24px 34px;
  overflow: hidden;
}

.freelancing-cta-shell {
  margin-top: var(--project-section-margin);
  min-height: 132px;
  position: relative;
  isolation: isolate;
  border: 1px solid var(--line);
  background: #ffffff;
  color: #111111;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  overflow: hidden;
}

.freelancing-cta-shell > :not(.freelancing-dust-canvas) {
  position: relative;
  z-index: 1;
}

.freelancing-cta-title {
  margin: 0;
  display: inline-block;
  font-family: "Caveat", "Segoe Script", "Bradley Hand", cursive;
  font-size: clamp(1.9rem, 4.2cqw, 3.55rem);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.008em;
  padding: 0.08em 0.2em 0.12em 0.06em;
  transform: rotate(-1.3deg);
  transform-origin: left center;
}

.freelancing-cta-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.freelancing-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  min-height: 52px;
  padding: 12px 24px;
  border: 1px solid rgba(120, 120, 120, 0.46);
  background:
    radial-gradient(circle at 35% 24%, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.14) 52%),
    linear-gradient(
      180deg,
      rgba(236, 236, 236, 0.82),
      rgba(218, 218, 218, 0.58)
    );
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.82),
    inset 0 -1px 0 rgba(146, 146, 146, 0.24),
    0 10px 22px rgba(22, 33, 49, 0.16);
  backdrop-filter: blur(14px) saturate(1.08);
  -webkit-backdrop-filter: blur(14px) saturate(1.08);
  border-radius: 999px;
  color: #1a1a1a;
  text-decoration: none;
  font-family: "Archivo", sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.08),
    0 -1px 0 rgba(0, 0, 0, 0.1);
  transition:
    transform 260ms cubic-bezier(0.2, 0.82, 0.2, 1),
    background 200ms ease,
    border-color 260ms cubic-bezier(0.2, 0.82, 0.2, 1),
    color 260ms cubic-bezier(0.2, 0.82, 0.2, 1),
    box-shadow 260ms cubic-bezier(0.2, 0.82, 0.2, 1);
}

@media (hover: hover) and (pointer: fine) {
  .freelancing-cta-btn:hover {
    transform: translateY(-2px);
    border-color: rgba(105, 105, 105, 0.62);
    background:
      radial-gradient(circle at 35% 24%, rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.24) 52%),
      linear-gradient(
        180deg,
        rgba(244, 244, 244, 0.9),
        rgba(228, 228, 228, 0.68)
      );
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.9),
      inset 0 -1px 0 rgba(146, 146, 146, 0.3),
      0 14px 26px rgba(22, 33, 49, 0.2);
  }
}

.freelancing-dust-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.freelancing-shell::after {
  content: "";
  position: absolute;
  left: calc(25% + 12px);
  bottom: 0;
  transform: translateX(-50%);
  width: min(calc(50% - 48px), 560px);
  height: 2px;
  pointer-events: none;
  z-index: 1;
  box-shadow:
    0 -11px 14px -8px rgba(18, 24, 34, 0.95),
    0 -2px 4px -2px rgba(18, 24, 34, 0.5);
  background:
    linear-gradient(
      90deg,
      rgba(18, 24, 34, 0) 0%,
      rgba(18, 24, 34, 0.32) 20%,
      rgba(18, 24, 34, 0.56) 50%,
      rgba(18, 24, 34, 0.32) 80%,
      rgba(18, 24, 34, 0) 100%
    );
}

:root.theme-dark .freelancing-shell {
  background: #000000;
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.18);
}

:root.theme-dark .freelancing-cta-shell {
  background: #000000;
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.18);
}

:root.theme-dark .freelancing-cta-btn {
  border-color: rgba(255, 255, 255, 0.15);
  background:
    radial-gradient(circle at 35% 24%, rgba(255, 255, 255, 0.11), transparent 52%),
    linear-gradient(
      180deg,
      rgba(40, 45, 55, 0.2),
      rgba(24, 28, 35, 0.1)
    );
  color: #f1f2f4;
  text-shadow: none;
}

@media (hover: hover) and (pointer: fine) {
  :root.theme-dark .freelancing-cta-btn:hover {
    border-color: rgba(255, 255, 255, 0.22);
    background:
      radial-gradient(circle at 35% 24%, rgba(255, 255, 255, 0.15), transparent 52%),
      linear-gradient(
        180deg,
        rgba(40, 45, 55, 0.28),
        rgba(24, 28, 35, 0.14)
      );
  }
}

:root.theme-dark .freelancing-shell::after {
  box-shadow:
    0 -11px 14px -8px rgba(18, 24, 34, 0.95),
    0 -2px 4px -2px rgba(18, 24, 34, 0.5);
  background:
    linear-gradient(
      90deg,
      rgba(18, 24, 34, 0) 0%,
      rgba(18, 24, 34, 0.32) 20%,
      rgba(18, 24, 34, 0.56) 50%,
      rgba(18, 24, 34, 0.32) 80%,
      rgba(18, 24, 34, 0) 100%
    );
}

:root.theme-dark .freelancing-copy {
  color: #f3f4f6;
}

:root.theme-dark .freelancing-sub-detail {
  color: rgba(224, 224, 224, 0.9);
}

:root.theme-dark .freelancing-logos-title {
  color: rgba(228, 228, 228, 0.88);
}

:root.theme-dark .freelancing-tech-icon {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.08);
}

:root.theme-dark .freelancing-tech-icon img {
  opacity: 0.9;
  filter: brightness(0) invert(1);
}

:root.theme-dark .freelancing-tech-icon.is-swapping {
  border-color: rgba(255, 255, 255, 0.5);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.16);
}

:root.theme-dark .freelancing-logo-item {
  background: #111111;
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.07),
    0 10px 24px rgba(0, 0, 0, 0.42);
}

.freelancing-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-rows: auto 1fr;
  min-height: 720px;
  height: 720px;
}

.freelancing-right {
  position: relative;
  z-index: 1;
  grid-column: 2;
  grid-row: 1 / -1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 22px;
  padding: 24px 8px;
  width: 100%;
}

.freelancing-text {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.freelancing-copy {
  margin: 0;
  max-width: 17ch;
  margin-left: 0;
  text-align: center;
  font-family: "Archivo", sans-serif;
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 0.98;
  font-size: 2.45rem;
}

.freelancing-sub {
  margin: 14px 0 0;
  text-align: center;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: #666;
}

.freelancing-sub-detail {
  margin: 10px auto 0;
  max-width: 50ch;
  text-align: center;
  font-size: 0.86rem;
  font-weight: 500;
  letter-spacing: 0.005em;
  line-height: 1.35;
  color: #5e5e5e;
}

.freelancing-tech-icons {
  margin: 12px auto 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.freelancing-tech-icon {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.14);
  background: rgba(255, 255, 255, 0.84);
  display: grid;
  place-items: center;
  perspective: 280px;
  transform-style: preserve-3d;
  transition:
    border-color 320ms ease,
    box-shadow 320ms ease,
    background-color 320ms ease;
}

.freelancing-tech-icon img {
  display: block;
  width: 15px;
  height: 15px;
  opacity: 0.74;
  transform: translateZ(0) scale(1);
  transform-origin: center;
  backface-visibility: hidden;
  will-change: transform, opacity;
}

@keyframes freelancing-tech-icon-blop {
  0% {
    transform: translateZ(0) scale(1);
    opacity: 0.74;
  }
  32% {
    transform: translateZ(-22px) scale(0.62);
    opacity: 0.14;
  }
  58% {
    transform: translateZ(19px) scale(1.2);
    opacity: 0.98;
  }
  76% {
    transform: translateZ(6px) scale(0.94);
    opacity: 0.88;
  }
  100% {
    transform: translateZ(0) scale(1);
    opacity: 0.74;
  }
}

.freelancing-tech-icon.is-swapping {
  border-color: rgba(112, 112, 112, 0.44);
  box-shadow: 0 0 0 1px rgba(130, 130, 130, 0.24);
  background: rgba(250, 250, 250, 0.96);
}

.freelancing-tech-icon.is-swapping img {
  animation: freelancing-tech-icon-blop 760ms cubic-bezier(0.2, 0.9, 0.24, 1) both;
}

.freelancing-logos {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-top: 24px;
  width: 100%;
}

.freelancing-logos-title {
  margin: 0;
  text-align: center;
  color: #3f3f3f;
  font-family: "Manrope", sans-serif;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.freelancing-logo-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(120px, 146px));
  gap: 14px;
  justify-content: center;
  width: min(100%, 356px);
  margin-top: 26px;
}

.freelancing-logo-item {
  --freelancing-logo-tilt: 0deg;
  --freelancing-logo-image-scale: 1;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 999px;
  overflow: hidden;
  background: #f4f5f7;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.64),
    0 8px 22px rgba(15, 24, 34, 0.12);
  display: grid;
  place-items: center;
  transform: translate3d(0, 0, 0) scale(1) rotate(0deg);
  transition:
    transform 900ms cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 900ms cubic-bezier(0.22, 1, 0.36, 1),
    border-color 900ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform, box-shadow;
}

.freelancing-logo-item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(var(--freelancing-logo-image-scale));
  transition: transform 900ms cubic-bezier(0.22, 1, 0.36, 1);
}

.freelancing-logo-item:nth-child(1) {
  --freelancing-logo-tilt: -2.4deg;
}

.freelancing-logo-item:nth-child(2) {
  --freelancing-logo-tilt: 2.2deg;
}

.freelancing-logo-item:nth-child(3) {
  --freelancing-logo-tilt: 1.8deg;
}

.freelancing-logo-item:nth-child(4) {
  --freelancing-logo-tilt: -1.9deg;
  --freelancing-logo-image-scale: 1.18;
}

@media (hover: hover) and (pointer: fine) {
  .freelancing-logo-item:hover {
    transform: translate3d(0, -9px, 0) scale(1.045) rotate(var(--freelancing-logo-tilt));
    box-shadow:
      inset 0 0 0 1px rgba(255, 255, 255, 0.78),
      0 18px 30px rgba(15, 24, 34, 0.22);
    border-color: rgba(0, 0, 0, 0.16);
  }

  .freelancing-logo-item:hover img {
    transform: scale(calc(var(--freelancing-logo-image-scale) * 1.065));
  }

  :root.theme-dark .freelancing-logo-item:hover {
    box-shadow:
      inset 0 0 0 1px rgba(255, 255, 255, 0.16),
      0 18px 34px rgba(6, 10, 16, 0.62);
    border-color: rgba(255, 255, 255, 0.32);
  }
}

.freelancing-media {
  --freelancing-media-bottom-offset: 34px;
  --freelancing-media-scale: 1.42;
  --freelancing-depth-rotate-x: 0deg;
  --freelancing-depth-rotate-y: 0deg;
  --freelancing-depth-z: 0px;
  --freelancing-depth-shift-x: 0px;
  --freelancing-depth-shift-y: 0px;
  --freelancing-depth-scale: 1;
  position: absolute;
  z-index: 0;
  left: 0;
  top: 0;
  bottom: calc(-1 * var(--freelancing-media-bottom-offset));
  width: 50%;
  margin: 0;
  perspective: 1400px;
  transform-style: preserve-3d;
}

.freelancing-media img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
}

.freelancing-media-load-line {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 4;
  pointer-events: none;
  overflow: visible;
  opacity: 1;
  filter: drop-shadow(0 0 5px rgba(47, 124, 255, 0.11));
  -webkit-clip-path: inset(-10px 0 -22px 0);
  clip-path: inset(-10px 0 -22px 0);
}

.freelancing-media-load-line.is-hidden-final {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  display: none !important;
  animation: none !important;
  filter: none !important;
}

.freelancing-media-load-line > span {
  position: absolute;
  top: 0;
  left: 0;
  width: 0%;
  height: 100%;
  opacity: 1;
  border-radius: 999px;
  background:
    linear-gradient(
      90deg,
      rgba(8, 36, 128, 0.9) 0%,
      rgba(11, 44, 152, 0.98) 28%,
      rgba(14, 56, 184, 1) 56%,
      rgba(21, 76, 221, 0.98) 82%,
      rgba(45, 117, 247, 0.92) 100%
    );
  box-shadow:
    0 0 4px rgba(46, 126, 255, 0.2),
    0 0 9px rgba(46, 126, 255, 0.1);
  transition: width 120ms linear;
  will-change: width, opacity, filter, transform;
  transform-origin: left center;
}

.freelancing-media-load-line.is-indeterminate > span {
  width: 34%;
  transition: none;
  animation: freelancing-load-line-indeterminate 1280ms cubic-bezier(0.37, 0, 0.63, 1) infinite;
}

.freelancing-media-load-line > span::before,
.freelancing-media-load-line > span::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.freelancing-media-load-line > span::before {
  inset: -16px -14px;
  background:
    radial-gradient(
      ellipse at 100% 50%,
      rgba(86, 174, 255, 0.22) 0%,
      rgba(53, 141, 255, 0.11) 34%,
      rgba(28, 93, 212, 0.045) 58%,
      rgba(28, 93, 212, 0) 78%
    );
  filter: blur(6px);
  opacity: 0.62;
}

.freelancing-media-load-line > span::after {
  top: -1px;
  right: -2px;
  bottom: -1px;
  width: 28px;
  border-radius: 999px;
  background:
    radial-gradient(
      ellipse at 28% 50%,
      rgba(224, 245, 255, 0.48) 0%,
      rgba(164, 215, 255, 0.22) 34%,
      rgba(100, 176, 255, 0.08) 58%,
      rgba(100, 176, 255, 0) 82%
    );
  mix-blend-mode: screen;
  filter: blur(1.4px);
  opacity: 0.82;
}

.freelancing-media-load-line.is-fading {
  animation: site-load-line-shell-fade-out 1400ms cubic-bezier(0.16, 0.84, 0.22, 1) forwards;
}

.freelancing-media-load-line.is-fading-indeterminate {
  animation: site-load-line-shell-fade-out 1400ms cubic-bezier(0.16, 0.84, 0.22, 1) forwards;
}

.freelancing-media-load-line.is-fading > span {
  animation: site-load-line-fill-fade-out 1260ms cubic-bezier(0.16, 0.84, 0.22, 1) forwards;
}

.freelancing-media-load-line.is-fading > span::before {
  animation: site-load-line-bloom-fade-out 1480ms cubic-bezier(0.16, 0.84, 0.22, 1) forwards;
}

.freelancing-media-load-line.is-fading > span::after {
  animation: site-load-line-head-fade-out 1180ms cubic-bezier(0.16, 0.84, 0.22, 1) forwards;
}

@keyframes freelancing-load-line-indeterminate {
  0% {
    left: -36%;
    width: 28%;
  }

  45% {
    left: 28%;
    width: 46%;
  }

  100% {
    left: 102%;
    width: 30%;
  }
}

@media (max-width: 760px) {
  .freelancing-media-load-line {
    top: auto;
    bottom: 0;
  }
}

.freelancing-poster {
  position: absolute;
  inset: 0;
  z-index: 1;
  transform: scale(var(--freelancing-media-scale));
  transform-origin: center bottom;
  filter: blur(14px);
  opacity: 1;
  transition:
    filter 700ms cubic-bezier(0.16, 0.82, 0.22, 1),
    transform 700ms cubic-bezier(0.16, 0.82, 0.22, 1),
    opacity 700ms cubic-bezier(0.16, 0.82, 0.22, 1);
}

.freelancing-gif {
  position: absolute;
  inset: 0;
  z-index: 2;
  opacity: 0;
  pointer-events: none;
  transform:
    translate3d(
      var(--freelancing-depth-shift-x),
      var(--freelancing-depth-shift-y),
      var(--freelancing-depth-z)
    )
    rotateX(var(--freelancing-depth-rotate-x))
    rotateY(var(--freelancing-depth-rotate-y))
    scale(calc(var(--freelancing-media-scale) * var(--freelancing-depth-scale)));
  transform-origin: center bottom;
  transform-style: preserve-3d;
  backface-visibility: hidden;
  will-change: transform, filter, opacity;
  filter: drop-shadow(0 12px 18px rgba(8, 12, 20, 0.14));
  transition:
    opacity 700ms cubic-bezier(0.16, 0.82, 0.22, 1),
    filter 420ms cubic-bezier(0.2, 0.82, 0.2, 1);
}

.freelancing-media.is-loaded .freelancing-gif {
  opacity: 1;
}

.freelancing-media.is-loaded .freelancing-poster {
  opacity: 0;
  filter: blur(3px);
}

@media (hover: hover) and (pointer: fine) {
  .freelancing-media.is-depth-hovered .freelancing-gif {
    filter: drop-shadow(0 20px 28px rgba(8, 12, 20, 0.25));
  }
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 32px;
  align-items: center;
}

.about-copy {
  margin: 0;
  max-width: 70ch;
  padding-right: clamp(4px, 0.8cqw, 12px);
}

/* ─── ABOUT BUBBLES ──────────────────────────────────── */

.about-bubbles {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  max-height: 400px;
  margin-top: clamp(18px, 2.6cqw, 30px);
}

.about-bubble {
  position: absolute;
  left: 0;
  top: 0;
  border-radius: 50%;
  border: 1px solid rgba(24, 32, 44, 0.28);
  background:
    radial-gradient(circle at 35% 24%, rgba(255, 255, 255, 0.72), transparent 52%),
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.9),
      rgba(238, 243, 252, 0.78)
    );
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.6),
    inset 0 -1px 0 rgba(12, 18, 28, 0.1),
    0 4px 14px rgba(15, 20, 30, 0.12);
  backdrop-filter: blur(14px) saturate(1.08);
  -webkit-backdrop-filter: blur(14px) saturate(1.08);
  display: grid;
  place-items: center;
  cursor: default;
  will-change: transform;
  transition:
    border-color 320ms ease,
    box-shadow 320ms ease,
    background 320ms ease;
}

.about-bubble:hover {
  border-color: rgba(16, 24, 36, 0.38);
  background:
    radial-gradient(circle at 35% 24%, rgba(255, 255, 255, 0.84), transparent 52%),
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.98),
      rgba(236, 242, 251, 0.9)
    );
}

.about-bubble-icon {
  display: block;
  width: 50%;
  height: 50%;
  object-fit: contain;
  pointer-events: none;
  transition: none;
  transform: scale(1);
  opacity: 1;
}

.about-bubble-icon.is-swapping-out {
  animation: about-bubble-shrink 260ms cubic-bezier(0.4, 0, 0.2, 1) both;
}

.about-bubble-icon.is-swapping-in {
  animation: about-bubble-pop 340ms cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes about-bubble-shrink {
  0%   { transform: scale(1);   opacity: 1; }
  100% { transform: scale(0.15); opacity: 0; }
}

@keyframes about-bubble-pop {
  0%   { transform: scale(0.5); opacity: 0.4; }
  100% { transform: scale(1);   opacity: 1; }
}

:root.theme-dark .about-bubble {
  border-color: rgba(255, 255, 255, 0.15);
  background:
    radial-gradient(circle at 35% 24%, rgba(255, 255, 255, 0.11), transparent 52%),
    linear-gradient(
      180deg,
      rgba(40, 45, 55, 0.2),
      rgba(24, 28, 35, 0.1)
    );
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    inset 0 -1px 0 rgba(0, 0, 0, 0.42),
    0 4px 14px rgba(0, 0, 0, 0.36);
}

:root.theme-dark .about-bubble:hover {
  border-color: rgba(255, 255, 255, 0.22);
  background:
    radial-gradient(circle at 35% 24%, rgba(255, 255, 255, 0.15), transparent 52%),
    linear-gradient(
      180deg,
      rgba(40, 45, 55, 0.28),
      rgba(24, 28, 35, 0.14)
    );
}

.about-copy p {
  margin: 0;
  font-family:
    "Iowan Old Style",
    "Palatino Linotype",
    "Book Antiqua",
    Georgia,
    "Times New Roman",
    serif;
  font-weight: 500;
  font-size: clamp(0.98rem, 1.1cqw, 1.08rem);
  line-height: 1.72;
  letter-spacing: 0.006em;
  word-spacing: 0.02em;
  color: color-mix(in srgb, var(--text) 84%, var(--card) 16%);
  text-wrap: pretty;
}

.about-copy p + p {
  margin-top: 1.02rem;
}

.about-copy p:first-of-type::first-letter {
  float: left;
  margin: 0.08em 0.14em -0.06em 0;
  font-family:
    "Iowan Old Style",
    "Palatino Linotype",
    "Book Antiqua",
    Georgia,
    "Times New Roman",
    serif;
  font-size: 3.2em;
  line-height: 0.72;
  font-weight: 600;
  color: color-mix(in srgb, var(--text) 92%, transparent);
}

.about-timeline {
  margin-top: clamp(28px, 4cqw, 46px);
  padding-top: clamp(18px, 2.3cqw, 26px);
}

.timeline-table {
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--card) 94%, white);
}

:root.theme-dark .timeline-table {
  background: color-mix(in srgb, var(--card) 94%, black);
}

.timeline-row {
  display: grid;
  grid-template-columns: minmax(150px, 188px) minmax(0, 1fr);
  gap: clamp(14px, 2cqw, 24px);
  padding: 14px 16px;
}

.timeline-row + .timeline-row {
  border-top: 1px solid var(--line);
}

.timeline-year {
  margin: 0;
  font-family: "Archivo", sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  line-height: 1.25;
  text-transform: uppercase;
  color: var(--ui-soft-text);
}

.timeline-content {
  --timeline-axis-x: 0.5px;
  --timeline-copy-size: clamp(0.9rem, 1.02cqw, 0.98rem);
  --timeline-copy-line-height: 1.5;
  position: relative;
  margin: 0;
  padding-left: 16px;
  display: grid;
  gap: 8px;
  font-family: "Manrope", sans-serif;
  font-size: var(--timeline-copy-size);
  font-weight: 600;
  line-height: var(--timeline-copy-line-height);
}

.timeline-content::after {
  content: "";
  position: absolute;
  left: var(--timeline-axis-x);
  top: 0;
  bottom: 0;
  width: 1px;
  background: color-mix(in srgb, var(--line) 70%, var(--text) 30%);
  transform: translateX(-50%);
  pointer-events: none;
}

.timeline-content::before {
  content: "";
  position: absolute;
  left: var(--timeline-axis-x);
  top: calc((var(--timeline-copy-line-height) * 0.5em) + 0.5px);
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--text) 68%, var(--card) 32%);
  transform: translate(-50%, -50%);
  z-index: 1;
}

.timeline-row:last-child .timeline-content::after {
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--line) 70%, var(--text) 30%) 0%,
    color-mix(in srgb, var(--line) 70%, var(--text) 30%) 68%,
    transparent 100%
  );
}

.timeline-content p {
  margin: 0;
  font: inherit;
}

.timeline-item-title {
  font-family: "Archivo", sans-serif;
  font-size: clamp(0.92rem, 1.08cqw, 1rem);
  font-weight: 700;
  letter-spacing: 0.01em;
}

.timeline-item-lead {
  color: var(--ui-soft-text);
}

.timeline-study-list {
  margin: 0;
  padding-left: 1.1em;
  display: grid;
  gap: 4px;
}

.timeline-study-list li {
  font-family: "Manrope", sans-serif;
  font-size: clamp(0.88rem, 0.98cqw, 0.96rem);
  font-weight: 600;
  line-height: 1.45;
}

@media (max-width: 760px) {
  .project-glass-orbs {
    inset: -14% -12% -16% -12%;
  }

  .project-glass-orb {
    width: calc(var(--orb-size, 520) * 0.64px);
    opacity: 0.58;
  }

  .project-stack-header {
    padding-top: 14px;
    margin-bottom: 14px;
  }

  .project-stack-header p {
    text-align: left;
  }

  .freelancing-stack-header p {
    text-align: left;
  }

  .project-card {
    padding-top: 22px;
    padding-bottom: 22px;
    min-height: 0;
  }

  .hero-grid {
    grid-template-columns: 1fr 172px;
  }

  .intro-copy p {
    display: block;
  }

  .intro-copy > p:nth-child(2),
  .intro-copy > p:nth-child(5) {
    margin-top: 0.28em;
  }

  .intro-copy > p:nth-child(2)::before,
  .intro-copy > p:nth-child(5)::before {
    content: none;
  }

  .intro-row-text {
    white-space: normal;
  }

  .project-meta {
    position: absolute;
    top: 20px;
    right: 24px;
    margin-bottom: 0;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  /* Clone card: meta stays absolute so it overlays the sky canvas and
     the showcase can fill the full inner height for proper centering. */
  .project-card-clone .project-meta {
    position: absolute;
    margin-bottom: 0;
  }


  .project-section-header {
    position: absolute;
    top: 20px;
    left: 24px;
    margin: 0;
    padding-right: 0;
  }

  .project-showcase {
    grid-template-columns: 1fr;
    gap: 16px;
    min-height: 0;
    padding: 8px 0 0;
  }

  .project-card {
    min-height: 0;
  }

  .project-card-clone .project-showcase {
    grid-template-columns: 1fr;
    min-height: 0;
    padding: 8px 0 0;
    align-items: center;
  }

  .project-card-clone .project-terminal-wrap {
    grid-column: auto;
    grid-row: auto;
    justify-content: center;
    min-height: 0;
  }

  .project-card-clone .project-heading {
    grid-column: auto;
    grid-row: auto;
    min-height: 0;
  }

  .project-clone-image {
    width: min(104%, 900px);
    max-height: 103%;
    transform: translate3d(var(--project-heading-center-shift, 0px), 0, 0) scale(1.01);
    min-height: 160px;
  }

  .project-card-clone .mini-elowen-wordmark {
    font-size: clamp(52px, 14vw, 90px);
  }

  .project-terminal-wrap {
    justify-content: center;
  }

  .project-terminal {
    min-height: 184px;
    width: min(100%, 420px);
  }

  .project-heading {
    justify-content: center;
  }

  .project-heading-visual {
    width: min(100%, 620px);
  }

  .project-terminal-dock {
    left: 0;
    bottom: 12px;
  }

  .project-card-clone .project-terminal-dock {
    left: auto;
    right: 0;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .about-bubbles {
    max-width: 300px;
    max-height: 300px;
    justify-self: center;
    margin-top: 22px;
  }
}

@media (max-width: 760px) {
  .page-shell {
    width: 100%;
    min-height: 100svh;
    margin: 0;
    border: 0;
    box-shadow: none;
  }

  .hero-card,
  .section-card,
  .project-card {
    padding-left: 14px;
    padding-right: 14px;
  }

  .freelancing-card {
    padding-left: 10px;
    padding-right: 10px;
    padding-bottom: 26px;
  }

  .freelancing-stack-header {
    padding-top: 18px;
    margin-bottom: 18px;
  }

  .freelancing-stack-header h2 {
    font-size: clamp(1.75rem, 7.2vw, 2.3rem);
  }

  .freelancing-stack-header p {
    font-size: 0.74rem;
    letter-spacing: 0.07em;
  }

  .freelancing-shell {
    --freelancing-shell-inline-pad: 14px;
    padding: 18px 14px 16px;
  }

  .freelancing-cta-shell {
    min-height: 0;
    padding: 18px 14px 16px;
    gap: 14px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
  }

  .freelancing-cta-title {
    display: block;
    width: min(100%, 22rem);
    max-width: 100%;
    margin-inline: auto;
    box-sizing: border-box;
    font-size: clamp(1.46rem, 7.1vw, 2rem);
    text-align: center;
    line-height: 1.06;
    padding: 0.08em 0.22em 0.14em 0.18em;
    overflow: visible;
    transform: none;
  }

  .freelancing-cta-actions {
    width: 100%;
    justify-content: center;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap;
  }

  .freelancing-cta-btn {
    flex: 1 1 0;
    min-width: 0;
    min-height: 42px;
    padding: 9px 10px;
    font-size: clamp(0.58rem, 2.7vw, 0.67rem);
    line-height: 1.1;
    letter-spacing: 0.03em;
    white-space: nowrap;
  }

  .project-stack-header {
    margin-left: 10px;
    margin-right: 10px;
    margin-top: 0;
    padding-top: 12px;
  }

  .topbar {
    margin-bottom: 10px;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
  }

  .theme-toggle-button,
  .icon-button {
    width: 34px;
    height: 34px;
  }

  .project-glass-orbs {
    inset: -16% -14% -18% -14%;
  }

  .project-glass-orb {
    width: calc(var(--orb-size, 520) * 0.5px);
    opacity: 0.5;
  }

  .topbar-left {
    flex: 1 1 auto;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    min-width: 0;
  }

  .topbar-mainline {
    flex-direction: column;
    gap: 4px;
  }

  .contact-row-top {
    font-size: 0.74rem;
  }

  .topbar-actions {
    flex: 0 0 auto;
    gap: 8px;
    align-self: center;
    margin-left: 10px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 14px;
    justify-items: center;
  }

  .hero-side {
    order: -1;
    width: 100%;
    justify-content: center;
    padding-top: 28px;
    margin-bottom: 20px;
    transform: none;
  }

  .avatar-frame {
    --hero-avatar-ring-size: 4px;
    width: 104px;
    height: 104px;
  }

  .avatar-image {
    width: calc(100% - (var(--hero-avatar-ring-size) * 2));
    height: calc(100% - (var(--hero-avatar-ring-size) * 2));
  }

  .hero-title {
    font-size: clamp(2.5rem, 16vw, 4.5rem);
    max-width: none;
    text-align: center;
  }

  .project-terminal-dock {
    left: 14px;
    bottom: 10px;
    padding: 6px 8px 10px;
    border-radius: 14px;
  }

  .project-card-clone .project-terminal-dock {
    left: auto;
    right: 14px;
  }

  .project-terminal-dock-app {
    width: 48px;
    height: 48px;
    border-radius: 11px;
  }

  .project-terminal-dock-app-icon {
    width: 40px;
    height: 40px;
  }

  .project-terminal-dock-label {
    font-size: 0.58rem;
    bottom: calc(100% + 10px);
    padding: 4px 9px 5px;
  }

  .intro-grid {
    margin-top: 48px;
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .intro-copy {
    max-width: none;
    margin-inline: 0;
    box-sizing: border-box;
    padding-right: 34px;
    --intro-group-gap: 0.58em;
    row-gap: 0;
    line-height: 1.12;
    font-size: clamp(0.98rem, 7.1vw, 1.46rem);
    text-align: left;
    display: block;
    text-wrap: normal;
  }

  .intro-copy p {
    display: inline;
    margin: 0;
    position: static;
  }

  .intro-copy > p:nth-child(1) {
    display: block;
    margin-bottom: var(--intro-group-gap);
  }

  .intro-copy > p:nth-child(5) {
    display: inline;
  }

  .intro-copy > p:nth-child(5)::before {
    content: "";
    display: block;
    height: var(--intro-group-gap);
  }

  .intro-copy p + p::before {
    content: " ";
  }

  .intro-copy > p:nth-child(2)::before {
    content: none;
  }

  .intro-row-text {
    display: inline;
    white-space: normal;
  }

  .hero-email-row {
    padding-top: 0;
  }

  .section-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
    row-gap: 8px;
    margin-bottom: 14px;
  }

  .project-stack-header,
  .freelancing-stack-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
    row-gap: 8px;
  }

  .section-header p,
  .project-stack-header p,
  .freelancing-stack-header p {
    margin-top: 0;
    width: 100%;
    text-align: left;
  }

  .section-header h2,
  .project-stack-header h2,
  .freelancing-stack-header h2 {
    font-size: clamp(1.75rem, 7.2vw, 2.3rem);
  }

  .ghost-button {
    padding: 9px 14px;
  }

  .work-grid {
    grid-template-columns: 1fr;
  }

  .mini-space-hero .hero-scene {
    --sphere: clamp(146px, 68%, 308px);
    --globe-shell-multiplier: 1.24;
  }

  .tile-caption p {
    font-size: 0.68rem;
    justify-self: start;
  }

  .tile-visit-link {
    font-size: 0.68rem;
    justify-self: end;
    text-align: right;
  }

  .tile-caption {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .project-meta {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .project-terminal {
    min-height: 176px;
    --project-terminal-radius: 12px;
  }

  .project-showcase {
    gap: 14px;
  }

  .project-clone-image {
    width: min(100%, 740px);
    max-height: 100%;
    transform: translate3d(var(--project-heading-center-shift, 0px), 0, 0) scale(1);
    min-height: 132px;
  }

  .project-card-clone .mini-elowen-wordmark {
    font-size: clamp(48px, 13vw, 82px);
  }

  .project-terminal-title {
    font-size: 0.7rem;
  }

  .project-terminal-body {
    font-size: 0.72rem;
    line-height: 1.38;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .about-bubbles {
    max-width: 260px;
    max-height: 260px;
    justify-self: center;
    margin-top: 22px;
  }

  .about-timeline {
    margin-top: 24px;
    padding-top: 16px;
  }

  .timeline-row {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 12px 13px;
  }

  .timeline-year {
    font-size: 0.74rem;
    letter-spacing: 0.08em;
  }

  .timeline-content {
    padding-left: 12px;
  }

  .freelancing-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto 1fr;
    min-height: 820px;
    height: auto;
  }

  .freelancing-shell::after {
    display: none;
  }

  .freelancing-right {
    display: contents;
  }

  .freelancing-text {
    grid-column: 1;
    grid-row: 1;
    justify-self: center;
    align-items: center;
    padding-top: 18px;
    gap: 0;
  }

  .freelancing-copy {
    max-width: 16.4ch;
    margin-left: 0;
    text-align: center;
    font-size: clamp(1.68rem, 7.4vw, 2.08rem);
  }

  .freelancing-sub-detail {
    margin: 12px auto 0;
    max-width: 28ch;
    text-align: center;
    font-size: 0.88rem;
    line-height: 1.28;
  }

  .freelancing-tech-icons {
    margin-top: 14px;
    gap: 8px;
  }

  .freelancing-tech-icon {
    width: 29px;
    height: 29px;
  }

  .freelancing-tech-icon img {
    width: 15px;
    height: 15px;
  }

  .freelancing-logos {
    grid-column: 1;
    grid-row: 2;
    align-self: start;
    justify-self: center;
    align-items: center;
    gap: 8px;
    margin-top: 6px;
    padding-top: 18px;
    width: 100%;
  }

  .freelancing-logos-title {
    text-align: center;
    font-size: 0.72rem;
    letter-spacing: 0.055em;
  }

  .freelancing-logo-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(88px, 108px));
    gap: 10px;
    justify-content: center;
    width: min(100%, 236px);
    margin-top: 8px;
  }

  .freelancing-logo-item {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
  }

  .freelancing-media {
    position: relative;
    grid-column: 1;
    grid-row: 3;
    left: auto;
    top: auto;
    bottom: auto;
    --freelancing-media-scale: 1;
    align-self: end;
    justify-self: stretch;
    height: auto;
    margin: 0 -14px calc(-1 * var(--freelancing-media-bottom-offset));
    width: calc(100% + 28px);
  }

  .freelancing-media img {
    width: 100%;
  }

  .about-copy p {
    font-size: 0.94rem;
    line-height: 1.66;
  }

  .about-copy p:first-of-type::first-letter {
    font-size: 2.9em;
    margin-right: 0.12em;
  }
}

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

  .section-dot-nav,
  .section-dot-nav-dot,
  .section-dot-nav-jump,
  .section-dot-nav-jump .icon-arrow,
  .section-dot-nav-jump .icon-line {
    transition: none;
  }
}

/* Accessible hidden text */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Footer */
.footer-card {
  padding: 14px 24px 18px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.footer-left {
  min-width: 0;
}

.footer-right {
  margin-left: auto;
  align-self: flex-end;
  padding-top: 0;
}

.footer-line {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: "Manrope", sans-serif;
  color: color-mix(in srgb, var(--text) 84%, transparent);
}

.footer-line + .footer-line {
  margin-top: 4px;
}

.footer-copy {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.footer-powered {
  font-size: 0.8rem;
  font-weight: 700;
  gap: 4px;
}

.footer-psalm-trigger {
  border: 0;
  background: transparent;
  padding: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font: inherit;
  color: inherit;
  cursor: pointer;
  text-decoration: none;
}

.footer-psalm-trigger span {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.footer-psalm-trigger:hover {
  color: var(--text);
}

.footer-psalm-trigger:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--ui-icon) 55%, transparent);
  outline-offset: 3px;
  border-radius: 4px;
}

.footer-psalm-icon {
  width: 14px;
  height: 14px;
  display: block;
  opacity: 0.86;
}

:root.theme-dark .footer-psalm-icon {
  filter: invert(1);
  opacity: 0.88;
}

.footer-impressum-trigger {
  border: 0;
  background: transparent;
  padding: 0;
  margin: 0;
  font-family: "Manrope", sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.25;
  color: color-mix(in srgb, var(--text) 84%, transparent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  cursor: pointer;
}

.footer-impressum-trigger:hover {
  color: var(--text);
}

.footer-impressum-trigger:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--ui-icon) 55%, transparent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Bible modal */
body.bible-modal-active {
  overflow: hidden;
}

.bible-modal {
  position: fixed;
  inset: 0;
  z-index: 72;
  pointer-events: none;
}

.bible-modal-shell {
  --bible-modal-desktop-gap: clamp(38px, 5.2vw, 88px);
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.bible-modal-scene {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 280ms cubic-bezier(0.22, 1, 0.36, 1);
}

.bible-modal.is-mounted {
  pointer-events: auto;
}

.bible-modal-backdrop {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(9, 12, 18, 0.16);
  opacity: 0;
  transition: opacity 320ms ease;
}

.bible-modal.is-open .bible-modal-backdrop {
  opacity: 1;
}

.bible-modal.is-open .bible-modal-scene {
  opacity: 1;
  transition-duration: 2200ms;
  transition-timing-function: cubic-bezier(0.2, 0.86, 0.26, 1);
  transition-delay: 180ms;
}

@media (min-width: 761px) {
  .bible-modal-backdrop,
  :root.theme-dark .bible-modal-backdrop {
    background: transparent;
  }
}

.bible-modal-panel {
  position: relative;
  z-index: 2;
  inset: auto;
  width: min(1320px, calc(100vw - (var(--bible-modal-desktop-gap) * 2)));
  height: min(860px, calc(100svh - (var(--bible-modal-desktop-gap) * 2)));
  margin: 0;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background:
    radial-gradient(circle at 12% 10%, rgba(255, 255, 255, 0.16), transparent 42%),
    radial-gradient(circle at 88% 92%, rgba(255, 255, 255, 0.06), transparent 50%),
    linear-gradient(180deg, rgba(246, 246, 247, 0.94), rgba(241, 241, 243, 0.9));
  box-shadow:
    0 26px 70px rgba(3, 9, 20, 0.28),
    0 10px 26px rgba(7, 16, 34, 0.18);
  backdrop-filter: blur(24px) saturate(1.08);
  -webkit-backdrop-filter: blur(24px) saturate(1.08);
  overflow: hidden;
  opacity: 0;
  transform: translate(-50%, calc(-50% + 20px)) scale(calc(0.985 * var(--desktop-modal-scale, 1)));
  transition:
    opacity 340ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 520ms cubic-bezier(0.22, 1, 0.36, 1);
}

.bible-modal.is-open .bible-modal-panel {
  opacity: 1;
  transform: translate(-50%, -50%) scale(var(--desktop-modal-scale, 1));
}

.bible-modal-header {
  position: relative;
  z-index: 2;
  min-height: 62px;
  padding: 14px 18px 12px 20px;
  border-bottom: 1px solid rgba(70, 88, 116, 0.44);
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.18);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.bible-modal-headings {
  min-width: 0;
}

.bible-modal-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.bible-books-toggle-mobile {
  display: none;
  height: 34px;
  min-height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(70, 88, 116, 0.44);
  background: rgba(255, 255, 255, 0.22);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
  color: var(--text);
  font: 700 0.68rem/1 "Archivo", sans-serif;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 0 10px;
  cursor: pointer;
}

.bible-books-toggle-mobile:hover {
  background: rgba(255, 255, 255, 0.3);
}

.bible-books-toggle-mobile:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--ui-icon) 55%, transparent);
  outline-offset: 2px;
}

.bible-modal-eyebrow {
  margin: 0;
  font-family: "Archivo", sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--text) 56%, transparent);
}

.bible-modal-title {
  margin: 4px 0 0;
  font-family: "Archivo", sans-serif;
  font-size: clamp(1rem, 1.7vw, 1.35rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bible-modal-close {
  position: relative;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  border-radius: 999px;
  border: 1px solid rgba(70, 88, 116, 0.44);
  background: rgba(255, 255, 255, 0.22);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
  display: grid;
  place-items: center;
  cursor: pointer;
}

.bible-modal-close:hover {
  background: rgba(255, 255, 255, 0.3);
}

.bible-modal-close:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--ui-icon) 55%, transparent);
  outline-offset: 2px;
}

.bible-modal-close span {
  position: absolute;
  width: 14px;
  height: 1.7px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--ui-icon) 92%, transparent);
}

.bible-modal-close span:first-child {
  transform: rotate(45deg);
}

.bible-modal-close span:last-child {
  transform: rotate(-45deg);
}

.bible-modal-layout {
  position: relative;
  z-index: 1;
  height: calc(100% - 62px);
  display: grid;
  grid-template-columns: 308px minmax(0, 1fr);
  gap: 0;
  min-height: 0;
}

.bible-sidebar {
  border-right: 1px solid rgba(70, 88, 116, 0.42);
  box-shadow: inset -1px 0 0 rgba(255, 255, 255, 0.14);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.26), rgba(255, 255, 255, 0.18));
  position: relative;
  isolation: isolate;
  min-width: 0;
  min-height: 0;
  padding-bottom: 0;
  box-sizing: border-box;
  overflow: hidden;
}

.bible-sidebar::before,
.bible-sidebar::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 64px;
  pointer-events: none;
  z-index: 3;
  opacity: 0;
  transition:
    opacity 360ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 420ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
  background:
    linear-gradient(180deg, rgba(166, 176, 191, 0.34), rgba(166, 176, 191, 0.08));
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
}

.bible-sidebar::before {
  top: 0;
  transform: translateY(-7px);
  -webkit-mask-image:
    linear-gradient(
      180deg,
      rgba(0, 0, 0, 1) 0%,
      rgba(0, 0, 0, 0.96) 12%,
      rgba(0, 0, 0, 0.78) 34%,
      rgba(0, 0, 0, 0.48) 58%,
      rgba(0, 0, 0, 0.2) 80%,
      rgba(0, 0, 0, 0) 100%
    );
  mask-image:
    linear-gradient(
      180deg,
      rgba(0, 0, 0, 1) 0%,
      rgba(0, 0, 0, 0.96) 12%,
      rgba(0, 0, 0, 0.78) 34%,
      rgba(0, 0, 0, 0.48) 58%,
      rgba(0, 0, 0, 0.2) 80%,
      rgba(0, 0, 0, 0) 100%
    );
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.06);
}

.bible-sidebar::after {
  bottom: 0;
  transform: translateY(7px);
  background:
    linear-gradient(0deg, rgba(166, 176, 191, 0.36), rgba(166, 176, 191, 0.09));
  -webkit-mask-image:
    linear-gradient(
      0deg,
      rgba(0, 0, 0, 1) 0%,
      rgba(0, 0, 0, 0.96) 12%,
      rgba(0, 0, 0, 0.8) 34%,
      rgba(0, 0, 0, 0.5) 58%,
      rgba(0, 0, 0, 0.22) 80%,
      rgba(0, 0, 0, 0) 100%
    );
  mask-image:
    linear-gradient(
      0deg,
      rgba(0, 0, 0, 1) 0%,
      rgba(0, 0, 0, 0.96) 12%,
      rgba(0, 0, 0, 0.8) 34%,
      rgba(0, 0, 0, 0.5) 58%,
      rgba(0, 0, 0, 0.22) 80%,
      rgba(0, 0, 0, 0) 100%
    );
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.bible-sidebar.has-top-scroll-fade::before {
  opacity: 0.94;
  transform: translateY(0);
}

.bible-sidebar.has-bottom-scroll-fade::after {
  opacity: 0.94;
  transform: translateY(0);
}

.bible-sidebar-heading {
  margin: 0;
  font-family: "Archivo", sans-serif;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--text) 62%, transparent);
}

.bible-book-groups {
  position: relative;
  z-index: 1;
  overflow: auto;
  min-height: 0;
  height: 100%;
  box-sizing: border-box;
  scrollbar-gutter: stable;
  padding: 18px 10px 14px 12px;
}

.bible-book-group + .bible-book-group {
  margin-top: 12px;
}

.bible-book-group h3 {
  margin: 0 0 8px;
  font-family: "Archivo", sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--text) 52%, transparent);
}

.bible-book-group-heading--lamb {
  display: inline-flex;
  align-items: center;
  gap: 0.32rem;
}

.bible-book-group-icon {
  width: 0.9rem;
  height: 0.9rem;
  flex: 0 0 auto;
  opacity: 0.85;
  transform: translateY(-0.02em);
}

.bible-book-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.bible-book-btn {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: color-mix(in srgb, var(--text) 88%, transparent);
  min-height: 30px;
  border-radius: 10px;
  padding: 6px 8px;
  text-align: left;
  font: 600 0.72rem/1.1 "Manrope", sans-serif;
  cursor: pointer;
  transition:
    background-color 160ms ease,
    border-color 160ms ease,
    transform 180ms ease;
}

.bible-book-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

.bible-book-btn.is-active {
  background: color-mix(in srgb, var(--ui-icon) 16%, rgba(255, 255, 255, 0.14));
  border-color: color-mix(in srgb, var(--ui-icon) 28%, rgba(255, 255, 255, 0.24));
  color: var(--text);
}

.bible-book-btn:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--ui-icon) 55%, transparent);
  outline-offset: 1px;
}

.bible-reader-shell {
  position: relative;
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-template-rows: minmax(0, 1fr);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.12));
}

.bible-reader-toolbar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 4;
  min-height: 52px;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(44, 57, 71, 0.34);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.87));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.bible-reader-status {
  margin: 0;
  color: color-mix(in srgb, var(--text) 70%, transparent);
  font: 600 0.78rem/1.2 "Manrope", sans-serif;
  min-width: 0;
}

.bible-reader-psalm-chip {
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  border-radius: 999px;
  padding: 8px 11px;
  font: 700 0.74rem/1 "Archivo", sans-serif;
  letter-spacing: 0.02em;
  white-space: nowrap;
  cursor: pointer;
}

.bible-reader-psalm-chip:hover {
  background: rgba(255, 255, 255, 0.11);
}

.bible-reader-psalm-chip:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--ui-icon) 55%, transparent);
  outline-offset: 2px;
}

.bible-reader-frame-wrap {
  position: relative;
  min-width: 0;
  min-height: 0;
  z-index: 1;
  background: rgba(255, 255, 255, 0.12);
}

.bible-reader-loading {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  text-align: center;
  color: color-mix(in srgb, var(--text) 65%, transparent);
  font: 700 0.86rem/1.25 "Manrope", sans-serif;
  pointer-events: none;
  z-index: 1;
}

.bible-reader-loading[hidden] {
  display: none;
}

.bible-reader-scroll {
  width: 100%;
  height: 100%;
  overflow: auto;
  padding: 70px 14px 22px;
  box-sizing: border-box;
  outline: none;
}

.bible-reader-scroll:focus-visible {
  box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--ui-icon) 55%, transparent);
}

.bible-reader-content {
  max-width: 920px;
  margin: 0 auto;
}

.bible-reader-book-head {
  margin: 0 0 14px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background:
    radial-gradient(circle at 18% 14%, rgba(255, 255, 255, 0.18), transparent 44%),
    rgba(255, 255, 255, 0.035);
}

.bible-reader-book-eyebrow {
  margin: 0;
  font-family: "Archivo", sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--text) 58%, transparent);
}

.bible-reader-book-title {
  margin: 4px 0 0;
  font-family: "Archivo", sans-serif;
  font-size: clamp(1.1rem, 1.8vw, 1.45rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text);
}

.bible-reader-book-note {
  margin: 6px 0 0;
  font: 600 0.77rem/1.3 "Manrope", sans-serif;
  color: color-mix(in srgb, var(--text) 58%, transparent);
}

.bible-chapter-block {
  margin: 0;
}

.bible-chapter-block + .bible-chapter-block {
  margin-top: 14px;
}

.bible-chapter-heading {
  margin: 0 0 8px;
  padding: 0 4px;
  font-family: "Archivo", sans-serif;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--text) 56%, transparent);
}

.bible-chapter-heading.is-highlight {
  color: color-mix(in srgb, #41b3a3 84%, var(--text));
}

.bible-verse {
  margin: 0;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 7px 8px;
  border-radius: 10px;
  transition: background-color 160ms ease, box-shadow 180ms ease;
}

.bible-verse + .bible-verse {
  margin-top: 2px;
}

.bible-verse:hover {
  background: rgba(255, 255, 255, 0.05);
}

.bible-verse-number {
  display: inline-block;
  text-align: right;
  font-family: "Archivo", sans-serif;
  font-size: 0.74rem;
  font-weight: 700;
  line-height: 1.5;
  color: color-mix(in srgb, var(--text) 50%, transparent);
  user-select: none;
}

.bible-verse-text {
  margin: 0;
  font-family: Georgia, "Times New Roman", ui-serif, serif;
  font-size: clamp(0.97rem, 1.08vw, 1.08rem);
  line-height: 1.55;
  color: color-mix(in srgb, var(--text) 96%, transparent);
  word-break: normal;
}

.bible-verse.is-highlight {
  background:
    linear-gradient(90deg, rgba(65, 179, 163, 0.12), rgba(65, 179, 163, 0.03));
  box-shadow:
    inset 2px 0 0 rgba(65, 179, 163, 0.95),
    inset 0 0 0 1px rgba(65, 179, 163, 0.16);
}

.bible-verse.is-highlight .bible-verse-number {
  color: color-mix(in srgb, #41b3a3 76%, var(--text));
}

:root.theme-dark .bible-reader-book-head {
  border-color: rgba(255, 255, 255, 0.07);
  background:
    radial-gradient(circle at 18% 14%, rgba(255, 255, 255, 0.05), transparent 46%),
    rgba(255, 255, 255, 0.015);
}

:root.theme-dark .bible-verse:hover {
  background: rgba(255, 255, 255, 0.03);
}

:root.theme-dark .bible-verse.is-highlight {
  background:
    linear-gradient(90deg, rgba(65, 179, 163, 0.16), rgba(65, 179, 163, 0.045));
  box-shadow:
    inset 2px 0 0 rgba(65, 179, 163, 0.96),
    inset 0 0 0 1px rgba(65, 179, 163, 0.2);
}

:root.theme-dark .bible-modal-backdrop {
  background: rgba(4, 7, 12, 0.2);
}

:root.theme-dark .bible-modal-panel {
  border-color: rgba(255, 255, 255, 0.1);
  background:
    radial-gradient(circle at 12% 10%, rgba(255, 255, 255, 0.035), transparent 42%),
    radial-gradient(circle at 88% 92%, rgba(255, 255, 255, 0.015), transparent 52%),
    linear-gradient(180deg, rgba(25, 28, 34, 0.992), rgba(15, 17, 22, 0.988));
  box-shadow:
    0 30px 84px rgba(0, 0, 0, 0.52),
    0 14px 34px rgba(0, 0, 0, 0.34);
}

:root.theme-dark .bible-modal-header {
  border-bottom-color: rgba(255, 255, 255, 0.24);
  box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.44);
}

:root.theme-dark .bible-modal-close {
  border-color: rgba(255, 255, 255, 0.24);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.44);
}

:root.theme-dark .bible-books-toggle-mobile {
  border-color: rgba(255, 255, 255, 0.24);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.44);
}

:root.theme-dark .bible-sidebar,
:root.theme-dark .bible-reader-shell {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.03));
}

:root.theme-dark .bible-sidebar {
  border-right-color: rgba(255, 255, 255, 0.22);
  box-shadow: inset -1px 0 0 rgba(0, 0, 0, 0.38);
}

:root.theme-dark .bible-sidebar::before {
  background:
    linear-gradient(180deg, rgba(6, 10, 18, 0.44), rgba(6, 10, 18, 0.12));
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.03);
}

:root.theme-dark .bible-sidebar::after {
  background:
    linear-gradient(0deg, rgba(6, 10, 18, 0.46), rgba(6, 10, 18, 0.12));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

:root.theme-dark .bible-book-btn {
  background: rgba(255, 255, 255, 0.015);
  border-color: rgba(255, 255, 255, 0.07);
}

:root.theme-dark .bible-book-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.13);
}

:root.theme-dark .bible-book-btn.is-active {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.36);
  color: rgba(246, 246, 246, 0.98);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.22),
    0 0 0 1px rgba(255, 255, 255, 0.12);
}

:root.theme-dark .bible-reader-toolbar {
  border-bottom-color: rgba(0, 0, 0, 0.56);
  background:
    linear-gradient(180deg, rgba(20, 27, 36, 0.92), rgba(16, 22, 30, 0.84));
}

@media (max-width: 760px) {
  .bible-modal-scene {
    display: none;
  }

  .bible-modal-panel {
    position: absolute;
    inset: 10px;
    width: auto;
    height: auto;
    margin: 0;
  }

  .bible-modal-layout {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(180px, 34svh) minmax(0, 1fr);
  }

  .bible-sidebar {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.11);
    padding-bottom: 0;
  }

  .bible-book-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 761px) {
  .avatar-modal,
  .booking-consult-modal,
  .impressum-modal {
    display: grid;
    place-items: center;
    padding: 0;
  }

  .bible-modal-panel,
  .avatar-modal-panel,
  .booking-consult-modal-panel,
  .impressum-modal-panel {
    position: absolute;
    inset: auto;
    top: 50%;
    left: 50%;
    justify-self: center;
    align-self: center;
    margin: 0;
    transform-origin: center center;
  }

  .bible-modal-panel {
    width: 1320px;
    height: 860px;
  }

  .avatar-modal-panel {
    width: 430px;
    height: 390px;
  }

  .booking-consult-modal-panel {
    width: 700px;
    max-height: 680px;
  }

  .impressum-modal-panel {
    width: 860px;
    max-height: 760px;
  }

  .avatar-modal-target {
    width: 172px;
  }

  .bible-modal-title {
    font-size: 1.35rem;
  }

  .bible-reader-book-title {
    font-size: 1.45rem;
  }

  .bible-verse-text {
    font-size: 1.02rem;
  }

  .booking-consult-modal {
    padding: 16px;
  }

  .booking-consult-modal-panel {
    padding: 16px 18px 14px;
  }

  .booking-consult-heading {
    margin-top: 10px;
  }

  .booking-consult-form h2 {
    font-size: 1.72rem;
  }

  .booking-consult-subtext {
    font-size: 0.72rem;
  }

  .booking-consult-topic-set legend {
    font-size: 0.8rem;
  }

  .booking-consult-modal .booking-consult-pill-btn.freelancing-cta-btn {
    font-size: 0.74rem;
  }

  .booking-consult-modal .booking-consult-submit.freelancing-cta-btn {
    font-size: 0.74rem;
  }

  .impressum-modal {
    padding: 16px;
  }

  .impressum-modal-panel {
    padding: 18px 20px 19px;
  }

  .impressum-modal-content h2 {
    font-size: 1.48rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bible-modal-scene {
    transition: none;
  }

  .bible-modal-layout,
  .bible-sidebar {
    transition: none !important;
  }
}

@media (max-width: 760px) {
  .footer-card {
    padding: 12px 14px 16px;
    gap: 12px;
  }

  .footer-copy {
    font-size: 0.76rem;
  }

  .footer-powered {
    font-size: 0.74rem;
    flex-wrap: wrap;
    row-gap: 4px;
  }

  .footer-impressum-trigger {
    font-size: 0.74rem;
  }

  .bible-modal-shell {
    display: block;
    overflow: hidden;
  }

  .bible-modal-panel {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100dvh;
    min-height: 100dvh;
    max-height: none;
    border-radius: 0;
    border: 0;
    transform: translateY(20px) scale(0.985);
  }

  .bible-modal.is-open .bible-modal-panel {
    transform: translateY(0) scale(1);
  }

  .bible-modal-header {
    padding: 12px 14px 10px;
    min-height: 58px;
  }

  .bible-books-toggle-mobile {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .bible-modal-layout {
    height: calc(100% - 58px);
    grid-template-rows: minmax(92px, 19svh) minmax(0, 1fr);
    transition: grid-template-rows 360ms cubic-bezier(0.22, 1, 0.36, 1);
  }

  .bible-sidebar {
    transition:
      opacity 300ms cubic-bezier(0.22, 1, 0.36, 1),
      transform 340ms cubic-bezier(0.22, 1, 0.36, 1),
      border-color 260ms ease;
    transform-origin: top center;
  }

  .bible-modal.is-books-collapsed .bible-modal-layout {
    grid-template-rows: 0 minmax(0, 1fr);
  }

  .bible-modal.is-books-collapsed .bible-sidebar {
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
    border-bottom-color: transparent;
  }

  .bible-book-groups {
    padding: 14px 8px 10px 10px;
  }

  .bible-book-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 5px;
  }

  .bible-book-btn {
    min-height: 28px;
    padding: 5px 7px;
    font-size: 0.68rem;
  }

  .bible-reader-toolbar {
    padding: 9px 10px;
    min-height: 48px;
    gap: 8px;
  }

  .bible-reader-status {
    font-size: 0.73rem;
  }

  .bible-reader-psalm-chip {
    font-size: 0.7rem;
    padding: 7px 10px;
  }
}

/* Dock-glass modal design language (for non-Bible modals) */
.dock-modal-backdrop,
.avatar-modal-backdrop,
.booking-consult-modal-backdrop,
.impressum-modal-backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 40%, rgba(255, 255, 255, 0.16), transparent 58%),
    radial-gradient(circle at 12% 14%, rgba(255, 255, 255, 0.05), transparent 54%),
    rgba(8, 10, 14, 0.2);
  backdrop-filter: blur(12px) saturate(1.04);
  -webkit-backdrop-filter: blur(12px) saturate(1.04);
  opacity: 0;
  transition: opacity 360ms ease;
}

.dock-modal-panel,
.avatar-modal-panel,
.booking-consult-modal-panel,
.impressum-modal-panel {
  border: 1px solid rgba(255, 255, 255, 0.22);
  background:
    radial-gradient(circle at 20% 18%, rgba(255, 255, 255, 0.24), transparent 52%),
    radial-gradient(circle at 82% 112%, rgba(255, 255, 255, 0.06), transparent 62%),
    linear-gradient(
      180deg,
      rgba(248, 250, 255, 0.44) 0%,
      rgba(234, 239, 247, 0.3) 100%
    );
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    inset 0 -1px 0 rgba(255, 255, 255, 0.08),
    0 16px 34px rgba(16, 18, 24, 0.12);
  backdrop-filter: blur(22px) saturate(1.08);
  -webkit-backdrop-filter: blur(22px) saturate(1.08);
}

.dock-modal-panel::before,
.avatar-modal-panel::before,
.booking-consult-modal-panel::before,
.impressum-modal-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    radial-gradient(circle at 24% 20%, rgba(255, 255, 255, 0.24), transparent 52%),
    radial-gradient(circle at 74% 82%, rgba(255, 255, 255, 0.08), transparent 58%);
  opacity: 0.34;
  pointer-events: none;
}

.dock-modal-panel::after,
.avatar-modal-panel::after,
.booking-consult-modal-panel::after,
.impressum-modal-panel::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  top: 0;
  height: 1px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.34);
  opacity: 0.75;
  pointer-events: none;
}

.dock-modal-close,
.avatar-modal-close,
.booking-consult-modal-close,
.impressum-modal-close {
  border: 1px solid rgba(255, 255, 255, 0.22);
  background:
    radial-gradient(circle at 30% 22%, rgba(255, 255, 255, 0.26), transparent 56%),
    linear-gradient(
      180deg,
      rgba(248, 250, 255, 0.34),
      rgba(234, 239, 247, 0.22)
    );
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    inset 0 -1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(14px) saturate(1.08);
  -webkit-backdrop-filter: blur(14px) saturate(1.08);
}

.dock-modal-close:hover,
.avatar-modal-close:hover,
.booking-consult-modal-close:hover,
.impressum-modal-close:hover {
  background:
    radial-gradient(circle at 30% 22%, rgba(255, 255, 255, 0.34), transparent 56%),
    linear-gradient(
      180deg,
      rgba(248, 250, 255, 0.42),
      rgba(234, 239, 247, 0.28)
    );
}

.dock-modal-icon-button,
.avatar-social {
  border: 1px solid rgba(255, 255, 255, 0.24);
  background:
    radial-gradient(circle at 35% 24%, rgba(255, 255, 255, 0.34), transparent 52%),
    linear-gradient(
      180deg,
      rgba(248, 250, 255, 0.2),
      rgba(234, 239, 247, 0.1)
    );
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    inset 0 -1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(14px) saturate(1.08);
  -webkit-backdrop-filter: blur(14px) saturate(1.08);
}

.dock-modal-icon-button:hover,
.avatar-social:hover {
  border-color: rgba(255, 255, 255, 0.3);
  background:
    radial-gradient(circle at 35% 24%, rgba(255, 255, 255, 0.42), transparent 52%),
    linear-gradient(
      180deg,
      rgba(248, 250, 255, 0.28),
      rgba(234, 239, 247, 0.16)
    );
}

.dock-modal-label,
.avatar-modal-heading {
  color: color-mix(in srgb, var(--ui-icon) 96%, transparent);
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.08),
    0 -1px 0 rgba(0, 0, 0, 0.1);
}

.dock-modal-label::after,
.avatar-modal-heading::after {
  inset: -4px -7px;
  background:
    radial-gradient(circle at 28% 22%, rgba(255, 255, 255, 0.18), transparent 58%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0));
  opacity: 0.48;
  filter: blur(5px);
}

:root.theme-dark .dock-modal-backdrop,
:root.theme-dark .avatar-modal-backdrop,
:root.theme-dark .booking-consult-modal-backdrop,
:root.theme-dark .impressum-modal-backdrop {
  background:
    radial-gradient(circle at 50% 40%, rgba(255, 255, 255, 0.06), transparent 60%),
    radial-gradient(circle at 12% 14%, rgba(255, 255, 255, 0.02), transparent 54%),
    rgba(5, 7, 10, 0.42);
  backdrop-filter: blur(12px) saturate(1);
  -webkit-backdrop-filter: blur(12px) saturate(1);
}

:root.theme-dark .dock-modal-panel,
:root.theme-dark .avatar-modal-panel,
:root.theme-dark .booking-consult-modal-panel,
:root.theme-dark .impressum-modal-panel {
  border-color: rgba(255, 255, 255, 0.12);
  background:
    radial-gradient(circle at 20% 18%, rgba(255, 255, 255, 0.08), transparent 54%),
    radial-gradient(circle at 82% 112%, rgba(255, 255, 255, 0.03), transparent 62%),
    linear-gradient(
      180deg,
      rgba(40, 45, 55, 0.44) 0%,
      rgba(24, 28, 35, 0.34) 100%
    );
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    inset 0 -1px 0 rgba(255, 255, 255, 0.03),
    0 16px 34px rgba(0, 0, 0, 0.24);
}

:root.theme-dark .dock-modal-panel::before,
:root.theme-dark .avatar-modal-panel::before,
:root.theme-dark .booking-consult-modal-panel::before,
:root.theme-dark .impressum-modal-panel::before {
  background:
    radial-gradient(circle at 24% 20%, rgba(255, 255, 255, 0.09), transparent 56%),
    radial-gradient(circle at 74% 82%, rgba(255, 255, 255, 0.035), transparent 60%);
  opacity: 0.24;
}

:root.theme-dark .dock-modal-panel::after,
:root.theme-dark .avatar-modal-panel::after,
:root.theme-dark .booking-consult-modal-panel::after,
:root.theme-dark .impressum-modal-panel::after {
  background: rgba(255, 255, 255, 0.12);
  opacity: 0.5;
}

:root.theme-dark .dock-modal-close,
:root.theme-dark .avatar-modal-close,
:root.theme-dark .booking-consult-modal-close,
:root.theme-dark .impressum-modal-close {
  border-color: rgba(255, 255, 255, 0.14);
  background:
    radial-gradient(circle at 30% 22%, rgba(255, 255, 255, 0.08), transparent 56%),
    linear-gradient(
      180deg,
      rgba(40, 45, 55, 0.34),
      rgba(24, 28, 35, 0.24)
    );
}

:root.theme-dark .dock-modal-close:hover,
:root.theme-dark .avatar-modal-close:hover,
:root.theme-dark .booking-consult-modal-close:hover,
:root.theme-dark .impressum-modal-close:hover {
  background:
    radial-gradient(circle at 30% 22%, rgba(255, 255, 255, 0.12), transparent 56%),
    linear-gradient(
      180deg,
      rgba(40, 45, 55, 0.42),
      rgba(24, 28, 35, 0.3)
    );
}

:root.theme-dark .dock-modal-icon-button,
:root.theme-dark .avatar-social {
  border-color: rgba(255, 255, 255, 0.15);
  background:
    radial-gradient(circle at 35% 24%, rgba(255, 255, 255, 0.11), transparent 52%),
    linear-gradient(
      180deg,
      rgba(40, 45, 55, 0.2),
      rgba(24, 28, 35, 0.1)
    );
}

:root.theme-dark .dock-modal-icon-button:hover,
:root.theme-dark .avatar-social:hover {
  border-color: rgba(255, 255, 255, 0.22);
  background:
    radial-gradient(circle at 35% 24%, rgba(255, 255, 255, 0.15), transparent 52%),
    linear-gradient(
      180deg,
      rgba(40, 45, 55, 0.28),
      rgba(24, 28, 35, 0.14)
    );
}

/* Avatar social modal */
body.avatar-modal-active {
  overflow: hidden;
}

#heroAvatarFrame {
  transition:
    opacity 240ms ease,
    transform 320ms cubic-bezier(0.22, 1, 0.36, 1);
}

body.avatar-modal-restoring #heroAvatarFrame {
  transition: none;
}

body.avatar-modal-active #heroAvatarFrame {
  opacity: 0;
  transform: none;
}

.avatar-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
}

.avatar-modal.is-mounted {
  pointer-events: auto;
}

.avatar-modal.is-open .avatar-modal-backdrop {
  opacity: 1;
}

.avatar-modal-panel {
  position: absolute;
  inset: clamp(12px, 3vw, 28px);
  width: min(430px, calc(100% - 28px));
  height: min(390px, calc(100% - 28px));
  margin: auto;
  border-radius: 22px;
  opacity: 0;
  transform: translate(-50%, calc(-50% + 26px)) scale(calc(0.94 * var(--desktop-modal-scale, 1)));
  transition:
    opacity 380ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 520ms cubic-bezier(0.22, 1, 0.36, 1);
  overflow: hidden;
}

.avatar-modal.is-open .avatar-modal-panel {
  opacity: 1;
  transform: translate(-50%, -50%) scale(var(--desktop-modal-scale, 1));
}

.avatar-modal-heading {
  position: absolute;
  top: 14px;
  left: 22px;
  margin: 0;
  z-index: 2;
  min-height: 32px;
  display: flex;
  align-items: center;
  font-family: "Archivo", sans-serif;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ui-icon);
  opacity: 0;
  transform: translateY(-6px);
  transition:
    opacity 300ms ease,
    transform 420ms cubic-bezier(0.22, 1, 0.36, 1);
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.08),
    0 -1px 0 rgba(0, 0, 0, 0.1),
    0 0 1px rgba(0, 0, 0, 0.04);
  -webkit-text-stroke: 0.2px rgba(0, 0, 0, 0.06);
  pointer-events: none;
  user-select: none;
}

.avatar-modal.is-open .avatar-modal-heading {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 90ms;
}

.avatar-modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  cursor: pointer;
  opacity: 0;
  transform: translateY(-8px) scale(0.92) rotate(-6deg);
  transition:
    opacity 260ms ease,
    transform 420ms cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: 30ms;
  z-index: 3;
}

.avatar-modal-close span {
  position: absolute;
  width: 14px;
  height: 1.7px;
  background: color-mix(in srgb, var(--ui-icon) 92%, transparent);
  border-radius: 999px;
}

.avatar-modal-close span:first-child {
  transform: rotate(45deg);
}

.avatar-modal-close span:last-child {
  transform: rotate(-45deg);
}

.avatar-modal.is-open .avatar-modal-close {
  opacity: 1;
  transform: translateY(0) scale(1) rotate(0deg);
  transition-delay: 120ms;
}

.avatar-modal-content {
  position: relative;
  z-index: 1;
  height: 100%;
  padding: 0;
  transform: none;
}

.avatar-modal-target {
  width: clamp(132px, 22vw, 172px);
  aspect-ratio: 1;
  position: absolute;
  left: 50%;
  top: 54px;
  margin: 0;
  border-radius: 50%;
  background: transparent;
  border: 0;
  box-shadow: none;
  opacity: 0;
  transform: translateX(-50%);
  filter: none;
  transition:
    opacity 340ms ease,
    transform 460ms cubic-bezier(0.22, 1, 0.36, 1),
    filter 360ms ease;
}

.avatar-modal.is-open .avatar-modal-target {
  opacity: 0;
  transform: translateX(-50%);
  filter: none;
}

.avatar-modal-socials {
  position: absolute;
  left: 50%;
  bottom: 56px;
  transform: translateX(-50%);
  display: flex;
  gap: 18px;
  margin: 0;
  align-items: center;
  justify-content: center;
}

.avatar-social {
  width: 52px;
  height: 52px;
  border-radius: 999px;
  color: var(--ui-icon);
  display: grid;
  place-items: center;
  text-decoration: none;
  opacity: 0;
  transform: translateY(26px) scale(0.84) rotate(-6deg);
  filter: blur(8px);
  transition:
    opacity 320ms ease,
    transform 520ms cubic-bezier(0.22, 1, 0.36, 1),
    filter 360ms ease,
    background 180ms ease,
    border-color 180ms ease;
}

.avatar-social:hover {
  transform: translateY(-2px) scale(1.02);
  transition-delay: 0ms;
}

.avatar-social:active {
  transform: translateY(0) scale(0.985);
  transition-delay: 0ms;
}

.avatar-social:focus-visible,
.avatar-modal-close:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--ui-icon) 55%, transparent);
  outline-offset: 2px;
}

.avatar-social:focus-visible {
  transition-delay: 0ms;
}

.avatar-social svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  stroke-width: 1.8;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.avatar-social-threads svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
  stroke: none;
  display: block;
  transform: translateY(0.5px);
}

.avatar-social-glyph {
  display: block;
  font-family: "Archivo", sans-serif;
  font-weight: 700;
  font-size: 22px;
  line-height: 1;
  transform: translateY(-1px);
  color: currentColor;
}

.avatar-social .fill-dot {
  fill: currentColor;
  stroke: none;
}

.avatar-modal.is-opening .avatar-social:nth-child(1) {
  transition-delay: 110ms;
}

.avatar-modal.is-opening .avatar-social:nth-child(2) {
  transition-delay: 165ms;
}

.avatar-modal.is-opening .avatar-social:nth-child(3) {
  transition-delay: 220ms;
}

.avatar-modal.is-open .avatar-social {
  opacity: 1;
  transform: translateY(0) scale(1) rotate(0deg);
  filter: blur(0);
}

.avatar-modal-flyer {
  --avatar-flyer-ring-size: 6px;
  position: fixed;
  left: 0;
  top: 0;
  width: 10px;
  height: 10px;
  pointer-events: none;
  opacity: 0;
  z-index: 65;
  transform-origin: center center;
  transition:
    left 620ms cubic-bezier(0.19, 1, 0.22, 1),
    top 620ms cubic-bezier(0.19, 1, 0.22, 1),
    width 620ms cubic-bezier(0.19, 1, 0.22, 1),
    height 620ms cubic-bezier(0.19, 1, 0.22, 1),
    opacity 240ms ease;
}

.avatar-modal.is-closing .avatar-modal-flyer {
  transition:
    left 620ms cubic-bezier(0.19, 1, 0.22, 1),
    top 620ms cubic-bezier(0.19, 1, 0.22, 1),
    width 620ms cubic-bezier(0.19, 1, 0.22, 1),
    height 620ms cubic-bezier(0.19, 1, 0.22, 1),
    opacity 1ms linear;
}

.avatar-modal.is-open .avatar-modal-flyer {
  pointer-events: auto;
}

.avatar-modal-flyer.is-visible {
  opacity: 1;
}

.avatar-modal-flyer-frame {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--text);
  display: grid;
  place-items: center;
  overflow: hidden;
  box-shadow: none;
  transform: scale(0.96);
  transition:
    transform 620ms cubic-bezier(0.19, 1, 0.22, 1),
    background-color 420ms cubic-bezier(0.22, 1, 0.36, 1);
}

.avatar-modal.is-opened-from-icon .avatar-modal-flyer-frame {
  transform: scale(1);
}

.avatar-modal.is-closing .avatar-modal-flyer-frame {
  transform: scale(1);
}

:root.theme-dark .avatar-modal-heading {
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.05),
    0 -1px 0 rgba(0, 0, 0, 0.18),
    0 0 1px rgba(255, 255, 255, 0.08);
  -webkit-text-stroke: 0.2px rgba(255, 255, 255, 0.05);
}

.avatar-modal.is-open .avatar-modal-flyer-frame {
  transform: scale(1);
  box-shadow: none;
}

.avatar-modal-flyer-image {
  width: calc(100% - (var(--avatar-flyer-ring-size) * 2));
  height: calc(100% - (var(--avatar-flyer-ring-size) * 2));
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition:
    width 420ms cubic-bezier(0.22, 1, 0.36, 1),
    height 420ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 420ms cubic-bezier(0.22, 1, 0.36, 1);
}

.avatar-modal.is-avatar-settled .avatar-modal-flyer-frame {
  background: transparent;
}

.avatar-modal.is-avatar-settled .avatar-modal-flyer-image {
  width: 100%;
  height: 100%;
  transform: scale(1.015);
}

@media (max-width: 760px) {
  .avatar-modal-panel {
    inset: 16px;
    width: min(100% - 32px, 410px);
    max-width: 410px;
    height: min(340px, calc(100% - 32px));
    border-radius: 18px;
    margin: auto;
    transform: translateY(26px) scale(0.94);
  }

  .avatar-modal.is-open .avatar-modal-panel {
    transform: translateY(0) scale(1);
  }

  .avatar-modal-close {
    right: 14px;
    width: 32px;
    height: 32px;
  }

  .avatar-modal-heading {
    left: 18px;
    font-size: 12px;
    letter-spacing: 0.07em;
  }

  .avatar-social {
    width: 48px;
    height: 48px;
  }

  .avatar-modal-socials {
    position: absolute;
    left: 50%;
    bottom: 28px;
    gap: 14px;
    margin: 0;
    transform: translateX(-50%);
    width: calc(100% - 32px);
    justify-content: center;
  }

  .avatar-social svg {
    width: 20px;
    height: 20px;
  }

  .avatar-social-glyph {
    font-size: 20px;
  }

  .avatar-modal-content {
    display: block;
    height: 100%;
    padding: 56px 16px 18px;
    transform: none;
  }

  .avatar-modal-target {
    position: absolute;
    left: 50%;
    top: calc(50% - 52px);
    margin: 0;
    transform: translate(-50%, -50%);
  }

  .avatar-modal.is-open .avatar-modal-target {
    transform: translate(-50%, -50%);
  }

  .avatar-modal-flyer {
    --avatar-flyer-ring-size: 4px;
  }

  .avatar-modal-flyer-frame {
    will-change: background-color, transform;
  }

  .avatar-modal-flyer-image {
    will-change: width, height, transform;
    transition:
      width 320ms cubic-bezier(0.22, 1, 0.36, 1),
      height 320ms cubic-bezier(0.22, 1, 0.36, 1),
      transform 360ms cubic-bezier(0.22, 1, 0.36, 1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .avatar-modal,
  .avatar-modal-backdrop,
  .avatar-modal-panel,
  .avatar-modal-close,
  .avatar-modal-target,
  .avatar-social,
  #heroAvatarFrame {
    transition-duration: 1ms !important;
    transition-delay: 0ms !important;
  }
}

/* Booking consultation modal */
body.booking-consult-modal-active {
  overflow: hidden;
}

.booking-consult-modal {
  position: fixed;
  inset: 0;
  z-index: 5200;
  display: grid;
  place-items: center;
  padding: clamp(10px, 1.7vw, 20px);
  pointer-events: none;
}

.booking-consult-modal-backdrop {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 360ms ease;
}

.booking-consult-modal-panel {
  position: relative;
  width: min(700px, calc(100% - 14px));
  max-height: min(88vh, 680px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border-radius: 22px;
  padding: clamp(13px, 1.2vw, 18px) clamp(12px, 1.8vw, 20px) clamp(12px, 1.4vw, 16px);
  opacity: 0;
  transform: translate(-50%, calc(-50% + 16px)) scale(calc(0.97 * var(--desktop-modal-scale, 1)));
  transition:
    opacity 300ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 420ms cubic-bezier(0.22, 1, 0.36, 1);
}

.booking-consult-modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  cursor: pointer;
  display: grid;
  place-items: center;
  padding: 0;
  z-index: 3;
}

.booking-consult-modal-close span {
  position: absolute;
  width: 14px;
  height: 1.7px;
  background: color-mix(in srgb, var(--ui-icon) 92%, transparent);
  border-radius: 999px;
}

.booking-consult-modal-close span:first-child {
  transform: rotate(45deg);
}

.booking-consult-modal-close span:last-child {
  transform: rotate(-45deg);
}

.booking-consult-form {
  position: relative;
  z-index: 1;
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.booking-consult-heading {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1px;
  margin-top: clamp(8px, 1vw, 12px);
  padding-right: 46px;
}

.booking-consult-form h2 {
  margin: 0;
  text-align: left;
  font-family: "Archivo", sans-serif;
  font-size: clamp(1.24rem, 2.4vw, 1.86rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: color-mix(in srgb, var(--ui-icon) 96%, transparent);
  line-height: 1;
}

.booking-consult-subtext {
  margin: 0;
  text-align: left;
  font-size: clamp(0.66rem, 0.9vw, 0.76rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--ui-icon) 78%, transparent);
}

.booking-consult-topic-set {
  margin: 10px 0 12px;
  padding: 6px 4px;
  border: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  overflow: visible;
}

.booking-consult-topic-set legend {
  grid-column: 1 / -1;
  margin: 0 0 6px;
  padding: 0;
  text-align: left;
  font-family: "Manrope", sans-serif;
  font-size: clamp(0.74rem, 0.95vw, 0.84rem);
  font-weight: 700;
  letter-spacing: 0.01em;
  color: color-mix(in srgb, var(--ui-icon) 88%, transparent);
}

.booking-consult-pill {
  display: block;
  cursor: pointer;
}

.booking-consult-pill + .booking-consult-pill {
  margin-top: 0;
}

.booking-consult-pill input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.booking-consult-modal .booking-consult-pill-btn.freelancing-cta-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 46px;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background:
    radial-gradient(circle at 35% 24%, rgba(255, 255, 255, 0.34), transparent 52%),
    linear-gradient(
      180deg,
      rgba(248, 250, 255, 0.2),
      rgba(234, 239, 247, 0.1)
    );
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    inset 0 -1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(14px) saturate(1.08);
  -webkit-backdrop-filter: blur(14px) saturate(1.08);
  color: color-mix(in srgb, var(--ui-icon) 92%, transparent);
  font-size: clamp(0.68rem, 0.82vw, 0.76rem);
  font-weight: 700;
  letter-spacing: 0.015em;
  text-transform: none;
  text-shadow: none;
  text-align: center;
  line-height: 1.1;
  cursor: pointer;
}

.booking-consult-pill input[type="radio"]:checked + .booking-consult-pill-btn.freelancing-cta-btn {
  border-color: rgba(22, 28, 36, 0.74);
  background:
    radial-gradient(circle at 35% 24%, rgba(255, 255, 255, 0.42), transparent 52%),
    linear-gradient(
      180deg,
      rgba(248, 250, 255, 0.28),
      rgba(234, 239, 247, 0.16)
    );
  color: #101318;
  box-shadow:
    0 0 0 2px rgba(22, 28, 36, 0.72),
    0 0 0 4px rgba(255, 255, 255, 0.52),
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    inset 0 -1px 0 rgba(88, 97, 110, 0.3);
}

:root.theme-dark .booking-consult-pill input[type="radio"]:checked + .booking-consult-pill-btn.freelancing-cta-btn {
  border-color: rgba(255, 255, 255, 0.22);
  background:
    radial-gradient(circle at 35% 24%, rgba(255, 255, 255, 0.15), transparent 52%),
    linear-gradient(
      180deg,
      rgba(40, 45, 55, 0.28),
      rgba(24, 28, 35, 0.14)
    );
  color: color-mix(in srgb, var(--ui-icon) 96%, transparent);
  box-shadow:
    0 0 0 2px rgba(255, 255, 255, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    inset 0 -1px 0 rgba(255, 255, 255, 0.06);
}

.booking-consult-pill input[type="radio"]:focus-visible + .booking-consult-pill-btn.freelancing-cta-btn {
  outline: 2px solid color-mix(in srgb, var(--ui-icon) 52%, transparent);
  outline-offset: 2px;
}

.booking-consult-field {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.booking-consult-field span {
  font-family: "Manrope", sans-serif;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.075em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--ui-icon) 68%, transparent);
}

.booking-consult-field input,
.booking-consult-field textarea {
  width: 100%;
  border: 0;
  border-bottom: 1px solid color-mix(in srgb, var(--ui-icon) 34%, transparent);
  border-radius: 0;
  background: transparent;
  color: color-mix(in srgb, var(--ui-icon) 96%, transparent);
  font-family: "Manrope", sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.3;
  padding: 4px 2px 6px;
  outline: none;
  box-shadow: none;
  transition: border-color 200ms ease, color 200ms ease;
}

.booking-consult-field input::placeholder,
.booking-consult-field textarea::placeholder {
  color: color-mix(in srgb, var(--ui-icon) 42%, transparent);
}

.booking-consult-field input:focus,
.booking-consult-field textarea:focus {
  border-bottom-color: color-mix(in srgb, var(--ui-icon) 62%, transparent);
}

.booking-consult-field textarea {
  min-height: 60px;
  resize: vertical;
  font-size: 0.8rem;
  font-weight: 500;
  line-height: 1.35;
}

.booking-consult-field input[type="date"] {
  color: color-mix(in srgb, var(--ui-icon) 96%, transparent);
}

.booking-consult-field input[type="date"]::-webkit-calendar-picker-indicator {
  opacity: 0.72;
  cursor: pointer;
  filter: grayscale(1) contrast(1.1);
}

:root.theme-dark .booking-consult-field input[type="date"]::-webkit-calendar-picker-indicator {
  filter: invert(1) grayscale(1) contrast(1.08);
}

.booking-consult-modal .booking-consult-submit.freelancing-cta-btn {
  margin-top: 2px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  background:
    radial-gradient(circle at 35% 24%, rgba(255, 255, 255, 0.34), transparent 52%),
    linear-gradient(
      180deg,
      rgba(248, 250, 255, 0.2),
      rgba(234, 239, 247, 0.1)
    );
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    inset 0 -1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(14px) saturate(1.08);
  -webkit-backdrop-filter: blur(14px) saturate(1.08);
  color: color-mix(in srgb, var(--ui-icon) 96%, transparent);
  font-family: "Archivo", sans-serif;
  font-size: clamp(0.68rem, 0.84vw, 0.76rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-shadow: none;
  line-height: 1;
  cursor: pointer;
}

:root.theme-dark .booking-consult-modal .booking-consult-pill-btn.freelancing-cta-btn,
:root.theme-dark .booking-consult-modal .booking-consult-submit.freelancing-cta-btn {
  border-color: rgba(255, 255, 255, 0.15);
  background:
    radial-gradient(circle at 35% 24%, rgba(255, 255, 255, 0.11), transparent 52%),
    linear-gradient(
      180deg,
      rgba(40, 45, 55, 0.2),
      rgba(24, 28, 35, 0.1)
    );
}

.booking-consult-modal.is-open {
  pointer-events: auto;
}

.booking-consult-modal.is-open .booking-consult-modal-backdrop {
  opacity: 1;
}

.booking-consult-modal.is-open .booking-consult-modal-panel {
  opacity: 1;
  transform: translate(-50%, -50%) scale(var(--desktop-modal-scale, 1));
}

@media (hover: hover) and (pointer: fine) {
  .booking-consult-pill:hover .booking-consult-pill-btn.freelancing-cta-btn {
    transform: translateY(-1px);
    border-color: rgba(255, 255, 255, 0.3);
    background:
      radial-gradient(circle at 35% 24%, rgba(255, 255, 255, 0.42), transparent 52%),
      linear-gradient(
        180deg,
        rgba(248, 250, 255, 0.28),
        rgba(234, 239, 247, 0.16)
      );
  }

  .booking-consult-modal .booking-consult-submit.freelancing-cta-btn:hover {
    transform: translateY(-1px);
    border-color: rgba(255, 255, 255, 0.3);
    background:
      radial-gradient(circle at 35% 24%, rgba(255, 255, 255, 0.42), transparent 52%),
      linear-gradient(
        180deg,
        rgba(248, 250, 255, 0.28),
        rgba(234, 239, 247, 0.16)
      );
  }

  :root.theme-dark .booking-consult-pill:hover .booking-consult-pill-btn.freelancing-cta-btn,
  :root.theme-dark .booking-consult-modal .booking-consult-submit.freelancing-cta-btn:hover {
    border-color: rgba(255, 255, 255, 0.22);
    background:
      radial-gradient(circle at 35% 24%, rgba(255, 255, 255, 0.15), transparent 52%),
      linear-gradient(
        180deg,
        rgba(40, 45, 55, 0.28),
        rgba(24, 28, 35, 0.14)
      );
  }
}

@media (max-width: 760px) {
  .booking-consult-topic-set {
    grid-template-columns: 1fr;
    padding-left: 4px;
    padding-right: 4px;
    overflow: visible;
  }
}

@media (max-width: 760px) {
  .booking-consult-modal-panel {
    width: calc(100% - 10px);
    max-height: calc(100% - 10px);
    border-radius: 18px;
    padding: 14px 12px 14px;
    transform: translateY(16px) scale(0.97);
  }

  .booking-consult-modal.is-open .booking-consult-modal-panel {
    transform: translateY(0) scale(1);
  }

  .booking-consult-modal-close {
    width: 32px;
    height: 32px;
    top: 14px;
    right: 14px;
  }

  .booking-consult-modal-close span {
    width: 13px;
  }

  .booking-consult-form {
    gap: 8px;
  }

  .booking-consult-heading {
    margin-top: 4px;
    gap: 6px;
  }

  .booking-consult-form h2 {
    font-size: clamp(1.08rem, 5.2vw, 1.42rem);
    padding-right: 34px;
  }

  .booking-consult-subtext {
    font-size: 0.64rem;
  }

  .booking-consult-topic-set legend {
    font-size: 0.7rem;
  }

  .booking-consult-modal .booking-consult-pill-btn.freelancing-cta-btn {
    min-height: 44px;
    border-radius: 999px;
    font-size: 0.68rem;
    padding: 8px 10px;
  }

  .booking-consult-field input,
  .booking-consult-field textarea {
    font-size: 0.78rem;
  }

  .booking-consult-field textarea {
    min-height: 90px;
  }

  .booking-consult-modal .booking-consult-submit.freelancing-cta-btn {
    min-height: 48px;
    font-size: 0.68rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .booking-consult-modal,
  .booking-consult-modal-backdrop,
  .booking-consult-modal-panel,
  .booking-consult-modal-close,
  .booking-consult-pill-btn,
  .booking-consult-submit {
    transition-duration: 1ms !important;
    transition-delay: 0ms !important;
  }
}

/* Impressum modal */
body.impressum-modal-active {
  overflow: hidden;
}

.impressum-modal {
  position: fixed;
  inset: 0;
  z-index: 5250;
  display: grid;
  place-items: center;
  padding: clamp(10px, 1.7vw, 20px);
  pointer-events: none;
}

.impressum-modal-backdrop {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 360ms ease;
}

.impressum-modal-panel {
  position: relative;
  width: min(860px, calc(100% - 14px));
  max-height: min(88vh, 760px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border-radius: 22px;
  padding: clamp(15px, 1.5vw, 22px) clamp(14px, 2vw, 24px) clamp(16px, 1.6vw, 22px);
  opacity: 0;
  transform: translate(-50%, calc(-50% + 16px)) scale(calc(0.97 * var(--desktop-modal-scale, 1)));
  transition:
    opacity 300ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 420ms cubic-bezier(0.22, 1, 0.36, 1);
}

.impressum-modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  cursor: pointer;
  display: grid;
  place-items: center;
  padding: 0;
  z-index: 3;
}

.impressum-modal-close span {
  position: absolute;
  width: 14px;
  height: 1.7px;
  background: color-mix(in srgb, var(--ui-icon) 92%, transparent);
  border-radius: 999px;
}

.impressum-modal-close span:first-child {
  transform: rotate(45deg);
}

.impressum-modal-close span:last-child {
  transform: rotate(-45deg);
}

.impressum-modal-content {
  position: relative;
  z-index: 1;
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-right: 44px;
}

.impressum-modal-title-mobile-break {
  display: none;
}

.impressum-modal-eyebrow {
  margin: 0;
  font-family: "Archivo", sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--ui-icon) 78%, transparent);
}

.impressum-modal-content h2 {
  margin: 0;
  font-family: "Archivo", sans-serif;
  font-size: clamp(1.08rem, 2.15vw, 1.55rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.08;
  color: color-mix(in srgb, var(--ui-icon) 96%, transparent);
}

.impressum-modal-block {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0;
  padding-top: 9px;
  border-top: 1px solid color-mix(in srgb, var(--ui-icon) 14%, transparent);
}

.impressum-modal-block h3 {
  margin: 0;
  font-family: "Archivo", sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--ui-icon) 76%, transparent);
}

.impressum-modal-block p {
  margin: 0;
  font-family: "Manrope", sans-serif;
  font-size: 0.82rem;
  font-weight: 500;
  line-height: 1.42;
  letter-spacing: -0.005em;
  color: color-mix(in srgb, var(--ui-icon) 92%, transparent);
}

.impressum-modal-block a {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.impressum-modal-block a:hover {
  color: color-mix(in srgb, var(--ui-icon) 100%, transparent);
}

.impressum-modal-block a:focus-visible,
.impressum-modal-close:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--ui-icon) 55%, transparent);
  outline-offset: 2px;
}

.impressum-modal.is-open {
  pointer-events: auto;
}

.impressum-modal.is-open .impressum-modal-backdrop {
  opacity: 1;
}

.impressum-modal.is-open .impressum-modal-panel {
  opacity: 1;
  transform: translate(-50%, -50%) scale(var(--desktop-modal-scale, 1));
}

/* Keep desktop modals on fixed internal geometry and center via absolute anchor.
   This block must stay late in the file so base modal rules cannot override it. */
@media (min-width: 761px) {
  .avatar-modal,
  .booking-consult-modal,
  .impressum-modal {
    padding: 0;
  }

  .bible-modal-panel,
  .avatar-modal-panel,
  .booking-consult-modal-panel,
  .impressum-modal-panel {
    position: absolute;
    inset: auto;
    top: 50%;
    left: 50%;
    margin: 0;
    transform-origin: center center;
  }

  .bible-modal-panel {
    width: 1320px;
    height: 860px;
  }

  .avatar-modal-panel {
    width: 430px;
    height: 390px;
    max-height: none;
  }

  .booking-consult-modal-panel {
    width: 700px;
    max-height: 680px;
  }

  .impressum-modal-panel {
    width: 860px;
    max-height: 760px;
  }
}

@media (max-width: 760px) {
  .impressum-modal-panel {
    width: calc(100% - 10px);
    max-height: calc(100% - 10px);
    border-radius: 18px;
    padding: 14px 12px 14px;
    transform: translateY(16px) scale(0.97);
  }

  .impressum-modal.is-open .impressum-modal-panel {
    transform: translateY(0) scale(1);
  }

  .impressum-modal-close {
    width: 32px;
    height: 32px;
    top: 14px;
    right: 14px;
  }

  .impressum-modal-close span {
    width: 13px;
  }

  .impressum-modal-content {
    gap: 9px;
    padding-right: 34px;
  }

  .impressum-modal-content h2 {
    font-size: clamp(1.02rem, 4.8vw, 1.32rem);
  }

  .impressum-modal-title-mobile-break {
    display: inline;
  }

  .impressum-modal-block h3 {
    font-size: 0.68rem;
  }

  .impressum-modal-block p {
    font-size: 0.76rem;
    line-height: 1.45;
  }
}

@media (max-width: 760px) {
  .project-card {
    height: auto;
    min-height: 0;
  }

  .project-showcase,
  .project-card-clone .project-showcase {
    grid-template-columns: 1fr;
    grid-template-areas:
      "image"
      "terminal";
    height: auto;
    min-height: 0;
    align-content: start;
    align-items: start;
    gap: 12px;
    padding-top: 8px;
  }

  .project-heading,
  .project-card-clone .project-heading {
    grid-area: image;
    width: 100%;
    height: auto;
    min-height: 0;
    align-self: start;
  }

  .project-terminal-wrap,
  .project-card-clone .project-terminal-wrap {
    grid-area: terminal;
    width: 100%;
    height: auto;
    min-height: 0;
    align-items: flex-start;
    justify-content: center;
    position: relative;
    z-index: 2;
  }

  .project-terminal {
    width: min(100%, 420px);
    min-height: 168px;
  }

  .project-meta {
    top: 12px;
    right: 12px;
    gap: 2px;
    font-size: 0.56rem;
    line-height: 1.02;
    z-index: 4;
  }

  .project-card-clone .project-meta {
    left: 12px;
    right: auto;
  }

  .project-meta span {
    letter-spacing: 0.03em;
    margin-right: 2px;
  }

  .project-meta strong {
    letter-spacing: 0.01em;
  }

  .project-card:not(.project-card-clone) .project-meta {
    left: 12px;
    right: auto;
    text-align: left;
    justify-items: start;
  }

  .project-card:not(.project-card-clone) .project-heading-image {
    transform: translate3d(0, 24px, 0) scale(1.14);
    transform-origin: center center;
  }

  .project-card:not(.project-card-clone) .project-heading-glow {
    transform: translate3d(0, 24px, 0) scale(1.15);
    transform-origin: center center;
  }

  .project-card-clone .project-clone-image {
    transform: translate3d(var(--project-heading-center-shift, 0px), -34px, 0) scale(1);
  }
}

@media (max-width: 760px) {
  .project-card-clone .project-heading,
  .project-card-clone .project-clone-image {
    pointer-events: none;
  }

  .project-terminal {
    width: min(100%, 388px);
    min-height: 160px;
    --project-terminal-radius: 11px;
  }

  .project-terminal-bar {
    gap: 7px;
    padding: 7px 9px;
  }

  .project-terminal-lights {
    gap: 5px;
  }

  .term-light {
    width: 8px;
    height: 8px;
  }

  .project-terminal.is-mobile-lights-disabled .term-light {
    cursor: default;
    filter: saturate(0.55) brightness(0.88);
  }

  .project-terminal.is-mobile-lights-disabled .term-light::before,
  .project-terminal.is-mobile-lights-disabled .term-light::after {
    opacity: 0 !important;
  }

  .term-light::before,
  .term-light::after {
    width: 4.8px;
    height: 1.1px;
  }

  .term-light-min::before {
    width: 5.3px;
    height: 1.2px;
  }

  .project-terminal-title {
    transform: translateX(-6px);
    font-size: 0.6rem;
  }

  .project-terminal-body {
    padding: 8px 9px 10px;
    gap: 6px;
    font-size: 0.58rem;
    line-height: 1.3;
    position: relative;
    z-index: 1;
  }

  .project-terminal-body p + p {
    margin-top: 3px;
  }

  .project-terminal-status-line {
    gap: 0.28ch;
  }

  .project-terminal-controls {
    margin-top: 6px;
    position: relative;
    z-index: 5;
    pointer-events: auto;
    touch-action: manipulation;
  }

  .project-terminal-view-toggle {
    font-size: 0.57rem;
    letter-spacing: 0.01em;
    position: relative;
    z-index: 6;
    pointer-events: auto;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    padding: 6px 0;
    margin: -6px 0;
  }

  .project-terminal-ascii-overlay {
    --project-terminal-ascii-bottom-mobile: clamp(112px, 34%, 210px);
    left: 9px;
    width: calc(100% - 18px);
    bottom: var(--project-terminal-ascii-bottom-mobile);
    font-size: 0.5rem;
    line-height: 1.03;
  }

  .project-card.is-terminal-expanded .project-terminal-body,
  .project-terminal.is-expanded .project-terminal-body {
    padding: 8px 9px 10px;
    gap: 6px;
    font-size: 0.58rem;
    line-height: 1.3;
  }

  .project-card.is-terminal-expanded .project-terminal-log,
  .project-terminal.is-expanded .project-terminal-log {
    max-width: 100%;
  }

  .project-card.is-terminal-expanded .project-terminal-body p + p,
  .project-terminal.is-expanded .project-terminal-body p + p {
    margin-top: 3px;
  }

  .project-card.is-terminal-expanded .project-terminal-status-line,
  .project-terminal.is-expanded .project-terminal-status-line {
    gap: 0.28ch;
    line-height: 1.3;
  }

  .project-card.is-terminal-expanded .project-terminal-ascii-overlay,
  .project-terminal.is-expanded .project-terminal-ascii-overlay {
    left: 9px;
    width: calc(100% - 18px);
    bottom: var(--project-terminal-ascii-bottom-mobile);
    font-size: 0.5rem;
    line-height: 1.03;
  }
}

@media (max-width: 760px) {
  .freelancing-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto minmax(520px, 1fr);
    min-height: 1040px;
    height: auto;
  }

  .freelancing-media {
    position: relative;
    grid-column: 1;
    grid-row: 3;
    left: auto;
    top: auto;
    bottom: auto;
    --freelancing-media-bottom-offset: 16px;
    --freelancing-media-scale: 1;
    align-self: end;
    justify-self: stretch;
    width: calc(100% + 36px);
    margin: 4px -18px calc(-1 * var(--freelancing-media-bottom-offset));
    height: clamp(520px, 142vw, 620px);
    min-height: 520px;
    z-index: 1;
    overflow: hidden;
  }

  .freelancing-media img {
    inset: auto 0 0 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center bottom;
  }

  .freelancing-shell::after {
    display: block;
    left: 50%;
    transform: translateX(-50%);
    width: min(calc(100% - 28px), 560px);
    bottom: 0;
    z-index: 2;
  }
}

@media (max-width: 760px) {
  body.mobile-topbar-compact .topbar-actions {
    width: 0;
    min-width: 0;
    margin-left: 0;
    gap: 0;
    overflow: visible;
  }

  body.mobile-topbar-compact .topbar-actions > #themeToggle,
  body.mobile-topbar-compact .topbar-actions > #avatarModalOpen {
    display: none !important;
  }

  body.mobile-topbar-compact .topbar-compact-menu {
    position: absolute;
    top: 18px;
    right: 14px;
    z-index: 220;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    pointer-events: none;
  }

  body.mobile-topbar-compact .topbar-compact-toggle {
    display: grid;
    pointer-events: auto;
  }

  body.mobile-topbar-compact .topbar-compact-list {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
    margin-top: 10px;
  }

  body.mobile-topbar-compact .topbar-compact-action {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translate3d(0, -8px, 0) scale(0.92);
    transition:
      transform 260ms cubic-bezier(0.2, 0.9, 0.24, 1),
      opacity 190ms cubic-bezier(0.2, 0.9, 0.24, 1),
      visibility 0s linear 260ms;
  }

  body.mobile-topbar-compact.mobile-topbar-menu-open .topbar-compact-menu {
    pointer-events: auto;
  }

  body.mobile-topbar-compact.mobile-topbar-menu-open .topbar-compact-action {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translate3d(0, 0, 0) scale(1);
    transition-delay: 28ms, 28ms, 0s;
  }

  body.mobile-topbar-compact.mobile-topbar-menu-open .topbar-compact-action-socials {
    transition-delay: 84ms, 84ms, 0s;
  }

  body.mobile-topbar-compact .topbar-compact-menu .theme-toggle-button,
  body.mobile-topbar-compact .topbar-compact-menu .icon-button {
    width: 34px;
    height: 34px;
    min-width: 34px;
    min-height: 34px;
    max-width: 34px;
    max-height: 34px;
    border-radius: 999px;
    flex: 0 0 34px;
    margin: 0;
  }

  body.mobile-topbar-compact .topbar-compact-menu .theme-toggle-button {
    position: relative;
  }

  body.mobile-topbar-compact.mobile-topbar-menu-open .topbar-compact-toggle {
    line-height: 0;
  }

  body.mobile-topbar-compact.mobile-topbar-menu-open .topbar-left {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }

  body.mobile-topbar-compact.mobile-topbar-menu-open .topbar-menu-line-1 {
    transform: translate(-50%, 0) rotate(45deg);
  }

  body.mobile-topbar-compact.mobile-topbar-menu-open .topbar-menu-line-2 {
    opacity: 0;
    transform: translate(-50%, 0) scaleX(0.3);
  }

  body.mobile-topbar-compact.mobile-topbar-menu-open .topbar-menu-line-3 {
    transform: translate(-50%, 0) rotate(-45deg);
  }

  body.mobile-topbar-compact .project-terminal-ascii,
  body.mobile-topbar-compact .project-terminal-ascii-overlay {
    display: none !important;
    max-height: 0 !important;
    opacity: 0 !important;
  }

  body.mobile-topbar-compact.mobile-topbar-menu-open .page-shell::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 100;
    pointer-events: none;
    background: rgba(206, 212, 222, 0.2);
    backdrop-filter: blur(8px) saturate(0.92);
    -webkit-backdrop-filter: blur(8px) saturate(0.92);
  }
}

:root.theme-dark body.mobile-topbar-compact.mobile-topbar-menu-open .page-shell::before {
  background: rgba(8, 12, 18, 0.26);
}

@media (prefers-reduced-motion: reduce) {
  .impressum-modal,
  .impressum-modal-backdrop,
  .impressum-modal-panel,
  .impressum-modal-close {
    transition-duration: 1ms !important;
    transition-delay: 0ms !important;
  }
}

:root.is-theme-transitioning *,
:root.is-theme-transitioning *::before,
:root.is-theme-transitioning *::after {
  transition-property:
    color,
    background,
    background-color,
    background-image,
    border-color,
    outline-color,
    box-shadow,
    text-shadow,
    fill,
    stroke,
    opacity,
    filter !important;
  transition-duration: var(--theme-switch-duration) !important;
  transition-delay: 0ms !important;
  transition-timing-function: var(--theme-switch-ease) !important;
}

:root.is-theme-transitioning .page-load-line,
:root.is-theme-transitioning .page-load-line::before,
:root.is-theme-transitioning .page-load-line > span,
:root.is-theme-transitioning .page-load-line > span::before,
:root.is-theme-transitioning .page-load-line > span::after {
  transition: none !important;
  animation: none !important;
}

@media (prefers-reduced-motion: reduce) {
  :root.is-theme-transitioning *,
  :root.is-theme-transitioning *::before,
  :root.is-theme-transitioning *::after {
    transition: none !important;
  }
}
