body, html {
  margin: 0;
  padding: 0;
  height: 100%;
  overflow: hidden;
  font-family: 'Lato', sans-serif;
}

.video-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
  background-color: black;
}

.video-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
  background: url('/images/h.jpg') no-repeat center center;
  background-size: cover;
}

@keyframes flicker-fast {
  0% { opacity: 0; }
  10% { opacity: 1; }
  20% { opacity: 0.2; }
  30% { opacity: 1; }
  40% { opacity: 0.5; }
  50% { opacity: 1; }
  60% { opacity: 0.3; }
  70% { opacity: 1; }
  80% { opacity: 0.6; }
  90% { opacity: 1; }
  100% { opacity: 1; }
}

.layer3 a {
  opacity: 0;
  animation: flicker-fast 0.6s ease-in-out 1s forwards;
}

.layer3 a:nth-child(1) { animation-delay: 1s; }
.layer3 a:nth-child(2) { animation-delay: 1.2s; }
.layer3 a:nth-child(3) { animation-delay: 1.4s; }

.overlay {
  position: fixed;
  top:0; left:0;
  width:100%; height:100%;
  background: rgba(0,0,0,0.4);
  z-index: 0;
}

.content {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: white;
  text-align: center;
  padding: 40px 20px 0 20px;
}

.content h1 {
  font-size: 3em;
  margin: 0.1em 0;
}

.content p {
  font-size: 1.5em;
  max-width: 800px;
  letter-spacing: 4px;
  font-family: 'Lato', sans-serif;
 }

.content p a {
  color: white;
  text-decoration: none;
  transition: color 0.3s, transform 0.3s;
}

.content p a:hover {
  color: #a09e9e;
  transform: scale(1.05);
}

@media (max-width: 768px) {
  .content h1 { font-size: 2em; }
  .content p { font-size: 1.2em; }
}

.sound-toggle {
  position: fixed;
  top: 45px;
  right: 40px;
  width: 50px;
  height: 50px;
  background: rgba(255,255,255,0.2);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  z-index: 2;
  transition: transform 0.2s, background 0.3s;
}

.sound-toggle:hover {
  transform: scale(1.2);
  background: rgba(255,255,255,0.4);
}

.sound-toggle svg {
  width: 24px;
  height: 24px;
  fill: white;
  transition: fill 0.3s;
}

.muted svg {
  fill: #f0e8e8;
}

.social-icons {
  position: fixed;
  bottom: 37px;
  left: 35px;
  display: flex;
  flex-direction: row;
  gap: 20px;
  z-index: 2;
  padding: 0;
  margin: 0;
  list-style: none;
}

.social-icons li a {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: white;
  font-size: 24px;
  transition: transform 0.2s, color 0.2s;
}

.social-icons li a:hover {
  transform: scale(1.2);
  color: #bbbaba;
}

@media(max-width:768px){
  .social-icons {
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
  }
}

.top-logo {
  position: fixed;
  top: 20px;
  left: 20px;
  z-index: 3;
  list-style: none;
  margin: 0;
  padding: 0;
}

.top-logo li a img {
  width: 100px;
  height: auto;
  display: block;
  transition: transform 0.3s;
}

.top-logo li a img:hover {
  transform: scale(1.1);
}

.layer3 {
  margin-top: 5px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}

.layer3 a {
  color: white;
  text-decoration: none;
  font-size: 1.2em;
  transition: color 0.2s, transform 0.2s;
}

.layer3 a:hover {
  color: #cbcbcb;
  transform: scale(1.1);
}

@media(max-width:768px){
  .layer3 a {
    font-size: 1em;
  }
}

@media (max-width: 400px) {
  .content h1 {
    font-size: 1em;
    letter-spacing: 4px;
  }

  .layer3 {
    gap: 2px;
  }

  .content p {
    font-size: 0.8em;
    letter-spacing: 2px;
  }

  .layer3 a {
    font-size: 0.5em;
  }

  .social-icons {
    bottom: 20px;
    gap: 15px;
    left: 25px;
    transform: none;
  }

  .social-icons li a {
    font-size: 14px;
  }

  .top-logo li a img {
    width: 80px;
  }

  .sound-toggle {
    top: 50px;
    width: 35px;
    height: 35px;
  }
}

@media (max-width: 600px) and (orientation: landscape) {
  .content h1 { font-size: 1.2em; letter-spacing: 3px; }
  .content p { font-size: 0.6em; letter-spacing: 2px; }
  .layer3 a { font-size: 0.6em; }
  .layer3 { gap: 2px; }
  .social-icons { bottom: 15px; left: 100px; gap: 13px; }
  .social-icons li a { font-size: 16px; }
  .top-logo li a img { width: 75px; }
  .sound-toggle { top: 40px; width: 32px; height: 32px; }
}

