/* ==========================================================================
   Preloader (base visibility rules are inline in index.html)
   ========================================================================== */
.preloader {
  transition: opacity 0.7s var(--ease), visibility 0.7s;
}

.preloader.is-leaving {
  opacity: 0;
  visibility: hidden;
}

.preloader__inner {
  display: grid;
  justify-items: center;
  width: min(320px, calc(100vw - 3rem));
  text-align: center;
  transition: transform 0.7s var(--ease);
}

.preloader.is-leaving .preloader__inner {
  transform: translateY(-16px);
}

.preloader__mark {
  position: relative;
  display: inline-grid;
  place-items: center;
  grid-template-columns: auto auto;
  width: 64px;
  height: 64px;
  margin-bottom: 1.5rem;
  border-radius: 50%;
  border: 1px solid rgba(229, 183, 105, 0.45);
  font-family: var(--font-serif);
  font-size: 1.75rem;
  line-height: 1;
  color: var(--gold-soft);
  background: radial-gradient(circle at 30% 20%, rgba(229, 183, 105, 0.2), transparent 70%);
  animation: preloader-in 0.8s var(--ease) both;
}

.preloader__mark span:first-child {
  transform: translate(4px, -4px);
}

.preloader__mark span:last-child {
  transform: translate(-3px, 4px);
}

.preloader__mark i {
  position: absolute;
  width: 1px;
  height: 58%;
  background: currentColor;
  transform: rotate(22deg);
  opacity: 0.8;
}

.preloader__name {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 1.1rem + 1.2vw, 1.75rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  white-space: nowrap;
  animation: preloader-in 0.8s var(--ease) 0.1s both;
}

.preloader__tag {
  margin-top: 0.35rem;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-dim);
  animation: preloader-in 0.8s var(--ease) 0.2s both;
}

.preloader__bar {
  position: relative;
  width: 100%;
  height: 2px;
  margin-top: 1.75rem;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
  animation: preloader-in 0.8s var(--ease) 0.3s both;
}

.preloader__fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  background: var(--gradient-gold);
  box-shadow: 0 0 12px rgba(229, 183, 105, 0.6);
}

.preloader__pct {
  margin-top: 1rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-variant-numeric: tabular-nums;
  color: var(--text-muted);
  animation: preloader-in 0.8s var(--ease) 0.3s both;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  --btn-h: 52px;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: var(--btn-h);
  padding: 0 1.6rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.005em;
  white-space: nowrap;
  transition: transform var(--dur) var(--ease), background-color var(--dur) var(--ease),
    border-color var(--dur) var(--ease), color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
  isolation: isolate;
}

.btn__icon {
  display: inline-flex;
  transition: transform var(--dur) var(--ease);
}

.btn:hover .btn__icon {
  transform: translateX(3px);
}

.btn:hover .btn__icon--arrowUpRight {
  transform: translate(2px, -2px);
}

