:root {
  --fghf-ink: #072f38;
  --fghf-deep: #063943;
  --fghf-teal: #0d5d68;
  --fghf-aqua: #bfe8e2;
  --fghf-lime: #b9df63;
  --fghf-white: #fffdf7;
  --fghf-muted: #b9cecc;
  --fghf-header-surface: #15454e;
}

#masthead,
#colophon,
.fgn-announcement,
.fgn-header {
  display: none !important;
}

body:not(.home) #content {
  padding-top: 122px !important;
}

body.fgx-menu-open {
  overflow: hidden !important;
}

.fgx-shell {
  position: fixed !important;
  z-index: 99990;
  inset: 0 0 auto;
  width: 100%;
  transform: none !important;
  font-family: "Onest", Arial, sans-serif;
}

body.admin-bar .fgx-shell {
  top: 32px;
}

.fgx-strip {
  height: 34px;
  display: grid;
  place-items: center;
  padding: 0 1rem;
  background: var(--fghf-lime);
  color: var(--fghf-ink);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.17em;
  line-height: 1.2;
  text-align: center;
  text-transform: uppercase;
}

.fgx-bar {
  position: relative;
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(18px, 3vw, 48px);
  pointer-events: none;
  background: transparent;
  transition: height 0.28s ease, background-color 0.28s ease, box-shadow 0.28s ease, backdrop-filter 0.28s ease;
}

.fgx-shell.is-scrolled .fgx-bar,
body:not(.home) .fgx-bar {
  height: 76px;
  background: rgba(6, 57, 67, 0.94);
  box-shadow: 0 12px 34px rgba(3, 35, 42, 0.18);
  backdrop-filter: blur(14px);
}

.fgx-logo,
.fgx-header-tools,
.fgx-desktop-nav {
  pointer-events: auto;
}

.fgx-logo {
  display: block;
  width: clamp(108px, 10vw, 154px);
  filter: drop-shadow(0 7px 14px rgba(0, 0, 0, 0.2));
}

.fgx-logo img {
  display: block;
  width: 100%;
  height: auto;
}

.fgx-desktop-nav {
  position: absolute;
  left: 50%;
  display: flex;
  align-items: center;
  gap: clamp(24px, 3vw, 48px);
  transform: translateX(-50%);
}

.fgx-desktop-nav a {
  position: relative;
  color: var(--fghf-white);
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
  transition: color 0.2s ease;
}

.fgx-desktop-nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -7px;
  left: 0;
  height: 2px;
  background: var(--fghf-lime);
  transform: scaleX(0);
  transition: transform 0.2s ease;
}

.fgx-desktop-nav a:hover,
.fgx-desktop-nav a:focus-visible {
  color: var(--fghf-lime);
}

.fgx-desktop-nav a:hover::after,
.fgx-desktop-nav a:focus-visible::after {
  transform: scaleX(1);
}

.fgx-header-tools,
.fgx-header-actions {
  display: flex;
  align-items: center;
}

.fgx-header-tools {
  gap: 14px;
}

.fgx-header-actions {
  gap: 12px;
}

