:root {
  --ink: #0e0e0f;
  --ink-soft: #161617;
  --ivory: #f5f5f5;
  --gold: #b59a6d;
  --gold-bright: #c9b088;
  --muted: #a3a3a3;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --max: 80rem;
}

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

html {
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: #b59a6d #10141b;
  overflow-x: hidden;
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: #10141b;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #e4c98a 0%, #b59a6d 45%, #8d6b3a 100%);
  border-radius: 999px;
  border: 2px solid #10141b;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #f3ddb0 0%, #d4b57a 50%, #a07c45 100%);
}

::-webkit-scrollbar-corner {
  background: #10141b;
}

body {
  margin: 0;
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  background: var(--ink);
  color: var(--ivory);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 80;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
}

::selection {
  background: #b59a6d;
  color: #0e0e0f;
}

.font-editorial,
.cb-editorial {
  font-family: "Cormorant Garamond", Georgia, serif;
}

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

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

.cb-container {
  width: min(var(--max), calc(100% - 2rem));
  margin-inline: auto;
}

@media (min-width: 640px) {
  .cb-container {
    width: min(var(--max), calc(100% - 3rem));
  }
}

@media (min-width: 1024px) {
  .cb-container {
    width: min(var(--max), calc(100% - 4rem));
  }
}

/* Shared interactive polish — match React index.css */
button,
a,
.cb-btn {
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), background-color 0.3s,
    border-color 0.3s, color 0.3s, opacity 0.3s;
}

button:hover,
a:hover,
.cb-btn:hover {
  transform: translateY(-2px);
}

button:active,
a:active,
.cb-btn:active {
  transform: translateY(0) scale(0.98);
}

.nav-link:hover,
.cb-nav a:hover {
  transform: none;
}

.btn-primary,
.btn-ghost,
.cb-btn--primary,
.cb-btn--ghost {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.btn-primary::after,
.btn-ghost::after,
.cb-btn--primary::after,
.cb-btn--ghost::after {
  content: "";
  position: absolute;
  top: 0;
  left: -70%;
  width: 45%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.38), transparent);
  transform: skewX(-18deg);
  transition: left 0.6s var(--ease);
  pointer-events: none;
}

.btn-primary:hover::after,
.btn-ghost:hover::after,
.cb-btn--primary:hover::after,
.cb-btn--ghost:hover::after {
  left: 140%;
}

.cb-btn,
.btn-primary,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.875rem;
  padding: 0.85rem 1.6rem;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: inherit;
}

.btn-primary,
.cb-btn--primary {
  background: var(--gold) !important;
  color: #0e0e0f !important;
  box-shadow: 0 12px 28px rgba(181, 154, 109, 0.28);
}

.btn-primary:hover,
.cb-btn--primary:hover {
  background: var(--gold-bright) !important;
  box-shadow: 0 18px 40px rgba(181, 154, 109, 0.4);
}

.btn-ghost,
.cb-btn--ghost {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(245, 245, 245, 0.35) !important;
  color: var(--ivory) !important;
}

.btn-ghost:hover,
.cb-btn--ghost:hover {
  border-color: var(--gold) !important;
  color: var(--gold) !important;
}

.nav-link,
.cb-nav a {
  position: relative;
}

.nav-link::after,
.cb-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  height: 1px;
  width: 100%;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}

.nav-link:hover::after,
.nav-link.is-active::after,
.cb-nav a:hover::after,
.cb-nav .current-menu-item > a::after {
  transform: scaleX(1);
}

.lift-card {
  transition: transform 0.5s var(--ease), border-color 0.4s, box-shadow 0.5s var(--ease);
}

.lift-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35);
}

.photo-zoom {
  overflow: hidden;
}

.photo-zoom img {
  transition: transform 0.9s var(--ease);
}

.photo-zoom:hover img {
  transform: scale(1.06);
}

input[type="range"] {
  accent-color: #b59a6d;
  width: 100%;
  height: 0.5rem;
  background: #2a2a2a;
  border-radius: 0.5rem;
  appearance: none;
  cursor: pointer;
}

/* Custom cursor — exact React parity */
html.has-custom-cursor,
html.has-custom-cursor * {
  cursor: none !important;
}

html.cursor-hidden .cursor-dot,
html.cursor-hidden .cursor-ring {
  opacity: 0;
}

