@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,400;0,600;1,400;1,600&display=swap");

:root {
  --mouse-x: 50%;
  --mouse-y: 50%;
}

html,
body {
  font-family: "Inter", sans-serif !important;
}

h1,
h2,
h3,
.font-display,
.font-serif {
  font-family: "Playfair Display", serif !important;
}

main.page-main {
  padding-top: clamp(2.75rem, 5vw, 4.5rem) !important;
  padding-bottom: clamp(3rem, 5vw, 4.75rem) !important;
}

.site-footer-cta {
  margin-top: 0 !important;
  padding-top: clamp(2.5rem, 5vw, 4.25rem) !important;
  padding-bottom: clamp(2.5rem, 5vw, 4.25rem) !important;
}

.site-footer-cta > div {
  padding-top: clamp(1rem, 2.5vw, 2rem) !important;
}

header.sticky {
  background: linear-gradient(to bottom, rgba(5, 5, 5, 0.82), rgba(5, 5, 5, 0.44));
  backdrop-filter: blur(8px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
}

#hk-page-loader {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(4, 4, 5, 0.84);
  backdrop-filter: blur(10px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 320ms ease;
}

body.hk-loading,
body.hk-transitioning {
  overflow: hidden;
}

body.hk-loading #hk-page-loader,
body.hk-transitioning #hk-page-loader {
  opacity: 1;
  pointer-events: auto;
}

body.hk-loading > :not(#hk-page-loader):not(#lumo-root),
body.hk-transitioning > :not(#hk-page-loader):not(#lumo-root) {
  opacity: 0 !important;
  visibility: hidden !important;
}

.hk-loader-shell {
  width: min(1180px, calc(100vw - 1rem));
  border-radius: 1.4rem;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: linear-gradient(145deg, rgba(15, 15, 18, 0.92), rgba(10, 10, 13, 0.96));
  box-shadow: 0 22px 80px rgba(0, 0, 0, 0.48);
  padding: clamp(0.95rem, 2vw, 1.4rem);
}

.hk-loader-head {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.65rem;
  margin-bottom: 1.15rem;
}

.hk-spinner-wrap {
  position: relative;
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
}

.hk-spinner-ring {
  position: absolute;
  inset: 0;
  border-radius: 9999px;
  border: 2px solid rgba(255, 255, 255, 0.18);
  border-top-color: rgba(238, 181, 181, 0.95);
  border-right-color: rgba(238, 181, 181, 0.55);
  animation: hkSpin 1s linear infinite;
}

.hk-spinner-ring--inner {
  inset: 9px;
  border-width: 1.5px;
  border-top-color: rgba(255, 255, 255, 0.86);
  border-right-color: rgba(255, 255, 255, 0.25);
  animation-duration: 0.78s;
  animation-direction: reverse;
}

.hk-spinner-logo {
  width: 36px;
  height: 36px;
  border-radius: 9999px;
  padding: 0.3rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 0 16px rgba(238, 181, 181, 0.25);
}

.hk-loader-text {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
  font-weight: 600;
}

.hk-loader-title {
  width: clamp(8rem, 15vw, 12rem);
  height: 0.72rem;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0.25) 50%, rgba(255,255,255,0.08) 100%);
  background-size: 220% 100%;
  animation: hkShimmer 1.45s linear infinite;
}

.hk-loader-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.8rem;
}

@media (min-width: 860px) {
  .hk-loader-grid {
    grid-template-columns: 1.6fr 1.1fr 0.9fr;
  }
}

.hk-loader-card {
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  min-height: clamp(140px, 17vh, 210px);
  padding: 0.95rem;
  background: rgba(255, 255, 255, 0.02);
}

.hk-loader-line {
  width: 100%;
  height: 0.62rem;
  border-radius: 999px;
  margin-bottom: 0.5rem;
  background: linear-gradient(90deg, rgba(255,255,255,0.06) 0%, rgba(255,255,255,0.14) 50%, rgba(255,255,255,0.06) 100%);
  background-size: 220% 100%;
  animation: hkShimmer 1.45s linear infinite;
}

.hk-loader-line:last-child {
  margin-bottom: 0;
  width: 66%;
}

.hk-loader-card--hero {
  min-height: clamp(210px, 29vh, 320px);
}

.hk-loader-pill {
  width: 7.5rem;
  height: 1.6rem;
  border-radius: 9999px;
  margin-bottom: 0.85rem;
  background: linear-gradient(90deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.14) 50%, rgba(255,255,255,0.05) 100%);
  background-size: 220% 100%;
  animation: hkShimmer 1.45s linear infinite;
}

@keyframes hkSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes hkShimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

#lumo-root {
  position: fixed;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  background:
    radial-gradient(1200px 700px at 12% 10%, rgba(238, 181, 181, 0.045), transparent 62%),
    radial-gradient(900px 500px at 86% 90%, rgba(238, 181, 181, 0.035), transparent 62%),
    transparent;
  pointer-events: none;
}

#three-canvas-container {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.mask-layer {
  position: absolute;
  inset: 0;
  z-index: 10;
  pointer-events: none;
  background:
    radial-gradient(
      circle 280px at var(--mouse-x, 50%) var(--mouse-y, 50%),
      rgba(238, 181, 181, 0.08) 0%,
      rgba(238, 181, 181, 0.04) 26%,
      rgba(10, 10, 10, 0.08) 58%,
      rgba(10, 10, 10, 0.14) 100%
    );
  transition: background-position 75ms linear;
}

.noise-bg {
  position: absolute;
  inset: 0;
  z-index: 20;
  opacity: 0.005;
  pointer-events: none;
  mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.secondary-accent {
  font-family: "Playfair Display", "Instrument Serif", serif;
  font-style: italic;
  background: linear-gradient(to right, #e2e8f0, #eeb5b5, #f9a8d4);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hk-reveal {
  opacity: 0;
  transform: translate3d(0, 26px, 0) scale(0.99);
  filter: blur(6px);
  transition:
    opacity 720ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 720ms cubic-bezier(0.22, 1, 0.36, 1),
    filter 720ms cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--reveal-delay, 0ms);
}

.hk-reveal.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
  filter: blur(0);
}

.hk-parallax {
  will-change: transform;
}

@media (prefers-reduced-motion: reduce) {
  .hk-reveal,
  .hk-reveal.is-visible,
  .hk-parallax,
  .hk-loader-logo,
  .hk-loader-title,
  .hk-loader-line {
    transition: none !important;
    transform: none !important;
    filter: none !important;
    opacity: 1 !important;
    animation: none !important;
  }
}
