:root {
  color-scheme: light;
  --bg-primary: #f5f5f7;
  --bg-panel: #ffffff;
  --bg-panel-solid: #ffffff;
  --bg-accent: #0a84ff;
  --accent: #0a84ff;
  --border-soft: rgba(60, 60, 67, 0.16);
  --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.08);
  --text-main: #1d1d1f;
  --text-muted: #6e6e73;
  --text-subtle: #8a8a8f;
  --content-max: 1120px;
  --content-pad: clamp(16px, 4vw, 32px);
  --radius-md: 16px;
  --radius-lg: 20px;
  --motion-quick: cubic-bezier(0.16, 0.8, 0.2, 1);
  --font-sans: "Manrope", "Helvetica Neue", "Segoe UI", system-ui,
    -apple-system, sans-serif;
  --font-display: "Sora", "Manrope", "Helvetica Neue", "Segoe UI", system-ui,
    -apple-system, sans-serif;
}

html[data-text-spacing="relaxed"] body,
html[data-text-spacing="relaxed"] p,
html[data-text-spacing="relaxed"] li {
  letter-spacing: 0.01em;
  line-height: 1.75;
}

html[data-text-spacing="wide"] body,
html[data-text-spacing="wide"] p,
html[data-text-spacing="wide"] li {
  letter-spacing: 0.03em;
  line-height: 1.88;
}

html[data-underline-links="true"] a {
  text-decoration: underline;
  text-decoration-color: currentColor;
  text-decoration-thickness: 0.12em;
  text-underline-offset: 0.28em;
}

html[data-reduce-motion="true"] *,
html[data-reduce-motion="true"] *::before,
html[data-reduce-motion="true"] *::after {
  animation-duration: 0.01ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: 0.01ms !important;
  scroll-behavior: auto !important;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

html[data-i18n-ready="false"] body {
  visibility: hidden;
}

[hidden] {
  display: none !important;
}

body {
  background: var(--bg-primary);
  color: var(--text-main);
  font-family: var(--font-sans);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: transparent;
  pointer-events: none;
  z-index: -1;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
}

a:hover {
  color: var(--accent);
}

mark {
  background: rgba(10, 132, 255, 0.18);
  color: inherit;
  padding: 0.05em 0.12em;
  border-radius: 4px;
}

.consent-banner {
  position: fixed;
  inset: auto 1rem 1rem 1rem;
  z-index: 2000;
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(60, 60, 67, 0.16);
  border-radius: var(--radius-lg);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.15);
  padding: 1rem 1.1rem 1.15rem;
  display: grid;
  gap: 0.6rem;
}

.consent-banner__title {
  font-weight: 700;
  font-size: 1rem;
}