.seo-text {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}



@keyframes terminal-flicker {
  0% { opacity: 0; transform: translateY(10px); }
  5% { opacity: 0.8; }
  10% { opacity: 0.2; }
  15% { opacity: 0.9; }
  20% { opacity: 0.3; }
  30% { opacity: 1; }
  40% { opacity: 0.4; }
  50% { opacity: 0.9; }
  60% { opacity: 0.2; }
  75% { opacity: 1; transform: translateY(0); }
  100% { opacity: 1; transform: translateY(0); }
}

@keyframes subtle-scanline {
  0%, 100% { opacity: 0.75; text-shadow: 0 0 1px rgba(255,255,255,0.1); }
  33% { opacity: 0.65; }
  66% { opacity: 0.82; text-shadow: 0 0 2px rgba(255,255,255,0.2); }
}

html.inverted-effect {
  filter: invert(1) grayscale(1);
  transition: filter 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 10vw;
  height: 100%;
  background: #000;
  z-index: -3;
  opacity: 0;
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

html.inverted-effect body::before {
  opacity: 1;
}

#bgVideo {
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.plus-wrapper {
  position: fixed;
  bottom: 37px;
  left: 35px;
  width: 32px;
  height: 32px;
  z-index: 10;
}

.plus-trigger {
  font-family: 'Roboto', sans-serif;
  font-size: 32px;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), color 0.3s ease;
  user-select: none;
  line-height: 1;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  bottom: 0;
  left: 0;
  z-index: 11;
}

.plus-trigger:hover {
  color: #ffffff;
  transform: scale(1.1);
}

.plus-trigger.active {
  transform: rotate(45deg);
  color: #ffffff;
}

.plus-callout {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 260px;
  height: 100px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 9;
}

.plus-wrapper.active .plus-callout {
  opacity: 1;
  pointer-events: auto;
}

.plus-svg {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 260px;
  height: 100px;
  overflow: visible;
}

.plus-path {
  stroke-dasharray: 280;
  stroke-dashoffset: 280;
  transition: stroke-dashoffset 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.plus-wrapper.active .plus-path {
  stroke-dashoffset: 0;
}

.plus-links {
  position: absolute;
  left: 40px;
  top: 3px;
  display: flex;
  gap: 12px;
  white-space: nowrap;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 1px;
}

.plus-link {
  display: inline-block;
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  opacity: 0;
  transform: translateY(10px);
  transition: color 0.2s ease, transform 0.2s ease;
}

.plus-link:hover {
  color: #ffffff;
  transform: scale(1.1);
}

.plus-slash {
  color: rgba(255, 255, 255, 0.15);
  user-select: none;
  opacity: 0;
  transition: opacity 0.4s ease 0.4s;
}

.plus-wrapper.active .plus-link {
  animation: terminal-flicker 0.45s ease-out forwards, subtle-scanline 6s infinite ease-in-out 1s;
}

.plus-wrapper.active .plus-slash {
  opacity: 1;
}

.plus-wrapper.active .plus-link:nth-of-type(1) { animation-delay: 0.15s; }
.plus-wrapper.active .plus-link:nth-of-type(2) { animation-delay: 0.35s; }
.plus-wrapper.active .plus-link:nth-of-type(3) { animation-delay: 0.05s; }
.plus-wrapper.active .plus-link:nth-of-type(4) { animation-delay: 0.25s; }
.plus-wrapper.active .plus-link:nth-of-type(5) { animation-delay: 0.1s; }

.glass-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(8, 8, 8, 0.9);
  backdrop-filter: saturate(150%);
  -webkit-backdrop-filter: saturate(150%);
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  overflow-y: auto;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 60px 20px;
  box-sizing: border-box;
}

