/* American Sourced — Design system: black, white, typography, restraint */

:root {
  --black: #0a0a0a;
  --white: #ffffff;
  --gray-bg: #fafafa;
  --gray-bg-alt: #f5f5f5;
  --gray-text: #3a3a3a;
  --gray-muted: #6e6e6e;
  --border: rgba(0, 0, 0, 0.08);
  --max-width: 980px;
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

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

body {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 400;
  line-height: 1.6;
  color: var(--black);
  background-color: var(--gray-bg);
  -webkit-font-smoothing: antialiased;
}

/* ----- Navigation ----- */
.site-header {
  position: fixed;
  top: var(--space-sm);
  left: var(--space-sm);
  right: auto;
  z-index: 100;
  background: transparent;
  border: none;
  padding: 0;
  width: auto;
}

.site-header:not(.site-header--over-hero) .nav-inner {
  max-width: var(--max-width);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
}

/* Dropdown: top left */
.nav-dropdown {
  position: relative;
}

.nav-dropdown-trigger {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  background: rgba(255, 255, 255, 0.9);
  border: 2px solid transparent;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
  transition: transform 0.25s ease, box-shadow 0.3s ease, background 0.25s ease, border-color 0.25s ease;
}

.nav-dropdown-trigger:hover {
  background: #e60000;
  border-color: #e60000;
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 6px 32px rgba(230, 0, 0, 0.55), 0 0 14px rgba(230, 0, 0, 0.35);
}

.nav-dropdown-trigger .hamburger-icon {
  width: 28px;
  height: 28px;
  stroke: var(--black);
  transition: stroke 0.25s ease;
}

.nav-dropdown-trigger:hover .hamburger-icon {
  stroke: #ffffff;
}

/* Tooltip on hover for 3-bar nav */
.nav-tooltip {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(-4px);
  background: var(--black);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 0.3rem 0.6rem;
  border-radius: 4px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.nav-tooltip::before {
  content: "";
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-bottom-color: var(--black);
}

.nav-dropdown-trigger:hover .nav-tooltip {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 2px;
  min-width: 180px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 6px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  padding: var(--space-xs);
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}

.nav-dropdown.open .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown-menu a {
  display: block;
  padding: var(--space-sm) var(--space-md);
  font-size: 0.9rem;
  color: var(--black);
  text-decoration: none;
  border-radius: 4px;
  transition: background 0.15s ease;
}

.nav-dropdown-menu a:hover {
  background: var(--gray-bg);
}

.nav-dropdown-menu a.nav-link-vault:hover {
  background: rgba(0, 0, 0, 0.06);
  font-weight: 600;
}

/* ----- Main content area (offset for fixed header) ----- */
main {
  padding-top: 56px;
  min-height: 100vh;
}

.main--home {
  padding-top: 0;
}

/* ----- Top banner (home): American flag blue, pops out, scrolls away ----- */
.top-banner {
  position: relative;
  z-index: 5;
  background: var(--white);
  padding: 0.15rem var(--space-lg);
  margin: 0 var(--space-sm);
  margin-bottom: 0;
  border-radius: 0 0 12px 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transform: translateY(0);
  opacity: 1;
  max-height: 300px;
  transition:
    transform 0.6s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1),
    max-height 0.6s cubic-bezier(0.4, 0, 0.2, 1),
    padding 0.6s cubic-bezier(0.4, 0, 0.2, 1),
    margin 0.6s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 0.4s ease;
}

.top-banner.is-hidden {
  transform: translateY(-30px);
  opacity: 0;
  pointer-events: none;
  box-shadow: none;
  max-height: 0;
  padding-top: 0;
  padding-bottom: 0;
  margin-top: 0;
  margin-bottom: 0;
  overflow: hidden;
}

.top-banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-width);
  margin: 0 auto;
  height: 100%;
}

.top-banner-left {
  width: 52px;
  min-width: 52px;
}

.top-banner-center {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

/* Crossed muskets flanking the logo */
.banner-flourish {
  flex-shrink: 1;
  width: 100%;
  max-width: 160px;
  height: 48px;
  color: var(--black);
  opacity: 0.6;
}

.banner-flourish--left {
  margin-right: -0.25rem;
}

.banner-flourish--right {
  margin-left: -0.25rem;
}

@media (max-width: 600px) {
  .banner-flourish {
    display: none;
  }
}

.top-banner-logo-placeholder {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--gray-muted);
  letter-spacing: 0.05em;
}