.consent-banner__text {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.consent-banner__actions {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.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;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

img {
  max-width: 100%;
  display: block;
}

main {
  padding: clamp(3rem, 6vw, 5.5rem) var(--content-pad) 2rem;
}

.container {
  width: min(100%, var(--content-max));
  margin: 0 auto;
}

.container > * + * {
  margin-top: clamp(2rem, 5vw, 3.25rem);
}

.container > section {
  padding: clamp(2rem, 5vw, 3.5rem) 0;
}

.container > section + section {
  border-top: 1px solid var(--border-soft);
  margin-top: 0;
}

.container > section:first-child {
  padding-top: 0;
}

.container > section:last-child {
  padding-bottom: 0;
}

.container > *:last-child {
  margin-bottom: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  backdrop-filter: blur(18px);
  background: rgba(245, 245, 247, 0.92);
  border-bottom: 1px solid rgba(60, 60, 67, 0.16);
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1rem var(--content-pad);
}

.brand {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.4vw, 1.7rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  text-transform: lowercase;
  color: var(--text-main);
  display: inline-flex;
  align-items: baseline;
  gap: 0.35rem;
}

.brand span {
  font-size: clamp(0.65rem, 1.6vw, 0.8rem);
  letter-spacing: 0.36em;
  text-transform: uppercase;
  color: var(--text-subtle);
  line-height: 1;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  font-size: 0.95rem;
}

@media (min-width: 881px) {
  .nav-links {
    margin-left: auto;
    margin-right: auto;
  }
}

.nav-links a {
  position: relative;
  padding: 0.35rem 0.2rem;
  color: var(--text-main);
  opacity: 0.78;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border-radius: 12px;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.nav-links a:hover {
  opacity: 1;
  color: var(--text-main);
}

.nav-links a[aria-current="page"] {
  opacity: 1;
  color: var(--text-main);
}

.nav-brand-group {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
}

.nav-lang {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  padding: 0.2rem;
  border-radius: 999px;
  border: 1px solid rgba(60, 60, 67, 0.2);
  background: rgba(255, 255, 255, 0.8);
}

.nav-lang__btn {
  border: none;
  background: transparent;
  color: var(--text-subtle);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.35rem 0.55rem;
  border-radius: 999px;
  font-weight: 600;
  transition: background 0.2s ease, color 0.2s ease;
}

.nav-lang__btn.is-active {
  background: var(--text-main);
  color: #ffffff;
}

.nav-lang.nav-lang--footer {
  align-self: center;
  margin-top: 0;
}

@media (max-width: 880px) {
  .nav-lang {
    padding: 0.15rem;
  }
  .nav-lang__btn {
    font-size: 0.68rem;
    padding: 0.3rem 0.5rem;
  }
}

.quick-accessibility {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  background: rgba(12, 18, 34, 0.58);
  border: 1px solid rgba(148, 163, 184, 0.32);
  box-shadow: 0 10px 26px rgba(4, 9, 23, 0.4);
  backdrop-filter: blur(12px);
}

.quick-control {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.25rem;
  min-height: 2.25rem;
  padding: 0.25rem;
  border-radius: 999px;
  border: 1px solid transparent;
  background: transparent;
  color: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease,
    box-shadow 0.2s ease, transform 0.2s ease;
}

.quick-control:focus-visible {
  outline: 2px solid rgba(59, 130, 246, 0.6);
  outline-offset: 2px;
}

.quick-control--theme {
  border-color: rgba(148, 163, 184, 0.35);
  background: rgba(15, 23, 42, 0.5);
  color: rgba(226, 232, 240, 0.9);
}

.quick-control--theme:hover,
.quick-control--theme:focus-visible {
  border-color: rgba(59, 130, 246, 0.65);
  color: #93c5fd;
}

.quick-control__icon {
  font-size: 1rem;
  line-height: 1;
}

.quick-accessibility__languages {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding-left: 0.35rem;
  border-left: 1px solid rgba(148, 163, 184, 0.35);
}

.lang-chip {
  border: 1px solid transparent;
  background: transparent;
  color: rgba(226, 232, 240, 0.75);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 0.2rem 0.6rem;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.lang-chip:hover,
.lang-chip:focus-visible {
  border-color: rgba(59, 130, 246, 0.55);
  color: #bae6fd;
}

.lang-chip.is-active {
  background: linear-gradient(
    135deg,
    rgba(59, 130, 246, 0.85),
    rgba(14, 165, 233, 0.85)
  );
  color: #0f172a;
  border-color: transparent;
  box-shadow: 0 12px 20px rgba(6, 12, 30, 0.35);
}

@media (max-width: 640px) {
  .quick-accessibility {
    display: none;
  }
}

.style-launcher {
  position: fixed;
  bottom: 2rem;
  left: 2rem;
  z-index: 120;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1.1rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.28);
  color: rgba(226, 232, 240, 0.92);
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  box-shadow: 0 14px 32px rgba(2, 6, 23, 0.45);
  transition: transform 0.25s ease, box-shadow 0.25s ease, opacity 0.3s ease,
    gap 0.3s ease;
  opacity: 0;
  pointer-events: none;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.style-launcher:hover,
.style-launcher:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 18px 44px rgba(2, 6, 23, 0.55);
}

.style-launcher:focus-visible {
  outline: 2px solid rgba(96, 165, 250, 0.7);
  outline-offset: 3px;
}

body[data-page="home"].content-visible .style-launcher,
body:not([data-page="home"]) .style-launcher {
  opacity: 1;
  pointer-events: auto;
}

html[data-theme="light"] .style-launcher {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(148, 163, 184, 0.35);
  color: #0f172a;
  box-shadow: 0 14px 32px rgba(148, 163, 184, 0.32);
}

.style-launcher__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  color: currentColor;
}

.style-launcher__label {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  text-align: left;
  font-size: 0.92rem;
  white-space: nowrap;
  overflow: hidden;
  max-width: 16ch;
  min-width: 0;
  transform-origin: left center;
  transition: max-width 0.6s ease, opacity 0.6s ease;
}

.style-launcher--label-hidden:not(:hover):not(:focus-visible)
  .style-launcher__label {
  max-width: 0;
  opacity: 0;
}

.style-launcher--compact {
  gap: 0;
  width: 3.25rem;
  height: 3.25rem;
  padding: 0;
  justify-content: center;
}

.style-launcher--compact:hover,
.style-launcher--compact:focus-visible {
  width: auto;
  height: auto;
  padding: 0.85rem 1.1rem;
  gap: 0.6rem;
}

.style-launcher--compact:hover .style-launcher__label,
.style-launcher--compact:focus-visible .style-launcher__label {
  max-width: 16ch;
  opacity: 1;
}

.style-panel__backdrop {
  position: fixed;
  inset: 0;
  background: rgba(5, 9, 21, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 110;
}

.style-panel__backdrop.is-active {
  opacity: 1;
  pointer-events: auto;
}

.style-panel {
  position: fixed;
  bottom: 6.5rem;
  left: 2rem;
  width: min(360px, calc(100% - 3.5rem));
  max-height: min(70vh, 640px);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 1.5rem;
  background: rgba(13, 20, 34, 0.96);
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 24px;
  box-shadow: 0 26px 64px rgba(2, 6, 23, 0.6);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  overflow-y: auto;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 130;
  pointer-events: none;
}

.style-panel.is-open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

html[data-theme="light"] .style-panel {
  background: rgba(255, 255, 255, 0.96);
  border-color: rgba(148, 163, 184, 0.32);
  box-shadow: 0 26px 48px rgba(148, 163, 184, 0.38);
}

.style-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.style-lang {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.3);
  background: rgba(15, 23, 42, 0.4);
}

.style-lang__btn {
  border: 1px solid transparent;
  background: transparent;
  color: inherit;
  font-weight: 600;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease,
    box-shadow 0.2s ease;
}

.style-lang__btn.is-active {
  background: rgba(59, 130, 246, 0.25);
  border-color: rgba(59, 130, 246, 0.65);
  color: #e2e8f0;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.3);
}

.style-lang__btn:hover {
  background: rgba(148, 163, 184, 0.14);
}

.style-panel__title {
  font-size: 1.1rem;
  margin: 0;
}

.style-panel__close {
  background: none;
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 999px;
  width: 34px;
  height: 34px;
  color: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.style-panel__close:hover,
.style-panel__close:focus-visible {
  background: rgba(148, 163, 184, 0.18);
  transform: scale(1.05);
}

.style-panel__body {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.style-panel__section {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.style-panel__section-title {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin: 0;
}

.style-option-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.style-option {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 18px;
  color: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.style-option:hover,
.style-option:focus-visible {
  border-color: rgba(96, 165, 250, 0.55);
  transform: translateY(-1px);
}

.style-option[aria-pressed="true"] {
  border-color: rgba(96, 165, 250, 0.8);
  background: rgba(59, 130, 246, 0.22);
  box-shadow: 0 12px 26px rgba(37, 99, 235, 0.28);
}

html[data-theme="light"] .style-option {
  background: rgba(255, 255, 255, 0.82);
  border-color: rgba(148, 163, 184, 0.28);
}

html[data-theme="light"] .style-option[aria-pressed="true"] {
  background: rgba(219, 234, 254, 0.6);
}

.style-option__swatch {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 14px;
  background: var(--option-accent, var(--bg-accent));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.style-option__meta {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.style-option__label {
  font-size: 0.95rem;
}

.style-option__hint {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.style-option--font {
  font-size: 1rem;
}

.style-pill-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.style-pill {
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: transparent;
  color: inherit;
  font-weight: 600;
  font-size: 0.85rem;
  padding: 0.45rem 0.9rem;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.style-pill:hover,
.style-pill:focus-visible {
  border-color: rgba(96, 165, 250, 0.55);
}

.style-pill[aria-pressed="true"] {
  background: var(--bg-accent);
  color: #0b1120;
  border-color: transparent;
}

html[data-theme="light"] .style-pill[aria-pressed="true"] {
  color: #0f172a;
}

.style-toggle {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: inherit;
}

.style-toggle input {
  width: 1.1rem;
  height: 1.1rem;
  border-radius: 0.3rem;
  border: 1px solid rgba(148, 163, 184, 0.4);
  accent-color: #60a5fa;
}

.style-panel__footer {
  display: flex;
  justify-content: flex-end;
}

.style-reset {
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 999px;
  padding: 0.45rem 0.95rem;
  background: transparent;
  color: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.style-reset:hover,
.style-reset:focus-visible {
  border-color: rgba(96, 165, 250, 0.6);
  background: rgba(59, 130, 246, 0.22);
}

@media (max-width: 768px) {
  .style-launcher {
    bottom: 1rem;
    left: 1rem;
    padding: 0.75rem 0.9rem;
    gap: 0.5rem;
  }

  .style-launcher__icon {
    font-size: 0.95rem;
  }

  .style-launcher--compact {
    gap: 0;
    width: 3.1rem;
    height: 3.1rem;
    padding: 0;
    justify-content: center;
  }

  .style-launcher--compact:hover,
  .style-launcher--compact:focus-visible {
    width: auto;
    height: auto;
    padding: 0.75rem 0.9rem;
    gap: 0.5rem;
  }

  .style-launcher__label {
    font-size: 0.85rem;
  }

  .style-panel {
    left: 1rem;
    right: 1rem;
    bottom: 5.5rem;
    width: auto;
    max-height: min(70vh, 520px);
  }
}

.nav-links a::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: -0.15rem;
  height: 2px;
  border-radius: 999px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.18s var(--motion-quick);
}

.nav-links a:is(:hover, :focus-visible)::after,
.nav-links a[aria-current="page"]::after {
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid rgba(60, 60, 67, 0.2);
  color: var(--text-main);
  padding: 0.55rem 0.65rem;
  border-radius: 0.75rem;
  font-size: 1.05rem;
}

@media (max-width: 880px) {
  .nav-toggle {
    display: inline-flex;
  }
  .nav-links {
    position: absolute;
    inset-inline: clamp(1.25rem, 4vw, 2.5rem);
    top: calc(100% + 0.75rem);
    flex-direction: column;
    align-items: stretch;
    gap: 0.6rem;
    padding: 1.1rem;
    border-radius: 1.1rem;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(60, 60, 67, 0.16);
    box-shadow: var(--shadow-soft);
    transform: scaleY(0.8);
    transform-origin: top;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    max-height: min(70vh, 540px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .nav-links a {
    font-size: 1.02rem;
    font-weight: 600;
    opacity: 1;
  }
  .nav-links[data-open="true"] {
    opacity: 1;
    transform: scaleY(1);
    pointer-events: all;
  }
}
.page-intro {
  display: grid;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: center;
  margin-bottom: 0;
}

.page-intro__content {
  display: grid;
  gap: 1.4rem;
  max-width: 720px;
}

@media (min-width: 900px) {
  .page-intro {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  }

  .page-intro__content {
    order: 1;
  }

  .page-intro .avatar {
    order: 2;
    justify-self: end;
  }
}

.page-intro__eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--text-subtle);
}

.page-intro__title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 3.6rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0;
  display: block;
  color: var(--text-main);
}

.page-intro__title-before,
.page-intro__title-after {
  display: inline-block;
}

.page-intro__title-before {
  margin-right: 0;
}

.page-intro__title-after {
  margin-left: 0;
}

.page-intro__subtitle {
  font-size: clamp(1rem, 2.4vw, 1.2rem);
  color: var(--text-muted);
  margin: 0;
}

.avatar {
  width: clamp(140px, 24vw, 200px);
  aspect-ratio: 1;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.glass-panel {
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
  position: relative;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text-main);
  margin: 0 0 1.5rem;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-align: left;
}

.section-title::after {
  content: none;
}

.text-muted {
  color: var(--text-muted);
}

.grid-cards {
  display: grid;
  gap: 1.4rem;
}

.contact-grid {
  grid-template-columns: 1fr;
}

.grid-cards .half-width {
  grid-column: span 1;
}

@media (min-width: 680px) {
  .grid-cards {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  }

  .contact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-grid .half-width {
    grid-column: span 1;
  }
}

.card {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-soft);
  background: var(--bg-panel-solid);
  padding: clamp(1.2rem, 2.6vw, 1.6rem);
  display: grid;
  gap: 0.75rem;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
  transition: transform 140ms var(--motion-quick),
    box-shadow 140ms var(--motion-quick),
    border-color 140ms var(--motion-quick),
    background 140ms var(--motion-quick);
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(17, 24, 39, 0.12);
  border-color: rgba(10, 132, 255, 0.25);
  background: #ffffff;
}

.card h3 {
  margin: 0;
  font-size: 1.15rem;
}

.card p {
  margin: 0;
  font-size: 0.98rem;
  color: var(--text-muted);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  border-radius: 10px;
  padding: 0.28rem 0.7rem;
  background: rgba(10, 132, 255, 0.08);
  color: #0a5bd8;
  border: 1px solid rgba(10, 132, 255, 0.2);
}

.icon {
  width: 1.1em;
  height: 1.1em;
  display: inline-block;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

.icon--solid {
  fill: currentColor;
  stroke: none;
}

.icon--sm {
  width: 0.95em;
  height: 0.95em;
}

.icon--lg {
  width: 1.4em;
  height: 1.4em;
}

.icon-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.social-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 0.85rem;
  padding: 0.4rem 1rem;
}

.social-badge .icon {
  width: 1.2rem;
  height: 1.2rem;
  fill: currentColor;
  opacity: 0.9;
  flex-shrink: 0;
  margin-right: 0.2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  border-radius: 999px;
  padding: 0.65rem 1.35rem;
  border: 1px solid transparent;
  transition: transform 140ms var(--motion-quick),
    box-shadow 140ms var(--motion-quick),
    background 140ms var(--motion-quick),
    color 140ms var(--motion-quick);
}

.btn-primary {
  background: var(--accent);
  color: #ffffff;
  border: 1px solid rgba(10, 132, 255, 0.4);
  box-shadow: 0 14px 26px rgba(10, 132, 255, 0.25);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 18px 32px rgba(10, 132, 255, 0.32);
  color: #ffffff;
}

.btn:active {
  transform: translateY(0);
  box-shadow: none;
}

.btn:disabled,
.btn[disabled] {
  background: #d1d5db;
  border-color: #cbd5e1;
  color: #6b7280;
  box-shadow: none;
  cursor: not-allowed;
  transform: none;
}

.btn:disabled:hover,
.btn[disabled]:hover {
  background: #cbd5e1;
  color: #6b7280;
}

.btn-ghost {
  border-color: rgba(60, 60, 67, 0.18);
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.92),
    rgba(255, 255, 255, 0.72)
  );
  color: var(--text-main);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(12px);
}

.btn-ghost:hover {
  border-color: rgba(10, 132, 255, 0.4);
  background: linear-gradient(
    180deg,
    rgba(10, 132, 255, 0.12),
    rgba(10, 132, 255, 0.06)
  );
  color: var(--text-main);
}

.btn-ghost:active {
  background: rgba(10, 132, 255, 0.08);
  border-color: rgba(10, 132, 255, 0.35);
}

.quote-block {
  font-size: 1.05rem;
  font-style: italic;
  color: var(--text-muted);
  border-left: 3px solid var(--border-soft);
  padding-left: 1.25rem;
  margin: 1rem 0 0;
}

.photo-grid {
  columns: 1;
  column-gap: 1.25rem;
}

@media (min-width: 620px) {
  .photo-grid {
    columns: 2;
  }
}

@media (min-width: 900px) {
  .photo-grid {
    columns: 3;
  }
}

.photo-item {
  position: relative;
  margin-bottom: 1.25rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-soft);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  cursor: zoom-in;
  background: #ffffff;
}

.photo-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 36px rgba(17, 24, 39, 0.12);
}

.photo-item img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  display: block;
}

.badge-filter {
  border-radius: 10px;
  padding: 0.35rem 0.95rem;
  border: 1px solid rgba(60, 60, 67, 0.18);
  color: var(--text-muted);
  background: transparent;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
}

.badge-filter:first-child {
  margin-right: 0.2rem;
}

.badge-filter.is-active {
  border-color: rgba(10, 132, 255, 0.4);
  color: #0a5bd8;
  background: rgba(10, 132, 255, 0.12);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-subtle);
  padding: 0.32rem 0.7rem;
  border-radius: 10px;
  border: 1px solid var(--border-soft);
  background: #ffffff;
}

.status-pill--compact {
  font-size: 0.62rem;
  letter-spacing: 0.24em;
  padding: 0.22rem 0.55rem;
}

.status-pill--completed,
.status-pill--done {
  color: #15803d;
  border-color: rgba(34, 197, 94, 0.35);
  background: rgba(34, 197, 94, 0.1);
}

.status-pill--inprogress,
.status-pill--progress {
  color: #1d4ed8;
  border-color: rgba(59, 130, 246, 0.35);
  background: rgba(59, 130, 246, 0.12);
}

.status-pill--planned {
  color: #64748b;
  border-color: rgba(148, 163, 184, 0.4);
  background: rgba(148, 163, 184, 0.16);
}

.timeline {
  position: relative;
  padding-left: 0;
}

.timeline-item {
  position: relative;
  margin-bottom: 1.8rem;
  padding-left: 0;
}

.timeline-marker {
  display: none;
}

.timeline-card {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-soft);
  background: var(--bg-panel-solid);
  padding: 1.05rem 1.15rem 1.15rem;
  box-shadow: 0 10px 24px rgba(17, 24, 39, 0.08);
  transition: transform 140ms var(--motion-quick),
    box-shadow 140ms var(--motion-quick),
    border-color 140ms var(--motion-quick),
    background 140ms var(--motion-quick);
}

.timeline-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 30px rgba(17, 24, 39, 0.12);
  border-color: rgba(10, 132, 255, 0.2);
}

