/**
 * Full-site Tailwind-style utilities + layout primitives (self-hosted)
 * Version: 5.2.0 — class-level page rewrites
 */

/* ---- Reset helpers ---- */
.box-border { box-sizing: border-box; }

/* ---- Display ---- */
.flex { display: flex; }
.inline-flex { display: inline-flex; }
.grid { display: grid; }
.hidden { display: none !important; }
.block { display: block; }
.inline-block { display: inline-block; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.items-end { align-items: flex-end; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-end { justify-content: flex-end; }
.flex-wrap { flex-wrap: wrap; }
.flex-col { flex-direction: column; }
.flex-1 { flex: 1 1 0%; }
.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-5 { gap: 1.25rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.gap-10 { gap: 2.5rem; }
.gap-12 { gap: 3rem; }

/* ---- Grid ---- */
.grid-cols-1 { grid-template-columns: 1fr; }
.grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
@media (min-width: 40em) {
  .sm\:grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 62em) {
  .lg\:grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
  .lg\:grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
  .lg\:grid-cols-\[1fr_1\.1fr\] { grid-template-columns: 1fr 1.1fr; }
  .lg\:grid-cols-\[1\.2fr_1fr\] { grid-template-columns: 1.2fr 1fr; }
  .lg\:grid-cols-\[1\.15fr_1fr\] { grid-template-columns: 1.15fr 1fr; }
}

/* ---- Sizing ---- */
.w-full { width: 100%; }
.h-full { height: 100%; }
.h-auto { height: auto; }
.min-h-screen { min-height: 100dvh; }
.min-h-\[40vh\] { min-height: 40vh; }
.min-h-\[52vh\] { min-height: 52vh; }
.max-w-prose { max-width: 42rem; }
.max-w-3xl { max-width: 48rem; }
.max-w-5xl { max-width: 64rem; }
.max-w-6xl { max-width: 72rem; }
.max-w-7xl { max-width: 80rem; }
.mx-auto { margin-left: auto; margin-right: auto; }
.object-cover { object-fit: cover; }

/* ---- Spacing ---- */
.p-0 { padding: 0; }
.p-3 { padding: 0.75rem; }
.p-4 { padding: 1rem; }
.p-5 { padding: 1.25rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-5 { padding-left: 1.25rem; padding-right: 1.25rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-6 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.py-10 { padding-top: 2.5rem; padding-bottom: 2.5rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }
.py-16 { padding-top: 4rem; padding-bottom: 4rem; }
.py-20 { padding-top: 5rem; padding-bottom: 5rem; }
.pt-4 { padding-top: 1rem; }
.pb-4 { padding-bottom: 1rem; }
.mt-0 { margin-top: 0; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mt-10 { margin-top: 2.5rem; }
.mt-12 { margin-top: 3rem; }
.mb-0 { margin-bottom: 0; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-10 { margin-bottom: 2.5rem; }
.mb-12 { margin-bottom: 3rem; }
.space-y-3 > * + * { margin-top: 0.75rem; }
.space-y-4 > * + * { margin-top: 1rem; }
.space-y-5 > * + * { margin-top: 1.25rem; }
.space-y-6 > * + * { margin-top: 1.5rem; }
.space-y-8 > * + * { margin-top: 2rem; }

/* ---- Typography ---- */
.text-xs { font-size: 0.75rem; line-height: 1.35; }
.text-sm { font-size: 0.875rem; line-height: 1.5; }
.text-base { font-size: 1rem; line-height: 1.6; }
.text-lg { font-size: 1.125rem; line-height: 1.55; }
.text-xl { font-size: 1.25rem; line-height: 1.4; }
.text-2xl { font-size: 1.5rem; line-height: 1.3; letter-spacing: -0.02em; }
.text-3xl { font-size: clamp(1.75rem, 3vw, 2.25rem); line-height: 1.2; letter-spacing: -0.025em; }
.text-4xl { font-size: clamp(2rem, 4vw, 2.75rem); line-height: 1.15; letter-spacing: -0.03em; }
.text-5xl { font-size: clamp(2.25rem, 5vw, 3.25rem); line-height: 1.1; letter-spacing: -0.03em; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.font-extrabold { font-weight: 800; }
.tracking-tight { letter-spacing: -0.02em; }
.tracking-wide { letter-spacing: 0.04em; }
.tracking-widest { letter-spacing: 0.08em; }
.uppercase { text-transform: uppercase; }
.text-center { text-align: center; }
.text-left { text-align: left; }
.leading-relaxed { line-height: 1.7; }
.leading-snug { line-height: 1.35; }

/* Brand text colors */
.text-ink { color: #F8FAFC; }
.text-muted { color: #C4BDB6; }
.text-faint { color: #9A9189; }
.text-accent { color: #C62127; }
.text-gold { color: #FFD600; }
.text-white { color: #fff; }

/* ---- Backgrounds ---- */
.bg-deep { background-color: #0F0E0E; }
.bg-surface { background-color: #1A1818; }
.bg-elevated { background-color: #262222; }
.bg-alt { background-color: rgba(255, 255, 255, 0.03); }
.bg-accent { background-color: #C62127; }
.bg-gold-soft { background-color: rgba(255, 214, 0, 0.12); }

/* ---- Borders / radius / shadow ---- */
.rounded { border-radius: 0.5rem; }
.rounded-lg { border-radius: 0.75rem; }
.rounded-xl { border-radius: 1rem; }
.rounded-2xl { border-radius: 1.25rem; }
.rounded-full { border-radius: 9999px; }
.border { border: 1px solid #3D3838; }
.border-subtle { border: 1px solid rgba(255, 255, 255, 0.08); }
.border-gold-soft { border: 1px solid rgba(255, 214, 0, 0.25); }
.border-t { border-top: 1px solid rgba(255, 255, 255, 0.06); }
.border-b { border-bottom: 1px solid rgba(255, 255, 255, 0.06); }
.shadow-sm { box-shadow: 0 1px 2px rgba(0, 0, 0, 0.35); }
.shadow-md { box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35); }
.shadow-lg { box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45); }

/* ---- Position ---- */
.relative { position: relative; }
.absolute { position: absolute; }
.inset-0 { inset: 0; }
.z-0 { z-index: 0; }
.z-10 { z-index: 10; }
.overflow-hidden { overflow: hidden; }
.overflow-x-auto { overflow-x: auto; }

/* ---- Transitions ---- */
.transition {
  transition-property: color, background-color, border-color, box-shadow, opacity, transform;
  transition-duration: 150ms;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}
.hover\:border-gold:hover { border-color: rgba(255, 214, 0, 0.28); }
.hover\:shadow-lg:hover { box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45); }
.hover\:bg-elevated:hover { background-color: #262222; }
.hover\:text-gold:hover { color: #FFD600; }

/* ---- Focus ---- */
.focus-ring:focus-visible {
  outline: 2px solid #FFD600;
  outline-offset: 2px;
}

/* ---- Layout shells (utility compositions used on every page) ---- */
.tw-container {
  width: 100%;
  max-width: 72rem;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}
.tw-section {
  padding-top: 4rem;
  padding-bottom: 4rem;
  scroll-margin-top: 5rem;
}
@media (min-width: 62em) {
  .tw-section { padding-top: 5rem; padding-bottom: 5rem; }
}
.tw-section-tight {
  padding-top: 2.5rem;
  padding-bottom: 2.5rem;
}
.tw-section-alt {
  background: rgba(255, 255, 255, 0.025);
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.tw-eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #FFD600;
  margin-bottom: 0.75rem;
}
.tw-lead {
  font-size: 1.125rem;
  line-height: 1.65;
  color: #C4BDB6;
}
.tw-card {
  background: #1A1818;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0.875rem;
  padding: 1.5rem;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
  transition: border-color 150ms ease, box-shadow 150ms ease;
}
.tw-card:hover {
  border-color: rgba(255, 214, 0, 0.22);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
}
.tw-card-icon {
  display: inline-flex;
  width: 2.75rem;
  height: 2.75rem;
  align-items: center;
  justify-content: center;
  border-radius: 0.65rem;
  background: rgba(198, 33, 39, 0.15);
  color: #FFD600;
  margin-bottom: 1rem;
}
.tw-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 2.75rem;
  padding: 0.6rem 1.25rem;
  border-radius: 0.5rem;
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 150ms ease, box-shadow 150ms ease, border-color 150ms ease, transform 120ms ease;
}
.tw-btn:active { transform: translateY(1px); }
.tw-btn:focus-visible {
  outline: 2px solid #FFD600;
  outline-offset: 2px;
}
.tw-btn-primary {
  background: #C62127;
  color: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}
.tw-btn-primary:hover {
  background: #9E1A1F;
  box-shadow: 0 4px 14px rgba(198, 33, 39, 0.35);
}
.tw-btn-ghost {
  background: transparent;
  color: #F8FAFC;
  border-color: rgba(255, 255, 255, 0.16);
}
.tw-btn-ghost:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 214, 0, 0.35);
}
.tw-btn-sm {
  min-height: 2.35rem;
  padding: 0.4rem 0.9rem;
  font-size: 0.8125rem;
}
.tw-hero {
  position: relative;
  min-height: 52vh;
  display: flex;
  align-items: flex-end;
  padding: 4rem 0 3.5rem;
  overflow: hidden;
  background: #0F0E0E;
}
.tw-hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.tw-hero-media img,
.tw-hero-media picture {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.45;
}
.tw-hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15,14,14,0.35) 0%, rgba(15,14,14,0.92) 100%);
}
.tw-hero-body {
  position: relative;
  z-index: 10;
  max-width: 40rem;
}
.tw-page-hero {
  padding: 3rem 0 2.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: linear-gradient(180deg, rgba(255,255,255,0.03), transparent);
}
.tw-partner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.5rem 1.75rem;
  border-radius: 0.875rem;
  border: 1px solid rgba(255, 214, 0, 0.2);
  background: linear-gradient(135deg, rgba(198,33,39,0.12), rgba(255,214,0,0.06));
}
.tw-stat {
  text-align: center;
  padding: 1.25rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #1A1818;
}
.tw-stat-value {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #FFD600;
}
.tw-stat-label {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.875rem;
  color: #C4BDB6;
}
.tw-prose p { margin: 0 0 1rem; color: #C4BDB6; line-height: 1.7; }
.tw-prose h2, .tw-prose h3 { color: #F8FAFC; margin: 1.75rem 0 0.75rem; }
.tw-prose ul { margin: 0 0 1rem; padding-left: 1.25rem; color: #C4BDB6; }
.tw-prose a { color: #FFD600; }
.tw-input {
  width: 100%;
  min-height: 2.75rem;
  padding: 0.6rem 0.85rem;
  border-radius: 0.5rem;
  border: 1px solid #3D3838;
  background: #0F0E0E;
  color: #F8FAFC;
  font: inherit;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}
.tw-input:focus {
  outline: none;
  border-color: #FFD600;
  box-shadow: 0 0 0 3px rgba(255, 214, 0, 0.22);
}
textarea.tw-input { min-height: 8rem; resize: vertical; }
.tw-label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: #F8FAFC;
}
.tw-error {
  color: #F87171;
  font-size: 0.8125rem;
  margin-top: 0.35rem;
}
.tw-badge {
  display: inline-flex;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  background: rgba(198, 33, 39, 0.15);
  color: #FFD600;
  border: 1px solid rgba(255, 214, 0, 0.25);
}

/* Glass header already handled in previous layer — keep */
.site-header {
  background: rgba(15, 14, 14, 0.82) !important;
  backdrop-filter: blur(16px) saturate(1.15);
  -webkit-backdrop-filter: blur(16px) saturate(1.15);
}
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.scroll-mt-24 { scroll-margin-top: 6rem; }
