/* =========================================
   GLOBAL HEADER - REBUILT (CLEAN ROOT)
   ========================================= */

:root {
  --header-expanded-height: 3.125rem;
  --header-scrolled-height: 2.5rem;
  --header-current-height: var(--header-expanded-height);
  --header-transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  --header-z-index: 1000;
  --background: var(--always-gray-95);
  --foreground: var(--always-black);
  --page-background: var(--always-gray-95);
  --page-foreground: var(--always-black);

  /* Dedicated header colors */
  --header-hero-color: var(--always-white);
  --header-base-color: var(--always-black);
  --header-scrolled-bg: rgba(240, 242, 245, 0.85);
}

@media (prefers-color-scheme: dark) {
  :root {
    --background: rgb(12, 16, 20);
    --foreground: var(--always-white);
    --page-background: rgb(12, 16, 20);
    --page-foreground: var(--always-white);

    --header-base-color: var(--always-white);
    --header-scrolled-bg: rgba(12, 16, 20, 0.85);
  }
}

@media (prefers-color-scheme: dark) {
  .unco-menu-panel {
    background: rgba(12, 16, 20, 0.85);
    color: var(--always-white);
  }
}

/* Base Header Container */
.global-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: var(--header-z-index);
  height: calc(var(--header-expanded-height) + env(safe-area-inset-top));
  padding-top: calc(env(safe-area-inset-top) + 0.5rem);
  /* Push visual center down in expanded state */
  box-sizing: border-box;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: var(--header-transition);

  /* Default: Transparent & Difference Mode (for Hero) */
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  color: var(--header-hero-color);
  mix-blend-mode: difference;
}

/* Scrolled State */
.global-header.scrolled {
  height: calc(var(--header-scrolled-height) + env(safe-area-inset-top));
  padding-top: env(safe-area-inset-top);
  /* Reset padding for compact state */

  /* Scrolled: Blurred Background & Solid Color */
  background: var(--header-scrolled-bg);
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  color: var(--header-base-color);
  mix-blend-mode: normal;
  border-bottom: none;
}

/* Header Content Wrapper */
.global-header-content {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 40px;
}

/* Logo - Absolute Center */
.logo-center {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-center a {
  display: block;
  line-height: 0;
  color: inherit;
}

.logo-center svg,
#desktop-logo {
  height: 1.5rem;
  width: auto;
  fill: currentColor;
  transition: fill 0.3s ease;
}

/* Menu Toggle - Absolute Right */
.global-header-right {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  display: flex;
  align-items: center;
}

.unco-menu-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  width: 1.5rem;
  height: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: inherit;
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 4;
}

.hamburger-svg {
  width: 100%;
  height: 100%;
  stroke: currentColor;
  fill: none;
  transition: transform 0.3s ease;
}

.hamburger-svg .bar {
  transition: transform 0.35s ease, opacity 0.25s ease;
  transform-origin: center;
  transform-box: fill-box;
}

.unco-menu-toggle[aria-expanded="true"] .hamburger-svg .bar.top {
  transform: translateY(4px) rotate(45deg);
}

.unco-menu-toggle[aria-expanded="true"] .hamburger-svg .bar.bottom {
  transform: translateY(-4px) rotate(-45deg);
}

/* =========================================
   PAGE SPECIFIC OVERRIDES
   ========================================= */

/* Profile Pages (NOT Homepage) */
/* "Header not scrolled should only be different on the homepage" */
/* Meaning: On profile pages, it should ALWAYS look "scrolled" (blurred), just taller when at top. */

body:not(.homepage) .global-header {
  background: var(--header-scrolled-bg);
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  color: var(--header-base-color);
  mix-blend-mode: normal;
  border-bottom: none;
}

/* Dark Mode logic handled via variables above */

/* Mobile Adjustments */
@media (max-width: 900px) {
  .global-header-content {
    padding: 0 20px;
  }

  .global-header-right {
    right: 16px;
  }

  .unco-menu-toggle {
    right: 16px;
  }
}