.timeline-card h3 {
  margin: 0 0 0.45rem;
  font-size: 1.1rem;
}

.timeline-card .badge {
  margin-bottom: 0.35rem;
}

.timeline-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--text-subtle);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.timeline--editorial .timeline-item {
  margin-bottom: 0;
}

.timeline--editorial .timeline-card {
  border: none;
  border-bottom: 1px solid var(--border-soft);
  background: transparent;
  box-shadow: none;
  border-radius: 0;
  padding: 1.6rem 0;
}

.timeline--editorial .timeline-item:last-child .timeline-card {
  border-bottom: 0;
}

.timeline--editorial .timeline-card:hover {
  transform: none;
  box-shadow: none;
  border-color: var(--border-soft);
}

.timeline--editorial .timeline-card h3 {
  font-size: clamp(1.2rem, 2.4vw, 1.5rem);
  line-height: 1.3;
}

.timeline--editorial .timeline-meta {
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  color: var(--text-muted);
}

.timeline--editorial .post-content {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-muted);
  max-width: 72ch;
}

@media (max-width: 720px) {
  .timeline {
    padding-left: 0;
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 1rem;
  }
  .timeline::before {
    display: none;
  }
  .timeline-item {
    padding-left: 0;
    margin: 0;
    flex: 0 0 78vw;
    scroll-snap-align: start;
  }
  .timeline-marker {
    display: none;
  }
  .timeline-card {
    padding: 1.05rem 1.15rem 1.2rem;
    border-radius: 16px;
    height: 100%;
  }
  .timeline-card .badge {
    margin-bottom: 0.4rem;
  }
  .timeline-card h3 {
    font-size: 1.08rem;
    line-height: 1.35;
  }
  .timeline-meta {
    font-size: 0.78rem;
    letter-spacing: 0.1em;
  }
  .post-content {
    font-size: 0.98rem;
    line-height: 1.7;
  }

  .timeline--editorial {
    display: grid;
    overflow: visible;
    padding-bottom: 0;
  }

  .timeline--editorial .timeline-item {
    flex: none;
  }
}

