/* ==========================================================================
   KANAM — Matte Black Gold
   ========================================================================== */

:root {
  --a-bg: #0A0908;
  --a-surface: #151310;
  --a-divider: #2A2620;
  --a-gold: #D4AF37;
  --a-gold-light: #F5D98A;
  --a-text-primary: #F5F1E6;
  --a-text-secondary: #9C8F72;

  --f-head: 'Playfair Display', serif;
  --f-body: 'Inter', sans-serif;
}



*, *::before, *::after { box-sizing: border-box; }

#services, #craft, #cta, #footer {
  scroll-margin-top: 96px;
}

html, body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

body {
  background: var(--a-bg);
  color: var(--a-text-primary);
  font-family: var(--f-body);
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--f-head);
  margin: 0;
  color: var(--a-text-primary);
}

p { margin: 0; }
ul { list-style: none; margin: 0; padding: 0; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }

.container {
  max-width: 1200px;
  margin: 0 auto;
}

.gold-gradient-btn {
  background: linear-gradient(90deg, var(--a-gold-light), var(--a-gold));
  color: #141311;
}

/* ==========================================================================
   Nav
   ========================================================================== */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 72px;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 64px;
  background: rgba(10, 9, 8, 0.35);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(245, 241, 230, 0.1);
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav__logo-img {
  height: 32px;
  width: auto;
}

.nav__logo-text {
  font-family: var(--f-head);
  font-weight: 700;
  font-size: 21px;
  letter-spacing: 1px;
  color: var(--a-gold);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 40px;
}

.nav__links a {
  font-size: 14px;
  color: var(--a-text-secondary);
  transition: color 200ms ease;
}

.nav__links a:hover { color: var(--a-text-primary); }

.nav__cta {
  border: 1px solid var(--a-gold);
  padding: 10px 24px;
  border-radius: 999px;
  font-size: 13px;
  letter-spacing: 1px;
  color: var(--a-gold);
  white-space: nowrap;
  transition: background 200ms ease, color 200ms ease;
}

.nav__cta:hover {
  background: var(--a-gold);
  color: #141311;
}

.nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
}

.nav__toggle span {
  display: block;
  width: 100%;
  height: 1.5px;
  background: var(--a-text-primary);
}

.nav__drawer {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: min(280px, 80vw);
  background: var(--a-surface);
  border-left: 1px solid var(--a-divider);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
  padding: 100px 32px 32px;
  transform: translateX(100%);
  transition: transform 300ms ease;
  z-index: 200;
}

.nav__drawer.is-open {
  transform: translateX(0);
}

.nav__drawer-link {
  font-size: 15px;
  color: var(--a-text-secondary);
}

.nav__drawer .nav__cta {
  margin-top: 8px;
}

.nav__scrim {
  position: fixed;
  inset: 0;
  background: rgba(10, 9, 8, 0.7);
  opacity: 0;
  pointer-events: none;
  transition: opacity 300ms ease;
  z-index: 150;
}

.nav__scrim.is-open {
  opacity: 1;
  pointer-events: auto;
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero__track {
  height: 400vh;
  position: relative;
}

.hero__pin {
  position: relative;
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  padding: 40px 64px 100px;
  background: var(--a-bg);
}

.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(0deg, rgba(10, 9, 8, 0.92) 0%, rgba(10, 9, 8, 0.55) 40%, rgba(10, 9, 8, 0.15) 70%),
    linear-gradient(90deg, rgba(10, 9, 8, 0.75) 0%, rgba(10, 9, 8, 0.15) 55%);
  pointer-events: none;
}

.hero__copy {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 620px;
  min-width: 0;
  min-height: 440px;
  transform: translateY(90px);
}

.hero__eyebrow {
  font-size: 12px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--a-gold);
  margin-bottom: 16px;
}

.hero__headline {
  font-weight: 600;
  font-size: 64px;
  line-height: 1.05;
  margin-bottom: 20px;
}

.hero__subhead {
  font-size: 17px;
  line-height: 1.5;
  color: var(--a-text-secondary);
  max-width: 46ch;
  margin-bottom: 28px;
}

.hero__cta {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 999px;
  font-size: 14px;
  background: linear-gradient(90deg, var(--a-gold-light), var(--a-gold));
  color: #141311;
  font-weight: 600;
}

.hero__cta--gated {
  pointer-events: none;
}

.hero__visual {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}

.hero__visual * {
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}

.hero__canvas,
.hero__poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.1) translateY(6%) translateX(4%);
  -webkit-user-drag: none;
}

