/*
Theme Name: Nephilainc
Author: NephilaINC
Author URI: https://nephilainc.com/
Description: A custom lightweight classic WordPress theme with a sticky BLEND-inspired header, fullscreen overlay menu, and animated hero.
Version: 1.0.1
Requires at least: 6.6
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: nephilainc
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Tags: blog, portfolio, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
*/

:root {
  --ni-color-text: #1f2430;
  --ni-color-muted: #7a7f89;
  --ni-color-bg: #ffffff;
  --ni-color-accent: #19b5f1;
  --ni-color-accent-2: #eb4b3f;
  --ni-color-border: rgba(255,255,255,.12);
  --ni-color-dark: #06070b;
  --ni-color-dark-2: #0b0d14;
  --ni-color-overlay-bg: #ececec;
  --ni-container: 1240px;
  --ni-transition: .35s ease;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  color: var(--ni-color-text);
  background: var(--ni-color-bg);
  line-height: 1.6;
}
body.menu-open { overflow: hidden; }
img { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
a:hover { opacity: .92; }
button,
input,
textarea,
select { font: inherit; }
button { cursor: pointer; }

.site-container {
  width: min(100% - 48px, var(--ni-container));
  margin: 0 auto;
}

.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute !important;
  width: 1px;
  word-wrap: normal !important;
}

.screen-reader-text:focus {
  background-color: #f1f1f1;
  clip: auto !important;
  clip-path: none;
  color: #21759b;
  display: block;
  font-size: 14px;
  font-weight: 700;
  height: auto;
  left: 5px;
  line-height: normal;
  padding: 15px 23px 14px;
  text-decoration: none;
  top: 5px;
  width: auto;
  z-index: 100001;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 9999;
  padding: 22px 0;
  background: rgba(6, 7, 11, 0);
  border-bottom: 1px solid transparent;
  transition: background .55s cubic-bezier(.22,.61,.36,1), border-color .55s cubic-bezier(.22,.61,.36,1), box-shadow .55s cubic-bezier(.22,.61,.36,1), padding .55s cubic-bezier(.22,.61,.36,1), backdrop-filter .55s cubic-bezier(.22,.61,.36,1);
}

.site-header.sticky {
  background: rgba(6, 7, 11, .74);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: rgba(255,255,255,.10);
  box-shadow: 0 12px 34px rgba(0,0,0,.22);
  padding: 14px 0;
}

.site-header-inner,
.site-footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.site-branding {
  display: flex;
  align-items: center;
  transition: transform .55s cubic-bezier(.22,.61,.36,1), filter .55s cubic-bezier(.22,.61,.36,1), opacity .65s cubic-bezier(.22,.61,.36,1);
}

body.home .site-header .site-branding {
  opacity: 0;
  transform: translateY(-12px);
}

body.home .site-header .site-branding.hero-logo-reveal,
body.home .site-header.sticky .site-branding {
  opacity: 1;
  transform: translateY(0) scale(.985);
}

.site-header.sticky .site-branding {
  filter: saturate(1.02);
}

.site-logo img {
  max-height: 56px;
  width: auto;
}

.site-logo-text {
  display: inline-flex;
  align-items: center;
  gap: 0;
  line-height: 1;
  font-size: clamp(34px, 4vw, 56px);
  font-weight: 800;
  letter-spacing: -.04em;
  color: #f5f7fb;
  text-transform: uppercase;
}

.site-logo-text {
  perspective: 800px;
}

.site-logo-text .logo-letter {
  display: inline-block;
  color: currentColor;
  transition: color .6s ease, transform .9s cubic-bezier(.22,.61,.36,1), opacity .5s ease;
  transform-origin: center center;
  will-change: transform, color;
}


.site-logo-text-header .logo-letter.is-reverse-letter {
  color: var(--ni-color-accent-2);
  transform: scaleX(-1);
  margin-left: 0.06em;
}

.site-header.logo-flipped .site-logo-text-header .logo-letter.is-reverse-letter {
  color: currentColor;
  transform: none;
  margin-left: 0;
}

.site-logo-text-header .logo-letter.is-first-letter {
  color: currentColor;
}

.site-header.logo-flipped .site-logo-text-header .logo-letter.is-first-letter,