.changelog-grid {
  display: grid;
  gap: 1.5rem;
  margin-top: 1rem;
}

.changelog-controls {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.changelog-groups {
  display: grid;
  gap: 1.75rem;
}

.changelog-group h3 {
  margin: 0 0 0.65rem;
  font-size: 1.05rem;
}

.changelog-group {
  padding: 1.4rem;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  background: #ffffff;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.06);
}

.changelog-toggle {
  width: 100%;
  background: transparent;
  border: none;
  color: inherit;
  font: inherit;
  font-weight: 800;
  font-size: 1.12rem;
  padding: 0.5rem 0.1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  cursor: pointer;
}

.changelog-toggle .chevron {
  transition: transform 0.2s ease;
  font-size: 3em;
}

.changelog-toggle[aria-expanded="true"] .chevron {
  transform: rotate(90deg);
}

.changelog-content {
  margin-top: 0.75rem;
}

.changelog-group + .changelog-group {
  margin-top: 1.25rem;
}

.changelog-card {
  border-radius: 0;
  border: none;
  background: transparent;
  padding: 1.2rem 2.5rem 1.2rem 0;
  box-shadow: none;
  position: relative;
  transition: transform 140ms var(--motion-quick),
    box-shadow 140ms var(--motion-quick),
    border-color 140ms var(--motion-quick),
    background 140ms var(--motion-quick);
}

.changelog-card + .changelog-card {
  border-top: 1px solid rgba(60, 60, 67, 0.12);
  margin-top: 0.65rem;
  padding-top: 1.2rem;
}

.changelog-card::before {
  content: none;
}

.changelog-icon {
  position: absolute;
  top: 0.35rem;
  right: 0;
  color: var(--text-subtle);
  opacity: 0.8;
}

.changelog-icon .icon {
  width: 1.4rem;
  height: 1.4rem;
}

/* Footer Spacing Optimized - v2 */
.site-footer {
  margin-top: 1.5rem;
  padding: 3rem var(--content-pad) 3.5rem;
  border-top: 1px solid rgba(60, 60, 67, 0.16);
  background: #ffffff;
}

.site-footer .footer-inner {
  width: min(var(--content-max), 100%);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.9rem 1.6rem;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.88rem;
  color: var(--text-main);
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-links .icon {
  width: 1.35rem;
  height: 1.35rem;
  fill: currentColor;
  stroke: none;
}

.footer-link__label {
  display: inline;
}

.footer-links .nav-lang {
  margin-left: 0.25rem;
}

@media (max-width: 720px) {
  .footer-links {
    gap: 0.9rem 1.3rem;
  }
  .footer-link__label {
    display: none;
  }
  .footer-links a {
    padding: 0.35rem;
  }
  .footer-links .icon {
    width: 1.55rem;
    height: 1.55rem;
  }
}

/* Scroll to Top Button */
.scroll-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 100;
  width: 56px;
  height: 56px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(60, 60, 67, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.12);
  opacity: 0;
  pointer-events: none;
  transform: translateY(100px);
  color: var(--text-main);
}

.scroll-to-top.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.scroll-to-top:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.18);
}