.hero__canvas {
  opacity: 0;
  transition: opacity 200ms ease;
}

.hero__poster {
  opacity: 1;
  transition: opacity 200ms ease;
}

.hero__beat {
  display: block;
}

/* Canvas frame-scrub presentation (desktop/tablet only, once frames are
   loaded), gated on JS activation via the .is-scrub-canvas class. */
.hero.is-scrub-canvas #hero-canvas { opacity: 1; }
.hero.is-scrub-canvas .hero__poster { opacity: 0; }

/* Pinned + crossfading beat presentation — applies whenever the hero is
   pinned, on any device (mobile pins the static poster; desktop/tablet also
   layers the canvas frame-scrub via .is-scrub-canvas above). */
.hero.is-scrub .hero__beat {
  position: absolute;
  inset: 0;
  opacity: 0;
}

@media (prefers-reduced-motion: reduce) {
  .hero__canvas,
  .hero__poster {
    transition: none;
  }

  /* Skip pin/crossfade entirely — stack beats as normal scrolling content. */
  .hero__track {
    height: auto;
  }

  .hero__pin {
    height: auto;
    min-height: 100vh;
    overflow: visible;
  }

  .hero__visual {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: auto;
    height: 100vh;
  }

  .hero__beat {
    position: static;
    opacity: 1;
    transform: none;
  }
}

/* ==========================================================================
   Services
   ========================================================================== */

.services {
  background: var(--a-surface);
  padding: 100px 64px;
  text-align: center;
}

.services__eyebrow {
  font-size: 12px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--a-gold);
  margin-bottom: 16px;
}

.services__title {
  font-weight: 600;
  font-size: 40px;
  max-width: 820px;
  margin: 0 auto 20px;
}

.services__subtitle {
  font-size: 16px;
  color: var(--a-text-secondary);
  max-width: 640px;
  margin: 0 auto;
}

.services__grid {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: left;
}

html.js .service-card {
  opacity: 0;
}

.service-card {
  padding: 32px 28px;
  border: 1px solid var(--a-divider);
  border-radius: 8px;
}

.service-card__icon {
  width: 72px;
  height: 72px;
  margin-bottom: 20px;
  color: var(--a-gold);
}

.service-card__title {
  font-weight: 600;
  font-size: 19px;
  margin-bottom: 16px;
}

.service-card__list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.service-card__item {
  font-size: 14px;
  color: var(--a-text-secondary);
  padding-left: 18px;
  position: relative;
}

.service-card__item::before {
  content: "—";
  color: var(--a-gold);
  position: absolute;
  left: 0;
  top: 0;
}

/* ==========================================================================
   Craft ("The KANAM Experience")
   ========================================================================== */

.craft {
  padding: 64px;
}

.craft__eyebrow {
  font-size: 12px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--a-gold);
  margin-bottom: 16px;
}

.craft__title {
  font-weight: 600;
  font-size: 38px;
  line-height: 1.15;
  max-width: 720px;
  margin-bottom: 20px;
}

.craft__subtitle {
  font-size: 15.5px;
  line-height: 1.5;
  color: var(--a-text-secondary);
  max-width: 640px;
}

.craft__journey {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.journey-card {
  padding: 32px 28px;
  border: 1px solid var(--a-divider);
  border-radius: 8px;
}

.journey-card__icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(120deg, var(--a-gold-light), var(--a-gold));
  color: #141311;
  margin-bottom: 20px;
}

.journey-card__stage {
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--a-gold);
  margin-bottom: 8px;
}

.journey-card__title {
  font-weight: 600;
  font-size: 19px;
  margin-bottom: 16px;
}

.journey-card ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.journey-card li {
  font-size: 14px;
  color: var(--a-text-secondary);
  padding-left: 18px;
  position: relative;
}

.journey-card li::before {
  content: "—";
  color: var(--a-gold);
  position: absolute;
  left: 0;
  top: 0;
}

/* StatsBar */

.stats {
  margin-top: 64px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--a-divider);
  border-bottom: 1px solid var(--a-divider);
  padding: 32px 0;
}

.stats__item {
  text-align: center;
  border-left: 1px solid var(--a-divider);
  padding: 0 16px;
}

.stats__item:first-child {
  border-left: none;
}

.stats__num {
  font-family: var(--f-head);
  font-weight: 700;
  font-size: 34px;
  color: var(--a-gold);
  margin-bottom: 8px;
}

.stats__label {
  font-size: 12px;
  color: var(--a-text-secondary);
}