.top-banner-logo {
  display: block;
  height: 200px;
  width: auto;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.top-banner-right {
  width: 100px;
  min-width: 100px;
  display: flex;
  justify-content: flex-end;
  padding-right: var(--space-sm);
}

.top-banner-newsletter-placeholder {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--gray-muted);
  letter-spacing: 0.03em;
}

/* Newsletter button: same style as 3-bar nav trigger and CTA */
.newsletter-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  background: rgba(255, 255, 255, 0.9);
  border: 2px solid transparent;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.3s ease, background 0.25s ease, border-color 0.25s ease;
}

.newsletter-btn:hover {
  background: #e60000;
  border-color: #e60000;
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 6px 32px rgba(230, 0, 0, 0.55), 0 0 14px rgba(230, 0, 0, 0.35);
}

.newsletter-icon {
  width: 24px;
  height: 24px;
  stroke: var(--black);
  transition: stroke 0.25s ease;
}

.newsletter-btn:hover .newsletter-icon {
  stroke: #ffffff;
}

/* Tooltip on hover */
.newsletter-tooltip {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--black);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 0.3rem 0.6rem;
  border-radius: 4px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-4px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.newsletter-tooltip::before {
  content: "";
  position: absolute;
  bottom: 100%;
  right: 14px;
  border: 5px solid transparent;
  border-bottom-color: var(--black);
}

.newsletter-btn:hover .newsletter-tooltip {
  opacity: 1;
  transform: translateY(0);
}

/* Header over hero (home): fixed floating icon only, no bar, doesn’t block content */
.site-header--over-hero {
  position: fixed;
  top: var(--space-md);
  left: var(--space-md);
  right: auto;
  z-index: 10;
  background: transparent;
  border: none;
  padding: 0;
  width: auto;
  max-width: none;
}

.site-header--over-hero .nav-inner {
  max-width: none;
}

.site-header--over-hero .nav-dropdown-menu {
  background: rgba(10, 10, 10, 0.98);
  border-color: rgba(255, 255, 255, 0.12);
}

.site-header--over-hero .nav-dropdown-menu a {
  color: #ffffff;
}

.site-header--over-hero .nav-dropdown-menu a:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* ----- Hero ----- */
.hero {
  position: relative;
  background: var(--gray-bg-alt);
  padding: var(--space-2xl) var(--space-lg);
  text-align: center;
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  border-top: 2px solid transparent;
  border-bottom: 2px solid transparent;
  border-image: linear-gradient(90deg,
    transparent 0%,
    #8b6914 8%,
    #c9a227 20%,
    #daa520 35%,
    #c9a227 50%,
    #daa520 65%,
    #c9a227 80%,
    #8b6914 92%,
    transparent 100%) 1;
  justify-content: center;
  overflow: hidden;
}

/* Home: interactive hero (header is inside hero) */
.hero--home.hero--interactive {
  min-height: 75vh;
  min-height: 75dvh;
  justify-content: center;
  padding-top: 0;
  padding-bottom: 0;
}

/* Hero background: Constitution image as full backdrop */
.hero--image .hero-backdrop {
  position: absolute;
  inset: 0;
  background-color: var(--white);
  background-image: url("../assets/constitution-hero.png");
  background-size: cover;
  background-position: top center;
  background-repeat: no-repeat;
}

/* Dark overlay so white title text stays readable over the image */
.hero--image .hero-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.55) 100%);
  pointer-events: none;
}

/* Subtle white breathing room on left and right */
.hero--home.hero--interactive {
  padding-left: var(--space-sm);
  padding-right: var(--space-sm);
  background: var(--white);
}

.hero--home .hero-backdrop {
  left: var(--space-sm);
  right: var(--space-sm);
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 5rem var(--space-lg) var(--space-2xl);
}

.hero--image .hero-title,
.hero--image .hero-tagline {
  color: #ffffff;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.4);
}

.hero--image .hero-tagline {
  color: rgba(255, 255, 255, 0.92);
}

.hero-title {
  font-family: var(--font-sans);
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0 0 var(--space-md);
  color: var(--black);
  animation: heroFade 0.8s ease-out;
  text-align: center;
}