.glass-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.manifest-window {
  max-width: 600px;
  width: 100%;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  padding: 45px;
  box-shadow: 
    0 30px 60px rgba(0, 0, 0, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  margin: auto;
  transform: translateY(30px) scale(0.97);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  box-sizing: border-box;
}

.glass-overlay.active .manifest-window {
  transform: translateY(0) scale(1);
}

.manifest-logo-container {
  text-align: center;
  margin-bottom: 40px;
}

.manifest-logo {
  width: 90px;
  height: auto;
  opacity: 0.85;
}

.manifest-text-content {
  font-family: 'JetBrains Mono', monospace;
  color: rgba(255, 255, 255, 0.85);
  font-size: 12px;
  font-weight: 300;
  line-height: 1.7;
}

.manifest-item {
  margin-bottom: 24px;
}

.manifest-title {
  font-weight: 500;
  color: #ffffff;
  margin-bottom: 5px;
  font-size: 13px;
  letter-spacing: 0.5px;
}

.manifest-desc {
  color: rgba(255, 255, 255, 0.6);
}

.manifest-footer {
  text-align: center;
  margin-top: 40px;
  padding-top: 25px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.manifest-link-full {
  font-family: 'Roboto', sans-serif;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.45);
  text-decoration: none;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  transition: color 0.3s, letter-spacing 0.3s;
}

.manifest-link-full:hover {
  color: #ffffff;
  letter-spacing: 3.5px;
}

.recall-wrapper {
  position: relative;
  display: inline-block;
}

#recallLink {
  display: inline-block;
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  animation-delay: 1.3s !important;  
}

.layer3 a[href="/manifest/"] {
  animation-delay: 1.1s !important;  }

#recallLink.hidden {
  opacity: 0 !important;
  pointer-events: none !important;
}

.recall-callout {
  position: absolute;
  left: calc(100% + 15px);
  bottom: -3px;
  width: 250px;
  height: 40px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 100;
}

.recall-callout.active {
  opacity: 1;
  pointer-events: auto;
}

.callout-svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 250px;
  height: 40px;
  overflow: visible;
}

.callout-path {
  stroke-dasharray: 260;
  stroke-dashoffset: 260;
  transition: stroke-dashoffset 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.recall-callout.active .callout-path {
  stroke-dashoffset: 0;
}

.recall-tooltip {
  position: absolute;
  left: 35px;
  bottom: 34px;
  white-space: nowrap;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.5px;
  color: rgba(255, 255, 255, 0.7);
  opacity: 0;
  transform: translateY(5px);
  transition: opacity 0.5s ease 0.4s, transform 0.5s ease 0.4s;
}

.recall-callout.active .recall-tooltip {
  opacity: 1;
  transform: translateY(0);
}

.tooltip-link {
  color: #ffffff !important;
  text-decoration: underline !important;
  text-underline-offset: 3px;
  font-weight: 500;
  display: inline !important;
  cursor: pointer;
}

.nav-now-text {
  color: rgba(255, 255, 255, 0.3) !important;
  cursor: default !important;
  pointer-events: none !important;
  display: inline-block;
  opacity: 0;
  animation: terminal-flicker 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: 0.8s;
}

@media (max-width: 768px) and (orientation: portrait) {
  .video-background, #bgCanvas {
    object-fit: cover !important;
  }
}

@media(max-width:768px){
  .plus-wrapper {
    bottom: 25px;
    left: 35px;
  }
  .plus-trigger {
    transform: none;
  }
  .plus-trigger:hover {
    transform: scale(1.1);
  }
  .plus-trigger.active {
    transform: rotate(45deg);
  }
  .manifest-window {
    padding: 30px 20px;
  }
}

@media (max-width: 600px) {
  .recall-callout, .plus-callout {
    transform-origin: left bottom;
    transform: scale(0.8);
  }
}

@media (max-width: 400px) {
  .content h1 {
    font-size: 1em;
    letter-spacing: 4px;
  }

  .layer3 {
    gap: 2px;
  }

  .content p {
    font-size: 0.8em;
    letter-spacing: 2px;
  }

  .layer3 a {
    font-size: 0.5em;
  }

  .top-logo li a img {
    width: 80px;
  }
 
  .top-logo {
    left: 5px;        
    list-style: none;   
    margin: 0;          
    padding: 0;         
    z-index: 10;
    width: max-content;
  }

  .sound-toggle {
    top: 42px;
    right: 25px;
    width: 35px;
    height: 35px;
    z-index: 20;
  }

  .recall-callout, .plus-callout {
    transform-origin: left bottom;
    transform: scale(0.65);
  }
}

@media (max-width: 600px) and (orientation: landscape) {
  .content h1 { font-size: 1.2em; letter-spacing: 3px; }
  .content p { font-size: 0.6em; letter-spacing: 2px; }
  .layer3 a { font-size: 0.6em; }
  .layer3 { gap: 2px; }
  .top-logo li a img { width: 75px; }
  .sound-toggle { top: 40px; width: 32px; height: 32px; z-index: 20; }

  .plus-wrapper {
    bottom: 15px;
    left: 35px;
  }
}