/* Amenities */

.amenities--pills {
  margin-top: 48px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.amenities__pill {
  border: 1px solid var(--a-gold);
  border-radius: 999px;
  padding: 8px 18px;
  font-size: 11.5px;
  color: var(--a-gold);
  white-space: nowrap;
}

.amenities--checklist {
  display: none;
  margin-top: 48px;
  flex-direction: column;
  gap: 16px;
}

.amenities__check {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--a-text-secondary);
}

.amenities__check-icon {
  flex-shrink: 0;
  color: var(--a-gold);
}

/* ==========================================================================
   CTA Section
   ========================================================================== */

.cta {
  padding: 100px 64px;
  text-align: center;
  background: radial-gradient(140% 140% at 50% 50%, #1A160F, var(--a-bg));
}

.cta__title {
  font-weight: 600;
  font-size: 44px;
  line-height: 1.1;
  max-width: 780px;
  margin: 0 auto 32px;
}

.cta__button {
  display: inline-block;
  padding: 16px 48px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--a-gold-light), var(--a-gold));
  color: #141311;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 1px;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 40px 64px;
  border-top: 1px solid var(--a-divider);
}

.footer__logo {
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer__logo-img {
  height: 22px;
  width: auto;
}

.footer__logo-text {
  font-family: var(--f-head);
  font-size: 16px;
  letter-spacing: 1px;
  color: var(--a-gold);
}

.footer__copyright {
  font-size: 13px;
  color: var(--a-text-secondary);
}

.footer__links {
  display: flex;
  gap: 28px;
}

.footer__link {
  font-size: 13px;
  color: var(--a-text-secondary);
  transition: color 200ms ease;
}

.footer__link:hover {
  color: var(--a-text-primary);
}

/* ==========================================================================
   Responsive — Tablet (max-width: 1024px)
   ========================================================================== */

@media (max-width: 1024px) {
  .nav {
    padding: 24px 40px;
  }

  .nav__logo-img {
    height: 30px;
  }

  .nav__links a {
    font-size: 13px;
  }

  .hero__pin {
    padding: 40px;
  }

  .services,
  .craft {
    padding-left: 40px;
    padding-right: 40px;
  }

  .services__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer {
    padding: 40px;
  }
}

/* ==========================================================================
   Responsive — Mobile (max-width: 640px)
   ========================================================================== */

@media (max-width: 640px) {
  .nav {
    padding: 20px;
  }

  .nav__links,
  .nav__cta {
    display: none;
  }

  .nav__toggle {
    display: flex;
  }

  .services,
  .craft {
    padding-left: 20px;
    padding-right: 20px;
  }

  .services {
    padding-top: 64px;
    padding-bottom: 64px;
  }

  .craft {
    padding-top: 48px;
    padding-bottom: 48px;
  }

  .services__grid {
    grid-template-columns: 1fr;
  }

  .service-card {
    padding: 24px 20px;
  }

  .craft__journey {
    grid-template-columns: 1fr;
  }

  .journey-card {
    padding: 24px;
  }

  .stats {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 20px;
    column-gap: 16px;
  }

  .stats__item:nth-child(2n+1) {
    border-left: none;
  }

  .stats__item:nth-child(1),
  .stats__item:nth-child(2) {
    padding-bottom: 20px;
  }

  .amenities--pills {
    display: none;
  }

  .amenities--checklist {
    display: flex;
  }

  .cta {
    padding: 64px 20px;
  }

  .cta__title {
    font-size: 32px;
  }

  .cta__button {
    display: block;
    width: 100%;
    text-align: center;
  }

  .footer {
    flex-direction: column;
    gap: 16px;
    padding: 32px 20px;
    text-align: center;
  }
}

/* ==========================================================================
   Responsive — Hero mobile breakpoint (shared with JS, max-width: 767.98px)
   ========================================================================== */

@media (max-width: 767.98px) {
  .hero__pin {
    align-items: flex-end;
    padding: 8px 20px 180px;
  }

  .hero__scrim {
    background:
      linear-gradient(0deg, rgba(10, 9, 8, 0.95) 0%, rgba(10, 9, 8, 0.7) 45%, rgba(10, 9, 8, 0.3) 100%);
  }

  .hero__copy {
    display: flex;
    flex-direction: column;
    gap: 40px;
    max-width: none;
  }

  .hero__headline {
    font-size: 42px;
    line-height: 1.08;
  }

  .hero__beat[data-beat="0"] {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .hero__cta {
    display: block;
    text-align: center;
  }
}
