/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@400;500;600;700&display=swap');
@import url('https://api.fontshare.com/v2/css?f[]=satoshi@400,500,700&display=swap');

/* ============================================
   PAGE LOADER
   ============================================ */
.page-loader {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-brand, #182439);
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

.page-loader.loaded {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.page-loader__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.page-loader__logo {
  width: clamp(80px, 15vw, 140px);
  animation: loader-pulse 1.8s ease-in-out infinite;
}

@keyframes loader-pulse {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

.page-loader__bar {
  width: clamp(120px, 20vw, 200px);
  height: 2px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 2px;
  overflow: hidden;
}

.page-loader__bar-fill {
  height: 100%;
  width: 0%;
  background: #FFFFFF;
  border-radius: 2px;
  transition: width 0.3s ease;
}

/* Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Base Typography */
body {
  font-family: var(--main-fontfamily);
  color: var(--text-primary);
  background-color: var(--surface--primary);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--sec-fontfamily);
  font-weight: 600;
  line-height: 1.2;
}

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

/* Skip-to-content link — visible only on focus */
.skip-link {
  position: absolute;
  top: -100%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10000;
  background: var(--brand, #1a1a1a);
  color: #fff;
  padding: 0.75rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 0 0 4px 4px;
  transition: top 0.2s;
}
.skip-link:focus {
  top: 0;
}

a {
  text-decoration: none;
  color: inherit;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

ul, ol {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

/* ============================================
   HOVER REVEAL - Reusable masked text slide
   ============================================
   Usage: wrap text in .hover-reveal > .hover-reveal-text (duplicated).
   The parent interactive element needs .hover-reveal-trigger.
   For icons/arrows use .hover-reveal--fast for quicker timing.
*/
.hover-reveal {
  display: inline-flex;
  flex-direction: column;
  overflow: hidden;
  height: 1.2em;
  line-height: 1.2;
}

.hover-reveal-text {
  display: block;
  flex-shrink: 0;
  height: 1.2em;
  line-height: 1.2;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.hover-reveal--fast .hover-reveal-text {
  transition-duration: 0.35s;
}

.hover-reveal-trigger:hover .hover-reveal-text {
  transform: translateY(-100%);
}