.scroll-to-top::before {
  content: "";
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-bottom: 12px solid currentColor;
  color: var(--text-main);
}

/* Hide scroll-to-top on home page */
body[data-page="home"] .scroll-to-top {
  display: none;
}

@media (max-width: 768px) {
  .scroll-to-top {
    bottom: 1rem;
    right: 1rem;
    width: 48px;
    height: 48px;
  }

  .scroll-to-top::before {
    border-left: 7px solid transparent;
    border-right: 7px solid transparent;
    border-bottom: 10px solid currentColor;
  }
}

.muted {
  color: var(--text-muted);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.tag {
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--border-soft);
  background: #ffffff;
  color: var(--text-muted);
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.4);
  display: grid;
  place-items: center;
  z-index: 90;
  padding: 2rem;
}

.modal {
  max-width: min(900px, 95vw);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-soft);
  background: #ffffff;
  box-shadow: 0 32px 60px rgba(15, 23, 42, 0.2);
}

.close-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  border: 1px solid rgba(60, 60, 67, 0.2);
  background: rgba(255, 255, 255, 0.9);
  color: var(--text-main);
  border-radius: 999px;
  width: 2.5rem;
  height: 2.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  cursor: pointer;
}

.close-btn:hover {
  border-color: rgba(10, 132, 255, 0.35);
  background: rgba(10, 132, 255, 0.1);
}