.site-logo-text-overlay .logo-letter.is-first-letter,
.site-logo-text-overlay .logo-letter.is-static-accent {
  color: var(--ni-color-accent-2);
}

.site-header-right {
  display: flex;
  align-items: center;
  gap: 28px;
}

.header-project-link {
  color: #eaf2f8;
  font-size: 16px;
  font-weight: 500;
  padding-bottom: 2px;
  border-bottom: 1px solid rgba(25,181,241,.45);
  transition: color .35s ease, border-color .35s ease, opacity .35s ease;
}

.menu-toggle,
.menu-close {
  border: 0;
  background: transparent;
  padding: 0;
}

.menu-toggle {
  position: relative;
  width: 54px;
  height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.menu-toggle span {
  position: absolute;
  width: 24px;
  height: 2px;
  background: #f3f3f3;
  transition: transform var(--ni-transition), opacity var(--ni-transition);
}

.menu-toggle span:first-child { transform: translateY(-6px); }
.menu-toggle span:last-child { transform: translateY(6px); }
.menu-toggle:focus-visible,
.menu-close:focus-visible,
.hero-controls button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--ni-color-accent);
  outline-offset: 3px;
}

.full-menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: var(--ni-color-overlay-bg);
  color: #262626;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity var(--ni-transition), visibility var(--ni-transition);
}

.full-menu-overlay.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.full-menu-shell {
  min-height: 100vh;
  padding-top: 28px;
  padding-bottom: 40px;
}

.full-menu-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.full-menu-branding .site-logo-text,
.full-menu-branding .site-title {
  color: #2f3137;
}

.menu-close {
  font-size: 52px;
  line-height: 1;
  color: #666;
}

.full-menu-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(240px, .55fr);
  gap: 68px;
  align-items: start;
  padding-top: 40px;
}

.full-menu-centerwrap {
  min-width: 0;
}

.overlay-menu,
.footer-menu,
.widget ul,
.overlay-widget-block ul,
.overlay-submenu-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.overlay-menu-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(260px, .9fr) minmax(240px, .85fr);
  gap: 56px;
  align-items: start;
}

.overlay-bg-letter {
  position: absolute;
  left: 92px;
  top: -26px;
  white-space: nowrap;
  font-family: Georgia, serif;
  font-size: clamp(180px, 20vw, 320px);
  line-height: .8;
  font-weight: 700;
  color: rgba(255,255,255,.52);
  letter-spacing: -.08em;
  opacity: 0;
  transform: translateY(18px);
  pointer-events: none;
  z-index: 0;
  transition: opacity .3s ease, transform .3s ease;
}


.overlay-bg-letter.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.overlay-navigation,
.overlay-submenu-panel {
  position: relative;
  z-index: 1;
}

.overlay-navigation {
  min-width: 0;
}

.overlay-menu {
  counter-reset: overlay-links;
}

.overlay-menu > li {
  counter-increment: overlay-links;
  margin-bottom: 10px;
}

.overlay-menu > li > a {
  position: relative;
  display: inline-flex;
  align-items: flex-start;
  gap: 14px;
  color: rgba(34,34,34,.24);
  font-family: Georgia, serif;
  font-size: clamp(40px, 5vw, 74px);
  line-height: .95;
  transition: color var(--ni-transition), transform var(--ni-transition);
}

.overlay-menu-number {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--ni-color-accent);
  margin-top: 8px;
  flex: 0 0 auto;
}

.overlay-menu-label {
  position: relative;
  display: inline-block;
}

.overlay-menu-indicator {
  position: relative;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border-radius: 50%;
  border: 2px solid var(--ni-color-accent);
  margin-left: 16px;
  margin-top: 8px;
  opacity: 0;
  transform: translateX(-6px) scale(.72);
  transition: opacity .25s ease, transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}

.overlay-menu-indicator::after {
  content: '';
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  background: rgba(25, 181, 241, .08);
}

.overlay-menu > li.menu-item-has-children > a:hover .overlay-menu-indicator,
.overlay-menu > li.menu-item-has-children > a.is-active .overlay-menu-indicator,
.overlay-menu > li.current-menu-active > a .overlay-menu-indicator {
  opacity: 1;
  transform: translateX(0) scale(1);
  box-shadow: 0 0 0 1px rgba(25, 181, 241, .08);
}

