:root {
  color-scheme: dark;
}

html {
  scroll-behavior: smooth;
}

body {
  background:
    radial-gradient(circle at top, rgba(245, 185, 66, 0.08), transparent 22%),
    linear-gradient(180deg, #1a2010 0%, #10150c 45%, #0b1009 100%);
}

.display-headline {
  font-family: 'Bebas Neue', sans-serif;
  letter-spacing: 0.03em;
  line-height: 0.9;
  font-size: clamp(3.5rem, 11vw, 9rem);
}

.section-title {
  max-width: 16ch;
}

.nav-link,
.mobile-link {
  position: relative;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(237, 229, 212, 0.72);
  transition: color 300ms ease, transform 300ms ease;
}

.nav-link:hover,
.mobile-link:hover {
  color: #f5b942;
}

.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, #f5b942, transparent);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 350ms ease;
}

.nav-link:hover::after {
  transform: scaleX(1);
}

.intro-mark {
  transform: scale(0.9);
  opacity: 0;
  animation: introPop 1.5s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.intro-logo {
  width: min(34vw, 160px);
  height: min(34vw, 160px);
  animation: introGlow 2s ease-in-out infinite alternate;
}

.hero-word .word-block {
  opacity: 0;
  transform: translateY(26px) scale(0.96);
  animation: popIn 900ms cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.reveal-section {
  opacity: 0;
  transform: translateY(24px);
}

.reveal-section.is-visible,
.reveal-item.is-visible {
  animation: maskReveal 900ms ease forwards;
}

.reveal-item {
  opacity: 0;
  transform: translateY(18px) scale(0.985);
}

.hero-portrait img,
.gallery-item img,
.unit-card img {
  transition: transform 700ms cubic-bezier(0.22, 1, 0.36, 1), filter 700ms ease;
}

.hero-portrait:hover img,
.gallery-item:hover img,
.unit-card:hover img {
  transform: scale(1.05);
  filter: saturate(1.05) contrast(1.02);
}

/* Premium slanted parallelogram gallery layout */
.gallery-item-skewed {
  position: relative;
  overflow: hidden;
  transform: skewX(-8deg); /* Beautiful, professional slant */
  box-shadow: 0 35px 90px rgba(0, 0, 0, 0.5); /* Ultra-rich shadow */
  transition: box-shadow 500ms ease, transform 500ms ease;
}

.gallery-item-skewed:hover {
  box-shadow: 0 0 45px rgba(245, 185, 66, 0.22), 0 35px 90px rgba(0, 0, 0, 0.5);
  transform: skewX(-8deg) translateY(-8px); /* Higher, more elegant lift */
}

.gallery-item-skewed img {
  transform: skewX(8deg) scale(1.22); /* Opposite skew to keep content straight + scale to cover */
  transition: transform 700ms cubic-bezier(0.22, 1, 0.36, 1), filter 700ms ease;
}

.gallery-item-skewed:hover img {
  transform: skewX(8deg) scale(1.32);
  filter: saturate(1.05) contrast(1.02);
}

/* Premium slanted parallelogram unit card image */
.unit-card-skewed {
  position: relative;
  overflow: hidden;
  transform: skewX(-4deg);
}

.unit-card-skewed img {
  transform: skewX(4deg) scale(1.15);
  transition: transform 700ms cubic-bezier(0.22, 1, 0.36, 1);
}

.unit-card:hover .unit-card-skewed img {
  transform: skewX(4deg) scale(1.25);
}

.marquee {
  animation: marquee 30s linear infinite;
}

.hide-scrollbar::-webkit-scrollbar {
  display: none;
}

.hide-scrollbar {
  scrollbar-width: none;
}

#siteHeader {
  background: rgba(7, 16, 14, 0.3);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

#siteHeader.is-scrolled {
  background: rgba(7, 16, 14, 0.96);
  backdrop-filter: blur(24px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

#menuButton,
#closeMenu,
.unit-card a,
.hero a {
  transition-property: transform, background-color, border-color, color, opacity;
  transition-duration: 300ms;
  transition-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
}

.unit-number {
  transform-origin: center;
}

.unit-card:hover .unit-number {
  transform: scale(1.12);
  transition-timing-function: cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes introPop {
  0% { opacity: 0; transform: scale(0.86); }
  20% { opacity: 1; transform: scale(1); }
  80% { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: scale(1.08); }
}

@keyframes introGlow {
  from { box-shadow: 0 0 0 rgba(245, 185, 66, 0.2); }
  to { box-shadow: 0 0 60px rgba(245, 185, 66, 0.22); }
}

@keyframes popIn {
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes maskReveal {
  from {
    opacity: 0;
    transform: translateY(24px);
    clip-path: inset(0 0 100% 0);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    clip-path: inset(0 0 0 0);
  }
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .intro-mark,
  .hero-word .word-block,
  .marquee {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}