form input,
form textarea {
  width: 100%;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-soft);
  background: #ffffff;
  color: var(--text-main);
  font-size: 0.95rem;
  padding: 0.8rem 1rem;
  box-shadow: none;
}

.form-label {
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--text-main);
  font-weight: 600;
}

.form-card {
  padding: 1.05rem 1.15rem;
  gap: 0.6rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-soft);
  background: #ffffff;
  box-shadow: none;
}

.form-actions {
  display: grid;
  gap: 0.75rem;
  justify-items: start;
}

.form-submit {
  min-width: 200px;
  padding: 0.75rem 1.6rem;
}

form input::placeholder,
form textarea::placeholder {
  color: var(--text-subtle);
}

.search-input {
  width: 100%;
  margin-top: 0.75rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-soft);
  background: #ffffff;
  color: var(--text-main);
  font-size: 0.98rem;
  padding: 0.75rem 1rem;
}

.search-input::placeholder {
  color: var(--text-subtle);
}

.search-input:focus {
  outline: none;
  border-color: rgba(10, 132, 255, 0.55);
  box-shadow: 0 0 0 3px rgba(10, 132, 255, 0.15);
}

form input:focus,
form textarea:focus {
  outline: none;
  border-color: rgba(10, 132, 255, 0.55);
  box-shadow: 0 0 0 3px rgba(10, 132, 255, 0.15);
}

