/* ============================================
   FONTS
   ============================================ */

@font-face {
  font-family: 'Instrument Serif';
  src: url('fonts/Instrument_Serif/InstrumentSerif-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Instrument Serif';
  src: url('fonts/Instrument_Serif/InstrumentSerif-Italic.ttf') format('truetype');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'Instrument Sans';
  src: url('fonts/Instrument_Sans/InstrumentSans-VariableFont_wdth,wght.ttf') format('truetype');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Instrument Sans';
  src: url('fonts/Instrument_Sans/InstrumentSans-Italic-VariableFont_wdth,wght.ttf') format('truetype');
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

/* ============================================
   RESET
   ============================================ */

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

/* ============================================
   CASCADE ANIMATION
   ============================================ */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

body {
  transition: opacity 0.4s ease;
}

[data-animate] {
  opacity: 0;
}

.ready [data-animate] {
  animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Cascade delays */
.ready .logo[data-animate] {
  animation-delay: 1s;
}

.ready h1[data-animate] {
  animation-delay: 1.25s;
}

.ready p[data-animate] {
  animation-delay: 1.45s;
}

.ready a[data-animate] {
  animation-delay: 1.65s;
}

/* ============================================
   BACKGROUND — subtle slow zoom
   ============================================ */

@keyframes slowZoom {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.02);
  }
}

/* ============================================
   LAYOUT
   ============================================ */

.maintenance-page {
  position: relative;
  width: 100%;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-bottom: 22vh;
  color: #ffffff;
}

.background {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 0;
  overflow: hidden;
}

.background picture {
  display: block;
  width: 100%;
  height: 100%;
}

.background img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 85%;
  animation: slowZoom 3s ease-out forwards;
  will-change: transform;
}

.background::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background:
    linear-gradient(90deg, rgba(27, 27, 27, 0.15), rgba(27, 27, 27, 0.15)),
    linear-gradient(90deg, rgba(208, 98, 36, 0.04), rgba(208, 98, 36, 0.04));
  z-index: 1;
}

/* ============================================
   LOGO
   ============================================ */

.logo {
  position: relative;
  z-index: 2;
  width: 312px;
  margin-bottom: 48px;
}

.logo img {
  display: block;
  width: 100%;
  height: auto;
}

/* ============================================
   CONTENT
   ============================================ */

.content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
  max-width: 693px;
  width: 90%;
}

.content h1 {
  font-family: 'Instrument Serif', serif;
  font-weight: 400;
  font-style: normal;
  font-size: 44px;
  line-height: 48px;
  color: #ffffff;
}

.content p {
  font-family: 'Instrument Sans', sans-serif;
  font-weight: 400;
  font-style: normal;
  font-size: 16px;
  line-height: 24px;
  color: #ffffff;
}

.content a {
  font-family: 'Instrument Serif', serif;
  font-weight: 400;
  font-style: italic;
  font-size: 20px;
  line-height: 32px;
  color: #ffffff;
  text-decoration: none;
  position: relative;
  padding-bottom: 3px;
  cursor: pointer;
  transition: opacity 0.3s ease;
}

.content a:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 4px;
}

.content a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: #ffffff;
  transform: scaleX(1);
  transform-origin: left center;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.content a:hover::after {
  transform: scaleX(0);
  transform-origin: right center;
  animation: lineRewrite 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes lineRewrite {
  0% { transform: scaleX(1); transform-origin: right center; }
  50% { transform: scaleX(0); transform-origin: right center; }
  50.1% { transform: scaleX(0); transform-origin: left center; }
  100% { transform: scaleX(1); transform-origin: left center; }
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
  .logo {
    width: 220px;
    margin-bottom: 60px;
  }

  .background img {
    object-position: center center;
  }

  .content h1 {
    font-size: 32px;
    line-height: 38px;
  }

  .content p {
    font-size: 14px;
    line-height: 22px;
  }

  .content a {
    font-size: 18px;
    line-height: 28px;
  }
}

@media (max-width: 480px) {
  .logo {
    width: 180px;
    margin-bottom: 40px;
  }

  .content h1 {
    font-size: 26px;
    line-height: 32px;
  }

  .content p {
    font-size: 13px;
    line-height: 20px;
  }

  .content p br {
    display: none;
  }
}

@media (max-width: 375px) {
  .content h1 {
    font-size: 24px;
    line-height: 30px;
  }

  .content p {
    font-size: 12.5px;
    line-height: 19px;
  }
}

/* ============================================
   ACCESSIBILITY — reduced motion
   ============================================ */

@media (prefers-reduced-motion: reduce) {
  body {
    transition: none;
  }

  [data-animate] {
    animation: none;
    opacity: 1;
  }

  .background img {
    animation: none;
  }
}
