.site-shell {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-main {
  flex: 1;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(247, 249, 252, 0.86);
  border-bottom: 1px solid rgba(12, 36, 70, 0.08);
  overflow: visible;
}

.site-header__inner {
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  overflow: visible;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
  color: var(--color-night);
  border-radius: var(--radius-sm);
}

.brand-link:hover {
  color: var(--color-night);
}

.brand-logo {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  object-fit: contain;
  object-position: left center;
}

.brand-logo--header {
  /* Approved size kept. Header is slightly taller so visible artwork has balanced
     top/bottom breathing room after optical compensation for PNG margin asymmetry. */
  height: 10rem;
  width: auto;
  max-height: none;
  margin-block: calc((var(--header-height) - 10rem) / 2);
  /* Visible-art center is 13.5px below PNG geometric center on a 435px canvas
     (transparent T58 vs B31). Shift up by that fraction of the rendered height. */
  transform: translateY(-3.103%);
}

@media (max-width: 720px) {
  :root {
    --header-height: 6.5rem;
  }

  .brand-logo--header {
    height: 6rem;
    margin-block: calc((var(--header-height) - 6rem) / 2);
  }
}

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.desktop-nav {
  display: none;
  align-items: center;
  gap: var(--space-5);
}

.desktop-nav a {
  font-weight: 600;
  color: var(--color-text);
  text-decoration: none;
}

.desktop-nav a:hover,
.desktop-nav a[aria-current="page"] {
  color: var(--color-accent-strong);
}

.language-switcher {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.8);
}

.language-switcher a {
  min-width: 2.2rem;
  padding: 0.35rem 0.55rem;
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
  color: var(--color-text-muted);
}

.language-switcher a[aria-current="true"] {
  background: var(--color-night);
  color: var(--color-white);
}

.header-cta {
  display: none;
}

.mobile-nav {
  position: relative;
}

.mobile-nav summary {
  list-style: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-white);
  cursor: pointer;
}

.mobile-nav summary::-webkit-details-marker {
  display: none;
}

.mobile-nav summary span,
.mobile-nav summary span::before,
.mobile-nav summary span::after {
  display: block;
  width: 1.1rem;
  height: 2px;
  border-radius: 999px;
  background: var(--color-night);
  transition: transform var(--duration) var(--ease-out), opacity var(--duration) var(--ease-out);
}

.mobile-nav summary span {
  position: relative;
}

.mobile-nav summary span::before,
.mobile-nav summary span::after {
  content: "";
  position: absolute;
  left: 0;
}

.mobile-nav summary span::before {
  top: -6px;
}

.mobile-nav summary span::after {
  top: 6px;
}

.mobile-nav[open] summary span {
  background: transparent;
}

.mobile-nav[open] summary span::before {
  top: 0;
  transform: rotate(45deg);
}

.mobile-nav[open] summary span::after {
  top: 0;
  transform: rotate(-45deg);
}

.mobile-nav__panel {
  position: absolute;
  right: 0;
  top: calc(100% + 0.75rem);
  width: min(20rem, calc(100vw - 2rem));
  padding: var(--space-4);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-white);
  box-shadow: var(--shadow-md);
  display: grid;
  gap: var(--space-2);
}

.mobile-nav__panel a {
  display: block;
  padding: 0.75rem 0.85rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-weight: 600;
  color: var(--color-text);
}

.mobile-nav__panel a:hover,
.mobile-nav__panel a[aria-current="page"] {
  background: var(--color-accent-soft);
  color: var(--color-accent-strong);
}

.mobile-nav__cta {
  margin-top: var(--space-2);
}

@media (min-width: 980px) {
  .desktop-nav,
  .header-cta {
    display: inline-flex;
  }

  .mobile-nav {
    display: none;
  }
}

.site-footer {
  margin-top: auto;
  padding: var(--space-8) 0 var(--space-6);
  background: var(--color-night-deep);
  color: var(--color-text-inverse);
}

.site-footer .brand-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.625rem;
  border-radius: var(--radius-md);
  background: var(--color-white);
  overflow: visible;
}

.brand-logo--footer {
  /* Stronger than the prior 128px mark, still subordinate to the 160px header logo. */
  height: 8.75rem;
  width: auto;
  /* Optical centering from PNG visible bounds (T58/B31, L10/R15 on 386×435). */
  transform: translate(0.65%, -3.103%);
}

@media (max-width: 720px) {
  .brand-logo--footer {
    height: 6.75rem;
  }

  .site-footer .brand-link {
    padding: 0.5rem;
  }
}

.site-footer a {
  color: rgba(245, 248, 252, 0.82);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--color-white);
}

.footer-grid {
  display: grid;
  gap: var(--space-6);
}

.footer-brand p {
  margin: var(--space-3) 0 0;
  max-width: 28rem;
  color: rgba(245, 248, 252, 0.72);
}

.footer-heading {
  margin: 0 0 var(--space-4);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(245, 248, 252, 0.55);
}

.footer-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.7rem;
}

.footer-meta {
  margin-top: var(--space-7);
  padding-top: var(--space-5);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  justify-content: space-between;
  color: rgba(245, 248, 252, 0.55);
  font-size: 0.92rem;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
}

@media (min-width: 800px) {
  .footer-grid {
    grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr));
  }
}