blockquote {
  margin: 0;
}

.table-wrap {
  overflow-x: auto;
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.16);
}

.table-wrap table {
  width: 100%;
  border-collapse: collapse;
  min-width: 520px;
}

.table-wrap th,
.table-wrap td {
  padding: 0.85rem 1rem;
  text-align: left;
  border-bottom: 1px solid rgba(148, 163, 184, 0.14);
}

.table-wrap th {
  color: rgba(191, 219, 254, 0.85);
  text-transform: uppercase;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
}

.table-wrap tbody tr:hover {
  background: rgba(15, 23, 42, 0.45);
}

.small-print {
  font-size: 0.85rem;
  color: rgba(148, 163, 184, 0.7);
}

@media (max-width: 640px) {
  .page-intro {
    text-align: center;
  }
  .page-intro__content {
    justify-items: center;
  }
  .avatar {
    justify-self: center;
  }
}

@media (max-width: 640px) {
  body[data-page="contact"] .page-intro,
  body[data-page="contact"] .page-intro__content {
    text-align: left;
    justify-items: start;
  }
}

@media (max-width: 880px) {
  body.nav-open main,
  body.nav-open .site-footer,
  body.nav-open .scroll-to-top,
  body.nav-open .now-playing {
    filter: blur(10px);
  }

  body.nav-open main,
  body.nav-open .site-footer,
  body.nav-open .scroll-to-top,
  body.nav-open .now-playing {
    pointer-events: none;
  }
}

.music-layout {
  display: grid;
  gap: clamp(1.25rem, 3vw, 1.75rem);
}

.music-card {
  border: 1px solid var(--border-soft);
  background: #ffffff;
  box-shadow: none;
  padding: clamp(1.2rem, 2.6vw, 1.6rem);
  gap: 1.25rem;
}