.btn--primary {
  background: var(--gradient-gold);
  color: #16110a;
  box-shadow: 0 8px 24px -8px rgba(229, 183, 105, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px -10px rgba(229, 183, 105, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.btn--primary:active {
  transform: translateY(0);
}

.btn--ghost {
  border: 1px solid var(--border-strong);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
}

.btn--ghost:hover {
  border-color: rgba(229, 183, 105, 0.5);
  background: var(--gold-a10);
  transform: translateY(-2px);
}

.btn--link {
  --btn-h: auto;
  padding: 0;
  border-radius: 4px;
  color: var(--gold);
  font-size: 0.9rem;
}

.btn--link .btn__label {
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size var(--dur) var(--ease);
  padding-bottom: 2px;
}

.btn--link:hover .btn__label {
  background-size: 100% 1px;
}

.btn--sm {
  --btn-h: 42px;
  padding: 0 1.15rem;
  font-size: 0.875rem;
}

.btn--lg {
  --btn-h: 56px;
  padding: 0 2rem;
}

.btn:disabled {
  cursor: progress;
  opacity: 0.85;
}

.spinner {
  display: none;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(22, 17, 10, 0.25);
  border-top-color: #16110a;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

.btn.is-loading .btn__icon {
  display: none;
}

.btn.is-loading .spinner {
  display: inline-block;
}

/* ==========================================================================
   Chips, badges, tags
   ========================================================================== */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius-pill);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
}

.chip--glass {
  background: rgba(10, 13, 20, 0.55);
  border: 1px solid var(--border-strong);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.pulse-dot {
  position: relative;
  width: 7px;
  height: 7px;
  flex: none;
  border-radius: 50%;
  background: var(--gold);
}

.pulse-dot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: inherit;
  animation: pulse 2.4s var(--ease) infinite;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.8rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  font-size: 0.8rem;
  color: var(--text-muted);
}

.badge::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 1px;
  background: var(--gold);
  transform: rotate(45deg);
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag {
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-pill);
  background: var(--surface-2);
  border: 1px solid var(--border);
  font-size: 0.8rem;
  line-height: 1.4;
  color: var(--text-muted);
}

.tags--sm .tag {
  padding: 0.25rem 0.65rem;
  font-size: 0.75rem;
}

.tags--outline .tag {
  background: transparent;
  border-color: var(--border-strong);
  color: var(--text);
}

/* ==========================================================================
   Media (with loading skeleton)
   ========================================================================== */
.media {
  position: relative;
  overflow: hidden;
  background: linear-gradient(100deg, var(--bg-3) 30%, #161c29 50%, var(--bg-3) 70%) 0 0 / 250% 100%;
  animation: shimmer 1.6s linear infinite;
}

.media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.6s var(--ease), transform 0.9s var(--ease);
}

.media.is-loaded {
  animation: none;
  background: var(--bg-3);
}

.media.is-loaded img {
  opacity: 1;
}

.media.is-error img {
  opacity: 0;
}

/* ==========================================================================
   Brand mark
   ========================================================================== */
.monogram {
  position: relative;
  display: inline-grid;
  place-items: center;
  grid-template-columns: auto auto;
  width: 44px;
  height: 44px;
  flex: none;
  border-radius: 50%;
  border: 1px solid rgba(229, 183, 105, 0.45);
  font-family: var(--font-serif);
  font-size: 1.25rem;
  line-height: 1;
  color: var(--gold-soft);
  background: radial-gradient(circle at 30% 20%, rgba(229, 183, 105, 0.18), transparent 70%);
}

.monogram span:first-child {
  transform: translate(3px, -3px);
}

.monogram span:last-child {
  transform: translate(-2px, 3px);
}

.monogram i {
  position: absolute;
  width: 1px;
  height: 58%;
  background: currentColor;
  transform: rotate(22deg);
  opacity: 0.8;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  border-radius: var(--radius-pill);
}

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand__name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.98rem;
  letter-spacing: -0.01em;
}

.brand__tag {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--gold-soft);
  letter-spacing: 0.08em;
}

.icon-tile {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  flex: none;
  border-radius: 12px;
  color: var(--gold);
  background: linear-gradient(150deg, rgba(229, 183, 105, 0.16), rgba(229, 183, 105, 0.03));
  border: 1px solid rgba(229, 183, 105, 0.22);
}

.icon-tile--sm {
  width: 42px;
  height: 42px;
  border-radius: 10px;
}

/* ==========================================================================
   Section heading
   ========================================================================== */
.section-heading {
  display: grid;
  gap: 1.1rem;
  max-width: 44rem;
  margin-bottom: clamp(2.5rem, 4vw, 4rem);
}

.section-heading--center {
  margin-inline: auto;
  text-align: center;
  justify-items: center;
}

.section-title {
  font-size: var(--fs-h2);
  line-height: 1.06;
  letter-spacing: -0.035em;
}

.section-title .serif-accent {
  font-size: 1.08em;
}

.section-lede {
  max-width: 38rem;
  font-size: var(--fs-lg);
  line-height: 1.6;
  color: var(--text-muted);
}

.subsection-title {
  font-size: var(--fs-xl);
  letter-spacing: -0.02em;
}

/* ==========================================================================
   Header / navigation
   ========================================================================== */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  padding-top: env(safe-area-inset-top, 0px);
  transition: background-color var(--dur) var(--ease), border-color var(--dur) var(--ease),
    -webkit-backdrop-filter var(--dur) var(--ease), backdrop-filter var(--dur) var(--ease);
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled,
.site-header.menu-open {
  background: rgba(7, 9, 15, 0.72);
  border-bottom-color: var(--border);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  backdrop-filter: blur(18px) saturate(160%);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: var(--header-h);
  transition: height var(--dur) var(--ease);
}

