@font-face {
  font-family: 'Bifur Foundation';
  src: url('assets/Bifur Foundation.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body, .video-bg, .inline-video {
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

#hero-video {
  cursor: pointer;
}

body {
  font-family: 'Helvetica Neue', sans-serif;
  background: white;
  color: #111;
  height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Full-page background video */
.video-bg {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
  pointer-events: auto;
  background: #fff; /* fallback */
}

.video-bg video {
  position: absolute;
  top: 55%;
  right: -5%; /* Moved slightly to the right */
  left: auto;
  width: 70.4vw;         /* 10% larger than before */
  height: auto;          /* keep aspect ratio */
  max-height: 70.4vh;    /* 10% larger than before */
  transform: translateY(-50%);
  object-fit: contain;   /* no cropping; keep full frame visible */
}

/* Inline video (hidden by default; shown only on mobile) */
.inline-video { display: none; }
.inline-video video { width: 100vw; height: auto; display: block; margin: 0; padding: 0; border-radius: 0; box-shadow: none; object-fit: contain; }

header {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.6rem 0.5rem 0.15rem;
  position: relative;
  z-index: 10;
  flex-shrink: 0;
}

.logo-container {
  width: 100%;
  margin-bottom: 0.3rem;
  text-align: center;
  position: relative;
  z-index: 10;
}

.logo-container a {
  text-decoration: none;
  color: inherit;
}

.logo-container div {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
}

.logo-container img {
  display: block;
  height: 102px;
  width: auto;
}

.logo-title {
  display: none;
}

.metro-panel {
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  transform: translateX(-50%);
  background: transparent;
  overflow: hidden;
  height: 1.6rem;
  display: flex;
  align-items: center;
  margin-bottom: 0.15rem;
}

.metro-text {
  display: inline-block;
  white-space: nowrap;
  font-size: 0.7rem;
  font-weight: bold;
  color: #111;
  letter-spacing: 0.15em;
  animation: metro-scroll 12s linear infinite;
}

.metro-text:nth-child(2) {
  animation-delay: 4s;
}

.metro-text:nth-child(3) {
  animation-delay: 8s;
}

.metro-text:nth-child(4) {
  animation-delay: 12s;
}

@keyframes metro-scroll {
  0% { transform: translateX(-100vw); }
  100% { transform: translateX(100vw); }
}

nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  align-items: center;
}

nav a {
  margin: 0 0.5rem;
  text-decoration: none;
  color: #fff;
  font-size: 1.0rem;
  text-transform: uppercase;
  font-weight: bold;
  font-family: 'Helvetica Neue', sans-serif;
  letter-spacing: 0.15em;
  background: linear-gradient(90deg, #1a2a6c 0%, #1e90ff 100%);
  border-radius: 6px;
  padding: 0.3em 1em;
  box-shadow: 0 2px 8px rgba(30, 144, 255, 0.15);
  border: 2px solid #1e90ff;
  transition: background 0.3s, color 0.3s;
  position: relative;
  z-index: 1;
}

nav .menu-separator {
  color: #ffbf99;
  font-size: 0.8rem;
  font-weight: bold;
  margin: 0 0.3em;
  background: none;
  border: none;
  box-shadow: none;
  padding: 0;
  position: relative;
  z-index: 0;
}

nav a:not(:last-child)::after {
  content: "";
}

nav a:hover {
  background: linear-gradient(90deg, #1e90ff 0%, #1a2a6c 100%);
  color: #fff;
}

section {
  padding: 0.6rem 0.8rem;
  max-width: 800px;
  margin: 0 auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

#subscribe {
  padding: 0.3rem 0.5rem 0 0.5rem;
  min-height: auto;
}

#subscribe h2 {
  text-transform: uppercase;
  letter-spacing: 1px;
  text-align: center;
  margin-bottom: 0.3rem;
  font-size: 0.8rem;
  font-family: 'Helvetica Neue', sans-serif;
  font-weight: 500;
  color: #172713;
  background: transparent;
  padding: 0;
  border-radius: 0;
}

form {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  align-items: center;
}

input, textarea, button {
  padding: 0.4rem;
  font-size: 0.8rem;
  border: 1px solid #ccc;
  outline: none;
}

button {
  background: linear-gradient(90deg, #1a2a6c 0%, #1e90ff 100%);
  color: #fff;
  cursor: pointer;
  border-radius: 6px;
  border: 2px solid #1e90ff;
  box-shadow: 0 2px 8px rgba(30, 144, 255, 0.15);
  font-family: 'Helvetica Neue', sans-serif;
  font-size: 0.8rem;
  text-transform: uppercase;
  font-weight: bold;
  letter-spacing: 0.15em;
  padding: 0.25em 0.8em;
  transition: background 0.3s, color 0.3s;
  min-width: unset;
  width: auto;
  display: inline-block;
  text-align: center;
  line-height: 1;
  height: auto;
}

button:hover {
  background: linear-gradient(90deg, #1e90ff 0%, #1a2a6c 100%);
  color: #fff;
  border: 2px solid #1e90ff;
}

footer {
  text-align: center;
  padding: 0.3rem 2rem;
  font-size: 0.8rem;
  color: #111;
  background: transparent;
  margin-top: 0;
}

/* Mobile compaction: after the menu, make it a tighter one-pager */
@media (max-width: 600px) {
  body {
    height: 100vh;
    overflow: hidden;
  }

  /* Hide background video and show inline video on mobile */
  .video-bg { display: none !important; }
  .inline-video { display: block; }

  header {
    padding: 0.5rem 0.5rem 0.1rem;
  }

  .logo-container {
    margin-bottom: 0.2rem;
  }

  .metro-panel {
    height: 1.5rem;
    margin-bottom: 0.1rem;
  }

  .metro-text {
    font-size: 0.65rem;
  }

  /* Increase space after the menu on mobile */
  header nav + div {
    height: 0.8rem !important;
  }

  /* Make inline video flexible */
  .inline-video { display: flex !important; align-items: center; justify-content: center; width: 100vw; max-width: 100vw; margin: 0; padding: 0; margin-left: calc(-50vw + 50%); height: auto; }
  
  /* Tighten sections for mobile one-pager */
  section {
    padding: 0.3rem 0.5rem;
    flex: 1;
  }

  #subscribe {
    padding: 0.2rem 0.5rem 0 0.5rem;
    min-height: auto;
  }

  #subscribe h2 {
    margin-bottom: 0.2rem !important;
    font-size: 0.8rem;
  }

  #subscribe form {
    gap: 0.3rem;
  }

  footer {
    padding: 0.2rem 0.5rem;
    font-size: 0.75rem;
  }

  nav {
    flex-wrap: wrap;
    gap: 0.3rem;
  }

  nav a {
    margin: 0.2rem;
    font-size: 0.85rem;
    padding: 0.2em 0.6em;
  }

  nav img {
    height: 2.5rem !important;
    margin: 0 0.2rem !important;
    transform: rotate(var(--rotation, 0deg));
  }

  nav img:nth-child(2) {
    height: 2rem !important;
    transform: rotate(-3deg);
  }

  nav img:nth-child(4) {
    height: 2.8rem !important;
    transform: rotate(4deg);
  }

  nav img:nth-child(6) {
    height: 2.2rem !important;
    transform: rotate(-5deg);
  }
}
