:root {
  --bg-canvas: #3b0d1a;
  --bg-surface: #532333;
  --bg-surface-translucent: rgba(83, 35, 51, 0.78);
  --bg-surface-hover: #672d40;
  --text-primary: #fff5e4;
  --text-muted: #e3cfbe;
  --accent-primary: #e8d5a8;
  --accent-secondary: #c9af75;
  --border-subtle: rgba(232, 213, 168, 0.28);
  --border-champagne: #e8d5a8;
  --ease-kinetic: cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-elevation: 0 16px 36px -6px rgba(20, 4, 9, 0.55);
  --glass-backdrop: blur(14px) saturate(140%);
  --radius-card: 20px;
}

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

body {
  background-color: var(--bg-canvas);
  color: var(--text-primary);
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  line-height: 1.7;
  font-size: 1.06rem;
  overflow-wrap: anywhere;
  hyphens: auto;
  min-height: 100vh;
  padding: 18px;
}

.site-frame {
  max-width: 1240px;
  margin: 0 auto;
  border: 1px solid var(--border-champagne);
  border-radius: 26px;
  background-color: rgba(59, 13, 26, 0.94);
  padding: 24px 32px 36px 32px;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.45);
}

/* Header */
.site-header {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 36px;
}

.header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand-wrap {
  text-align: left;
}

.brand-title {
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-primary);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.brand-title:hover {
  color: #fff;
}

.brand-tagline {
  font-size: 0.85rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

/* Nav */
.nav-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}

.nav-link {
  color: var(--text-primary);
  text-decoration: none;
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  position: relative;
  padding: 4px 2px;
  transition: color 0.25s var(--ease-kinetic);
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 2px;
  background-color: var(--accent-primary);
  transition: width 0.3s var(--ease-kinetic);
}

.nav-link:hover,
.nav-link.active {
  color: var(--accent-primary);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border-subtle);
  color: var(--accent-primary);
  font-size: 1.6rem;
  line-height: 1;
  padding: 6px 14px;
  border-radius: 10px;
  cursor: pointer;
}

.mobile-overlay {
  display: none;
  flex-direction: column;
  gap: 14px;
  background: var(--bg-surface);
  border: 1px solid var(--border-champagne);
  border-radius: var(--radius-card);
  padding: 20px;
  margin-top: 10px;
}

.mobile-overlay.open {
  display: flex;
}

/* Typography */
h1, h2, h3, h4 {
  color: var(--text-primary);
  font-weight: 700;
  line-height: 1.25;
}

h1 {
  font-size: clamp(2rem, 3.4vw, 3rem);
  letter-spacing: -0.01em;
  margin-bottom: 20px;
  color: var(--accent-primary);
}

h2 {
  font-size: clamp(1.5rem, 2.3vw, 2.1rem);
  margin-bottom: 16px;
  border-left: 3px solid var(--accent-primary);
  padding-left: 14px;
}

h3 {
  font-size: 1.25rem;
  margin-bottom: 10px;
  color: var(--accent-primary);
}

p {
  margin-bottom: 16px;
  color: var(--text-primary);
}

p.lead {
  font-size: 1.18rem;
  line-height: 1.8;
  color: var(--text-muted);
}

.prose-block {
  max-width: 72ch;
  margin: 0 auto 36px auto;
}

/* Buttons and text links */
.btn-champagne {
  display: inline-block;
  background-color: var(--accent-primary);
  color: #260710;
  font-weight: 700;
  padding: 12px 26px;
  border-radius: 20px;
  text-decoration: none;
  letter-spacing: 0.03em;
  transition: transform 0.25s var(--ease-kinetic), background-color 0.25s ease, box-shadow 0.25s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}

.btn-champagne:hover {
  background-color: #f7e8c3;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.45);
}

.text-link {
  color: var(--accent-primary);
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  position: relative;
  padding-bottom: 2px;
}

.text-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1.5px;
  background-color: var(--accent-primary);
  transition: width 0.3s var(--ease-kinetic);
}

.text-link:hover::after {
  width: 100%;
}

/* Cards & Panels */
.card-panel {
  background: var(--bg-surface-translucent);
  backdrop-filter: var(--glass-backdrop);
  -webkit-backdrop-filter: var(--glass-backdrop);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-card);
  padding: 26px;
  box-shadow: var(--shadow-elevation);
  transition: transform 0.3s var(--ease-kinetic), border-color 0.3s ease;
}

