.page-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.page-main {
  flex: 1;
}

.hero-title {
  font-size: clamp(2.4rem, 8vw, 6rem);
  line-height: 1.05;
}

.active-line {
  display: block;
}

.hidden.active-line {
  display: none;
}

/* ---- Skip link ---- */
.hh-a11y-skip {
  position: fixed;
  inset-inline-start: 1rem;
  top: 1rem;
  z-index: 100;
  padding: 0.65rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #0a0a0a;
  background: #fbbf24;
  border-radius: 0.375rem;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform 0.2s ease;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}
.hh-a11y-skip:focus {
  transform: translateY(0);
  outline: 3px solid #fff;
  outline-offset: 2px;
}

.hh-a11y-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;
}

/* ---- Root text scale (rem-based layout scales) ---- */
html[data-hh-a11y-font="sm"] {
  font-size: 93.75%;
}
html[data-hh-a11y-font="md"],
html:not([data-hh-a11y-font]) {
  font-size: 100%;
}
html[data-hh-a11y-font="lg"] {
  font-size: 112.5%;
}
html[data-hh-a11y-font="xl"] {
  font-size: 125%;
}

/* ---- High contrast (global filter; keeps structure) ---- */
html.hh-a11y-contrast {
  filter: contrast(1.2) saturate(1.08);
}

/* ---- Readable system font ---- */
html.hh-a11y-readable body,
html.hh-a11y-readable body .font-serif {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
}

/* ---- Underline links ---- */
html.hh-a11y-links a {
  text-decoration: underline !important;
  text-underline-offset: 0.2em;
}

/* ---- Reduce motion ---- */
html.hh-a11y-motion-reduce *,
html.hh-a11y-motion-reduce *::before,
html.hh-a11y-motion-reduce *::after {
  animation-duration: 0.01ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: 0.01ms !important;
  scroll-behavior: auto !important;
}

body.hh-a11y-panel-open {
  overflow: hidden;
}

/* ---- Floating widget ---- */
.hh-a11y-root {
  position: fixed;
  inset-inline-end: 1.25rem;
  bottom: 1.25rem;
  z-index: 60;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 0.875rem;
}

.hh-a11y-launcher {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: linear-gradient(145deg, rgba(30, 30, 30, 0.95), rgba(12, 12, 12, 0.98));
  color: #fbbf24;
  cursor: pointer;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(251, 191, 36, 0.15);
  transition: transform 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
}
.hh-a11y-launcher:hover {
  color: #fcd34d;
  transform: scale(1.05);
  box-shadow: 0 10px 36px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(251, 191, 36, 0.35);
}
.hh-a11y-launcher:focus-visible {
  outline: 3px solid #fbbf24;
  outline-offset: 3px;
}

.hh-a11y-backdrop {
  position: fixed;
  inset: 0;
  z-index: 0;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(2px);
}

.hh-a11y-panel {
  position: absolute;
  z-index: 1;
  bottom: calc(3.25rem + 0.85rem);
  inset-inline-end: 0;
  width: min(20rem, calc(100vw - 2.5rem));
  max-height: min(70vh, 28rem);
  overflow: auto;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(12, 12, 12, 0.97);
  color: #e5e5e5;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
}

.hh-a11y-panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1rem 1rem 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.hh-a11y-panel-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.35;
  color: #fafafa;
}

.hh-a11y-icon-btn {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border: none;
  border-radius: 0.5rem;
  background: rgba(255, 255, 255, 0.06);
  color: #a3a3a3;
  cursor: pointer;
}
.hh-a11y-icon-btn:hover {
  color: #fafafa;
  background: rgba(255, 255, 255, 0.1);
}
.hh-a11y-icon-btn:focus-visible {
  outline: 2px solid #fbbf24;
  outline-offset: 2px;
}