.hero--interactive .hero-title {
  font-size: clamp(3rem, 10vw, 5.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.hero-title-line {
  display: block;
  animation: heroFade 0.9s ease-out backwards;
}

.hero-title-line:first-child {
  animation-delay: 0.1s;
}

.hero-title-line:last-child {
  animation-delay: 0.25s;
}

/* Accent line under title: high contrast */
.hero-accent {
  width: 80px;
  height: 3px;
  background: #ffffff;
  margin: var(--space-md) 0 var(--space-lg);
  animation: heroAccentExpand 1s ease-out 0.5s backwards;
}

@keyframes heroAccentExpand {
  from {
    opacity: 0;
    transform: scaleX(0);
    transform-origin: center;
  }
  to {
    opacity: 1;
    transform: scaleX(1);
  }
}

.hero-tagline {
  font-size: 1.125rem;
  color: var(--gray-muted);
  max-width: 420px;
  margin: 0;
  font-weight: 400;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.hero--interactive .hero-tagline {
  font-size: clamp(1rem, 2vw, 1.25rem);
  max-width: 480px;
  line-height: 1.6;
  animation: heroFade 0.8s ease-out 0.4s backwards;
}

/* CTA button: rounded, strong hover */
.hero-cta {
  display: inline-block;
  margin-top: var(--space-lg);
  padding: 0.6rem 1.8rem;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #000000;
  background: #ffffff;
  border: 2px solid #ffffff;
  text-decoration: none;
  font-family: inherit;
  border-radius: 50px;
  transition: color 0.3s ease, background 0.3s ease, border-color 0.3s ease, transform 0.25s ease, box-shadow 0.3s ease;
  animation: heroFade 0.8s ease-out 0.55s backwards;
}

/* Stored: navy blue hover — background: #001f5b; border-color: #001f5b; box-shadow: rgba(0, 31, 91, 0.45) */
.hero-cta:hover {
  color: #ffffff;
  background: #e60000;
  border-color: #e60000;
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 6px 32px rgba(230, 0, 0, 0.55), 0 0 12px rgba(230, 0, 0, 0.3);
}

/* Scroll hint: subtle bounce */
.hero-scroll-hint {
  position: absolute;
  bottom: var(--space-lg);
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

.hero-scroll-dot {
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.6);
  animation: heroScrollBounce 2s ease-in-out infinite;
}

@keyframes heroScrollBounce {
  0%, 100% { transform: translateY(0); opacity: 0.6; }
  50% { transform: translateY(8px); opacity: 1; }
}

@keyframes heroFade {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ----- Section bands ----- */
.section {
  padding: var(--space-xl) var(--space-lg);
  max-width: var(--max-width);
  margin: 0 auto;
}

.section--white {
  background: var(--white);
}

.section--gray {
  background: var(--gray-bg);
}

.section--gray-alt {
  background: var(--gray-bg-alt);
}

.section-title {
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0 0 var(--space-lg);
  color: var(--black);
}

/* ----- Homepage: two-column layout (70% synopsis / 30% image), scroll-optimized ----- */
.homepage-content .section-title {
  margin-bottom: var(--space-xl);
}

/* Blog archive header: black pill, text centered and larger */
.blog-archive-header {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--black);
  padding: 0.65rem 3.25rem;
  border-radius: 50px;
  margin: 0 auto;
  width: fit-content;
  box-sizing: border-box;
  box-shadow:
    0 0 12px rgba(230, 0, 0, 0.35),
    0 0 12px rgba(0, 40, 104, 0.35);
}

.blog-archive-header-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: var(--space-xl);
}

/* BLOG ARCHIVE: vivid American flag red, white, blue on black */
.homepage-content .section-title.section-title--archive {
  margin: 0;
  padding: 0;
  border: none;
  display: block;
  text-align: center;
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
  background: linear-gradient(90deg, #ff0a2b 0%, #ff0a2b 32%, #ffffff 32%, #ffffff 66%, #0044cc 66%, #0044cc 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: brightness(1.15) contrast(1.1);
}

@media (max-width: 480px) {
  .blog-archive-header {
    padding: 0.4rem 1.25rem;
    min-width: 10rem;
  }
  .section-title--archive {
    font-size: 0.95rem;
  }
}

.blog-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  text-align: left;
}

.blog-item {
  display: grid;
  grid-template-columns: 7fr 3fr;
  gap: var(--space-xl);
  align-items: start;
  padding: var(--space-xl) 0;
  border-bottom: 1px solid var(--border);
  scroll-margin-top: 4rem;
}

.blog-item:last-child {
  border-bottom: none;
}

@media (max-width: 768px) {
  .blog-item {
    grid-template-columns: 1fr;
    gap: var(--space-md);
    padding: var(--space-lg) 0;
  }

  .blog-item .blog-media {
    order: -1;
    max-height: 220px;
  }
}

/* Left: synopsis */
.blog-synopsis h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0 0 var(--space-sm);
  letter-spacing: -0.01em;
}

.blog-synopsis p {
  font-size: 0.95rem;
  color: var(--gray-text);
  margin: 0;
  line-height: 1.65;
}

.blog-synopsis a {
  display: inline-block;
  margin-top: var(--space-sm);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--black);
  text-decoration: none;
  border-bottom: 1px solid var(--black);
  transition: opacity 0.2s ease;
}