.overlay-menu > li.current-menu-active > a,
.overlay-menu > li > a:hover,
.overlay-menu > li > a.is-active {
  color: var(--ni-color-accent);
  transform: translateX(3px);
}

.overlay-submenu-panel {
  position: relative;
  min-height: 300px;
  padding-top: 18px;
}

.overlay-submenu-empty,
.overlay-submenu-group {
  display: none;
}

.overlay-submenu-empty.is-active,
.overlay-submenu-group.is-active {
  display: block;
}

.overlay-submenu-list li {
  margin-bottom: 18px;
}

.overlay-submenu-list a {
  color: rgba(34,34,34,.42);
  font-family: Georgia, serif;
  font-size: clamp(22px, 2.2vw, 34px);
  line-height: 1.15;
}

.overlay-submenu-list a:hover {
  color: var(--ni-color-accent);
}

.full-menu-right {
  padding-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 42px;
}

.brand-cube-panel {
  position: relative;
  width: 230px;
  min-height: 230px;
  padding: 18px;
  border-radius: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1200px;
  background: linear-gradient(180deg, rgba(255,255,255,0.10), rgba(255,255,255,0.04));
  border: 1px solid rgba(255,255,255,0.16);
  box-shadow: 0 28px 60px rgba(0,0,0,0.08);
  overflow: hidden;
}

.brand-cube-panel::before {
  content: '';
  position: absolute;
  width: 170px;
  height: 170px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(25,181,241,.15), transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -55%);
  pointer-events: none;
}

.brand-cube-wrap {
  width: 150px;
  height: 150px;
  position: relative;
  transform-style: preserve-3d;
  z-index: 2;
}

.brand-cube {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  transform: rotateX(-20deg) rotateY(-34deg);
  transition: transform .9s cubic-bezier(.22,.61,.36,1);
}

.brand-cube-face {
  position: absolute;
  width: 120px;
  height: 120px;
  left: 15px;
  top: 15px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: clamp(44px, 4vw, 60px);
  font-weight: 800;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.22);
  box-shadow: 0 18px 40px rgba(0,0,0,0.16), inset 0 1px 0 rgba(255,255,255,0.16);
  overflow: hidden;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.brand-cube-face::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(145deg, rgba(255,255,255,0.14), transparent 55%);
  pointer-events: none;
}

.brand-cube-face.front  { transform: translateZ(60px); background: linear-gradient(145deg, rgba(235,75,63,.96), rgba(170,44,34,.92)); }
.brand-cube-face.back   { transform: rotateY(180deg) translateZ(60px); background: linear-gradient(145deg, rgba(108,76,255,.96), rgba(72,39,180,.92)); }
.brand-cube-face.right  { transform: rotateY(90deg) translateZ(60px); background: linear-gradient(145deg, rgba(22,191,136,.96), rgba(8,117,92,.92)); }
.brand-cube-face.left   { transform: rotateY(-90deg) translateZ(60px); background: linear-gradient(145deg, rgba(0,166,214,.96), rgba(2,95,143,.92)); }
.brand-cube-face.top    { transform: rotateX(90deg) translateZ(60px); background: linear-gradient(145deg, rgba(245,161,47,.97), rgba(176,95,16,.92)); }
.brand-cube-face.bottom { transform: rotateX(-90deg) translateZ(60px); background: linear-gradient(145deg, rgba(232,84,109,.97), rgba(148,34,67,.92)); }

.brand-cube-face span {
  position: relative;
  z-index: 1;
}

.brand-cube-glow {
  position: absolute;
  left: 50%;
  bottom: 22px;
  width: 128px;
  height: 32px;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(25,181,241,.45), rgba(25,181,241,.10) 48%, transparent 72%);
  filter: blur(14px);
  pointer-events: none;
  z-index: 1;
}

.overlay-follow-block h2,
.overlay-follow-block .widget-title {
  margin: 0 0 14px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #555;
}

.follow-menu {
  margin: 0;
  padding: 0;
  list-style: none;
}

.follow-menu li {
  margin-bottom: 12px;
}

.follow-menu a {
  color: var(--ni-color-accent);
}