.site-header.is-scrolled .nav {
  height: 64px;
}

.site-header.is-scrolled .monogram {
  transform: scale(0.9);
}

.monogram {
  transition: transform var(--dur) var(--ease);
}

.nav__menu {
  flex: 1;
  display: flex;
  justify-content: center;
}

.nav__list {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.3rem;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  transition: border-color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}

.site-header:not(.is-scrolled) .nav__list {
  border-color: var(--border);
  background: rgba(255, 255, 255, 0.025);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.nav__link {
  position: relative;
  display: block;
  padding: 0.5rem 0.95rem;
  border-radius: var(--radius-pill);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}

.nav__link:hover {
  color: var(--text);
}

.nav__link.is-active {
  color: var(--text);
  background: var(--surface-3);
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav__toggle {
  display: none;
  position: relative;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  background: rgba(255, 255, 255, 0.03);
}

.nav__toggle-bar {
  position: absolute;
  left: 50%;
  width: 18px;
  height: 1.5px;
  margin-left: -9px;
  border-radius: 2px;
  background: var(--text);
  transition: transform var(--dur) var(--ease), width var(--dur) var(--ease);
}

.nav__toggle-bar:first-child {
  top: 19px;
}

.nav__toggle-bar:last-child {
  top: 25px;
  width: 12px;
}

.nav__toggle[aria-expanded="true"] .nav__toggle-bar:first-child {
  transform: translateY(3px) rotate(45deg);
}

.nav__toggle[aria-expanded="true"] .nav__toggle-bar:last-child {
  width: 18px;
  transform: translateY(-3px) rotate(-45deg);
}

/* Mobile menu */
/* Sibling of the header (not a child): the header's backdrop-filter would otherwise
   become the containing block for this fixed element. */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 99;
  padding-top: calc(var(--header-h) + env(safe-area-inset-top, 0px));
  overflow-y: auto;
  overscroll-behavior: contain;
  background: rgba(7, 9, 15, 0.97);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  opacity: 0;
  transition: opacity 0.35s var(--ease);
}

.mobile-menu.is-open {
  opacity: 1;
}

.mobile-menu__inner {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100%;
  padding-block: 1.5rem 2.5rem;
  gap: 2rem;
}

.mobile-menu__list li {
  border-bottom: 1px solid var(--border);
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.45s var(--ease), transform 0.45s var(--ease);
  transition-delay: calc(var(--i) * 45ms + 60ms);
}

.mobile-menu.is-open .mobile-menu__list li {
  opacity: 1;
  transform: none;
}

.mobile-menu__link {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding: 1.05rem 0;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 6vw, 2.2rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  transition: color var(--dur) var(--ease), padding var(--dur) var(--ease);
}

.mobile-menu__link:hover,
.mobile-menu__link:focus-visible {
  color: var(--gold-soft);
  padding-left: 0.4rem;
}

.mobile-menu__num {
  width: 1.5rem;
  flex: none;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--gold);
}

.mobile-menu__footer {
  display: grid;
  gap: 1.25rem;
}