/* Menu Open State (Overrides everything) */
/* Menu Open State (Overrides everything) */
body.menu-open .global-header {
  height: calc(var(--header-scrolled-height) + env(safe-area-inset-top)) !important;
  /* Shrink to scrolled height when menu opens */
  background: var(--header-scrolled-bg) !important;
  color: var(--header-base-color) !important;
  fill: currentColor !important;
  mix-blend-mode: normal !important;
  backdrop-filter: blur(20px) saturate(150%) !important;
  -webkit-backdrop-filter: blur(20px) saturate(150%) !important;
  border-bottom: none !important;
}

body.menu-open .global-header .logo-center svg,
body.menu-open .global-header #desktop-logo,
body.menu-open .global-header .logo-center svg path,
body.menu-open .global-header #desktop-logo path {
  color: inherit !important;
  fill: currentColor !important;
  stroke: none !important;
}

body.menu-open .global-header .unco-menu-toggle,
body.menu-open .global-header #uncoMenuToggle,
body.menu-open .global-header .hamburger-svg,
body.menu-open .global-header .hamburger-svg .bar {
  color: inherit !important;
  stroke: currentColor !important;
  fill: currentColor !important;
}

/* Explicit dark-mode (data-theme or class) */
html[data-theme="dark"] .global-header,
body[data-theme="dark"] .global-header,
html.dark .global-header,
body.dark .global-header {
  background: var(--header-scrolled-bg) !important;
  backdrop-filter: blur(20px) saturate(150%) !important;
  -webkit-backdrop-filter: blur(20px) saturate(150%) !important;
  color: var(--header-base-color) !important;
  fill: currentColor !important;
}

html[data-theme="dark"] .global-header.scrolled,
body[data-theme="dark"] .global-header.scrolled,
html.dark .global-header.scrolled,
body.dark .global-header.scrolled {
  background: var(--header-scrolled-bg) !important;
  color: var(--header-base-color) !important;
  fill: currentColor !important;
}

/* Dark mode: not-scrolled header (e.g., gallery pages without hero) */
html[data-theme="dark"] .global-header:not(.scrolled),
body[data-theme="dark"] .global-header:not(.scrolled),
html.dark .global-header:not(.scrolled),
body.dark .global-header:not(.scrolled) {
  background: transparent !important;
  color: var(--header-base-color) !important;
  fill: currentColor !important;
}

html[data-theme="dark"] .logo-center svg,
body[data-theme="dark"] .logo-center svg,
html.dark .logo-center svg,
body.dark .logo-center svg,
html[data-theme="dark"] #desktop-logo,
body[data-theme="dark"] #desktop-logo,
html.dark #desktop-logo,
body.dark #desktop-logo {
  color: var(--header-base-color) !important;
  fill: currentColor !important;
}

html[data-theme="dark"] #uncoMenuToggle,
body[data-theme="dark"] #uncoMenuToggle,
html.dark #uncoMenuToggle,
body.dark #uncoMenuToggle {
  color: var(--header-base-color) !important;
}

html[data-theme="dark"] #uncoMenuToggle .hamburger-svg .bar,
body[data-theme="dark"] #uncoMenuToggle .hamburger-svg .bar,
html.dark #uncoMenuToggle .hamburger-svg .bar,
body.dark #uncoMenuToggle .hamburger-svg .bar {
  stroke: var(--header-base-color) !important;
}

/* Removed conflicting light-mode override that broke difference mode colors */

body {
  background-color: transparent;
  color: var(--ua-text);
}

/* === GEIST MONO FOR CODE === */
.code,
pre,
code {
  font-family: "Geist Mono", "Geist Mono Fallback", monospace;
}

/* === UNCO SLIDE-OUT MENU (CLEAN CONSOLIDATED) === */