.hh-a11y-panel-body {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.hh-a11y-fieldset {
  margin: 0;
  padding: 0;
  border: none;
  min-width: 0;
}

.hh-a11y-legend {
  padding: 0;
  margin-bottom: 0.5rem;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #737373;
}

.hh-a11y-seg {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.35rem;
}

.hh-a11y-seg-btn {
  padding: 0.5rem 0.4rem;
  font-size: 0.75rem;
  font-weight: 500;
  border-radius: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: #d4d4d4;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.hh-a11y-seg-btn:hover {
  border-color: rgba(251, 191, 36, 0.35);
  color: #fff;
}
.hh-a11y-seg-btn:focus-visible {
  outline: 2px solid #fbbf24;
  outline-offset: 2px;
}
.hh-a11y-seg-btn.is-active,
.hh-a11y-seg-btn[aria-pressed="true"] {
  border-color: rgba(251, 191, 36, 0.55);
  background: rgba(251, 191, 36, 0.12);
  color: #fef3c7;
}

.hh-a11y-fieldset--speech {
  padding-top: 0.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: 0.25rem;
}

.hh-a11y-speech-hint,
.hh-a11y-speech-unsupported {
  margin: 0 0 0.5rem;
  font-size: 0.75rem;
  line-height: 1.4;
  color: #a3a3a3;
}

.hh-a11y-speech-unsupported:not([hidden]) {
  color: #fca5a5;
}

.hh-a11y-speech-actions {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.hh-a11y-speech-btn {
  display: block;
  width: 100%;
  text-align: center;
  padding: 0.55rem 0.6rem;
  font-size: 0.8125rem;
  font-weight: 500;
  border-radius: 0.5rem;
  border: 1px solid rgba(251, 191, 36, 0.35);
  background: rgba(251, 191, 36, 0.08);
  color: #fef3c7;
  cursor: pointer;
}
.hh-a11y-speech-btn:hover:not(:disabled) {
  background: rgba(251, 191, 36, 0.14);
  border-color: rgba(251, 191, 36, 0.5);
}
.hh-a11y-speech-btn:focus-visible {
  outline: 2px solid #fbbf24;
  outline-offset: 2px;
}
.hh-a11y-speech-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.hh-a11y-speech-btn--stop {
  border-color: rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.06);
  color: #d4d4d4;
}
.hh-a11y-speech-btn--stop:not(:disabled):hover {
  border-color: rgba(248, 113, 113, 0.45);
  background: rgba(248, 113, 113, 0.1);
  color: #fecaca;
}

.hh-a11y-toggles {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.hh-a11y-row-btn {
  display: block;
  width: 100%;
  text-align: start;
  padding: 0.65rem 0.75rem;
  font-size: 0.8125rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: #e5e5e5;
  cursor: pointer;
}
.hh-a11y-row-btn:hover {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.07);
}
.hh-a11y-row-btn:focus-visible {
  outline: 2px solid #fbbf24;
  outline-offset: 2px;
}
.hh-a11y-row-btn.is-active,
.hh-a11y-row-btn[aria-pressed="true"] {
  border-color: rgba(52, 211, 153, 0.45);
  background: rgba(52, 211, 153, 0.08);
  color: #a7f3d0;
}

.hh-a11y-reset {
  width: 100%;
  margin-top: 0.25rem;
  padding: 0.6rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: transparent;
  color: #a3a3a3;
  cursor: pointer;
}
.hh-a11y-reset:hover {
  color: #fafafa;
  border-color: rgba(255, 255, 255, 0.25);
}
.hh-a11y-reset:focus-visible {
  outline: 2px solid #fbbf24;
  outline-offset: 2px;
}

/* ---- Mobile sidebar menu ---- */
.hh-mobile-menu:not(.is-open) {
  pointer-events: none;
}

.hh-mobile-menu:not(.is-open) .hh-mobile-menu-panel,
.hh-mobile-menu:not(.is-open) [data-mobile-menu-backdrop] {
  opacity: 0;
}

.hh-mobile-menu .hh-mobile-menu-panel {
  inset-inline-start: 0;
  border-inline-end: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.45);
  transition: transform 0.3s ease, opacity 0.3s ease;
  transform: translateX(-100%);
}

html[dir="rtl"] .hh-mobile-menu .hh-mobile-menu-panel {
  transform: translateX(100%);
}

.hh-mobile-menu.is-open .hh-mobile-menu-panel {
  transform: translateX(0);
}

.hh-mobile-menu [data-mobile-menu-backdrop] {
  transition: opacity 0.3s ease;
}

.hh-mobile-menu.is-open [data-mobile-menu-backdrop] {
  opacity: 1;
}

body.hh-mobile-menu-open {
  overflow: hidden;
}

.hh-header-logo {
  display: block;
  height: 4.375rem;
  width: auto;
  max-width: 7.75rem;
  object-fit: contain;
  transition: opacity 0.2s ease;
}

.group:hover .hh-header-logo {
  opacity: 0.9;
}