.cursor-dot,
.cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  border-radius: 999px;
  pointer-events: none;
  z-index: 200;
  will-change: transform;
}

.cursor-dot {
  width: 7px;
  height: 7px;
  margin: -3.5px 0 0 -3.5px;
  background: #b59a6d;
  box-shadow: 0 0 12px rgba(198, 164, 106, 0.8);
  transition: width 0.3s var(--ease), height 0.3s var(--ease), margin 0.3s var(--ease), opacity 0.3s;
}

.cursor-ring {
  width: 38px;
  height: 38px;
  margin: -19px 0 0 -19px;
  border: 1px solid rgba(198, 164, 106, 0.85);
  transition: width 0.35s var(--ease), height 0.35s var(--ease), margin 0.35s var(--ease),
    background 0.35s, border-color 0.35s, opacity 0.3s;
}

.cursor-ring.is-hover {
  width: 68px;
  height: 68px;
  margin: -34px 0 0 -34px;
  background: rgba(181, 154, 109, 0.18);
  border-color: #c9b088;
}

.cursor-dot.is-hover {
  width: 0;
  height: 0;
  margin: 0;
  opacity: 0;
}

/* Header — React Header.tsx */
.cb-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 40;
  padding: 1.25rem 0;
  transition: background 0.5s, padding 0.5s, border-color 0.5s, backdrop-filter 0.5s, box-shadow 0.5s;
  border-bottom: 1px solid transparent;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.5), transparent);
}

.cb-header.is-scrolled {
  padding: 0.75rem 0;
  background: rgba(14, 14, 15, 0.9);
  backdrop-filter: blur(24px);
  border-bottom-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
}

.cb-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.cb-logo {
  display: inline-flex;
  align-items: center;
  line-height: 0;
  flex-shrink: 0;
  max-width: 9.5rem;
}

.cb-header .cb-logo img,
.cb-header .custom-logo {
  display: block;
  height: 2.25rem !important;
  width: auto !important;
  max-width: 9.5rem !important;
  max-height: 2.25rem !important;
  object-fit: contain;
  object-position: left center;
}

@media (min-width: 1024px) {
  .cb-logo {
    max-width: 11rem;
  }

  .cb-header .cb-logo img,
  .cb-header .custom-logo {
    height: 2.75rem !important;
    max-width: 11rem !important;
    max-height: 2.75rem !important;
  }
}

.cb-logo-text {
  font-weight: 600;
  letter-spacing: -0.02em;
  font-size: 1.1rem;
  color: #f6f3ec;
}

.cb-nav {
  display: none;
  align-items: center;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.cb-nav a {
  font-size: 0.8125rem;
  letter-spacing: 0.02em;
  color: #c9c3b8;
  padding: 0.25rem 0;
  display: inline-block;
}

.cb-nav a:hover,
.cb-nav .current-menu-item > a {
  color: #f6f3ec;
}

.cb-header__cta {
  display: none;
  font-size: 0.75rem !important;
  padding: 0.625rem 1.25rem !important;
}

.cb-menu-toggle {
  display: inline-flex;
  background: none;
  border: 0;
  color: var(--muted);
  padding: 0.5rem;
  cursor: pointer;
}

.cb-menu-toggle svg[hidden] {
  display: none !important;
}

.cb-menu-toggle:hover {
  color: #f5f5f5;
  transform: none;
}

.cb-mobile-cta {
  display: inline-flex;
  font-size: 0.75rem !important;
  padding: 0.375rem 0.75rem !important;
}

.cb-header__mobile-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.cb-mobile-panel {
  display: none;
  margin-top: 0.75rem;
  padding: 1.25rem;
  border-top: 1px solid #2a2a2a;
  background: rgba(22, 22, 23, 0.95);
  backdrop-filter: blur(24px);
  border-radius: 1rem;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.45);
}

.cb-mobile-panel.is-open {
  display: block;
}

.cb-mobile-panel .cb-nav {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.25rem;
}

.cb-mobile-panel .cb-nav a {
  padding: 0.625rem 0.75rem;
  border-radius: 0.5rem;
  color: #a3a3a3;
}

.cb-mobile-panel .cb-nav a:hover {
  color: #fff;
  background: #1a1a1a;
}