.blog-synopsis a:hover {
  opacity: 0.7;
}

/* Right: image placeholder */
.blog-media {
  aspect-ratio: 16 / 10;
  background: var(--gray-bg-alt);
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-muted);
  font-size: 0.875rem;
}

.blog-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%);
}

/* ----- Subject Carousel (auto-scroll + arrows) ----- */
.section--carousel {
  max-width: none;
  padding-left: 4%;
  padding-right: 4%;
  padding-bottom: 0;
}

/* Tighten gap between divider and homepage content below it */
.section--carousel + .gov-divider {
  margin-top: 0;
}

.section--carousel + .gov-divider + .homepage-content {
  padding-top: 0;
}

.carousel-wrap {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
}

.carousel {
  overflow: hidden;
  flex: 1;
  padding: var(--space-sm) 0;
}

.carousel-track {
  display: flex;
  gap: var(--space-md);
  width: max-content;
}

.carousel-card {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  min-width: 150px;
  width: 150px;
  text-decoration: none;
  color: inherit;
  transition: transform 0.25s ease;
}

.carousel-card:hover {
  transform: translateY(-3px);
}

.carousel-card:hover .carousel-label {
  background: linear-gradient(180deg, #0040a8 0%, #003087 40%, #002060 100%);
  box-shadow:
    0 0 18px rgba(0, 48, 135, 0.7),
    0 0 36px rgba(0, 48, 135, 0.35),
    inset 0 0 16px rgba(0, 60, 180, 0.2);
  border-color: rgba(201, 162, 39, 0.8);
  animation: none;
}

/* Photo insert – no frame, no blue */
.carousel-img {
  width: 100%;
  height: 110px;
  background: var(--gray-bg-alt);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.carousel-img--crypto {
  background-image: url('../assets/crypto.png');
}

.carousel-img--legislation {
  background-image: url('../assets/legislation.png');
}

.carousel-img--politics {
  background-image: url('../assets/politics.png');
}

/* American flag blue box – vivid, layered, with breathing glow */
.carousel-label {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 110px;
  background:
    linear-gradient(180deg, #003494 0%, #002868 40%, #001d50 100%);
  color: var(--white);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: normal;
  word-break: normal;
  text-align: center;
  padding: 0 var(--space-xs);
  position: relative;
  overflow: hidden;
  border-bottom: 2px solid rgba(201, 162, 39, 0.5);
  text-shadow: 0 1px 6px rgba(0, 40, 104, 0.8);
  transition: background 0.25s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  animation: labelPulse 3s ease-in-out infinite;
}

/* Subtle shimmer sweep across the label */
.carousel-label::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(105deg,
    transparent 30%,
    rgba(255, 255, 255, 0.06) 45%,
    rgba(255, 255, 255, 0.12) 50%,
    rgba(255, 255, 255, 0.06) 55%,
    transparent 70%);
  animation: labelSweep 4s ease-in-out infinite;
  pointer-events: none;
}

/* Thin accent line at top edge of label (gold trim) */
.carousel-label::after {
  content: "";
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg,
    transparent,
    rgba(201, 162, 39, 0.6) 30%,
    rgba(255, 255, 255, 0.4) 50%,
    rgba(201, 162, 39, 0.6) 70%,
    transparent);
  pointer-events: none;
}

/* Breathing glow: soft blue aura that fades in and out */
@keyframes labelPulse {
  0%, 100% {
    box-shadow:
      0 0 8px rgba(0, 40, 104, 0.3),
      0 0 2px rgba(0, 40, 104, 0.2);
  }
  50% {
    box-shadow:
      0 0 16px rgba(0, 48, 135, 0.55),
      0 0 30px rgba(0, 48, 135, 0.25),
      inset 0 0 12px rgba(0, 60, 160, 0.15);
  }
}

/* Shimmer sweep animation */
@keyframes labelSweep {
  0%   { left: -100%; }
  50%  { left: 100%; }
  100% { left: 100%; }
}

.carousel-arrow {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
  z-index: 2;
}

.carousel-arrow:hover {
  background: var(--gray-bg-alt);
  border-color: var(--black);
}

.carousel-arrow svg {
  width: 18px;
  height: 18px;
  stroke: var(--black);
}

@media (max-width: 768px) {
  .carousel-card {
    min-width: 120px;
  }

  .carousel-arrow {
    width: 30px;
    height: 30px;
  }
}

/* Rustic early-1900s picture frame: weathered wood, aged mat, period character */
.banner-frame {
  --frame-wood: #8b7355;
  --frame-wood-light: #a08060;
  --frame-wood-dark: #5c4a38;
  --frame-mat: #3e3228;
  width: 70%;
  max-width: 720px;
  margin: 0 auto var(--space-xl);
  padding: 1.25rem 1.35rem 1.5rem 1.2rem;
  /* Weathered wood: muted, dusty, with subtle grain streaks */
  background:
    linear-gradient(178deg, rgba(0,0,0,0.04) 0%, transparent 8%, transparent 92%, rgba(0,0,0,0.06) 100%),
    linear-gradient(92deg, var(--frame-wood-dark) 0%, var(--frame-wood) 5%, var(--frame-wood-light) 12%, var(--frame-wood) 22%, var(--frame-wood-dark) 28%, var(--frame-wood) 35%, var(--frame-wood-light) 42%, var(--frame-wood) 55%, var(--frame-wood-dark) 65%, var(--frame-wood) 78%, var(--frame-wood-light) 88%, var(--frame-wood) 100%);
  box-shadow:
    inset 0 0 0 1px rgba(0, 0, 0, 0.2),
    inset 0 1px 2px rgba(255, 255, 255, 0.06),
    inset 0 -1px 2px rgba(0, 0, 0, 0.15),
    2px 3px 8px rgba(60, 45, 35, 0.35),
    6px 10px 28px rgba(40, 30, 22, 0.3);
  /* Slightly irregular corners – handcrafted feel */
  border-radius: 2px 4px 3px 5px;
  position: relative;
  overflow: visible;
}

/* Inner “mat” – burnt umber / aged paper, like early 20th century frame recess */
.banner-frame::before {
  content: "";
  position: absolute;
  inset: 0.4rem 0.45rem 0.5rem 0.4rem;
  background: var(--frame-mat);
  border-radius: 1px 2px 1px 2px;
  box-shadow:
    inset 0 0 0 1px rgba(0, 0, 0, 0.5),
    inset 0 2px 8px rgba(0, 0, 0, 0.4);
  pointer-events: none;
}

/* Faded “photo corner” accent – one corner hint (early album style) */
.banner-frame::after {
  content: "";
  position: absolute;
  top: 0.65rem;
  left: 0.55rem;
  width: 20px;
  height: 20px;
  border-top: 2px solid rgba(80, 70, 60, 0.9);
  border-left: 2px solid rgba(80, 70, 60, 0.9);
  border-radius: 2px 0 0 0;
  pointer-events: none;
}

.banner-frame .banner-img {
  display: block;
  width: 100%;
  height: auto;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 1px;
  position: relative;
  z-index: 1;
  /* Slight sepia-age feel where it meets the mat */
  box-shadow:
    inset 0 0 0 1px rgba(0, 0, 0, 0.25),
    inset 0 0 40px rgba(50, 40, 30, 0.08);
}

/* Patriotic / American history imagery (1700s-1800s feel), B&W theme */
.patriotic-image {
  width: 100%;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  border-radius: 4px;
  overflow: hidden;
  background-color: var(--gray-bg-alt);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: grayscale(100%);
}

.patriotic-image--home {
  height: 280px;
  margin-bottom: var(--space-xl);
}

.patriotic-image--color {
  filter: none;
}

.patriotic-image--about {
  height: 260px;
  margin: var(--space-lg) auto;
}

.patriotic-image--vault {
  height: 220px;
  margin: var(--space-lg) auto;
}

.patriotic-image--search {
  height: 180px;
  margin: var(--space-lg) auto;
  max-width: 480px;
}

/* Search page video replacing the placeholder */
.search-video-wrap {
  width: 100%;
  max-width: var(--max-width);
  margin: var(--space-lg) auto;
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  justify-content: center;
}

.search-video {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 4px;
  object-fit: cover;
}

/* Trail section: bottom of home page, above footer */
.section-trail {
  text-align: center;
  padding: var(--space-xl) var(--space-lg);
  background: var(--white);
}

.trail-img {
  display: block;
  width: 55%;
  height: auto;
  margin: 0 auto;
  border-radius: 4px;
}

@media (max-width: 768px) {
  .trail-img {
    width: 85%;
  }
}

/* Governmental divider between trail section and footer */
.gov-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  max-width: 94%;
  margin: 0 auto;
  padding: var(--space-lg) 0;
  background: var(--white);
}

