html {
  height: 100%;
  margin: 0;
  background: #cb3c14;
}
body {
  min-height: 100%;
  margin: 0;
  background: #cb3c14;
  display: flex;
  flex-direction: column;
}
@supports (-webkit-touch-callout: none) {
  /* Safari-specific fixes for mobile viewport */
  html {
    min-height: 100vh;
    min-height: -webkit-fill-available;
  }
  body {
    min-height: 100vh;
    min-height: -webkit-fill-available;
  }
}

/* design tokens */
:root {
  --font-ui: system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

/* minimal burger + menu */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  padding: 6px 14px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  z-index: 2;
}
.burger {
  font-size: 32px;
  color: #fff;
  cursor: pointer;
  user-select: none;
}
nav {
  position: fixed;
  top: 0;
  right: 0;
  width: auto;
  height: auto;
  padding: 36px 18px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease-out;
}
#nav-toggle:checked ~ nav {
  opacity: 1;
  visibility: visible;
}
nav a {
  color: #fff;
  font-size: 20px;
  text-decoration: none;
  display: block;
  margin: 12px 0;
  font-family: var(--font-ui);
  text-align: right;
  opacity: 0;
  transform: translateX(-10px);
  transition: opacity 0.3s ease-out, transform 0.3s ease-out;
}
#nav-toggle:checked ~ nav a {
  opacity: 1;
  transform: translateX(0);
}
#nav-toggle:checked ~ nav a:nth-child(1) {
  transition-delay: 0.05s;
}
#nav-toggle:checked ~ nav a:nth-child(2) {
  transition-delay: 0.1s;
}
#nav-toggle:checked ~ nav a:nth-child(3) {
  transition-delay: 0.15s;
}
#nav-toggle:not(:checked) ~ nav a {
  transition-delay: 0s;
}

/* top-centered homepage logo (in normal document flow) */
main {
  padding: 10px;
  flex: 1;
}
main img {
  width: 90vw;
  height: auto;
  display: block;
  margin: 0 auto;
}
@media (min-width: 1024px) {
  main img {
    width: 33.333vw;
  }
}
.wip {
  text-align: center;
  color: #fff;
  font-family: var(--font-ui);
  font-size: 32px;
  font-weight: 600;
  margin: 40px auto;
  width: 100%;
}
@media (min-width: 1024px) {
  .wip {
    font-size: 48px;
    margin: 60px auto;
  }
}

/* homepage gallery */
.home-gallery {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 16px;
}
.home-gallery .swap { width: 90vw; }
.home-gallery .swap img { width: 100%; height: auto; display: block; }
.home-gallery .swap { cursor: pointer; }
.home-gallery .swap .animate { display: none; }
.home-gallery .swap:hover .static { display: none; }
.home-gallery .swap:hover .animate { display: block; }
@media (min-width: 1024px) {
  .home-gallery { flex-direction: row; }
  .home-gallery .swap { width: 25vw; }
}

/* simple modal */
.modal { position: fixed; inset: 0; display: grid; place-items: center; z-index: 5; }
.modal[hidden] { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.75); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.modal-content { position: relative; width: 92vw; max-width: 960px; background: #000; border-radius: 8px; padding: 8px; }
.modal-close { position: absolute; top: 6px; right: 10px; background: transparent; border: 0; color: #fff; font-size: 28px; line-height: 1; cursor: pointer; }
.modal .video { position: relative; padding-top: 56.25%; }
.modal .video iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }

/* sticky footer bottom-center */
.site-footer {
  margin-top: auto;
  margin-bottom: 10px;
  color: #fff;
  font-family: var(--font-ui);
  font-size: 16px;
  font-weight: 600;
  opacity: 1;
  text-align: center;
  width: 100%;
  z-index: 1;
}
@media (min-width: 1024px) {
  .site-footer {
    position: fixed;
    left: 50%;
    bottom: 10px;
    transform: translateX(-50%);
    margin-top: 0;
    margin-bottom: 0;
    padding: 0;
  }
}

/* contact page */
.contact-page {
  text-align: center;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.contact-page p, a {
  font-family: var(--font-ui);
  font-size: 16px;
  color: #fff;
  font-weight: 600;
  opacity: 1;
  text-align: center;
}
.contact-page a {
  text-decoration: none;
  color: #fff;
}
.contact-page svg {
  cursor: pointer;
}