.language-switcher {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 40px;
  color: inherit;
  font-family: 'Inter', Arial, sans-serif;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .01em;
  white-space: nowrap;
}

.language-switcher a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 8px 0;
  color: inherit;
  opacity: .52;
  transition: opacity .2s ease, transform .2s ease;
}

.language-switcher a:hover,
.language-switcher a:focus-visible,
.language-switcher a[aria-current='true'] {
  opacity: 1;
}

.language-switcher a:hover { transform: translateY(-1px); }
.language-switcher-flag {
  display: inline-flex;
  width: 17px;
  height: 12px;
  flex: 0 0 auto;
  overflow: hidden;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(16, 35, 53, .1);
}

.language-switcher-flag svg {
  display: block;
  width: 100%;
  height: 100%;
}
.language-switcher-divider { width: 1px; height: 13px; background: currentColor; opacity: .28; }
.header-language-switcher { display: none; }

/* Keep the shared footer navigation on the same optical line as the logo lockup. */
.site-footer .footer-top { align-items: start; transform: translateY(clamp(48px, 4vw, 64px)); }
.site-footer .footer-links { min-height: 36px; align-items: center; }

.aetorin-concierge {
  position: fixed;
  z-index: 140;
  right: 18px;
  bottom: 18px;
  width: min(420px, calc(100vw - 36px));
  height: min(680px, calc(var(--aetorin-viewport-height, 100vh) - 36px));
  color: #fff8f1;
  font-family: 'Inter', Arial, sans-serif;
  pointer-events: none;
}

.concierge-launcher {
  position: absolute;
  right: 0;
  bottom: 0;
  display: inline-flex;
  min-width: 168px;
  min-height: 58px;
  align-items: center;
  justify-content: center;
  gap: 11px;
  padding: 13px 18px 13px 14px;
  color: #fff8f1;
  border: 1px solid rgba(255,248,241,.18);
  border-radius: 999px;
  background: #102335;
  box-shadow: 0 16px 42px rgba(16,35,53,.2);
  font-size: .84rem;
  font-weight: 700;
  cursor: pointer;
  pointer-events: auto;
  transform-origin: right bottom;
  transition: opacity .28s ease, transform .42s cubic-bezier(.22,1,.36,1), background .25s ease;
}

