@font-face {
  font-family: "Black Ops One";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("https://fonts.gstatic.com/s/blackopsone/v21/qWcsB6-ypo7xBdr6Xshe96H3aDvbtw.woff2") format("woff2");
}

@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url("https://fonts.gstatic.com/s/montserrat/v31/JTUSjIg1_i6t8kCHKm459Wlhyw.woff2") format("woff2");
}

@layer base {
  html {
    overflow-x: clip;
  }
  html, body {
    margin: 0;
    padding: 0;
  }
  body {
    overscroll-behavior: none;
  }
  img {
    filter: grayscale(100%);
  }
}

/* =========================================================
   Noche Viva Sticky Hero (Grayscale Theme Edition)
   ========================================================= */
.nv-track {
  position: relative;
  height: 260svh;
  background: #e4e4e7;
}

.nv-hero {
  position: sticky;
  top: 0;
  width: 100%;
  height: 100svh;
  overflow: hidden;
  background: #e4e4e7;
}

.nv-world {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 1;
}

.nv-world img {
  position: absolute;
  max-width: none;
  filter: grayscale(100%);
}

#nv-layers {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.nv-half {
  position: absolute;
  top: 0;
  bottom: 0;
  overflow: hidden;
  background: #e4e4e7;
  z-index: 3;
  will-change: transform;
}

.nv-half-l {
  left: 0;
}

.nv-half-r {
  right: 0;
}

.nv-half img {
  position: absolute;
  max-width: none;
  filter: grayscale(100%) contrast(1.04);
}

.nv-band {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 2;
  background-color: #18181b;
  background-size: cover;
  background-position: 50% 0;
  background-repeat: no-repeat;
  filter: grayscale(100%);
  will-change: transform;
  transform: translate3d(0, 102vh, 0);
}

.nv-title {
  position: absolute;
  right: 3vw;
  margin: 0;
  font-family: "Black Ops One", Impact, sans-serif;
  line-height: 1;
  color: #f4f4f5;
  letter-spacing: 0.01em;
  white-space: nowrap;
  text-shadow: 0 0 18px rgba(255, 255, 255, 0.22), 0 0 2px rgba(255, 255, 255, 0.5);
  pointer-events: none;
}

.nv-ledge-sub {
  position: absolute;
  right: 3vw;
  font-family: "Montserrat", system-ui, sans-serif;
  font-size: clamp(10px, 1vw, 13px);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #d4d4d8;
  font-weight: 500;
  pointer-events: none;
}

.nv-ledge-cta {
  position: absolute;
  right: 3vw;
}

.nv-scroll-cue {
  position: absolute;
  left: 1.5rem;
  bottom: 1.25rem;
  z-index: 4;
  font-family: "Montserrat", system-ui, sans-serif;
}

/* Visually hidden helper for screen readers (canonical clip-path recipe) */
.visually-hidden {
  position: absolute;
  clip-path: inset(50%);
  overflow: hidden;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  white-space: nowrap;
}

/* Focus visibility */
:focus-visible {
  outline: 2px solid #18181b;
  outline-offset: 2px;
}

/* =========================================================
   Responsive Site Navigation (Modern Web Guidance: navbar)
   ========================================================= */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(18px);
  box-shadow: 0 1px 10px rgba(0, 0, 0, 0.06);
}

.site-header.is-measuring * {
  transition: none !important;
}

.header-inner {
  max-width: 80rem;
  margin-inline: auto;
  padding-inline: 1.5rem;
  height: 4.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.header-inner > * {
  flex-shrink: 0;
  white-space: nowrap;
}

.site-nav {
  display: flex;
  align-items: center;
}

.menu-button {
  anchor-name: --menu-button;
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  background: #ececee;
  color: #18181b;
  font-weight: 600;
  font-size: 0.875rem;
  border: 1px solid #d4d4d8;
  cursor: pointer;
}

.site-menu {
  position: fixed;
  inset: auto;
  inset-block-start: 6.5rem;
  inset-block-start: anchor(--menu-button bottom);
  inset-inline-end: 1rem;
  inline-size: min(85dvw, 22rem);
  max-inline-size: calc(100dvw - 2rem);
  block-size: fit-content;
  max-block-size: calc(100dvh - 8rem);
  margin-block-start: 0.5rem;
  padding: 0.5rem;
  overflow: auto;
  list-style: none;
  background: #ffffff;
  border-radius: 0.75rem;
  border: 1px solid #d4d4d8;
  box-shadow: 0 20px 30px -6px rgba(0, 0, 0, 0.14);
}

@supports not selector(:popover-open) {
  [popover]:not(.\:popover-open) {
    display: none;
  }
}

[popover]:is(:popover-open, .\:popover-open) {
  display: block;
}

.site-menu a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 0.875rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #3f3f46;
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.site-menu a:hover {
  background: #e4e4e7;
  color: #18181b;
}

.site-menu a[aria-current="page"] {
  background: #18181b;
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.22);
  position: relative;
}

.site-menu a[aria-current="page"]::after {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 9999px;
  background: #d4d4d8;
  margin-inline-start: auto;
}