.gov-divider-line {
  flex: 1;
  height: 2px;
  background: linear-gradient(90deg,
    transparent 0%,
    #002868 10%,
    #002868 45%,
    #B22234 55%,
    #B22234 90%,
    transparent 100%);
}

.gov-divider-star {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  color: #c9a227;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
}

/* ----- Footer ----- */
/* Footer: 1950s gold & oak framed American flag */
.site-footer {
  padding: var(--space-lg) 3%;
  margin-top: 0;
  background: var(--white);
}

/* Gold & oak 1950s picture frame – stretched wide */
.footer-frame {
  --frame-oak: #8b7355;
  --frame-oak-lt: #a08060;
  --frame-oak-dk: #5c4a38;
  max-width: 100%;
  margin: 0 auto;
  padding: 1.1rem 1.2rem 1.3rem 1.1rem;
  background:
    repeating-linear-gradient(90deg,
      var(--frame-oak-dk) 0px, var(--frame-oak) 3px, var(--frame-oak-lt) 6px,
      var(--frame-oak) 9px, var(--frame-oak-dk) 12px),
    linear-gradient(160deg, #c9a227 0%, #b8860b 25%, var(--frame-oak) 50%, #b8860b 75%, #c9a227 100%);
  border-radius: 4px 6px 5px 4px;
  box-shadow:
    inset 0 0 0 3px rgba(184, 134, 11, 0.55),
    inset 0 0 0 6px rgba(92, 74, 56, 0.3),
    inset 0 2px 4px rgba(0, 0, 0, 0.2),
    3px 4px 10px rgba(60, 45, 35, 0.35),
    8px 12px 30px rgba(40, 30, 22, 0.25);
  position: relative;
}

.footer-frame::before {
  content: "";
  position: absolute;
  inset: 0.4rem;
  border: 2px solid rgba(184, 134, 11, 0.6);
  box-shadow: 0 0 0 1px rgba(218, 165, 32, 0.35);
  border-radius: 2px;
  pointer-events: none;
}

/* American flag background — exactly 13 stripes, taller */
.footer-flag {
  position: relative;
  border-radius: 2px;
  overflow: hidden;
  min-height: 340px;
  background: linear-gradient(180deg,
    #B22234   0.000%,  #B22234   7.692%,
    #ffffff   7.692%,  #ffffff  15.385%,
    #B22234  15.385%,  #B22234  23.077%,
    #ffffff  23.077%,  #ffffff  30.769%,
    #B22234  30.769%,  #B22234  38.462%,
    #ffffff  38.462%,  #ffffff  46.154%,
    #B22234  46.154%,  #B22234  53.846%,
    #ffffff  53.846%,  #ffffff  61.538%,
    #B22234  61.538%,  #B22234  69.231%,
    #ffffff  69.231%,  #ffffff  76.923%,
    #B22234  76.923%,  #B22234  84.615%,
    #ffffff  84.615%,  #ffffff  92.308%,
    #B22234  92.308%,  #B22234 100.000%);
}

/* Blue canton in top-left (covers ~40% width, ~54% height like a real flag) */
.footer-flag::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 40%;
  height: 54%;
  background: #002868;
  z-index: 1;
}

/* 50 white stars inside the canton */
.footer-flag-stars {
  position: absolute;
  top: 0;
  left: 0;
  width: 40%;
  height: 54%;
  z-index: 2;
  pointer-events: none;
}

.footer-flag-stars svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* Dark overlay so text pops */
.footer-flag-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  z-index: 3;
  pointer-events: none;
}

