header { position: relative; z-index: 4; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.header-actions > .pill { white-space: nowrap; font-size: 14px; min-height: 44px; }
.header-actions details { position: relative; }
.header-actions summary {
  display: flex; align-items: center; justify-content: center; gap: 7px;
  list-style: none; cursor: pointer; min-height: 44px; min-width: 44px;
  border-radius: 24px; background: #273322; color: #fff;
  font-size: 14px; font-weight: 700; padding: 0 13px;
}
.header-actions summary::-webkit-details-marker { display: none; }
.header-actions summary:focus-visible { outline: 3px solid #f86e2a; outline-offset: 3px; }
.language-switch i {
  width: 7px; height: 7px; border: solid currentColor; border-width: 0 1.5px 1.5px 0;
  transform: translateY(-2px) rotate(45deg); transition: transform 150ms ease;
}
.language-switch[open] i { transform: translateY(2px) rotate(225deg); }
.header-actions .popover {
  position: absolute; right: 0; top: calc(100% + 7px); width: 174px;
  display: grid; gap: 3px; padding: 6px; border: 1px solid #bac0b3;
  border-radius: 16px; background: #faf9f0; box-shadow: 0 8px 22px #18231425;
  animation: reveal 150ms ease-out;
}
.popover a { display: flex; justify-content: space-between; align-items: center; padding: 8px 12px; min-height: 44px; border-radius: 10px; font-size: 15px; font-weight: 600; }
.popover a:hover { background: #e9ecdf; }
.popover a[aria-current] { background: #273322; color: white; }
.popover a[aria-current]::after { content: ""; width: 6px; height: 11px; border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(45deg); margin-right: 4px; }
.mobile-nav, .mobile-nav .pill { display: none; }
.mobile-nav summary { background: transparent; color: inherit; border: 1px solid #b9beaf; padding: 0; }
@keyframes reveal { from { opacity: 0; transform: translateY(-4px); } }
@media (max-width: 820px) {
  header > nav { display: none; }
  .mobile-nav { display: block; }
}
@media (max-width: 580px) {
  .header-actions { gap: 6px; }
  .header-actions > .pill { padding-inline: 12px; }
  .seal { pointer-events: none; }
}
@media (max-width: 410px) {
  .header-actions > .pill { display: none; }
  .mobile-nav .pill { display: flex; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  .header-actions .popover { animation: none; }
  .language-switch i { transition: none; }
}

.hero { container-type: inline-size; }
@container (max-width: 700px) {
  .hero .wrap { padding-block: 28px; margin-block: auto 0; }
  .hero h1 { font-size: min(17cqi, 6rem); }
  .hero p { max-width: 36ch; }
  .hero-actions {
    display: flex; align-items: center; justify-content: space-between;
    flex-wrap: wrap; gap: 12px; margin-top: 16px;
  }
  .hero-actions .pill { margin: 0; }
  .hero-actions .seal {
    position: static; width: 64px; height: 64px; margin-inline: 6px;
    font-size: 12px; flex-shrink: 0;
  }
}
@media (max-width: 700px) {
  .hero { height: auto; min-height: max(490px, 65svh); }
}

header .logo { font-size: clamp(1.125rem, 3.2vw, 2.5rem); letter-spacing: -.065em; white-space: nowrap; }
.hero h1 { font-size: clamp(2.25rem, 8.1vw, 8.25rem); letter-spacing: -.065em; }

.hero-actions .hashtag-seal {
  width: 164px;
  height: 62px;
  background: #fff;
  clip-path: none;
  border-radius: 50%;
  transform: rotate(8deg);
  font-size: 15px;
  letter-spacing: -.02em;
  white-space: nowrap;
}
@container (max-width: 700px) {
  .hero-actions .hashtag-seal { width: 144px; height: 54px; font-size: 13px; }
}