.card-panel:hover {
  transform: translateY(-4px);
  border-color: rgba(232, 213, 168, 0.6);
}

.story-card-large {
  background: var(--bg-surface-translucent);
  backdrop-filter: var(--glass-backdrop);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-card);
  padding: 34px;
  margin-bottom: 40px;
}

/* Grid Layouts */
.hero-split {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 36px;
  align-items: center;
  margin-bottom: 50px;
}

.two-col-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
  margin-bottom: 40px;
}

.three-col-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-bottom: 40px;
}

/* Images */
.figure-wrapper {
  margin: 0;
  position: relative;
}

.field-img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-card);
  display: block;
  object-fit: cover;
  border: 1px solid var(--border-subtle);
}

.aspect-16-9 {
  aspect-ratio: 16 / 9;
}

.aspect-4-3 {
  aspect-ratio: 4 / 3;
}

.aspect-1-1 {
  aspect-ratio: 1 / 1;
}

.field-caption {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-top: 10px;
  padding-left: 8px;
  border-left: 2px solid var(--accent-secondary);
}

/* Callouts & Accordions */
.field-callout {
  background: rgba(59, 13, 26, 0.85);
  border: 1px dashed var(--accent-primary);
  border-radius: var(--radius-card);
  padding: 22px;
  margin: 28px 0;
}

.field-accordion {
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-card);
  background: var(--bg-surface-translucent);
  margin-bottom: 14px;
  overflow: hidden;
}

.accordion-summary {
  padding: 18px 22px;
  font-weight: 700;
  color: var(--accent-primary);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.accordion-summary::-webkit-details-marker {
  display: none;
}

.accordion-summary::after {
  content: "+";
  font-size: 1.4rem;
  line-height: 1;
  color: var(--accent-primary);
  transition: transform 0.25s ease;
}

details[open] .accordion-summary::after {
  content: "−";
}

.accordion-body {
  padding: 0 22px 20px 22px;
  color: var(--text-primary);
}

/* Data Tables */
.table-responsive {
  overflow-x: auto;
  margin: 24px 0 32px 0;
  border-radius: var(--radius-card);
  border: 1px solid var(--border-subtle);
}

.field-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.95rem;
}

.field-table th {
  background: #2a0812;
  color: var(--accent-primary);
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-subtle);
}

.field-table td {
  padding: 14px 18px;
  border-bottom: 1px solid rgba(232, 213, 168, 0.12);
  background: rgba(83, 35, 51, 0.45);
}

.field-table tr:last-child td {
  border-bottom: none;
}

/* Contact Composer Form */
.composer-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: var(--bg-surface-translucent);
  padding: 28px;
  border-radius: var(--radius-card);
  border: 1px solid var(--border-subtle);
  margin-top: 24px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-label {
  font-size: 0.92rem;
  color: var(--accent-primary);
  font-weight: 600;
}

.form-input, .form-textarea, .form-select {
  background: #2b0b14;
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 12px 14px;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 1rem;
}

.form-input:focus, .form-textarea:focus, .form-select:focus {
  outline: 2px solid var(--accent-primary);
  border-color: transparent;
}

.form-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.feedback-banner {
  display: none;
  padding: 12px 18px;
  border-radius: 12px;
  background: #260710;
  border: 1px solid var(--accent-primary);
  color: var(--accent-primary);
  font-size: 0.94rem;
}

/* Scroll reveal helper */
.scroll-reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.65s var(--ease-kinetic), transform 0.65s var(--ease-kinetic);
}

.scroll-reveal.reveal-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Footer */
.site-footer {
  margin-top: 50px;
  padding-top: 32px;
  border-top: 1px solid var(--border-subtle);
}

.footer-top {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 28px;
  margin-bottom: 26px;
}

.footer-col h4 {
  margin-bottom: 12px;
  font-size: 1.05rem;
  color: var(--accent-primary);
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.92rem;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--accent-primary);
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(232, 213, 168, 0.15);
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* Responsive adjustments */
@media (max-width: 820px) {
  body {
    padding: 10px;
  }
  .site-frame {
    padding: 18px;
    border-radius: 18px;
  }
  .hero-split {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .nav-row {
    display: none;
  }
  .menu-toggle {
    display: block;
  }
}

@media (prefers-reduced-motion: reduce){*,*::before,*::after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important;scroll-behavior:auto!important}}