.concierge-launcher:hover { background: #2e558b; transform: translateY(-2px); }
.concierge-launcher:focus-visible { outline: 2px solid #2e558b; outline-offset: 4px; }

.concierge-mini-mark,
.concierge-orbit {
  position: relative;
  display: block;
  flex: 0 0 auto;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 26%, rgba(255,248,241,.9), transparent 18%),
    radial-gradient(circle at 34% 36%, #91bcc3 0 20%, transparent 44%),
    radial-gradient(circle at 68% 64%, #f28e73 0 18%, transparent 48%),
    #2e558b;
  box-shadow: inset 0 0 0 1px rgba(255,248,241,.18), 0 0 24px rgba(145,188,195,.22);
}

.concierge-mini-mark { width: 28px; height: 28px; }
.concierge-orbit { width: 156px; height: 156px; margin: 12px auto 22px; }

.concierge-mini-mark span,
.concierge-orbit span {
  position: absolute;
  inset: 0;
  background: #fff8f1;
  opacity: .92;
  -webkit-mask: var(--concierge-piece) center / 58% no-repeat;
  mask: var(--concierge-piece) center / 58% no-repeat;
}

.concierge-mini-mark span:nth-child(1), .concierge-orbit span:nth-child(1) { --concierge-piece: url('assets/symbol-piece-1.svg'); }
.concierge-mini-mark span:nth-child(2), .concierge-orbit span:nth-child(2) { --concierge-piece: url('assets/symbol-piece-2.svg'); }
.concierge-mini-mark span:nth-child(3), .concierge-orbit span:nth-child(3) { --concierge-piece: url('assets/symbol-piece-3.svg'); }
.concierge-orbit span:nth-child(1) { animation: concierge-piece-one 8s ease-in-out infinite paused; }
.concierge-orbit span:nth-child(2) { animation: concierge-piece-two 8s ease-in-out infinite paused; }
.concierge-orbit span:nth-child(3) { animation: concierge-piece-three 8s ease-in-out infinite paused; }
.aetorin-concierge.is-open .concierge-orbit span { animation-play-state: running; }

@keyframes concierge-piece-one { 0%,100% { transform: translate(0,0) rotate(0); } 50% { transform: translate(2px,-7px) rotate(8deg); } }
@keyframes concierge-piece-two { 0%,100% { transform: translate(0,0) rotate(0); } 50% { transform: translate(-7px,4px) rotate(-7deg); } }
@keyframes concierge-piece-three { 0%,100% { transform: translate(0,0) rotate(0); } 50% { transform: translate(7px,5px) rotate(6deg); } }

.concierge-panel {
  position: absolute;
  inset: 0;
  display: flex;
  overflow: hidden;
  flex-direction: column;
  border: 1px solid rgba(255,248,241,.13);
  border-radius: 26px;
  background:
    radial-gradient(circle at 76% 10%, rgba(242,142,115,.28), transparent 34%),
    radial-gradient(circle at 18% 46%, rgba(145,188,195,.16), transparent 38%),
    linear-gradient(155deg, #2e558b 0%, #263f62 34%, #1a2b3d 62%, #102335 100%);
  box-shadow: 0 32px 80px rgba(16,35,53,.34);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate(18px,18px) scale(.84);
  transform-origin: right bottom;
  transition: opacity .26s ease, visibility 0s linear .42s, transform .48s cubic-bezier(.22,1,.36,1);
}

.aetorin-concierge.is-open .concierge-panel {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: none;
  transition-delay: 0s;
}

.aetorin-concierge.is-open .concierge-launcher {
  opacity: 0;
  pointer-events: none;
  transform: scale(.7);
}

.concierge-header {
  display: flex;
  min-height: 68px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 16px 10px 20px;
  border-bottom: 1px solid rgba(255,248,241,.12);
}

.concierge-tabs { display: flex; align-items: center; gap: 24px; }
.concierge-tab {
  position: relative;
  padding: 10px 0;
  color: rgba(255,248,241,.58);
  border: 0;
  background: transparent;
  font-size: .8rem;
  font-weight: 700;
  cursor: pointer;
}

.concierge-tab::after {
  position: absolute;
  right: 0;
  bottom: 4px;
  left: 0;
  height: 1px;
  background: currentColor;
  content: '';
  transform: scaleX(0);
  transition: transform .28s cubic-bezier(.22,1,.36,1);
}

.concierge-tab[aria-selected='true'] { color: #fff8f1; }
.concierge-tab[aria-selected='true']::after { transform: scaleX(1); }
.concierge-close {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  place-items: center;
  color: rgba(255,248,241,.74);
  border: 0;
  border-radius: 50%;
  background: rgba(255,248,241,.08);
  font-size: 1.15rem;
  cursor: pointer;
  transition: color .2s ease, background .2s ease, transform .2s ease;
}
.concierge-close:hover { color: #fff; background: rgba(255,248,241,.14); transform: rotate(5deg); }

.concierge-body { min-height: 0; flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: rgba(255,248,241,.26) transparent; }
.concierge-view { display: none; min-height: 100%; padding: 18px 20px 26px; }
.concierge-view.is-active { display: block; animation: concierge-view-in .34s ease both; }
.concierge-view--chat.is-active { display: flex; flex-direction: column; }
@keyframes concierge-view-in { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: none; } }

.concierge-kicker { margin: 0 0 7px; color: #91bcc3; font-family: 'Gloock', Georgia, serif; font-size: 1rem; font-weight: 400; line-height: 1; letter-spacing: -.04em; text-transform: none; }
.concierge-view h2 { margin: 0; color: #fff8f1; font-size: 1.35rem; line-height: 1.15; letter-spacing: -.035em; }
.concierge-intro { margin: 11px 0 0; color: rgba(255,248,241,.72); font-size: .9rem; line-height: 1.55; }
.concierge-question-grid { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.concierge-question {
  padding: 10px 12px;
  color: #fff8f1;
  border: 1px solid rgba(255,248,241,.14);
  border-radius: 999px;
  background: rgba(255,248,241,.08);
  font-size: .77rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color .2s ease, background .2s ease, transform .2s ease;
}
.concierge-question:hover { border-color: rgba(145,188,195,.65); background: rgba(145,188,195,.16); transform: translateY(-1px); }

.concierge-thread { display: grid; gap: 10px; margin-top: 18px; }
.concierge-thread:empty { display: none; }
.concierge-message {
  width: min(88%, 330px);
  padding: 13px 14px;
  border: 1px solid rgba(255,248,241,.13);
  border-radius: 17px;
  background: rgba(9,24,38,.35);
  animation: concierge-message-in .32s cubic-bezier(.22,1,.36,1) both;
}
.concierge-message.is-user {
  justify-self: end;
  border-color: rgba(255,248,241,.18);
  border-bottom-right-radius: 6px;
  background: rgba(255,248,241,.11);
}
.concierge-message.is-assistant {
  justify-self: start;
  border-color: rgba(145,188,195,.26);
  border-bottom-left-radius: 6px;
}
.concierge-message.is-fallback { border-style: dashed; }
.concierge-message strong { display: block; color: #91bcc3; font-size: .7rem; font-weight: 700; letter-spacing: .04em; line-height: 1.35; }
.concierge-message.is-user strong { color: rgba(255,248,241,.58); }
.concierge-message p { margin: 6px 0 0; color: #fff8f1; font-size: .85rem; line-height: 1.55; white-space: pre-wrap; }
.concierge-message a { display: inline-flex; margin-top: 11px; color: #fff8f1; font-size: .76rem; font-weight: 700; text-decoration: underline; text-decoration-color: rgba(255,248,241,.42); text-underline-offset: 4px; }
.concierge-message.is-thinking p { color: rgba(255,248,241,.6); }
.concierge-message.is-thinking p::after { display: inline-block; width: 1.2em; content: '•••'; letter-spacing: .12em; animation: concierge-thinking 1.2s ease-in-out infinite; }

.concierge-composer {
  position: sticky;
  bottom: -26px;
  display: flex;
  align-items: flex-end;
  gap: 8px;
  margin: auto -4px 0;
  padding: 12px 4px 8px;
  background: linear-gradient(180deg, rgba(16,35,53,0), rgba(16,35,53,.94) 28%, rgba(16,35,53,.98));
}
.concierge-composer textarea {
  width: 100%;
  min-height: 48px;
  max-height: 112px;
  resize: none;
  padding: 13px 15px;
  overflow-y: auto;
  color: #fff8f1;
  border: 1px solid rgba(255,248,241,.18);
  border-radius: 18px;
  outline: none;
  background: rgba(255,248,241,.08);
  font: 500 .84rem/1.45 'Inter', Arial, sans-serif;
  transition: border-color .2s ease, background .2s ease;
}
.concierge-composer textarea::placeholder { color: rgba(255,248,241,.45); }
.concierge-composer textarea:focus { border-color: rgba(145,188,195,.72); background: rgba(255,248,241,.11); }
.concierge-composer button {
  display: grid;
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  place-items: center;
  color: #2e558b;
  border: 0;
  border-radius: 16px;
  background: #fff8f1;
  font-size: 1.08rem;
  font-weight: 800;
  cursor: pointer;
  transition: transform .2s ease, background .2s ease, opacity .2s ease;
}
.concierge-composer button:hover { background: #fff; transform: translateY(-1px); }
.concierge-composer button:disabled,
.concierge-composer textarea:disabled,
.concierge-question:disabled { cursor: wait; opacity: .55; }
@keyframes concierge-message-in { from { opacity: 0; transform: translateY(7px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes concierge-thinking { 0%,100% { opacity: .28; } 50% { opacity: 1; } }

.concierge-faq-list { display: grid; gap: 0; margin-top: 22px; border-top: 1px solid rgba(255,248,241,.14); }
.concierge-faq-list details { border-bottom: 1px solid rgba(255,248,241,.14); }
.concierge-faq-list summary { position: relative; padding: 15px 30px 15px 0; color: #fff8f1; font-size: .84rem; font-weight: 600; line-height: 1.4; cursor: pointer; list-style: none; }
.concierge-faq-list summary::-webkit-details-marker { display: none; }
.concierge-faq-list summary::after { position: absolute; top: 15px; right: 2px; content: '+'; color: #91bcc3; font-size: 1rem; transition: transform .25s ease; }
.concierge-faq-list details[open] summary::after { transform: rotate(45deg); }
.concierge-faq-list details p { margin: -3px 0 17px; color: rgba(255,248,241,.68); font-size: .82rem; line-height: 1.6; }

.concierge-contact-card { margin-top: 26px; padding: 20px; border: 1px solid rgba(255,248,241,.15); border-radius: 18px; background: rgba(255,248,241,.07); }
.concierge-contact-card p { margin: 0; color: rgba(255,248,241,.74); font-size: .9rem; line-height: 1.6; }
.concierge-contact-actions { display: grid; gap: 10px; margin-top: 20px; }
.concierge-action {
  display: flex;
  min-height: 50px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 16px;
  color: #2e558b;
  border-radius: 999px;
  background: #fff;
  font-size: .82rem;
  font-weight: 700;
  transition: transform .22s ease, background .22s ease;
}
.concierge-action:hover { background: #f2efeb; transform: translateY(-1px); }
.concierge-action.secondary { color: #fff8f1; border: 1px solid #2e558b; background: #2e558b; }
.concierge-action.secondary:hover { background: #244775; }

body.menu-open .aetorin-concierge { opacity: 0; pointer-events: none; }

@media (max-width: 1180px) and (min-width: 981px) {
  .desktop-nav, .sub-nav { gap: 17px !important; }
  .language-switcher { gap: 5px; }
}

@media (max-width: 980px) {
  .header-inner { grid-template-columns: minmax(0, 1fr) auto auto !important; gap: 12px !important; }
  .header-language-switcher { display: inline-flex; color: inherit; }
  body.menu-open .header-language-switcher { opacity: 0; pointer-events: none; }
  .mobile-menu .language-switcher,
  .sub-nav .language-switcher { width: fit-content; margin-top: 8px; font-size: .82rem; }
  .mobile-menu .language-switcher a,
  .sub-nav .language-switcher a { padding: 7px 0; font-family: 'Inter', Arial, sans-serif; font-size: .82rem; font-weight: 700; line-height: 1; letter-spacing: 0; }
  .mobile-menu .language-switcher { order: 5; }
  .mobile-menu .language-switcher + a { order: 6; }
  .aetorin-concierge { right: 12px; bottom: 12px; width: calc(100vw - 24px); height: min(680px, calc(var(--aetorin-viewport-height, 100vh) - 24px)); }
}

@media (max-width: 360px) {
  .header-inner { gap: 6px !important; }
  .header-language-switcher { gap: 4px; }
  .header-language-switcher a { gap: 0; }
  .header-language-switcher a > span:last-child { display: none; }
}

@media (max-width: 520px) {
  .concierge-panel { border-radius: 22px; }
  .concierge-orbit { width: 126px; height: 126px; margin-bottom: 18px; }
  .concierge-tabs { gap: 18px; }
  .concierge-view { padding-inline: 17px; }
  .concierge-launcher { min-width: 154px; min-height: 54px; }
}

@media (max-width: 640px) {
  .site-footer .footer-top { transform: translateY(24px); }
  .site-footer .footer-links { min-height: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .concierge-orbit span { animation: none; }
  .concierge-panel, .concierge-launcher, .concierge-view, .concierge-message { transition-duration: .01ms !important; animation: none !important; }
  .concierge-message.is-thinking p::after { animation: none; }
}