.footer-inner {
  position: relative;
  z-index: 4;
  max-width: var(--max-width);
  margin: 0 auto;
  text-align: center;
  padding: var(--space-2xl) var(--space-lg);
}

.footer-title {
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  margin: 0 0 var(--space-md);
  text-transform: uppercase;
  color: #ffffff;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.7), 0 0 10px rgba(0, 0, 0, 0.4);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: var(--space-xl);
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links a {
  color: #ffffff;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.6));
  transition: color 0.2s ease, transform 0.2s ease, filter 0.2s ease;
}

.footer-links a:hover {
  color: #c9a227;
  transform: scale(1.15);
  filter: drop-shadow(0 2px 6px rgba(201, 162, 39, 0.5));
}

.footer-links svg {
  width: 40px;
  height: 40px;
}

/* Social link tooltip on hover */
.social-link {
  position: relative;
}

.social-tooltip {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: var(--black);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 0.3rem 0.6rem;
  border-radius: 4px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.social-tooltip::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: var(--black);
}

.social-link:hover .social-tooltip {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ----- Page: Vault ----- */
.vault-hero {
  background: var(--black);
  color: var(--white);
  padding: var(--space-2xl) var(--space-lg);
  text-align: center;
}

.vault-hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 var(--space-sm);
}

.vault-hero p {
  font-size: 1.125rem;
  opacity: 0.85;
  max-width: 480px;
  margin: 0 auto;
}

.vault-price {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin: var(--space-md) 0 0;
  opacity: 1;
}

.vault-cta {
  margin-top: var(--space-lg);
}

.vault-cta .btn {
  display: inline-block;
  padding: var(--space-sm) var(--space-lg);
  font-size: 1rem;
  font-weight: 600;
  color: var(--black);
  background: var(--white);
  border: none;
  border-radius: 6px;
  text-decoration: none;
  font-family: inherit;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.vault-cta .btn:hover {
  opacity: 0.9;
}

/* Vault section: premium hover effect (subtle zoom + darkening) */
.vault-section {
  transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}

.vault-section:hover {
  transform: scale(1.008);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

.vault-section-inner {
  max-width: 560px;
  margin: 0 auto;
}

.vault-section .vault-copy {
  font-size: 1rem;
  color: var(--gray-text);
  line-height: 1.7;
  margin: 0 0 var(--space-md);
}

.vault-cta-text {
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--black);
  margin: 0 0 var(--space-md);
}

.vault-search-section .section-title {
  text-align: center;
}

.vault-search-wrap {
  margin: 0 auto var(--space-sm);
}

.vault-search-hint {
  font-size: 0.9rem;
  color: var(--gray-muted);
  text-align: center;
  margin: 0;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

/* ----- Page: About ----- */
.about-content {
  max-width: 640px;
  margin: 0 auto;
}

.about-content h1 {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 var(--space-lg);
}

.about-content p {
  font-size: 1.0625rem;
  color: var(--gray-text);
  line-height: 1.7;
  margin: 0 0 var(--space-md);
}

/* About page blockquote */
.about-quote {
  margin: var(--space-lg) 0;
  padding: var(--space-lg) var(--space-xl);
  border-left: 4px solid #002868;
  background: var(--white);
  border-radius: 2px;
  font-style: italic;
}

.about-quote p {
  font-style: italic;
}

.about-quote p:last-of-type {
  margin-bottom: var(--space-sm);
}

.about-quote-attribution {
  font-size: 0.95rem;
  font-weight: 600;
  font-style: normal;
  color: var(--black);
  letter-spacing: 0.02em;
}

/* ----- Page: Search ----- */
.search-page {
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: var(--space-2xl) var(--space-lg);
}

.search-box-wrap {
  width: 100%;
  max-width: 560px;
  margin-bottom: var(--space-xl);
}

.search-box {
  width: 100%;
  padding: var(--space-md) var(--space-lg);
  font-size: 1.125rem;
  font-family: inherit;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--white);
  color: var(--black);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-box::placeholder {
  color: var(--gray-muted);
}

.search-box:focus {
  outline: none;
  border-color: var(--black);
  box-shadow: 0 0 0 2px rgba(10, 10, 10, 0.1);
}

.search-results {
  width: 100%;
  max-width: 640px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.search-result-item {
  padding: var(--space-md) 0;
  border-bottom: 1px solid var(--border);
}

.search-result-item:last-child {
  border-bottom: none;
}

.search-result-item a {
  color: var(--black);
  text-decoration: none;
  font-weight: 500;
}

.search-result-item a:hover {
  text-decoration: underline;
}

/* Vault-locked result: blurred + lock + hover popup */
.result-vault {
  position: relative;
  padding: var(--space-md);
  border-radius: 6px;
  background: var(--gray-bg-alt);
}

.result-vault .result-preview {
  filter: blur(6px);
  pointer-events: none;
  user-select: none;
}

.result-vault .vault-lock-wrap {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
}

.result-vault .vault-lock-icon {
  width: 48px;
  height: 48px;
  opacity: 0.9;
}

.result-vault .vault-tooltip {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  padding: var(--space-sm) var(--space-md);
  background: var(--black);
  color: var(--white);
  font-size: 0.875rem;
  white-space: nowrap;
  border-radius: 4px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s, transform 0.2s ease;
  pointer-events: none;
}

.result-vault:hover .vault-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(-12px);
}

/* ----- Utility ----- */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* ----- Newsletter Page ----- */
.newsletter-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-xl) var(--space-lg);
  background: var(--gray-bg);
}

.newsletter-card {
  width: 100%;
  max-width: 520px;
  background: var(--white);
  border-radius: 12px;
  padding: var(--space-xl) var(--space-xl);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  border-top: 3px solid;
  border-image: linear-gradient(90deg, #B22234, #ffffff, #002868) 1;
}

.newsletter-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: var(--space-sm);
}

.newsletter-page-icon {
  width: 36px;
  height: 36px;
  stroke: #002868;
  flex-shrink: 0;
}

.newsletter-heading {
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--black);
  margin: 0;
}

