:root {
  /* Bespoke Fuselage Palette */
  --bg-canvas: #fbf1f0; /* Blush Base */
  --bg-surface: #ffffff; /* Soft White Surface */
  --text-primary: #1c1917; /* Near Black */
  --accent-primary: #6b2155; /* Plum Accents */
  
  /* Derived & Structural */
  --text-muted: #57534e;
  --divider-color: rgba(107, 33, 85, 0.15); /* Soft Plum Divider */
  --hero-overlay: linear-gradient(180deg, rgba(28,25,23,0.85) 0%, rgba(28,25,23,0.6) 100%);
  
  /* Advanced UI Settings */
  --ease-kinetic: cubic-bezier(0.16, 1, 0.3, 1);
  --radius-main: 20px;
  --header-height: 90px;
  --frame-padding: 3vw;
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: system-ui, -apple-system, sans-serif;
  color: var(--text-primary);
  background-color: var(--bg-canvas);
  line-height: 1.6;
  overflow-wrap: anywhere;
  hyphens: auto;
  padding: var(--frame-padding);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Typography Constraints */
h1, h2, h3, h4, h5, h6, .brand, .btn-main {
  font-family: 'Arial Narrow', Arial, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-weight: 700;
  color: var(--text-primary);
}

h1 { font-size: clamp(2.5rem, 5vw, 4.5rem); line-height: 1.1; margin-bottom: 1.5rem; }
h2 { font-size: clamp(2rem, 3.5vw, 3rem); margin-bottom: 1rem; }
h3 { font-size: 1.25rem; margin-bottom: 0.5rem; letter-spacing: 0.1em; }

p {
  margin-bottom: 1.5rem;
  color: var(--text-muted);
}

/* Layout Engine: Outer Frame & Inset */
.page-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.page-frame {
  background-color: var(--bg-surface);
  border: 1px solid var(--accent-primary);
  border-radius: var(--radius-main);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: 0 20px 40px -10px rgba(28,25,23,0.1);
}

/* Header & Nav */
.site-header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  padding: 0 4vw;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 100;
  color: #ffffff; /* Contrast against hero overlay */
}

.brand {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.2em;
}

.brand a {
  color: #ffffff;
  text-decoration: none;
}

.main-nav {
  display: flex;
  gap: 2.5rem;
}

.main-nav a {
  color: #ffffff;
  text-decoration: none;
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-family: 'Arial Narrow', sans-serif;
  transition: opacity 0.3s ease;
}

.main-nav a:hover {
  opacity: 0.7;
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: #ffffff;
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
}

/* Hero Sections */
.hero {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--header-height) + 2rem) 2rem 4rem;
  overflow: hidden;
}

.hero-sub {
  min-height: 60vh;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  filter: contrast(1.15) brightness(0.85); /* Moody, high contrast */
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--hero-overlay);
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 900px;
  color: #ffffff;
}

.hero-content h1 {
  color: #ffffff;
}

.hero-content p {
  color: rgba(255,255,255,0.85);
  font-size: 1.2rem;
  max-width: 600px;
  margin: 0 auto 2.5rem;
}

/* Core Layouts (Lead Block + 2-Col List Rows) */
.content-section {
  padding: 6vw 4vw;
  max-width: 1400px;
  margin: 0 auto;
}

.lead-block {
  max-width: 900px;
  margin: 0 auto 5vw;
  text-align: center;
}

.lead-block h2 {
  color: var(--accent-primary);
}

.lead-block p {
  font-size: 1.15rem;
}

.two-col-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  column-gap: 4vw;
  row-gap: 3rem;
}

/* List Rows (Replacing Cards) */
.list-row {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--divider-color);
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.8s var(--ease-kinetic);
}

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

.list-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border: 1px solid var(--accent-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-primary);
  font-weight: 700;
  font-size: 1.2rem;
  font-family: 'Arial Narrow', sans-serif;
}

.list-content h3 {
  margin-top: 0.2rem;
}

.list-content p {
  margin-bottom: 0;
  font-size: 0.95rem;
}

/* Internal Imagery */
.panel-image {
  width: 100%;
  height: auto;
  border-radius: var(--radius-main);
  object-fit: cover;
  margin: 3rem 0;
  filter: contrast(1.1) brightness(0.9);
  aspect-ratio: 16/9;
}

/* Button & Link Patterns */
.btn-main {
  display: inline-block;
  background-color: var(--accent-primary);
  color: #ffffff;
  padding: 1rem 2.5rem;
  text-decoration: none;
  border-radius: 0; /* Sharp button aesthetic */
  transition: transform 0.3s var(--ease-kinetic), background-color 0.3s ease;
  border: 1px solid var(--accent-primary);
  cursor: pointer;
}

.btn-main:hover {
  background-color: #4a153a;
  transform: translateY(-2px);
}

.text-link {
  display: inline-block;
  position: relative;
  color: var(--accent-primary);
  text-decoration: none;
  font-family: 'Arial Narrow', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.9rem;
  font-weight: 700;
  padding-bottom: 4px;
}

.text-link::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 1px;
  bottom: 0;
  left: 0;
  background-color: var(--accent-primary);
  transform: scaleX(0.3);
  transform-origin: bottom left;
  transition: transform 0.4s var(--ease-kinetic);
}

.text-link:hover::after {
  transform: scaleX(1);
}

/* Forms */
.custom-form {
  max-width: 700px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-family: 'Arial Narrow', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.85rem;
  color: var(--accent-primary);
  font-weight: 700;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 1rem;
  border: 1px solid var(--divider-color);
  background-color: var(--bg-canvas);
  color: var(--text-primary);
  border-radius: var(--radius-main);
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent-primary);
}

.form-group textarea {
  min-height: 150px;
  resize: vertical;
}

/* Footer */
.site-footer {
  margin-top: auto;
  padding: 4rem 2rem 2rem;
  text-align: center;
  border-top: 1px solid var(--divider-color);
  background-color: var(--bg-canvas);
}

.footer-inner {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.site-footer p {
  font-size: 0.85rem;
  margin-bottom: 0;
}

.site-footer a {
  color: var(--accent-primary);
  text-decoration: none;
}

.footer-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 1rem;
}

.footer-nav a {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-family: 'Arial Narrow', sans-serif;
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
  position: fixed;
  inset: 0;
  background-color: var(--bg-surface);
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-10px);
  transition: all 0.4s var(--ease-kinetic);
}

.mobile-menu-overlay.active {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}

.mobile-menu-overlay a {
  font-size: 1.5rem;
  color: var(--text-primary);
  text-decoration: none;
  font-family: 'Arial Narrow', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

.close-menu {
  position: absolute;
  top: 2rem;
  right: 2rem;
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--accent-primary);
  cursor: pointer;
}

/* Responsive Overrides */
@media (max-width: 1024px) {
  .page-frame {
    border-radius: 0;
  }
  body {
    padding: 0;
  }
  .content-section {
    padding: 10vw 6vw;
  }
}

@media (max-width: 768px) {
  .main-nav {
    display: none;
  }
  .mobile-toggle {
    display: block;
  }
  .site-header {
    padding: 0 6vw;
  }
  h1 { font-size: 2.2rem; }
  h2 { font-size: 1.8rem; }
  .two-col-grid {
    grid-template-columns: 1fr;
  }
}

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