.site-header.is-wide .menu-button {
  display: none;
}

.site-header.is-wide .site-menu {
  position: static;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  inline-size: auto;
  max-inline-size: none;
  block-size: auto;
  max-block-size: none;
  overflow: visible;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.site-header.is-wide .site-menu::backdrop {
  display: none;
}

.site-header.is-wide .site-menu a[aria-current="page"]::after {
  margin-inline-start: 0.25rem;
}

@media (forced-colors: active) {
  .site-menu a[aria-current="page"] {
    outline: 2px solid Highlight;
  }
}

/* =========================================================
   Native Modal Dialogs (Modern Web Guidance: dialog)
   ========================================================= */
dialog {
  padding: 0;
  border: 1px solid #d4d4d8;
  border-radius: 1rem;
  background: #ffffff;
  color: #18181b;
  max-inline-size: min(94dvw, 38rem);
  width: 100%;
  max-block-size: 90dvh;
  box-shadow: 0 24px 48px -12px rgba(0, 0, 0, 0.25);
}

dialog.dialog-wide {
  max-inline-size: min(94dvw, 48rem);
}

dialog:modal {
  overscroll-behavior: contain;
}

dialog::backdrop {
  background: rgba(9, 9, 11, 0.58);
  backdrop-filter: blur(4px);
  overflow: hidden;
  overscroll-behavior: contain;
}

dialog[open] {
  display: flex;
  flex-direction: column;
}

/* =========================================================
   Forms & Validation (:user-invalid only, 48px tap targets)
   ========================================================= */
.uol-input, .uol-select, .uol-textarea {
  font: inherit;
  font-size: max(1rem, 0.9375rem);
  min-height: 44px;
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  border: 1px solid #71717a;
  background: #f4f4f5;
  color: #18181b;
  width: 100%;
  box-sizing: border-box;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.uol-input:user-invalid,
.uol-select:user-invalid,
.uol-textarea:user-invalid,
.uol-input[aria-invalid="true"],
.uol-select[aria-invalid="true"] {
  border-color: #18181b;
  background: #f4f4f5;
}

.field-error {
  color: #3f3f46;
  font-size: 0.75rem;
  font-weight: 700;
  min-height: 1rem;
}

/* =========================================================
   Responsive Tables (Modern Web Guidance: responsive-table)
   ========================================================= */
.table-wrapper {
  overflow: auto;
  max-inline-size: 100%;
  max-block-size: min(560px, 75dvh);
  container-type: inline-size;
}

.uol-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

.uol-table thead {
  position: sticky;
  inset-block-start: 0;
  z-index: 2;
}

@container (width < 640px) {
  .uol-table, .uol-table thead, .uol-table tbody, .uol-table tr, .uol-table th, .uol-table td {
    display: block;
  }

  .uol-table thead {
    display: none;
  }

  .uol-table tr {
    margin-block-end: 0.875rem;
    border: 1px solid #d4d4d8;
    border-radius: 0.75rem;
    padding: 0.75rem;
    background: #ffffff;
  }

  .uol-table td, .uol-table tbody th {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    padding: 0.375rem 0.25rem !important;
    text-align: right !important;
  }

  .uol-table td::before, .uol-table tbody th::before {
    content: attr(data-label);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #52525b;
    text-align: left;
    flex-shrink: 0;
  }
}

/* =========================================================
   Persistent Toast Notifications (popover="manual")
   ========================================================= */
.toast-stack {
  position: fixed;
  inset-block-end: 1.25rem;
  inset-inline-end: 1.25rem;
  z-index: 60;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  max-inline-size: min(92dvw, 24rem);
  pointer-events: none;
}

.uol-toast[popover] {
  position: relative;
  inset: auto;
  margin: 0;
  pointer-events: auto;
  background: #18181b;
  color: #ffffff;
  border: 1px solid #71717a;
  border-radius: 0.75rem;
  padding: 0.75rem 1rem;
  box-shadow: 0 16px 32px -8px rgba(0, 0, 0, 0.35);
  opacity: 0;
  translate: 0 0.75rem;
  transition: opacity 0.2s ease, translate 0.2s ease, display 0.2s ease, overlay 0.2s ease;
  transition-behavior: allow-discrete;
}

.uol-toast[popover]:is(:popover-open, .\:popover-open) {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  opacity: 1;
  translate: 0 0;
}

@starting-style {
  .uol-toast[popover]:is(:popover-open, .\:popover-open) {
    opacity: 0;
    translate: 0 0.75rem;
  }
}

.uol-toast.toast-error[popover] {
  background: #27272a;
  border-color: #d4d4d8;
}

@media (prefers-reduced-motion: reduce) {
  .uol-toast[popover] {
    transition: none;
  }
}

/* Subtle architectural court grid pattern */
.court-pattern {
  background-image: radial-gradient(rgba(24, 24, 27, 0.12) 1px, transparent 1px);
  background-size: 16px 16px;
}

@media print {
  header, footer, .no-print {
    display: none !important;
  }
  main {
    padding-top: 0 !important;
  }
}