.music-card:hover {
  transform: none;
  box-shadow: 0 16px 28px rgba(15, 23, 42, 0.12);
  border-color: rgba(60, 60, 67, 0.2);
}

.now-playing {
  display: grid;
  gap: 0.35rem;
  padding: 0.85rem 1rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid var(--border-soft);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.12);
  color: var(--text-main);
}

.now-playing__label {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-subtle);
}

.now-playing__title {
  font-weight: 700;
}

.now-playing__meta {
  color: rgba(148, 163, 184, 0.85);
  font-size: 0.9rem;
}

body[data-page="music"] .now-playing {
  position: fixed;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  width: min(520px, calc(100% - 2rem));
  z-index: 1200;
  backdrop-filter: blur(12px);
}

@media (min-width: 960px) {
  .music-layout {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    align-items: start;
  }
}

.video-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-soft);
  background: #ffffff;
  aspect-ratio: 16 / 9;
  box-shadow: 0 16px 32px rgba(17, 24, 39, 0.12);
}

.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.player-column {
  display: grid;
  gap: 1rem;
}

.player-meta {
  display: grid;
  gap: 0.4rem;
}

.player-title {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.4;
}

.tracklist-wrap {
  display: grid;
  gap: 0.85rem;
  max-height: 480px;
  overflow-y: auto;
  padding-right: 0.35rem;
}

.tracklist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
}

.tracklist-empty {
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  border: 1px dashed var(--border-soft);
  background: #ffffff;
  color: var(--text-muted);
}

.track-button {
  width: 100%;
  text-align: left;
  border-radius: 0;
  border: none;
  border-bottom: 1px solid var(--border-soft);
  background: transparent;
  color: inherit;
  font: inherit;
  padding: 0.85rem 0;
  display: grid;
  gap: 0.25rem;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
  cursor: pointer;
}

.track-button:hover {
  border-color: rgba(10, 132, 255, 0.45);
  background: rgba(10, 132, 255, 0.05);
  transform: none;
}

.track-button:focus-visible {
  outline: 2px solid rgba(10, 132, 255, 0.75);
  outline-offset: 2px;
}

.track-button.is-active {
  border-color: rgba(10, 132, 255, 0.55);
  background: rgba(10, 132, 255, 0.08);
}

.track-button .track-title {
  font-weight: 600;
  font-size: 0.96rem;
}

.track-button .track-meta {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.track-button:last-child {
  border-bottom: none;
}

@media (max-width: 600px) {
  .track-button {
    padding: 0.65rem 0.85rem;
  }
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
  margin-bottom: clamp(1rem, 3vw, 1.5rem);
}

.filter-scroll {
  display: flex;
  overflow-x: auto;
  gap: 0.5rem;
  padding-bottom: 0.35rem;
}

.filters-panel {
  padding: clamp(1.4rem, 3.5vw, 2.25rem) 0;
}

.filter-title {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--text-subtle);
  margin: 0 0 0.75rem;
}

.filters-panel .filter-row {
  margin-top: 0.6rem;
  margin-bottom: 0.9rem;
}

.filters-panel .search-input {
  margin-top: 0.5rem;
}

/* Homepage accessibility panel */
.accessibility-panel {
  display: flex;
  flex-direction: column;
  gap: clamp(1.25rem, 3vw, 1.75rem);
  padding: clamp(1.5rem, 4vw, 2.25rem);
  position: relative;
  overflow: hidden;
}

.accessibility-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
      120% 140% at 0% 0%,
      rgba(59, 130, 246, 0.18) 0%,
      rgba(15, 23, 42, 0) 62%
    ),
    radial-gradient(
      110% 120% at 100% 0%,
      rgba(14, 165, 233, 0.16) 0%,
      rgba(2, 6, 23, 0) 55%
    );
  opacity: 0.85;
  pointer-events: none;
}

.accessibility-panel > * {
  position: relative;
  z-index: 1;
}

.accessibility-panel__body {
  display: grid;
  gap: clamp(1rem, 2.5vw, 1.75rem);
}

.accessibility-panel__intro {
  display: grid;
  gap: 0.65rem;
  max-width: 48rem;
}

.accessibility-panel__group {
  display: grid;
  gap: 0.85rem;
}

.accessibility-panel__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.group-label {
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(226, 232, 240, 0.75);
}

/* Force dark text for light mode — make all text black site-wide
   This is intentionally broad to override any remaining light/white colors
   when the site is in light mode. If you prefer more selective rules,
   we can narrow this to specific elements later. */
html[data-theme="light"] *,
html[data-theme="light"] *::before,
html[data-theme="light"] *::after {
  color: #000000 !important;
  -webkit-text-fill-color: #000000 !important; /* for form controls / iOS */
}