.newsletter-description {
  text-align: center;
  font-size: 1rem;
  color: var(--gray-muted);
  margin: 0 0 var(--space-lg);
  line-height: 1.6;
}

.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.form-row {
  display: flex;
  gap: var(--space-md);
}

.form-row .form-group {
  flex: 1;
}

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

.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--black);
  letter-spacing: 0.02em;
}

.form-optional {
  font-weight: 400;
  color: var(--gray-muted);
}

.form-group input {
  padding: 0.6rem 0.75rem;
  font-size: 0.95rem;
  font-family: var(--font-sans);
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 6px;
  background: var(--gray-bg);
  color: var(--black);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input::placeholder {
  color: var(--gray-muted);
}

.form-group input:focus {
  outline: none;
  border-color: #002868;
  box-shadow: 0 0 0 3px rgba(0, 40, 104, 0.12);
}

.newsletter-submit {
  margin-top: var(--space-sm);
  padding: 0.7rem 1.8rem;
  font-size: 0.95rem;
  font-weight: 600;
  font-family: var(--font-sans);
  letter-spacing: 0.04em;
  color: #ffffff;
  background: #002868;
  border: 2px solid #002868;
  border-radius: 50px;
  cursor: pointer;
  transition: background 0.25s ease, transform 0.25s ease, box-shadow 0.3s ease;
}

.newsletter-submit:hover {
  background: #e60000;
  border-color: #e60000;
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(230, 0, 0, 0.4), 0 0 10px rgba(230, 0, 0, 0.25);
}

@media (max-width: 480px) {
  .form-row {
    flex-direction: column;
  }
  .newsletter-card {
    padding: var(--space-lg) var(--space-md);
  }
  .newsletter-heading {
    font-size: 1.3rem;
  }
}