.fgx-header-actions a,
.fgx-search-toggle {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(255, 253, 247, 0.42);
  border-radius: 50%;
  background: transparent;
  color: var(--fghf-white);
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.fgx-header-actions a:hover,
.fgx-header-actions a:focus-visible,
.fgx-search-toggle:hover,
.fgx-search-toggle:focus-visible,
.fgx-search-toggle[aria-expanded="true"] {
  border-color: var(--fghf-lime);
  background: var(--fghf-lime);
  color: var(--fghf-ink);
  transform: translateY(-2px);
}

.fgx-header-actions a:focus-visible,
.fgx-search-toggle:focus-visible {
  outline: 2px solid var(--fghf-white);
  outline-offset: 3px;
}

.fgx-search-toggle[aria-expanded="false"]:focus {
  border-color: rgba(255, 253, 247, 0.42) !important;
  background: transparent !important;
  color: var(--fghf-white) !important;
  transform: none !important;
}

.fgx-search-toggle[aria-expanded="false"]:focus:not(:focus-visible) {
  outline: none !important;
}

.fgx-header-actions svg {
  width: 21px;
  height: 21px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.fgx-search-panel {
  position: absolute;
  top: 100%;
  right: 0;
  left: 0;
  padding: 20px clamp(18px, 3vw, 48px);
  visibility: hidden;
  pointer-events: none;
  opacity: 0;
  background: var(--fghf-header-surface);
  box-shadow: 0 16px 34px rgba(3, 35, 42, 0.22);
  transform: translateY(-12px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s linear 0.2s;
}

.fgx-search-panel.is-open {
  visibility: visible;
  pointer-events: auto;
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0s;
}

.fgx-search-form {
  max-width: 760px;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 auto;
}

.fgx-search-field {
  min-width: 0;
  height: 54px;
  flex: 1 1 auto;
  padding: 0 20px;
  border: 2px solid rgba(255, 253, 247, 0.45);
  border-radius: 999px;
  outline: none;
  background: var(--fghf-white);
  color: var(--fghf-ink);
  font: 700 16px/1 "Onest", Arial, sans-serif;
}

.fgx-search-field:focus {
  border-color: var(--fghf-lime);
  box-shadow: 0 0 0 3px rgba(185, 223, 99, 0.3);
}

.fgx-search-submit {
  height: 54px;
  flex: 0 0 auto;
  padding: 0 25px;
  border: 2px solid var(--fghf-lime);
  border-radius: 999px;
  background: var(--fghf-lime);
  color: var(--fghf-ink);
  font: 900 12px/1 "Onest", Arial, sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.fgx-search-submit:hover,
.fgx-search-submit:focus-visible {
  outline: 2px solid var(--fghf-white);
  outline-offset: 2px;
  background: var(--fghf-deep);
  color: var(--fghf-white);
}

.fgx-toggle {
  width: 54px;
  height: 54px;
  border: 0;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: var(--fghf-lime);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  transition: background-color 0.25s ease, transform 0.25s ease;
}

.fgx-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--fghf-ink);
  transition: background-color 0.25s ease, transform 0.4s cubic-bezier(0.65, 0, 0.35, 1);
}

.fgx-toggle:hover,
.fgx-toggle:active,
.fgx-toggle:focus-visible,
.fgx-toggle[aria-expanded="true"] {
  background: var(--fghf-deep) !important;
  outline: none !important;
  transform: scale(1.06);
}

.fgx-toggle:hover span,
.fgx-toggle:active span,
.fgx-toggle:focus-visible span,
.fgx-toggle[aria-expanded="true"] span {
  background: var(--fghf-white) !important;
}

.fgx-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(4px) rotate(45deg) scaleX(0.8);
}

.fgx-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-4px) rotate(-45deg) scaleX(0.8);
}

.fgx-toggle[aria-expanded="false"]:focus:not(:focus-visible) {
  background: var(--fghf-lime) !important;
  transform: none !important;
}

.fgx-toggle[aria-expanded="false"]:focus:not(:focus-visible) span {
  background: var(--fghf-ink) !important;
}

.fgx-toggle:focus-visible {
  box-shadow: 0 0 0 3px var(--fghf-white), 0 0 0 6px var(--fghf-deep), 0 10px 30px rgba(0, 0, 0, 0.2) !important;
}

.fgx-menu {
  position: fixed;
  z-index: 99980;
  inset: 0;
  visibility: hidden;
  pointer-events: none;
  font-family: "Onest", Arial, sans-serif;
  transition: visibility 0s linear 0.98s;
}

body.admin-bar .fgx-menu {
  top: 32px;
}

.fgx-menu.is-open {
  visibility: visible;
  pointer-events: auto;
  transition-delay: 0s;
}

.fgx-menu.is-closing-immediately {
  visibility: hidden !important;
  pointer-events: none !important;
  transition: none !important;
}

.fgx-layer {
  position: absolute;
  inset: 0;
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.72s cubic-bezier(0.65, 0, 0.35, 1);
}

.fgx-layer:nth-child(1) { background: var(--fghf-lime); transition-delay: 0.24s; }
.fgx-layer:nth-child(2) { background: var(--fghf-aqua); transition-delay: 0.16s; }
.fgx-layer:nth-child(3) { background: var(--fghf-teal); transition-delay: 0.08s; }
.fgx-menu.is-open .fgx-layer { transform: scaleY(1); }
.fgx-menu.is-open .fgx-layer:nth-child(1) { transition-delay: 0s; }
.fgx-menu.is-open .fgx-layer:nth-child(2) { transition-delay: 0.08s; }
.fgx-menu.is-open .fgx-layer:nth-child(3) { transition-delay: 0.16s; }