@media (max-width: 1080px) {

  .full-menu-inner {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .overlay-menu-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .overlay-bg-letter {
    left: 30px;
    top: -2px;
    font-size: clamp(100px, 24vw, 160px);
  }

  .overlay-submenu-panel {
    min-height: 0;
    padding-top: 0;
    padding-left: 38px;
  }
}

.hero-blend {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  padding-top: 110px;
  isolation: isolate;
  background:
    radial-gradient(circle at 50% 100%, rgba(75,82,150,.10), transparent 34%),
    radial-gradient(circle at 50% 80%, rgba(235,75,63,.03), transparent 30%),
    linear-gradient(180deg, #020307 0%, #06070b 55%, #0b0d14 100%);
}

#canvas {
  position: absolute;
  inset: 0;
}

.hero-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, calc(-50% + 18px));
  width: min(1000px, 82vw);
  text-align: center;
  z-index: 3;
  font-family: Georgia, serif;
  color: #f2f4f8;
  font-size: clamp(28px, 3.3vw, 58px);
  line-height: 1.15;
  font-weight: 500;
  pointer-events: none;
  text-shadow: 0 1px 0 rgba(0,0,0,.2), 0 18px 40px rgba(0,0,0,.18);
  opacity: 0;
  transition: opacity .9s cubic-bezier(.22,.61,.36,1), transform .9s cubic-bezier(.22,.61,.36,1);
}

.hero-text-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(720px, 76vw);
  height: min(320px, 34vw);
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(98,120,255,.12) 0%, rgba(98,120,255,.055) 38%, rgba(98,120,255,0) 72%);
  filter: blur(30px);
  opacity: 0;
  z-index: 2;
  pointer-events: none;
  transition: opacity 1.2s ease, transform 1.2s ease;
}

.hero-blend.is-revealed .hero-text-glow {
  opacity: 1;
  transform: translate(-50%, -52%);
}

.hero-blend.is-revealed .hero-text {
  opacity: 1;
  transform: translate(-50%, -50%);
}

.hero-text .accent { color: var(--ni-color-accent-2); }

.hero-controls {
  position: absolute;
  left: 50%;
  bottom: 28px;
  transform: translate(-50%, 18px);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  z-index: 4;
  opacity: 0;
  transition: opacity .8s cubic-bezier(.22,.61,.36,1), transform .8s cubic-bezier(.22,.61,.36,1);
}

.hero-blend.is-revealed .hero-controls {
  opacity: 1;
  transform: translate(-50%, 0);
}

.hero-controls button {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.14);
  background: linear-gradient(180deg, rgba(255,255,255,.12), rgba(255,255,255,.05));
  color: #f2f4f8;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 10px 28px rgba(0,0,0,.18);
  transition: background .35s ease, border-color .35s ease, box-shadow .35s ease, color .35s ease, transform .35s ease;
}

.hero-controls button.active,
.hero-controls button:hover {
  background: linear-gradient(180deg, rgba(235,75,63,.96), rgba(235,75,63,.82));
  color: #fff;
  border-color: rgba(255,255,255,.22);
  box-shadow: 0 12px 26px rgba(235,75,63,.26), 0 0 0 1px rgba(255,255,255,.08) inset;
  transform: translateY(-3px) scale(1.06);
}

.hero-scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 96px;
  transform: translate(-50%, 16px);
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  z-index: 4;
  opacity: 0;
  transition: opacity .85s cubic-bezier(.22,.61,.36,1), transform .85s cubic-bezier(.22,.61,.36,1);
}

.hero-blend.is-revealed .hero-scroll-cue {
  opacity: .9;
  transform: translate(-50%, 0);
}

.hero-scroll-label {
  font-size: 11px;
  line-height: 1;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: rgba(242,244,248,.68);
}

.hero-scroll-line {
  width: 1px;
  height: 42px;
  background: linear-gradient(180deg, rgba(255,255,255,.0), rgba(255,255,255,.8), rgba(255,255,255,.0));
  position: relative;
  overflow: hidden;
}

.hero-scroll-line::after {
  content: '';
  position: absolute;
  top: -40%;
  left: 50%;
  width: 100%;
  height: 40%;
  transform: translateX(-50%);
  background: linear-gradient(180deg, rgba(255,255,255,0), rgba(255,255,255,.95));
  animation: ni-scroll-line 1.8s ease-in-out infinite;
}

@keyframes ni-scroll-line {
  0% { top: -45%; opacity: 0; }
  20% { opacity: 1; }
  100% { top: 100%; opacity: 0; }
}