.unco-menu-panel {
  position: fixed;
  top: calc(var(--header-current-height, var(--header-expanded-height, 80px)) + env(safe-area-inset-top));
  right: -100%;
  width: 100%;
  max-width: 28.125rem;
  height: calc(100vh - var(--header-current-height, var(--header-expanded-height, 80px)) - env(safe-area-inset-top));
  background: rgba(240, 242, 245, 0.85);
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  color: var(--always-black);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  overflow: visible;
  padding: 0;
  margin-top: 0;
  z-index: 11015;
  border-left: none;
  border-top: none;
  box-shadow: none;
  transition:
    right 0.5s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    top 0.5s cubic-bezier(0.22, 1, 0.36, 1),
    height 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  opacity: 0;
  pointer-events: none;
  transform: translateX(0);
}

@media (prefers-color-scheme: dark) {
  .unco-menu-panel {
    background: rgba(12, 16, 20, 0.85);
    backdrop-filter: blur(20px) saturate(150%);
    -webkit-backdrop-filter: blur(20px) saturate(150%);
    border-left: none;
    box-shadow: none;
    color: var(--ua-text, #f2f2f2);
  }

  .unco-menu-panel.is-open,
  .unco-menu-panel[aria-hidden="false"],
  .unco-menu-panel.is-closing {
    border-left: none;
    box-shadow: none;
  }

  /* Menu tier contrast - all use currentColor */
  .menu-level-1>.menu-item>a,
  .menu-level-1>.menu-item>.submenu-toggle {
    color: currentColor !important;
  }

  .menu-level-2>.menu-item>a,
  .menu-level-2>.menu-item>.submenu-toggle {
    color: currentColor !important;
    opacity: 0.85;
  }

  .menu-level-3>.menu-item>a,
  .menu-level-3>.menu-item>.submenu-toggle {
    color: currentColor !important;
    opacity: 0.75;
  }

  .menu-item a::after,
  .submenu-toggle::after {
    background: currentColor;
  }
}

.unco-menu-panel.is-open,
.unco-menu-panel[aria-hidden="false"] {
  right: 0;
  opacity: 1;
  pointer-events: auto;
  border-left: none;
  box-shadow: none;
}

/* Adjust menu position when header is scrolled - flush with header */
.global-header.scrolled~.unco-menu-panel,
body:has(.global-header.scrolled) .unco-menu-panel {
  top: calc(var(--header-scrolled-height, 50px) + env(safe-area-inset-top));
  height: calc(100vh - var(--header-scrolled-height, 50px) - env(safe-area-inset-top));
  margin-top: 0;
  border-top: none;
}

/* Full height menu on mobile - covers entire viewport including behind header */
@media (max-width: 900px) {
  .unco-menu-panel {
    top: 0 !important;
    height: 100vh !important;
    height: 100dvh !important;
    max-height: 100vh !important;
    max-height: 100dvh !important;
  }

  /* Remove all header state-specific positioning on mobile */
  .global-header.scrolled~.unco-menu-panel,
  body:has(.global-header.scrolled) .unco-menu-panel,
  body.menu-open .global-header:not(.scrolled)~.unco-menu-panel,
  body.menu-open:has(.global-header:not(.scrolled)) .unco-menu-panel,
  body.menu-open .global-header.scrolled~.unco-menu-panel,
  body.menu-open:has(.global-header.scrolled) .unco-menu-panel {
    top: 0 !important;
    height: 100vh !important;
    height: 100dvh !important;
    max-height: 100vh !important;
    max-height: 100dvh !important;
  }
}

/* Dark mode background for mobile menu */
@media (max-width: 900px) and (prefers-color-scheme: dark) {
  .unco-menu-panel {
    background: rgba(12, 16, 20, 0.85) !important;
    backdrop-filter: blur(20px) saturate(150%) !important;
    -webkit-backdrop-filter: blur(20px) saturate(150%) !important;
  }

  .unco-menu-panel.is-open,
  .unco-menu-panel[aria-hidden="false"] {
    background: rgba(12, 16, 20, 0.85) !important;
    backdrop-filter: blur(20px) saturate(150%) !important;
    -webkit-backdrop-filter: blur(20px) saturate(150%) !important;
  }

  body.menu-open .global-header.scrolled~.unco-menu-panel,
  body.menu-open:has(.global-header.scrolled) .unco-menu-panel {
    background: rgba(12, 16, 20, 0.85) !important;
    backdrop-filter: blur(20px) saturate(150%) !important;
    -webkit-backdrop-filter: blur(20px) saturate(150%) !important;
  }

  body.menu-open .global-header:not(.scrolled)~.unco-menu-panel,
  body.menu-open:has(.global-header:not(.scrolled)) .unco-menu-panel {
    background: rgba(12, 16, 20, 0.85) !important;
    backdrop-filter: blur(20px) saturate(150%) !important;
    -webkit-backdrop-filter: blur(20px) saturate(150%) !important;
  }
}

/* Seamless menu panel when menu is open (matches header) */
/* Desktop: When header is scrolled, use scrolled height - flush with header */
@media (min-width: 901px) {
  .unco-menu-panel {
    max-width: 15vw;
  }

  body.menu-open .global-header.scrolled~.unco-menu-panel,
  body.menu-open:has(.global-header.scrolled) .unco-menu-panel {
    border-left: none;
    border-top: none;
    box-shadow: none;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px) saturate(150%);
    -webkit-backdrop-filter: blur(20px) saturate(150%);
    top: calc(var(--header-scrolled-height, 50px) + env(safe-area-inset-top));
    height: calc(100vh - var(--header-scrolled-height, 50px) - env(safe-area-inset-top));
    margin-top: 0;
  }

  /* Desktop: When header is NOT scrolled but menu is open, use scrolled height (header morphs to scrolled) - flush with header */
  body.menu-open .global-header:not(.scrolled)~.unco-menu-panel,
  body.menu-open:has(.global-header:not(.scrolled)) .unco-menu-panel {
    border-left: none;
    border-top: none;
    box-shadow: none;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px) saturate(150%);
    -webkit-backdrop-filter: blur(20px) saturate(150%);
    top: calc(var(--header-scrolled-height, 50px) + env(safe-area-inset-top));
    height: calc(100vh - var(--header-scrolled-height, 50px) - env(safe-area-inset-top));
    margin-top: 0;
  }
}