.cb-mobile-panel .cb-nav .current-menu-item > a {
  background: rgba(181, 154, 109, 0.15);
  color: #fff;
  border: 1px solid rgba(181, 154, 109, 0.3);
}

.cb-mobile-panel .cb-nav a::after {
  display: none;
}

@media (min-width: 640px) {
  .cb-mobile-cta {
    display: none;
  }

  .cb-header__cta {
    display: inline-flex;
  }
}

@media (min-width: 1024px) {
  .cb-nav {
    display: flex;
  }

  .cb-header__mobile-actions {
    display: none;
  }

  .cb-mobile-panel {
    display: none !important;
  }
}

/* Footer */
.cb-footer {
  background: #0e0e0f;
  border-top: 1px solid rgba(42, 42, 42, 0.8);
  color: #a3a3a3;
  padding: 4rem 0;
}

.cb-footer__grid {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 768px) {
  .cb-footer__grid {
    grid-template-columns: 5fr 4fr 3fr;
    align-items: start;
  }
}

.cb-footer h4 {
  margin: 0 0 0.75rem;
  color: #fff;
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cb-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.cb-footer li + li {
  margin-top: 0.625rem;
}

.cb-footer a:hover {
  color: #fff;
}

.cb-footer__brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.cb-footer__brand img {
  height: 2.25rem;
  width: auto;
}

.cb-footer__social {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
}

.cb-footer__social a {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.5rem;
  background: #161617;
  border: 1px solid #2a2a2a;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #a3a3a3;
}

.cb-footer__social a:hover {
  color: #b59a6d;
  border-color: #b59a6d;
  transform: translateY(-2px);
}

.cb-footer__cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  font-size: 0.75rem;
}

.cb-footer__card {
  background: #161617;
  border: 1px solid #2a2a2a;
  border-radius: 1rem;
  padding: 1.25rem;
}

.cb-footer__meta {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(42, 42, 42, 0.7);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  font-size: 0.75rem;
  color: #6b6b6b;
}

@media (min-width: 640px) {
  .cb-footer__meta {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

/* Reveal — React Reveal distances */
.cb-reveal {
  opacity: 1;
  transform: none;
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
  will-change: opacity, transform;
}

.js-reveal-ready .cb-reveal:not(.is-in) {
  opacity: 0;
  transform: translateY(40px);
}

.js-reveal-ready .cb-reveal--left:not(.is-in) {
  transform: translateX(-56px);
}

.js-reveal-ready .cb-reveal--right:not(.is-in) {
  transform: translateX(56px);
}

.cb-reveal.is-in {
  opacity: 1 !important;
  transform: none !important;
}

.cb-site-main {
  min-height: 60vh;
  padding-top: 0;
}

.cb-gold {
  color: var(--gold);
}

.cb-muted {
  color: var(--muted);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .cb-reveal,
  .js-reveal-ready .cb-reveal:not(.is-in) {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* Modals */
html.cb-modal-open {
  overflow: hidden;
}

.cb-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.cb-modal[hidden] {
  display: none !important;
}

.cb-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 9, 13, 0.8);
  backdrop-filter: blur(10px);
}

.cb-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(40rem, 100%);
  max-height: min(90vh, 900px);
  overflow: auto;
  border-radius: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #161617;
  padding: 1.75rem;
  color: #f6f3ec;
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.5);
}

.cb-modal__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  border: 0;
  background: transparent;
  color: #8e887e;
  cursor: pointer;
  font-size: 1rem;
}

.cb-modal__dialog h2 {
  margin: 0.35rem 0 0.75rem;
  font-size: clamp(1.5rem, 3vw, 2rem);
}

.cb-modal__form {
  display: grid;
  gap: 0.85rem;
  margin-top: 1rem;
}

.cb-modal__grid {
  display: grid;
  gap: 0.85rem;
}

@media (min-width: 640px) {
  .cb-modal__grid {
    grid-template-columns: 1fr 1fr;
  }
}

.cb-modal__form label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.75rem;
  color: #b7b1a6;
}

.cb-modal__form input,
.cb-modal__form select,
.cb-modal__form textarea,
.cb-page-form input {
  width: 100%;
  border-radius: 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #0e0e0f;
  color: #fff;
  padding: 0.75rem 0.9rem;
  font: inherit;
}

.cb-header__cta,
.cb-mobile-cta {
  border: 0;
  cursor: pointer;
  font: inherit;
}