.site-main {
  padding: 60px 0;
}

.site-content,
.entry-content,
.entry-summary {
  overflow-wrap: break-word;
}

.front-page-content {
  max-width: 980px;
  margin: 0 auto;
}

.content-area {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 40px;
}

.content-area.no-sidebar { grid-template-columns: minmax(0, 1fr); }
.entry-title,
.page-title { margin: 0 0 16px; line-height: 1.2; }
.entry-meta { font-size: 14px; color: var(--ni-color-muted); margin-bottom: 16px; }
.entry-content > *:first-child,
.entry-summary > *:first-child { margin-top: 0; }
.post-card { padding-bottom: 28px; margin-bottom: 28px; border-bottom: 1px solid #ececec; }
.widget { margin-bottom: 30px; }
.widget-title { margin: 0 0 12px; font-size: 20px; }

.site-footer {
  border-top: 1px solid #ececec;
  margin-top: 40px;
  background: #fff;
}

.footer-widgets {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  padding: 35px 0 10px;
}

.site-info {
  padding: 18px 0 30px;
  color: var(--ni-color-muted);
  font-size: 14px;
}

.footer-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.alignwide,
.alignfull { max-width: 100%; }

.wp-block-image,
.wp-block-gallery,
.wp-block-cover,
.wp-block-group,
.wp-block-columns { margin-bottom: 1.5em; }

@media (max-width: 991px) {
  .site-container {
    width: min(100% - 32px, var(--ni-container));
  }

  .header-project-link { display: none; }

  .full-menu-inner,
  .content-area,
  .footer-widgets { grid-template-columns: 1fr; }

  .full-menu-inner { gap: 36px; }

  .site-footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 767px) {
  .site-header { padding: 18px 0; }
  .site-header.sticky { padding: 12px 0; }
  .site-logo img { max-height: 42px; }
  .menu-toggle { width: 46px; height: 46px; }
  .menu-close { font-size: 42px; }
  .hero-blend { padding-top: 90px; }
  .hero-text {
    width: min(92vw, 700px);
    font-size: clamp(22px, 7vw, 40px);
    line-height: 1.18;
  }
  .hero-controls {
    gap: 10px;
    bottom: 14px;
  }
  .hero-controls button {
    width: 40px;
    height: 40px;
    font-size: 14px;
  }
  .hero-scroll-cue {
    bottom: 74px;
  }
  .overlay-menu > li > a::before {
    font-size: 14px;
    margin-top: 5px;
  }
  .overlay-menu > li > a {
    font-size: clamp(30px, 10vw, 46px);
  }

  .overlay-menu-indicator {
    width: 30px;
    height: 30px;
    flex-basis: 30px;
    margin-left: 10px;
    margin-top: 5px;
  }

  .overlay-menu-indicator::after {
    inset: 6px;
  }
}


/* Overlay open motion */
.full-menu-top,
.full-menu-centerwrap,
.full-menu-right,
.overlay-menu > li,
.overlay-submenu-panel,
.overlay-contact-block,
.overlay-follow-block {
  opacity: 0;
  will-change: transform, opacity;
}

.full-menu-top {
  transform: translateY(-18px);
  transition: transform .55s cubic-bezier(.22,.61,.36,1), opacity .55s cubic-bezier(.22,.61,.36,1);
}

.full-menu-centerwrap {
  transform: translateX(-42px);
  transition: transform .7s cubic-bezier(.22,.61,.36,1), opacity .7s cubic-bezier(.22,.61,.36,1);
}

.full-menu-right {
  transform: translateX(42px);
  transition: transform .75s cubic-bezier(.22,.61,.36,1), opacity .75s cubic-bezier(.22,.61,.36,1);
}

.overlay-menu > li {
  transform: translateX(-26px);
  transition: transform .55s cubic-bezier(.22,.61,.36,1), opacity .55s cubic-bezier(.22,.61,.36,1);
}

.overlay-menu > li:nth-child(1) { transition-delay: .05s; }
.overlay-menu > li:nth-child(2) { transition-delay: .10s; }
.overlay-menu > li:nth-child(3) { transition-delay: .15s; }
.overlay-menu > li:nth-child(4) { transition-delay: .20s; }
.overlay-menu > li:nth-child(5) { transition-delay: .25s; }
.overlay-menu > li:nth-child(6) { transition-delay: .30s; }

.overlay-submenu-panel {
  transform: translateX(18px);
  transition: transform .6s cubic-bezier(.22,.61,.36,1), opacity .6s cubic-bezier(.22,.61,.36,1);
}

.overlay-contact-block,
.overlay-follow-block {
  transform: translateY(18px);
  transition: transform .65s cubic-bezier(.22,.61,.36,1), opacity .65s cubic-bezier(.22,.61,.36,1);
}

.full-menu-overlay.active .full-menu-top,
.full-menu-overlay.active .full-menu-centerwrap,
.full-menu-overlay.active .full-menu-right,
.full-menu-overlay.active .overlay-menu > li,
.full-menu-overlay.active .overlay-submenu-panel,
.full-menu-overlay.active .overlay-contact-block,
.full-menu-overlay.active .overlay-follow-block {
  opacity: 1;
  transform: none;
}

/* submenu symbols */
.overlay-submenu-list li {
  position: relative;
  padding-left: 22px;
}

.overlay-submenu-list li::before {
  content: '↗';
  position: absolute;
  left: 0;
  top: .22em;
  font-size: 13px;
  line-height: 1;
  color: var(--ni-color-accent);
  opacity: .72;
  transform: translateX(-2px);
  transition: transform .25s ease, opacity .25s ease;
}

.overlay-submenu-list li:hover::before {
  opacity: 1;
  transform: translateX(0);
}

.overlay-submenu-list a {
  display: inline-block;
  transition: color var(--ni-transition), transform var(--ni-transition);
}

.overlay-submenu-list a:hover {
  transform: translateX(3px);
}

/* overlay contact block like CTA pills */
.overlay-contact-block h2,
.overlay-follow-block h2,
.overlay-follow-block .widget-title {
  margin: 0 0 14px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #555;
}

.overlay-contact-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.overlay-contact-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(34,34,34,0.10);
  background: rgba(255,255,255,0.24);
  color: #2f3137;
  text-decoration: none;
  font-size: 13px;
  transition: all .3s ease;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.overlay-contact-link:hover {
  transform: translateY(-1px);
  border-color: rgba(25,181,241,0.22);
  background: rgba(25,181,241,0.10);
  color: #111827;
}

.overlay-contact-link svg {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
  opacity: .9;
}

.overlay-follow-block {
  margin-top: 8px;
}

.follow-menu li {
  margin-bottom: 10px;
}

.follow-menu a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0px 0;
  color: var(--ni-color-accent);
  border-bottom: 1px solid transparent;
  transition: color var(--ni-transition), border-color var(--ni-transition), transform var(--ni-transition);
}