@media (prefers-color-scheme: dark) {

  /* When menu opens in dark mode, header matches dark menu panel with light text */
  body.menu-open .global-header {
    background: rgba(12, 16, 20, 0.85) !important;
    backdrop-filter: blur(20px) saturate(150%) !important;
    -webkit-backdrop-filter: blur(20px) saturate(150%) !important;
    color: var(--ua-text, #f2f2f2) !important;
    fill: currentColor !important;
  }

  /* When header is scrolled, use scrolled height */
  body.menu-open .global-header.scrolled~.unco-menu-panel,
  body.menu-open:has(.global-header.scrolled) .unco-menu-panel {
    background: rgba(12, 16, 20, 0.85);
    backdrop-filter: blur(20px) saturate(150%);
    -webkit-backdrop-filter: blur(20px) saturate(150%);
  }

  /* When header is NOT scrolled, use expanded height */
  body.menu-open .global-header:not(.scrolled)~.unco-menu-panel,
  body.menu-open:has(.global-header:not(.scrolled)) .unco-menu-panel {
    background: rgba(12, 16, 20, 0.85);
    backdrop-filter: blur(20px) saturate(150%);
    -webkit-backdrop-filter: blur(20px) saturate(150%);
  }
}

.unco-menu-panel.is-closing {
  right: -100%;
  opacity: 0;
  pointer-events: none;
  border-left: none;
  box-shadow: none;
  transition:
    right 0.45s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.unco-menu-panel:focus {
  outline: none;
  box-shadow: none;
}

/* --- Background logo --- */
.menu-background-logo {
  position: absolute;
  top: 24px;
  right: 24px;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 48px);
  max-width: calc(100% - 48px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(0, 0, 0, 0.07);
  opacity: 0.7;
  pointer-events: none;
  z-index: 0;
  overflow: visible;
}

@media (prefers-color-scheme: dark) {
  .menu-background-logo {
    color: rgba(255, 255, 255, 0.08);
    opacity: 1;
  }
}

.menu-background-logo svg {
  width: 100%;
  max-width: 100%;
  max-height: 100%;
  height: auto;
  opacity: 0.75;
  object-fit: contain;
  overflow: visible;
}

/* --- Content container --- */
.menu-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  text-align: center;
  width: 100%;
  max-width: 260px;
  height: 100%;
  margin: 0;
}

/* --- Menu levels --- */
.menu-level-1 {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: fit-content;
  max-width: 100%;
  gap: 6px;
  list-style: none;
  padding: 0;
  margin: 0 auto;
}

.menu-level-2,
.menu-level-3,
.submenu {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  gap: 6px;
  list-style: none;
  padding: 0;
  margin: 0;
}

/* Level hierarchy styling - all use currentColor */
.menu-level-1>.menu-item>a,
.menu-level-1>.menu-item>.submenu-toggle {
  font-size: clamp(0.85rem, 1.4vw, 1.2rem);
  font-weight: 600;
  letter-spacing: 0.14em;
  color: currentColor;
  font-family: "Geist", "Helvetica Neue", Arial, sans-serif;
}

.menu-level-2>.menu-item>a,
.menu-level-2>.menu-item>.submenu-toggle {
  font-size: clamp(0.8rem, 1.2vw, 0.95rem);
  font-weight: 500;
  color: currentColor;
  opacity: 0.85;
  font-family: "Geist", "Helvetica Neue", Arial, sans-serif;
}

.menu-level-3>.menu-item>a,
.menu-level-3>.menu-item>.submenu-toggle {
  font-size: clamp(0.75rem, 1vw, 0.85rem);
  font-weight: 400;
  color: currentColor;
  opacity: 0.75;
  font-family: "Geist", "Helvetica Neue", Arial, sans-serif;
}

/* --- Base menu items --- */
.menu-item {
  width: 100%;
  text-align: left;
}

.menu-item a,
.submenu-toggle {
  position: relative;
  display: block;
  width: 100%;
  padding: 16px 32px;
  text-align: left;
  font-family: "Geist", "Helvetica Neue", Arial, sans-serif;
  font-size: 0.8125rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  white-space: nowrap;
  color: currentColor;
  text-decoration: none;
  cursor: pointer;
  pointer-events: auto;
  background: transparent;
  border: none;
  appearance: none;
  outline: none;
  box-shadow: none;
  z-index: 2;
  transition: all var(--motion-duration-fast) var(--motion-ease-out);
  will-change: color;
}

.menu-item a:focus,
.menu-item a:focus-visible,
.submenu-toggle:focus,
.submenu-toggle:focus-visible {
  outline: none;
  box-shadow: none;
}

.menu-item a::after,
.submenu-toggle::after {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 12px;
  height: 1px;
  background: currentColor;
  opacity: 0;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform var(--motion-duration-medium) var(--motion-ease-out), opacity var(--motion-duration-medium) var(--motion-ease-out);
}

.menu-item a:hover,
.menu-item a:focus,
.submenu-toggle:hover,
.submenu-toggle:focus {
  color: currentColor;
}

.menu-item a:hover::after,
.menu-item a:focus::after,
.submenu-toggle:hover::after,
.submenu-toggle:focus::after {
  opacity: 0.5;
  transform: scaleX(1);
}

.menu-item a.active,
.menu-item.is-active>a,
.submenu-toggle[aria-expanded="true"] {
  color: currentColor;
  font-weight: 500;
}

.menu-item a.active::after,
.menu-item.is-active>a::after,
.submenu-toggle[aria-expanded="true"]::after {
  opacity: 1;
  transform: scaleX(1);
}

@media (prefers-color-scheme: dark) {

  .menu-item a,
  .submenu-toggle {
    color: currentColor;
  }

  .menu-item a::after,
  .submenu-toggle::after {
    background: currentColor;
  }

  .menu-item a:hover,
  .menu-item a:focus,
  .submenu-toggle:hover,
  .submenu-toggle:focus {
    color: currentColor;
  }

  .menu-item a:hover::after,
  .menu-item a:focus::after,
  .submenu-toggle:hover::after,
  .submenu-toggle:focus::after {
    opacity: 0.7;
  }

  .menu-item a.active,
  .menu-item.is-active>a,
  .submenu-toggle[aria-expanded="true"] {
    color: currentColor;
  }
}

/* --- Submenu reveal animation --- */
.submenu {
  max-height: 0;
  opacity: 0;
  padding-left: 0;
  overflow: hidden;
  pointer-events: none;
  position: relative;
  transition: max-height 0.4s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

/* 
   Use max-height: none to prevent submenu clipping if content exceeds an arbitrary value.
   Note: This disables the max-height transition after opening, but avoids layout issues.
*/
.submenu[aria-hidden="false"] {
  max-height: 5000px;
  opacity: 1;
  pointer-events: auto;
}

/* --- Entry animation (staggered reveal) --- */
.menu-level-1>.menu-item {
  opacity: 0;
  transform: translateX(-20px);
  transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.19, 1, 0.22, 1);
}

.unco-menu-panel.is-open .menu-level-1>.menu-item {
  opacity: 1;
  transform: translateX(0);
}

.unco-menu-panel.is-open .menu-level-1>.menu-item:nth-child(1) {
  transition-delay: 0.3s;
}

.unco-menu-panel.is-open .menu-level-1>.menu-item:nth-child(2) {
  transition-delay: 0.35s;
}

.unco-menu-panel.is-open .menu-level-1>.menu-item:nth-child(3) {
  transition-delay: 0.4s;
}

.unco-menu-panel.is-open .menu-level-1>.menu-item:nth-child(4) {
  transition-delay: 0.45s;
}

.unco-menu-panel.is-open .menu-level-1>.menu-item:nth-child(5) {
  transition-delay: 0.5s;
}

.unco-menu-panel.is-open .menu-level-1>.menu-item:nth-child(6) {
  transition-delay: 0.55s;
}

/* --- Social icons --- */
.menu-social {
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  margin-left: auto;
  margin-right: auto;
  gap: 16px;
  margin-top: 32px;
  opacity: 1;
  visibility: visible;
}

.menu-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  color: inherit;
  opacity: 0.8;
  text-decoration: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.menu-social a:hover {
  opacity: 1;
  transform: scale(1.1);
}

.menu-social svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
  transition: transform 0.3s ease;
}

