:root {
  --brand: #1e5677;
}
body {
  background-color: #ffffff;
  color: var(--brand);
  font-family: "Outfit", sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* Layout Calibration */
.site-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* The HK Logo */
.logo-mark {
  width: 38px;
  height: 38px;
  background: var(--brand);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Syne", sans-serif;
  font-weight: 800;
  font-size: 0.9rem;
  position: relative;
  border-radius: 2px;
}
.logo-mark::after {
  content: "";
  position: absolute;
  inset: -3px;
  border: 1px solid var(--brand);
  z-index: -1;
}

/* Typography Scale */
h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1.1;
}
h2 {
  font-size: clamp(1.75rem, 4vw, 2.4rem);
  line-height: 1.2;
}
p {
  font-size: 0.9rem;
  line-height: 1.6;
}
.nav-item {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

/* Hero Background Video & Overlays */
/* =========================================================
   HERO SECTION
   ========================================================= */

#hero {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  isolation: isolate;
}

/* =========================================================
   HERO BACKGROUND VIDEO
   ========================================================= */

.hero-video-container {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.hero-video-container video {
  width: 100%;
  height: 100%;
  object-fit: cover;

  filter: grayscale(100%) brightness(0.9);
  opacity: 0.25;
}

/* =========================================================
   HERO GRADIENT OVERLAY
   ========================================================= */

.hero-gradient {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;

  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 1) 0%,
    rgba(255, 255, 255, 0.98) 35%,
    rgba(255, 255, 255, 0.85) 50%,
    rgba(255, 255, 255, 0.35) 75%,
    rgba(255, 255, 255, 0) 100%
  );
}

/* =========================================================
   HERO CONTENT
   ========================================================= */

#hero .site-container {
  position: relative;
  z-index: 10;
}

/* =========================================================
   HERO TEXT
   ========================================================= */

#hero h1 {
  position: relative;
  z-index: 10;
}

#hero p {
  position: relative;
  z-index: 10;
}

#hero span {
  position: relative;
  z-index: 10;
}

#hero button {
  position: relative;
  z-index: 10;
}

/* =========================================================
   FADE-UP ANIMATION
   ========================================================= */

/*
   IMPORTANT:
   The !important rules below prevent the text from
   remaining invisible if the animation JavaScript fails.
*/

.fade-up {
  opacity: 1 !important;
  visibility: visible !important;
  transform: translateY(0) !important;
}

/* =========================================================
   OPTIONAL: SMOOTH FADE-UP ANIMATION
   ========================================================= */

/*
   If you want the elements to animate in, use this instead
   of the block above AFTER confirming everything works.

.fade-up {
    opacity: 0;
    visibility: hidden;
    transform: translateY(30px);
    transition:
        opacity 0.8s ease,
        transform 0.8s ease,
        visibility 0.8s ease;
}

.fade-up.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
*/

/* =========================================================
   HERO MOBILE
   ========================================================= */

@media (max-width: 768px) {
  .hero-gradient {
    background: linear-gradient(
      to bottom,
      rgba(255, 255, 255, 0.98) 0%,
      rgba(255, 255, 255, 0.9) 45%,
      rgba(255, 255, 255, 0.45) 75%,
      rgba(255, 255, 255, 0) 100%
    );
  }

  .hero-video-container video {
    opacity: 0.18;
  }
}

.art-box1 {
  background: var(--brand);
  position: relative;
  overflow: hidden;
  display: block;
}
.art-box1 img {
  filter: grayscale(100%) contrast(1.1);
  mix-blend-mode: screen;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.art-box:hover img {
  transform: scale(1.04);
}

/* Image Masking System */
.art-box {
  background: var(--brand);
  position: relative;
  overflow: hidden;
  display: block;
}
.art-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.art-box:hover img {
  transform: scale(1.04);
}

/* Smooth Scroll Fix */
html.lenis {
  height: auto;
}
.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

/* Navigation Underline */
.nav-link {
  position: relative;
}
.nav-link::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0%;
  height: 1px;
  background: var(--brand);
  transition: width 0.3s ease;
}
.nav-link:hover::after {
  width: 100%;
}

/* Mobile Overlay */
#mobile-nav {
  transform: translateX(100%);
  transition: transform 0.6s cubic-bezier(0.85, 0, 0.15, 1);
      opacity: 0;
    visibility: hidden;
    pointer-events: none;
    /* transform: translateY(-20px);
    transition:
        opacity 0.3s ease,
        visibility 0.3s ease,
        transform 0.3s ease; */
}
#mobile-nav.active {
        opacity: 1;
    visibility: visible;
    pointer-events: auto;
    /* transform: translateY(0); */
  transform: translateX(0);
}

.fade-up {
  opacity: 0;
  transform: translateY(20px);
}

/* Art Box & Reveal Styling */
.art-card {
    cursor: pointer;
    transition: transform 0.4s ease;
}

.art-inner {
    position: relative;
    overflow: hidden;
    background: #0a0a0a;
}

/* The Cinematic Zoom */
.art-inner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(0.8);
    transition: transform 1.5s cubic-bezier(0.19, 1, 0.22, 1), filter 0.5s ease;
}

.art-card:hover .art-inner img {
    transform: scale(1.1);
    filter: saturate(1.1);
}

/* Minimal Hover UI */
.art-inner::after {
    content: 'VIEW FULL PIECE';
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.5);
    color: white;
    font-size: 10px;
    letter-spacing: 0.3em;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.art-card:hover .art-inner::after {
    opacity: 1;
}

/* Caption Styling */
.art-title {
    margin-top: 1.5rem;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: rgba(255, 255, 255, 0.3);
    transition: color 0.4s ease;
}

.art-card:hover .art-title {
    color: #fff;
}

/* Scroll Animation */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 1s cubic-bezier(0.25, 1, 0.5, 1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Lightbox Animation */
#lightbox.active {
    opacity: 1;
    pointer-events: auto;
}

#lightbox img {
    transform: scale(0.95);
}

#lightbox.active img {
    transform: scale(1);
}