.follow-menu a::before {
  content: '•';
  font-size: 14px;
  color: rgba(25,181,241,.72);
}

.follow-menu a:hover {
  transform: translateX(3px);
  border-bottom-color: rgba(25,181,241,.24);
}

@media (max-width: 1080px) {
  .overlay-contact-row {
    gap: 8px;
  }

  .overlay-contact-link {
    width: 100%;
    justify-content: flex-start;
  }
}


/* More premium overlay reveal */
.full-menu-overlay {
  transform: translateX(-72px);
  transition: opacity .38s ease, visibility .38s ease, transform .82s cubic-bezier(.22,.61,.36,1);
}

.full-menu-overlay::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255,255,255,.18) 0%, rgba(255,255,255,.05) 18%, rgba(255,255,255,0) 42%);
  opacity: 0;
  transform: translateX(-16%);
  transition: opacity .4s ease, transform .82s cubic-bezier(.22,.61,.36,1);
  pointer-events: none;
}

.full-menu-overlay.active {
  transform: translateX(0);
}

.full-menu-overlay.active::before {
  opacity: .42;
  transform: translateX(0);
}

.full-menu-top,
.full-menu-centerwrap,
.full-menu-right,
.overlay-menu > li,
.overlay-submenu-panel,
.overlay-contact-block,
.overlay-follow-block {
  opacity: 0;
  will-change: transform, opacity;
}

.full-menu-top {
  transform: translateY(-18px);
  transition: transform .48s cubic-bezier(.22,.61,.36,1), opacity .48s cubic-bezier(.22,.61,.36,1);
}

.full-menu-centerwrap {
  transform: translateX(-64px);
  transition: transform .86s cubic-bezier(.22,.61,.36,1), opacity .86s cubic-bezier(.22,.61,.36,1);
}