.menu-social a:hover svg {
  transform: scale(1.1);
}

/* Footer restore styles follow below */

/* Footer restore */
#global-footer {
  width: 100%;
  background: transparent;
  color: #888;
  padding: 0;
  padding-bottom: env(safe-area-inset-bottom);
  margin-top: 80px;
  border: none;
  display: flex;
  justify-content: center;
  align-items: center;
}

#global-footer .footer-inner {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  box-sizing: border-box;
  border: none;
  gap: 0;
  padding: 0 clamp(24px, 4vw, 32px);
}

#global-footer .footer-logo {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-width: 50px;
  margin-right: 0;
  flex: 0 0 auto;
}

#global-footer .footer-logo svg {
  width: 30px;
  height: 30px;
  max-width: 30px;
  max-height: 30px;
  fill: #888;
  opacity: 1;
  transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#global-footer .footer-logo svg:hover {
  opacity: 0.8;
  transform: scale(1.05);
}

#global-footer .footer-copyright {
  flex: 1 1 0;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-align: center;
  opacity: 1;
  color: #888;
  margin: 0 16px;
}

#global-footer .footer-socials {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: flex-end;
  margin-left: 0;
  flex: 0 0 auto;
}

#global-footer .footer-socials a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  color: #888;
  opacity: 0.8;
  text-decoration: none;
  transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#global-footer .footer-socials a:hover {
  opacity: 1;
  transform: scale(1.1);
}




/* Content offset for non-hero pages only */
body:not(.homepage):not(.home) main {
  padding-top: var(--header-expanded-height, 2.5rem);
}