.fgx-panel {
  position: absolute;
  inset: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding: clamp(150px, 15vh, 190px) clamp(32px, 8vw, 130px) 50px;
  background: radial-gradient(circle at 87% 12%, rgba(191, 232, 226, 0.14), transparent 27%), var(--fghf-deep);
  clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
  scrollbar-width: none;
  transition: clip-path 0.76s cubic-bezier(0.65, 0, 0.35, 1);
}

.fgx-panel::-webkit-scrollbar { display: none; }
.fgx-panel:focus { outline: none; }
.fgx-menu.is-open .fgx-panel {
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
  transition-delay: 0.24s;
}

.fgx-grid {
  max-width: 1440px;
  margin: auto;
  display: grid;
  grid-template-columns: minmax(170px, 0.8fr) minmax(0, 2.2fr);
  gap: clamp(60px, 9vw, 150px);
}

.fgx-side,
.fgx-shop,
.fgx-explore,
.fgx-support {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.fgx-links {
  display: grid;
  grid-template-columns: minmax(350px, 1.7fr) minmax(190px, 0.8fr);
  gap: clamp(45px, 7vw, 110px);
}

.fgx-label {
  margin: 0 0 20px;
  color: var(--fghf-lime);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.fgx-menu a {
  width: max-content;
  max-width: 100%;
  color: var(--fghf-white);
  text-decoration: none;
  transition: color 0.18s ease, transform 0.18s ease;
}

.fgx-menu a:hover,
.fgx-menu a:focus-visible {
  color: var(--fghf-lime);
  transform: translateX(4px);
}

.fgx-support a {
  display: block;
  margin: 0 0 11px;
  font-size: 19px;
  font-weight: 750;
  line-height: 1.35;
}

.fgx-shop a {
  display: block;
  margin: 0 0 3px;
  font-size: clamp(44px, 5.3vw, 84px);
  font-weight: 900;
  letter-spacing: -0.065em;
  line-height: 0.95;
}

.fgx-explore a {
  display: block;
  margin: 0 0 10px;
  color: var(--fghf-aqua);
  font-size: clamp(20px, 2vw, 30px);
  font-weight: 750;
  line-height: 1.1;
}

.fgx-mask {
  width: calc(100% + 12px);
  margin-inline: -6px;
  padding-inline: 6px;
  overflow: hidden;
}

.fgx-reveal {
  display: block;
  transform: translateY(112%);
  opacity: 0;
  transition: transform 0.65s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.35s ease;
}

.fgx-menu.is-open .fgx-reveal {
  transform: translateY(0);
  opacity: 1;
  transition-delay: calc(0.58s + var(--fgx-i, 0) * 45ms);
}

.fgn-wrap {
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
}

.fgn-footer {
  position: relative;
  z-index: 2;
  padding: 70px 0 24px;
  background: #062e36;
  color: var(--fghf-muted);
  font-family: Arial, Helvetica, sans-serif;
}

body.home .fgn-footer:not(.fgx-global-footer) {
  display: none !important;
}

.fgn-footer a { text-decoration: none; }

.fgn-footer-grid {
  display: grid !important;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 45px;
}

.fgn-footer-brand p {
  max-width: 300px;
  margin: 18px 0 0;
  color: var(--fghf-muted) !important;
  font-family: Arial, Helvetica, sans-serif !important;
  font-size: 17px !important;
  line-height: 1.65 !important;
}

.fgn-wordmark-light,
.fgn-wordmark-light .elementor-heading-title {
  color: #fff !important;
  font-family: Arial, Helvetica, sans-serif !important;
  font-size: 38px !important;
  font-weight: 900 !important;
  letter-spacing: -2px !important;
  line-height: 1 !important;
}

.fgn-footer-column {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px !important;
}

.fgn-footer-title,
.fgn-footer-title .elementor-heading-title {
  margin: 0 0 12px !important;
  color: var(--fghf-lime) !important;
  font-family: Arial, Helvetica, sans-serif !important;
  font-size: 13px !important;
  font-weight: 900 !important;
  letter-spacing: 1.5px !important;
  line-height: 1.2 !important;
  text-transform: uppercase;
}

.fgn-footer-link {
  width: fit-content !important;
  padding: 0 !important;
}

a.fgn-footer-link,
.fgn-footer-link .elementor-button {
  position: relative;
  padding: 7px 0 5px !important;
  border-bottom: 1px solid rgba(185, 206, 204, 0.22) !important;
  color: var(--fghf-muted) !important;
  font-family: Arial, Helvetica, sans-serif !important;
  font-size: 16px !important;
  line-height: 1.35 !important;
  transition: color 0.2s ease;
}

.fgn-footer-link .elementor-button {
  min-height: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  justify-content: flex-start !important;
  text-align: left !important;
  text-transform: none !important;
}

.fgn-footer-link .elementor-button:hover,
.fgn-footer-link .elementor-button:focus-visible {
  border-bottom-color: var(--fghf-lime) !important;
  background: transparent !important;
  box-shadow: none !important;
}

a.fgn-footer-link::after,
.fgn-footer-link .elementor-button::after {
  content: "→";
  display: inline-block;
  margin-left: 8px;
  color: var(--fghf-lime);
  opacity: 0;
  transform: translateX(-5px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

a.fgn-footer-link:hover::after,
a.fgn-footer-link:focus-visible::after,
.fgn-footer-link .elementor-button:hover::after,
.fgn-footer-link .elementor-button:focus-visible::after {
  opacity: 1;
  transform: translateX(0);
}

.fgn-footer .elementor-element-f021769 {
  display: none !important;
}

.fgn-footer-link:hover,
.fgn-footer-link:focus-visible,
.fgn-footer-link .elementor-button:hover,
.fgn-footer-link .elementor-button:focus-visible,
.fgx-legal-links a:hover,
.fgx-legal-links a:focus-visible { color: var(--fghf-lime) !important; }

.fgn-footer-bottom {
  margin-top: 50px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  gap: 20px;
  color: var(--fghf-muted);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 13px;
}

.fgn-footer-bottom .elementor-heading-title,
.fgn-footer-bottom p {
  margin: 0;
  color: var(--fghf-muted) !important;
  font-family: Arial, Helvetica, sans-serif !important;
  font-size: 13px !important;
}

.fgx-legal-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
}

.fgx-legal-links a { color: var(--fghf-muted) !important; }
.fgx-global-credit { margin-top: 28px; text-align: center; }
.fgx-global-credit a {
  color: var(--fghf-muted);
  font: 600 12px/1.3 "Onest", Arial, sans-serif;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  transition: color 0.2s ease;
}
.fgx-global-credit a:hover,
.fgx-global-credit a:focus-visible { color: var(--fghf-lime); }

.fgn-footer .e-heading-base:has(> a.e-heading-link-base[href*="stillgrey.dev"]) {
  width: 100%;
  margin: 30px 0 8px;
  text-align: center;
}

.fgn-footer .e-heading-link-base[href*="stillgrey.dev"] {
  color: var(--fghf-muted) !important;
  font: 600 12px/1.3 "Onest", Arial, sans-serif !important;
  letter-spacing: 1.5px !important;
  text-transform: uppercase;
  transition: color 0.2s ease;
}

.fgn-footer .e-heading-link-base[href*="stillgrey.dev"]:hover,
.fgn-footer .e-heading-link-base[href*="stillgrey.dev"]:focus-visible {
  color: var(--fghf-lime) !important;
}

@media (min-width: 2560px) {
  .fgx-strip {
    height: 44px;
    font-size: 15px;
  }

  .fgx-bar {
    height: 112px;
    padding-inline: 64px;
  }

  .fgx-shell.is-scrolled .fgx-bar,
  body:not(.home) .fgx-bar { height: 96px; }

  .fgx-logo { width: 200px; }
  .fgx-desktop-nav { gap: 58px; }

  .fgx-desktop-nav a {
    font-size: 18px;
    letter-spacing: 0.09em;
  }

  .fgx-header-actions a,
  .fgx-search-toggle {
    width: 54px;
    height: 54px;
  }

  .fgx-header-actions svg {
    width: 27px;
    height: 27px;
  }

  .fgx-search-form { max-width: 980px; }
  .fgx-search-field { height: 68px; padding-inline: 26px; font-size: 20px; }
  .fgx-search-submit { height: 68px; padding-inline: 34px; font-size: 15px; }

  .fgx-toggle {
    width: 66px;
    height: 66px;
  }

  .fgx-toggle span { width: 30px; }

  .fgx-grid {
    max-width: 1840px;
    gap: 170px;
  }

  .fgx-label {
    font-size: 15px;
    margin-bottom: 26px;
  }

  .fgx-support a { font-size: 24px; }
  .fgx-shop a { font-size: clamp(72px, 4.1vw, 108px); }
  .fgx-explore a { font-size: 36px; }

  .fgn-wrap {
    width: min(1840px, calc(100% - 12vw));
    max-width: none;
  }

  .fgn-footer { padding: 96px 0 34px; }

  .fgn-footer-grid {
    gap: 72px;
  }

  .fgn-footer-brand p {
    max-width: 440px;
    font-size: 22px !important;
  }

  .fgn-wordmark-light,
  .fgn-wordmark-light .elementor-heading-title { font-size: 52px !important; }

  .fgn-footer-title,
  .fgn-footer-title .elementor-heading-title { font-size: 17px !important; }

  .fgn-footer-link,
  .fgn-footer-link .elementor-button {
    font-size: 20px !important;
  }

  a.fgn-footer-link,
  .fgn-footer-link .elementor-button { padding-block: 8px 6px !important; }

  .fgn-footer-bottom {
    margin-top: 70px;
    padding-top: 30px;
    font-size: 17px;
  }

  .fgn-footer-bottom .elementor-heading-title,
  .fgn-footer-bottom p { font-size: 17px !important; }

  .fgx-global-credit a,
  .fgn-footer .e-heading-link-base[href*="stillgrey.dev"] { font-size: 15px !important; }
}

@media (max-width: 900px) {
  .fgx-desktop-nav { display: none; }
  .fgx-grid,
  .fgx-links { grid-template-columns: 1fr; }
  .fgx-grid { gap: 34px; }
  .fgx-links { gap: 36px; }
  .fgx-panel { padding: 140px 25px 35px; }
  .fgx-side { order: 2; }
  .fgx-support { width: 100%; }
  .fgx-support .fgx-label { margin-bottom: 8px; }
  .fgx-support a {
    margin-bottom: 12px;
    font-size: 18px;
    line-height: 1.35;
  }
  .fgx-support a:hover,
  .fgx-support a:focus-visible { transform: none; }
  .fgx-explore { display: flex; }
  .fgx-shop a { font-size: clamp(43px, 12vw, 68px); }
  .fgn-footer-grid { grid-template-columns: 2fr 1fr 1fr; }
}

@media (max-width: 782px) {
  body.admin-bar .fgx-shell,
  body.admin-bar .fgx-menu { top: 46px; }
}

@media (max-width: 600px) {
  body:not(.home) #content { padding-top: 110px !important; }
  .fgx-strip { font-size: 9px; letter-spacing: 0.12em; }
  .fgx-bar { height: 76px; padding: 0 16px; }
  .fgx-logo { width: 104px; }
  .fgx-header-tools { gap: 9px; }
  .fgx-header-actions { gap: 8px; }
  .fgx-header-actions svg { width: 19px; height: 19px; }
  .fgx-search-panel { padding: 14px 16px 18px; }
  .fgx-search-form { gap: 8px; }
  .fgx-search-field { height: 48px; padding: 0 16px; font-size: 15px; }
  .fgx-search-submit { width: 48px; height: 48px; padding: 0; font-size: 0; }
  .fgx-search-submit::after { content: "\2192"; font-size: 22px; line-height: 1; }
  .fgx-toggle { width: 48px; height: 48px; }
  .fgx-panel { padding: 128px 30px 40px; }
  .fgn-wrap { width: calc(100% - 36px); }
  .fgn-footer { padding-top: 52px; }
  .fgn-footer-grid { grid-template-columns: 1fr 1fr; gap: 30px 24px; }
  .fgn-footer-brand { grid-column: 1 / -1; }
  .fgn-footer-bottom { flex-direction: column; gap: 8px; }
  .fgx-legal-links { justify-content: flex-start; }
}

@media (max-width: 360px) {
  .fgx-bar { padding-right: 10px; padding-left: 10px; }
  .fgx-logo { width: 78px; }
  .fgx-header-tools { gap: 5px; }
  .fgx-header-actions { gap: 4px; }
  .fgx-toggle { width: 44px; height: 44px; }
}

@media (prefers-reduced-motion: reduce) {
  .fgx-layer,
  .fgx-panel,
  .fgx-reveal,
  .fgx-toggle span,
  .fgx-header-actions a,
  .fgx-search-toggle,
  .fgx-search-panel {
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
    transform: none !important;
  }
}
