:root {
  --red: #C40110;
  --bg: #ffffff;
  --fade: 0.5s ease;
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

body {
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--red);
  min-height: 100vh;
  min-height: 100svh;
  /* locked while the splash is up; released once the user enters */
  overflow: hidden;
}

body.entered {
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
}

/* --- Splash intro --- */
.splash {
  position: fixed;
  inset: 0;
  display: flex;
  justify-content: center;
  background: var(--bg);
  cursor: pointer;
  z-index: 10;
  animation: fadeIn 1s ease-in;
  transition: opacity 2s ease, visibility 2s ease;
}

.splash-inner {
  position: relative;
  width: 100%;
  max-width: 1440px;
  padding: 30px clamp(1.25rem, 11.4vw, 164px);
  display: flex;
  justify-content: center;
  align-items: center;
}

.enter-hint {
  position: absolute;
  bottom: 30px;
  right: clamp(1.25rem, 11.4vw, 164px);
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--red);
  font-family: inherit;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0.04em;
  animation: arrowPulse 1.6s ease-in-out infinite;
}

.continue-arrows {
  width: 32px;
  height: auto;
}

@keyframes arrowPulse {
  0%, 100% { opacity: 0.55; transform: translateX(0); }
  50% { opacity: 1; transform: translateX(4px); }
}

@media (max-width: 640px) {
  .splash-inner {
    padding: 1.5rem 1.25rem;
  }

  .enter-hint {
    bottom: 1.5rem;
    right: 1.25rem;
    font-size: 16px;
    gap: 10px;
  }

  .continue-arrows {
    width: 28px;
  }
}

.splash.hidden {
  opacity: 0;
  visibility: hidden;
}

.splash-logo {
  display: block;
  width: clamp(250px, 50vmin, 400px);
  height: auto;
  max-width: 100%;
}

.header-logo-img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

/* --- App layout --- */
.app {
  min-height: 100vh;
  /* svh = smallest viewport: guarantees the footer stays on screen
     even when the iPad/iOS browser chrome is expanded */
  min-height: 100svh;
  max-width: 1440px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  padding: 25px clamp(1.25rem, 11.4vw, 164px) 30px;
  opacity: 0;
  transition: opacity 1.5s ease 0.5s;
}

@media (prefers-reduced-motion: reduce) {
  .splash,
  .app,
  .view {
    transition: none;
    animation: none;
  }
}

.app.visible {
  opacity: 1;
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header-logo {
  width: 284px;
  height: 50px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  flex-shrink: 0;
}


.contact-btn {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  width: 111px;
  height: 44px;
  border: 1px solid var(--red);
  border-radius: 0;
  background: transparent;
  color: var(--red);
  font-family: inherit;
  font-size: 16px;
  font-weight: 400;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-width 0.2s ease;
}

.contact-btn.active {
  background: var(--red);
  color: #fff;
  border: 2px solid var(--red);
}

@media (hover: hover) {
  .contact-btn:hover {
    background: var(--red);
    color: #fff;
    border: 2px solid var(--red);
  }
}

.main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
}

.view {
  max-width: 900px;
  text-align: center;
  display: none;
  animation: fadeInUp var(--fade);
}

.view.active {
  display: block;
}

.view p {
  font-size: clamp(1rem, 2vw, 24px);
  line-height: 1.4;
  margin-bottom: 1.4em;
  font-weight: 500;
  text-align: center;
}

.view p:last-child {
  margin-bottom: 0;
}

.contact-view p {
  margin-bottom: 0;
}

.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 16px;
  line-height: 1.36;
  font-weight: 400;
}

.footer a {
  color: var(--red);
  text-decoration: none;
}

@media (hover: hover) {
  .footer a:hover {
    text-decoration: underline;
    text-decoration-style: solid;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- Footer utilities (sound + email) --- */
.footer-utils {
  display: flex;
  align-items: center;
  gap: 14px;
}

.sound-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border: none;
  background: transparent;
  color: var(--red);
  cursor: pointer;
  padding: 0;
  transition: opacity 0.3s ease, transform 0.15s ease;
}

.sound-btn svg {
  width: 18px;
  height: 18px;
}

.sound-btn.hidden {
  opacity: 0;
  pointer-events: none;
}

.sound-btn .icon-off {
  display: none;
}

.sound-btn.muted .icon-on {
  display: none;
}

.sound-btn.muted .icon-off {
  display: inline;
}

@media (hover: hover) {
  .sound-btn:hover {
    transform: scale(1.12);
  }
}

@media (max-width: 640px) {
  .app {
    padding: 1.5rem 1.25rem;
  }

  .header-logo {
    width: 160px;
    height: 28px;
  }

  .footer {
    font-size: 0.8rem;
  }
}