.full-menu-right {
  transform: translateX(64px);
  transition: transform .86s cubic-bezier(.22,.61,.36,1), opacity .86s cubic-bezier(.22,.61,.36,1);
}

.overlay-menu > li {
  transform: translateX(-38px);
  transition: transform .62s cubic-bezier(.22,.61,.36,1), opacity .62s cubic-bezier(.22,.61,.36,1);
}

.overlay-menu > li:nth-child(1) { transition-delay: .08s; }
.overlay-menu > li:nth-child(2) { transition-delay: .14s; }
.overlay-menu > li:nth-child(3) { transition-delay: .20s; }
.overlay-menu > li:nth-child(4) { transition-delay: .26s; }
.overlay-menu > li:nth-child(5) { transition-delay: .32s; }
.overlay-menu > li:nth-child(6) { transition-delay: .38s; }

.overlay-submenu-panel {
  transform: translateX(28px);
  transition: transform .72s cubic-bezier(.22,.61,.36,1), opacity .72s cubic-bezier(.22,.61,.36,1);
}

.overlay-contact-block {
  transform: translateY(14px);
  transition: transform .7s cubic-bezier(.22,.61,.36,1), opacity .7s cubic-bezier(.22,.61,.36,1);
  transition-delay: .22s;
}

.overlay-follow-block {
  transform: translateY(20px);
  transition: transform .74s cubic-bezier(.22,.61,.36,1), opacity .74s cubic-bezier(.22,.61,.36,1);
  transition-delay: .30s;
}

.full-menu-overlay.active .full-menu-top,
.full-menu-overlay.active .full-menu-centerwrap,
.full-menu-overlay.active .full-menu-right,
.full-menu-overlay.active .overlay-menu > li,
.full-menu-overlay.active .overlay-submenu-panel,
.full-menu-overlay.active .overlay-contact-block,
.full-menu-overlay.active .overlay-follow-block {
  opacity: 1;
  transform: none;
}

/* contact in overlay vertical area */
.full-menu-right {
  padding-top: 6px;
  gap: 28px;
}

.overlay-contact-block h2,
.overlay-follow-block h2,
.overlay-follow-block .widget-title {
  margin: 0 0 14px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #555;
}