.mobile-menu__contact {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

@media (max-width: 1180px) {
  .nav__link {
    padding: 0.5rem 0.75rem;
  }
}

@media (max-width: 1024px) {
  .nav__menu {
    display: none;
  }
  .nav__toggle {
    display: inline-block;
  }
}

@media (max-width: 600px) {
  [data-nav-cta] {
    display: none;
  }
}
/* ==========================================================================
   Filters
   ========================================================================== */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.filter {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 42px;
  padding: 0 1rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: all var(--dur) var(--ease);
}

.filter:hover {
  color: var(--text);
  border-color: var(--border-strong);
}

.filter.is-active {
  color: #16110a;
  background: var(--gold);
  border-color: var(--gold);
}

.filter__count {
  min-width: 1.5rem;
  padding: 0.05rem 0.4rem;
  border-radius: var(--radius-pill);
  background: var(--surface-3);
  font-size: 0.7rem;
  text-align: center;
}

.filter.is-active .filter__count {
  background: rgba(0, 0, 0, 0.14);
}

/* ==========================================================================
   Dialog
   ========================================================================== */
.dialog {
  width: min(960px, calc(100% - 2rem));
  max-height: calc(100dvh - 2rem);
  padding: 0;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  background: var(--bg-2);
  color: var(--text);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.dialog[open] {
  animation: dialog-in 0.45s var(--ease);
}

.dialog::backdrop {
  background: rgba(3, 4, 8, 0.72);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.dialog__content {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  max-height: calc(100dvh - 2rem);
  overflow-y: auto;
}

.dialog__media .media {
  height: 100%;
  min-height: 320px;
}

.dialog__body {
  display: grid;
  gap: 1.25rem;
  align-content: start;
  padding: clamp(1.5rem, 3vw, 2.75rem);
}

.dialog__title {
  font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.1rem);
  letter-spacing: -0.03em;
  padding-right: 2.5rem;
}

.dialog__facts {
  display: grid;
  gap: 0.75rem;
  padding: 1rem 0;
  border-block: 1px solid var(--border);
}

.dialog__facts div {
  display: grid;
  grid-template-columns: 7.5rem 1fr;
  gap: 1rem;
  font-size: 0.9rem;
}

.dialog__facts dt {
  color: var(--text-dim);
}

.dialog__desc {
  color: var(--text-muted);
}

.dialog__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(7, 9, 15, 0.7);
  border: 1px solid var(--border-strong);
  transition: transform var(--dur) var(--ease), background-color var(--dur) var(--ease);
}

.dialog__close:hover {
  transform: rotate(90deg);
  background: var(--surface-3);
}

.check-list {
  display: grid;
  gap: 0.75rem;
}

.check-list li {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 0.6rem;
  font-size: 0.95rem;
  color: var(--text);
}

.check-list .icon {
  margin-top: 0.3rem;
  color: var(--gold);
}

@media (max-width: 760px) {
  .dialog__content {
    grid-template-columns: 1fr;
  }
  .dialog__media .media {
    min-height: 0;
    aspect-ratio: 16 / 9;
  }
}

/* ==========================================================================
   Form fields (floating labels)
   ========================================================================== */
.field {
  display: grid;
  gap: 0.6rem;
  align-content: start;
}

.field--wide {
  grid-column: 1 / -1;
}

.field label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color var(--dur) var(--ease);
}

.field__optional {
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: none;
  color: var(--text-dim);
}

.field input,
.field textarea {
  width: 100%;
  padding: 0.95rem 1.1rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(4, 6, 11, 0.6);
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.35);
  font-size: 1rem;
  line-height: 1.5;
  transition: border-color var(--dur) var(--ease), background-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
  resize: vertical;
}

.field input {
  height: 56px;
}

.field textarea {
  min-height: 170px;
}

.field input:hover,
.field textarea:hover {
  border-color: rgba(255, 255, 255, 0.18);
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: rgba(229, 183, 105, 0.7);
  background: rgba(4, 6, 11, 0.8);
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.35), 0 0 0 4px rgba(229, 183, 105, 0.12);
}

.field:focus-within label {
  color: var(--gold);
}

.field [aria-invalid="true"] {
  border-color: #e0736b;
}

.field:has([aria-invalid="true"]) label {
  color: #e0736b;
}

.field__error {
  font-size: 0.8rem;
  color: #f0918a;
}

.field__error:empty {
  display: none;
}
/* ==========================================================================
   Copy button, socials
   ========================================================================== */
.copy-btn {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex: none;
  border-radius: 10px;
  color: var(--text-dim);
  transition: color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}

.copy-btn:hover {
  color: var(--text);
  background: var(--surface-2);
}

.copy-btn.is-copied {
  color: var(--gold);
}

.socials {
  display: flex;
  gap: 0.6rem;
  margin-top: 1.75rem;
}

.social {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  color: var(--text-muted);
  transition: all var(--dur) var(--ease);
}

.social:hover {
  color: #16110a;
  background: var(--gold);
  border-color: var(--gold);
  transform: translateY(-2px);
}