.overlay-contact-vertical {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.overlay-contact-link {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 9px;
  padding: 11px 14px;
  border-radius: 16px;
  border: 1px solid rgba(34,34,34,0.08);
  background: rgba(255,255,255,0.26);
  color: #2f3137;
  text-decoration: none;
  font-size: 13px;
  transition: all .3s ease;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.overlay-contact-link:hover {
  transform: translateX(3px);
  box-shadow: 0 10px 24px rgba(0,0,0,.05);
}

.overlay-contact-link svg {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
  opacity: .95;
}

.overlay-contact-link--whatsapp {
  border-color: rgba(37,211,102,.22);
  background: rgba(37,211,102,.08);
  color: #159a49;
}
.overlay-contact-link--teams {
  border-color: rgba(75,87,222,.22);
  background: rgba(75,87,222,.08);
  color: #3f4fcb;
}
.overlay-contact-link--email {
  border-color: rgba(25,181,241,.22);
  background: rgba(25,181,241,.08);
  color: #0f8ec0;
}
.overlay-contact-link--call {
  border-color: rgba(235,75,63,.20);
  background: rgba(235,75,63,.08);
  color: #cf4134;
}

.overlay-follow-block {
  margin-top: 4px;
}

.follow-menu li {
  margin-bottom: 14px;
}

.follow-menu a {
  color: var(--ni-color-accent);
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  transition: transform var(--ni-transition), color var(--ni-transition);
}

.follow-menu a::before {
  content: '•';
  color: rgba(25,181,241,.78);
  font-size: 14px;
}

.follow-menu a:hover {
  transform: translateX(4px);
}

@media (max-width: 1080px) {
  .full-menu-right {
    gap: 18px;
  }
}


/* Final overlay spacing tweak */
.full-menu-right {
  padding-top: 6px;
  gap: 22px;
}

.brand-cube-panel {
  margin-bottom: 2px;
}

.overlay-follow-block {
  order: 2;
  margin-top: 0;
}

.overlay-contact-block {
  order: 3;
  margin-top: 4px;
  max-width: 280px;
}

.overlay-contact-vertical {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.overlay-contact-link {
  width: 100%;
  justify-content: flex-start;
  border-radius: 18px;
  padding: 12px 16px;
  box-shadow: none;
}

.overlay-follow-block h2,
.overlay-contact-block h2 {
  margin-bottom: 14px;
}

@media (max-width: 1080px) {
  .overlay-contact-block {
    max-width: 100%;
  }
}


/* Overlay contact placed before follow */
.full-menu-right {
  padding-top: 6px;
  gap: 24px;
}

.brand-cube-panel {
  margin-bottom: 4px;
}

.overlay-contact-block {
  order: 2;
  margin-top: 4px;
  max-width: 280px;
}

.overlay-follow-block {
  order: 3;
  margin-top: 2px;
}

.overlay-contact-block h2,
.overlay-follow-block h2,
.overlay-follow-block .widget-title {
  margin: 0 0 14px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #555;
}

.overlay-contact-vertical {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.overlay-contact-link {
  width: 100%;
  justify-content: flex-start;
  border-radius: 18px;
  padding: 12px 16px;
  box-shadow: none;
}

.overlay-contact-link svg {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
  opacity: .95;
}

.overlay-contact-link--whatsapp {
  border-color: rgba(37,211,102,.22);
  background: rgba(37,211,102,.08);
  color: #159a49;
}
.overlay-contact-link--teams {
  border-color: rgba(75,87,222,.22);
  background: rgba(75,87,222,.08);
  color: #3f4fcb;
}
.overlay-contact-link--email {
  border-color: rgba(25,181,241,.22);
  background: rgba(25,181,241,.08);
  color: #0f8ec0;
}
.overlay-contact-link--call {
  border-color: rgba(235,75,63,.20);
  background: rgba(235,75,63,.08);
  color: #cf4134;
}

@media (max-width: 1080px) {
  .overlay-contact-block {
    max-width: 100%;
  }
}


/* Overlay contact cleanup */
.overlay-contact-block + .overlay-contact-block {
  display: none !important;
}

.overlay-contact-block {
  display: block;
  max-width: 280px;
}

.overlay-follow-block {
  margin-top: 8px;
}


/* Final overlay order and spacing */
.full-menu-right {
  padding-top: 6px;
  gap: 18px;
}

.brand-cube-panel {
  margin-bottom: 4px;
}

.overlay-contact-block {
  order: 2;
  margin-top: 0;
  margin-bottom: 0;
  max-width: 280px;
}

.overlay-follow-block {
  order: 3;
  margin-top: 2px;
}

.overlay-contact-block h2,
.overlay-follow-block h2,
.overlay-follow-block .widget-title {
  margin: 0 0 12px;
}

.overlay-contact-vertical {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.overlay-contact-link {
  width: 100%;
  justify-content: flex-start;
  border-radius: 16px;
  padding: 11px 15px;
}

.follow-menu {
  margin-top: 0;
}

.follow-menu li {
  margin-bottom: 12px;
}

@media (max-width: 1080px) {
  .overlay-contact-block {
    max-width: 100%;
  }
}


/* Overlay right-column layout adjust */
.full-menu-right {
  padding-top: 0;
  gap: 22px;
}

.brand-cube-panel {
  margin-bottom: 0;
  align-self: flex-start;
}

.overlay-contact-block {
  order: 2;
  margin-top: -4px;
  margin-left: -300px;
  max-width: 255px;
  align-self: flex-start;
}

.overlay-follow-block {
  order: 3;
  margin-top: -188px;
  margin-left: 0;
  align-self: flex-start;
}

.overlay-contact-block h2,
.overlay-follow-block h2,
.overlay-follow-block .widget-title {
  margin: 0 0 12px;
}

.overlay-contact-vertical {
  gap: 10px;
}

.follow-menu li {
  margin-bottom: 14px;
}

@media (max-width: 1200px) {
  .overlay-contact-block {
    margin-left: -240px;
    max-width: 235px;
  }

  .overlay-follow-block {
    margin-top: -176px;
  }
}

@media (max-width: 1080px) {
  .overlay-contact-block,
  .overlay-follow-block {
    margin-left: 0;
    margin-top: 0;
    max-width: 100%;
  }
}
