/*
 * styles.css
 * The Happiness Experiment — thehappinessexperiment.lucitech.net
 * Art-directed build from design-direction.md
 */

/* ============================================================
   Design Tokens
   ============================================================ */
:root {
  --color-primary: #C22026;
  --color-primary-dark: #8A161A;
  --color-primary-light: #F2D5D6;
  --color-secondary: #D4A520;
  --color-accent: #1B6B8A;
  --color-bg: #FFFDF7;
  --color-surface: #FFF8ED;
  --color-text: #1C1917;
  --color-text-secondary: #57534E;
  --color-text-on-primary: #FFFFFF;
  --color-border: #E7E5E0;
  --font-primary: 'Bricolage Grotesque', sans-serif;
  --font-secondary: 'Lora', serif;
  --font-size-base: 16px;
  --spacing-base: 8px;
}

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

html {
  font-size: var(--font-size-base);
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-secondary);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.65;
  padding-bottom: 42px;
}

img, video {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  text-decoration: underline;
}

/* Focus states — WCAG AA */
:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 2px;
}

/* ============================================================
   Typography Hierarchy
   ============================================================ */
.display {
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: clamp(3rem, 5vw, 5.5rem);
  line-height: 0.95;
  letter-spacing: -0.02em;
  color: var(--color-text);
}

h1, .h1 {
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: clamp(2.25rem, 3.5vw, 3.5rem);
  line-height: 1.05;
  letter-spacing: -0.015em;
  color: var(--color-text);
}

h2, .h2 {
  font-family: var(--font-primary);
  font-weight: 600;
  font-size: clamp(1.75rem, 2.5vw, 2.5rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--color-text);
}

h3, .h3 {
  font-family: var(--font-primary);
  font-weight: 600;
  font-size: clamp(1.375rem, 2vw, 1.75rem);
  line-height: 1.2;
  color: var(--color-text);
}

h4, .h4 {
  font-family: var(--font-primary);
  font-weight: 500;
  font-size: clamp(1.125rem, 1.5vw, 1.375rem);
  line-height: 1.25;
  color: var(--color-text);
}

.lead {
  font-family: var(--font-secondary);
  font-weight: 400;
  font-size: clamp(1.125rem, 1.5vw, 1.375rem);
  line-height: 1.55;
}

.lead-italic {
  font-family: var(--font-secondary);
  font-weight: 400;
  font-style: italic;
  font-size: clamp(1.125rem, 1.5vw, 1.375rem);
  line-height: 1.55;
}

.body-text {
  font-family: var(--font-secondary);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.65;
  letter-spacing: 0.005em;
}

.small-text {
  font-family: var(--font-secondary);
  font-weight: 400;
  font-size: 0.875rem;
  line-height: 1.5;
  letter-spacing: 0.01em;
}

.caption {
  font-family: var(--font-primary);
  font-weight: 400;
  font-size: 0.75rem;
  line-height: 1.4;
  letter-spacing: 0.02em;
}

p {
  margin-bottom: 1.5em;
}

p:last-child {
  margin-bottom: 0;
}

/* HAPPINESS word-mark treatment */
.happiness-wordmark {
  color: var(--color-primary);
  text-shadow: 1px 1px 0 var(--color-secondary);
}

/* All-caps treatment */
.all-caps {
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ============================================================
   Navigation
   ============================================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1rem 2rem;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.site-header.scrolled {
  background-color: var(--color-bg);
  border-bottom: 2px solid var(--color-secondary);
  box-shadow: 0 1px 8px rgba(28, 25, 23, 0.06);
}

.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.nav-logo img {
  max-width: 180px;
  height: auto;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
  align-items: center;
}

.nav-links a {
  font-family: var(--font-primary);
  font-weight: 500;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text);
  text-decoration: none;
  transition: color 0.2s ease;
  position: relative;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--color-primary);
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background-color: var(--color-primary);
}

/* Nav light mode — for pages with image headers */
.site-header[data-nav-light] .nav-links a {
  color: rgba(255, 255, 255, 0.92);
}
.site-header[data-nav-light] .nav-links a:hover,
.site-header[data-nav-light] .nav-links a.active {
  color: #ffffff;
}
.site-header[data-nav-light] .hamburger span {
  background-color: rgba(255, 255, 255, 0.92);
}
.site-header[data-nav-light].scrolled .nav-links a {
  color: var(--color-text);
}
.site-header[data-nav-light].scrolled .nav-links a:hover,
.site-header[data-nav-light].scrolled .nav-links a.active {
  color: var(--color-primary);
}
.site-header[data-nav-light].scrolled .hamburger span {
  background-color: var(--color-text);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 26px;
  height: 2px;
  background-color: var(--color-text);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
}

.hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile nav overlay */
.mobile-nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background-color: var(--color-bg);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
}

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

.mobile-nav-overlay a {
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  color: var(--color-primary);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  transition: opacity 0.2s ease;
}

.mobile-nav-overlay a:hover {
  opacity: 0.7;
  text-decoration: none;
}

.mobile-nav-close {
  position: absolute;
  top: 1.5rem;
  right: 2rem;
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--color-text);
  cursor: pointer;
  font-family: var(--font-primary);
  font-weight: 300;
}

/* ============================================================
   Hero — index.html
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  background-color: var(--color-text);
  overflow: hidden;
}

.hero-video-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(28, 25, 23, 0.25) 0%,
    rgba(28, 25, 23, 0.72) 100%
  );
  z-index: 1;
}

.hero-text {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 4rem 6vw 5rem;
  max-width: 680px;
}

.hero-text .display {
  color: var(--color-text-on-primary);
  margin-bottom: 1.5rem;
}

.hero-text .lead-italic {
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 2rem;
  max-width: 42ch;
}

.hero::after {
  display: none;
}

/* ============================================================
   CTA Buttons — Sign-shaped
   ============================================================ */
.btn-sign {
  display: inline-block;
  font-family: var(--font-primary);
  font-weight: 500;
  font-size: 1rem;
  min-width: 280px;
  padding: 0.875rem 2.5rem;
  text-align: center;
  border-radius: 4px;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease;
  cursor: pointer;
  border: none;
  letter-spacing: 0.02em;
}

.btn-sign-primary {
  background-color: var(--color-primary);
  color: var(--color-text-on-primary);
}

.btn-sign-primary:hover {
  background-color: var(--color-primary-dark);
  text-decoration: none;
  color: var(--color-text-on-primary);
}

.btn-sign-white {
  background-color: #FFFFFF;
  color: var(--color-primary);
}

.btn-sign-white:hover {
  background-color: var(--color-surface);
  text-decoration: none;
  color: var(--color-primary);
}

.btn-sign-outline {
  background-color: transparent;
  color: #FFFFFF;
  border: 2px solid #FFFFFF;
}

.btn-sign-outline:hover {
  background-color: rgba(255, 255, 255, 0.1);
  text-decoration: none;
  color: #FFFFFF;
}

.btn-teal {
  background-color: var(--color-accent);
  color: var(--color-text-on-primary);
}

.btn-teal:hover {
  background-color: #155a74;
  text-decoration: none;
  color: var(--color-text-on-primary);
}

.btn-teal-outline {
  background-color: transparent;
  color: var(--color-accent);
  border: 2px solid var(--color-accent);
}

.btn-teal-outline:hover {
  background-color: var(--color-accent);
  color: var(--color-text-on-primary);
  text-decoration: none;
}

/* ============================================================
   Section — The Experiment
   ============================================================ */
.experiment-section {
  background-color: var(--color-bg);
  padding: 6rem 6vw;
}

.experiment-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.experiment-image-frame {
  border: 3px solid var(--color-secondary);
  border-radius: 8px;
  overflow: clip;
  position: relative;
}

.experiment-image-frame img {
  width: 100%;
  height: auto;
  display: block;
}

@keyframes gold-pulse {
  0%, 100% { border-color: var(--color-secondary); }
  50% { border-color: #E0B830; }
}

.experiment-image-frame.animate-pulse {
  animation: gold-pulse 3s ease-in-out 1;
}

.experiment-text {
  min-width: 0;
}

.experiment-text h2 {
  margin-bottom: 1.5rem;
}

.experiment-text p {
  max-width: 60ch;
}

.experiment-text hr {
  border: none;
  height: 1px;
  background-color: var(--color-secondary);
  margin: 2rem 0;
  max-width: 120px;
}

.pull-quote {
  max-width: 1200px;
  margin: 3rem auto 0;
  padding: 1.5rem 2rem;
  border-left: 4px solid var(--color-primary);
  font-family: var(--font-secondary);
  font-style: italic;
  font-size: clamp(1.125rem, 1.5vw, 1.375rem);
  line-height: 1.55;
  color: var(--color-text);
}

.pull-quote .attribution {
  display: block;
  margin-top: 0.75rem;
  font-family: var(--font-primary);
  font-style: normal;
  font-weight: 400;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-secondary);
}

.pull-quote a {
  color: var(--color-accent);
}

/* ============================================================
   Section — Impact Numbers
   ============================================================ */
.impact-section {
  background-color: var(--color-primary-dark);
  padding: 5rem 6vw;
  text-align: center;
}

.impact-numbers {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0;
}

.impact-stat {
  flex: 1;
  padding: 1.5rem 2rem;
  position: relative;
}

.impact-stat + .impact-stat::before {
  content: '';
  position: absolute;
  left: 0;
  top: 20%;
  height: 60%;
  width: 1px;
  background-color: var(--color-secondary);
  opacity: 0;
  transition: opacity 0.3s ease 0.3s;
}

.impact-stat + .impact-stat.divider-visible::before {
  opacity: 1;
}

.impact-number {
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: clamp(3rem, 5vw, 5.5rem);
  line-height: 0.95;
  color: var(--color-text-on-primary);
}

.impact-label {
  font-family: var(--font-primary);
  font-weight: 400;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-secondary);
  margin-top: 0.75rem;
}

.impact-context {
  max-width: 50ch;
  margin: 2.5rem auto 0;
  font-family: var(--font-secondary);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--color-text-on-primary);
}

/* ============================================================
   Section — Signs in the Wild (Home)
   ============================================================ */
.wild-section {
  background-color: var(--color-surface);
  padding: 5rem 6vw;
}

.wild-section h2 {
  margin-bottom: 2rem;
}

.wild-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 220px;
  gap: 16px;
}

.wild-grid-item {
  position: relative;
  border-radius: 4px;
  overflow: clip;
  box-shadow: 0 2px 8px rgba(28, 25, 23, 0.06);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.wild-grid-item.visible {
  opacity: 1;
  transform: translateY(0);
}

.wild-grid-item.tall {
  grid-row: span 2;
}

.wild-grid-item img,
.wild-grid-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.wild-grid-item:hover img,
.wild-grid-item:hover video {
  transform: scale(1.02);
}

.wild-grid-item .caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0.5rem 0.75rem;
  background: linear-gradient(transparent, rgba(28, 25, 23, 0.6));
  color: #FFFFFF;
  font-size: 0.7rem;
}

.wild-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 2rem;
  font-family: var(--font-secondary);
  font-size: 1rem;
  color: var(--color-accent);
}

.wild-link i {
  transition: transform 0.2s ease;
}

.wild-link:hover i {
  transform: translateX(4px);
}

/* ============================================================
   Section — The Book
   ============================================================ */
.book-section {
  background-color: var(--color-bg);
  padding: 5rem 6vw;
}

.book-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 35% 1fr;
  gap: 4rem;
  align-items: center;
}

.book-image img {
  border-radius: 8px;
  width: 100%;
  height: auto;
}

.book-image:hover img {
  box-shadow: 0 8px 24px rgba(28, 25, 23, 0.12);
}

.book-text {
  min-width: 0;
}

.book-text h2 {
  margin-bottom: 1.5rem;
}

.book-text p {
  max-width: 55ch;
}

.book-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

/* ============================================================
   Section — As Seen On (Press)
   ============================================================ */
.press-section {
  background-color: var(--color-surface);
  padding: 5rem 6vw;
}

.press-section h2 {
  margin-bottom: 2.5rem;
}

.press-layout {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

.press-quotes {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.press-clip {
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--color-secondary);
}

.press-clip:last-child {
  border-bottom: none;
}

.press-outlet {
  font-family: var(--font-primary);
  font-weight: 500;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}

.press-excerpt {
  font-family: var(--font-secondary);
  font-style: italic;
  font-size: 1.125rem;
  line-height: 1.55;
  color: var(--color-text);
  margin-bottom: 0.5rem;
}

.press-meta {
  font-family: var(--font-secondary);
  font-size: 0.875rem;
  color: var(--color-text-secondary);
}

.press-meta a {
  color: var(--color-accent);
  font-size: 0.875rem;
}

.press-space {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ============================================================
   Section — Get Involved CTA
   ============================================================ */
.cta-strip-red {
  background-color: var(--color-primary);
  padding: 4rem 6vw;
  text-align: center;
  max-height: 50vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.cta-strip-red h2 {
  color: var(--color-text-on-primary);
  margin-bottom: 1rem;
}

.cta-strip-red .lead {
  color: var(--color-text-on-primary);
  margin-bottom: 2rem;
  max-width: 50ch;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

.cta-strip-red .gold-rule {
  width: 30%;
  height: 1px;
  background-color: var(--color-secondary);
  margin-top: 2rem;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.cta-strip-red .gold-rule.visible {
  opacity: 1;
}

/* ============================================================
   Section — About Hero
   ============================================================ */
.about-hero {
  min-height: 70vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background-color: var(--color-surface);
  padding-top: 80px;
}

.about-hero-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 4rem 3rem 4rem 6vw;
  min-width: 0;
}

.about-hero-text h1 {
  margin-bottom: 1.5rem;
}

.about-hero-text .lead {
  margin-bottom: 1rem;
  max-width: 45ch;
}

.about-hero-text .location {
  font-family: var(--font-primary);
  font-weight: 400;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-secondary);
}

.about-hero-image {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 6vw 2rem 2rem;
}

.about-hero-image img {
  max-height: 60vh;
  width: auto;
  border-radius: 8px;
  object-fit: cover;
}

/* ============================================================
   Section — The Journey
   ============================================================ */
.journey-section {
  background-color: var(--color-bg);
  padding: 5rem 6vw;
}

.journey-text {
  max-width: 65ch;
  margin: 0 auto;
}

.journey-text h2 {
  margin-bottom: 2rem;
}

.journey-text p {
  font-family: var(--font-secondary);
  font-size: 1rem;
  line-height: 1.65;
}

.journey-highlight {
  max-width: 80ch;
  margin: 2rem auto;
  padding: 2rem 2.5rem;
  background-color: var(--color-surface);
  border-left: 4px solid var(--color-primary);
  border-radius: 0 4px 4px 0;
}

.journey-highlight p {
  font-family: var(--font-secondary);
  font-style: italic;
  font-size: clamp(1.125rem, 1.5vw, 1.375rem);
  line-height: 1.55;
  margin-bottom: 0;
}

/* ============================================================
   Section — Speaking
   ============================================================ */
.speaking-section {
  background-color: var(--color-surface);
  padding: 5rem 6vw;
}

.speaking-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 55% 1fr;
  gap: 3rem;
  align-items: center;
}

.speaking-text {
  min-width: 0;
}

.speaking-text h2 {
  margin-bottom: 1.5rem;
}

.speaking-text p {
  max-width: 55ch;
}

.speaking-image img {
  border-radius: 8px;
  width: 100%;
  height: auto;
}

.speaking-contexts {
  max-width: 1200px;
  margin: 2.5rem auto 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
}

.speaking-context-item {
  font-family: var(--font-primary);
  font-weight: 400;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-secondary);
  padding: 0 1rem;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.speaking-context-item.visible {
  opacity: 1;
}

.speaking-context-divider {
  width: 1px;
  height: 1rem;
  background-color: var(--color-secondary);
}

/* ============================================================
   Section — Veterans Mission
   ============================================================ */
.veterans-section {
  background-color: var(--color-bg);
  padding: 5rem 6vw;
}

.veterans-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 30% 1fr;
  gap: 4rem;
  align-items: start;
}

.veterans-poster img {
  width: 100%;
  height: auto;
}

.veterans-text {
  min-width: 0;
}

.veterans-text h2 {
  margin-bottom: 1.5rem;
}

.veterans-text p {
  max-width: 60ch;
}

/* ============================================================
   Section — Connect CTA (About)
   ============================================================ */
.cta-strip-teal {
  background-color: var(--color-accent);
  padding: 3rem 6vw;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.cta-strip-teal h3 {
  color: var(--color-text-on-primary);
  margin-bottom: 1.5rem;
}

.cta-strip-teal .btn-sign-white:hover {
  background-color: var(--color-surface);
}

/* ============================================================
   Section — Gallery Header (Media)
   ============================================================ */
.gallery-header {
  background-color: var(--color-primary-dark);
  background-image: linear-gradient(
    to bottom,
    rgba(28, 25, 23, 0.80) 0%,
    rgba(28, 25, 23, 0.40) 45%,
    rgba(28, 25, 23, 0.72) 100%
  ), url('../images/signs-scattered.png');
  background-size: cover;
  background-position: center;
  padding: 10rem 10vw 4rem;
  min-height: 40vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.gallery-header h1 {
  color: var(--color-text-on-primary);
  margin-bottom: 1rem;
}

.gallery-header .lead-italic {
  color: var(--color-text-on-primary);
  max-width: 55ch;
}

/* ============================================================
   Section — Photo Grid (Media)
   ============================================================ */
.photo-grid-section {
  background-color: var(--color-surface);
  padding: 4rem 6vw;
}

.masonry-grid {
  max-width: 1200px;
  margin: 0 auto;
  columns: 3;
  column-gap: 12px;
}

.masonry-item {
  break-inside: avoid;
  margin-bottom: 12px;
  border-radius: 4px;
  overflow: clip;
  box-shadow: 0 1px 4px rgba(28, 25, 23, 0.05);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.masonry-item.visible {
  opacity: 1;
  transform: translateY(0);
}

.masonry-item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.2s ease;
}

.masonry-item:hover img {
  transform: scale(1.03);
}

.masonry-caption {
  padding: 0.5rem 0.75rem;
  background-color: var(--color-bg);
}

.masonry-caption span {
  font-family: var(--font-primary);
  font-size: 0.75rem;
  color: var(--color-text-secondary);
}

.gallery-pullquote {
  max-width: 800px;
  margin: 3rem auto 0;
  padding: 1.5rem 2rem;
  border-left: 4px solid var(--color-primary);
  font-family: var(--font-secondary);
  font-style: italic;
  font-size: clamp(1.125rem, 1.5vw, 1.375rem);
  line-height: 1.55;
}

.gallery-pullquote .attribution {
  display: block;
  margin-top: 0.75rem;
  font-family: var(--font-primary);
  font-style: normal;
  font-weight: 400;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-secondary);
}

/* ============================================================
   Section — Press & Video (Media)
   ============================================================ */
.press-video-section {
  background-color: var(--color-bg);
  padding: 5rem 6vw;
}

.press-video-section h2 {
  margin-bottom: 2rem;
}

.press-cards {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.press-card {
  background-color: var(--color-surface);
  padding: 1.5rem;
  border-left: 4px solid var(--color-primary);
  border-radius: 0 4px 4px 0;
  transition: border-left-width 0.2s ease;
}

.press-card:hover {
  border-left-width: 6px;
}

.press-card-outlet {
  font-family: var(--font-primary);
  font-weight: 500;
  font-size: 0.875rem;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}

.press-card-title {
  font-family: var(--font-secondary);
  font-size: 1rem;
  line-height: 1.4;
  margin-bottom: 0.5rem;
}

.press-card-meta {
  font-family: var(--font-secondary);
  font-size: 0.875rem;
  color: var(--color-text-secondary);
  margin-bottom: 0.75rem;
}

.press-card-link {
  font-family: var(--font-secondary);
  font-size: 0.875rem;
  color: var(--color-accent);
}

.video-section {
  max-width: 800px;
  margin: 4rem auto 0;
}

.video-section h2 {
  margin-bottom: 1.5rem;
}

.video-embed {
  position: relative;
  border-radius: 8px;
  overflow: clip;
  margin-bottom: 1rem;
}

.video-embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.site-video {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}

.video-caption {
  color: var(--color-text-secondary);
  font-size: 0.9rem;
  margin-bottom: 0;
}

.video-placeholder {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 3rem 2rem;
  text-align: center;
}

.video-placeholder i {
  font-size: 3rem;
  color: var(--color-text-secondary);
  margin-bottom: 1rem;
  display: block;
}

.video-placeholder p {
  color: var(--color-text-secondary);
  margin-bottom: 0;
}

.video-placeholder a {
  color: var(--color-accent);
}

/* ============================================================
   Section — Contact Header
   ============================================================ */
.contact-header {
  background-color: var(--color-primary);
  background-image: linear-gradient(
    to bottom,
    rgba(28, 25, 23, 0.72) 0%,
    rgba(28, 25, 23, 0.55) 50%,
    rgba(28, 25, 23, 0.72) 100%
  ), url('../images/signs-spaced.png');
  background-size: cover;
  background-position: center;
  padding: 10rem 6vw 4rem;
  min-height: 35vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.contact-header h1 {
  color: var(--color-text-on-primary);
  margin-bottom: 1rem;
}

.contact-header .lead-italic {
  color: var(--color-text-on-primary);
  max-width: 50ch;
}

/* ============================================================
   Section — Contact Form & Info
   ============================================================ */
.contact-section {
  background-color: var(--color-bg);
  padding: 5rem 6vw;
}

.contact-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 55% 1fr;
  gap: 4rem;
  align-items: start;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

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

.form-group label {
  font-family: var(--font-primary);
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--color-text);
}

.form-group input,
.form-group textarea {
  font-family: var(--font-secondary);
  font-size: 1rem;
  padding: 0.875rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background-color: var(--color-bg);
  color: var(--color-text);
  transition: border-color 0.2s ease;
  width: 100%;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--color-accent);
  outline: none;
  box-shadow: 0 0 0 3px rgba(27, 107, 138, 0.15);
}

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

.contact-form .btn-sign {
  align-self: flex-start;
}

.contact-info {
  min-width: 0;
}

.contact-info h3 {
  margin-bottom: 1.5rem;
}

.contact-info-block {
  margin-bottom: 2rem;
}

.contact-info-block h4 {
  margin-bottom: 0.75rem;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-secondary);
}

.contact-info-block p,
.contact-info-block a {
  font-family: var(--font-secondary);
  font-size: 1rem;
  line-height: 1.65;
}

.social-links-text {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.social-links-text a {
  font-family: var(--font-primary);
  font-weight: 400;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-accent);
  text-decoration: none;
  transition: color 0.2s ease;
}

.social-links-text a:hover {
  text-decoration: underline;
}

.social-links-text .divider {
  color: var(--color-secondary);
  font-size: 0.75rem;
}

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  background-color: var(--color-primary-dark);
  padding: 0;
}

.footer-gold-rule {
  height: 1px;
  background-color: var(--color-secondary);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2.5rem 6vw;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 2rem;
  align-items: center;
}

.footer-logo img {
  width: 200px;
  max-width: 200px;
  height: auto;
}

.footer-center {
  text-align: center;
}

.footer-center h4 {
  color: var(--color-text-on-primary);
  margin-bottom: 0.75rem;
  font-size: clamp(1rem, 1.5vw, 1.25rem);
}

.footer-center .happiness-wordmark {
  color: var(--color-primary-light);
  text-shadow: 1px 1px 0 var(--color-secondary);
}

.footer-amazon-link {
  font-family: var(--font-secondary);
  color: var(--color-secondary);
  transition: color 0.2s ease;
}

.footer-amazon-link:hover {
  color: #E0B830;
}

.footer-social {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-social a {
  font-family: var(--font-primary);
  font-weight: 400;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-secondary);
  text-decoration: none;
  transition: text-decoration 0.15s ease;
}

.footer-social a:hover {
  text-decoration: underline;
}

.footer-social .sep {
  color: var(--color-secondary);
  opacity: 0.5;
  font-size: 0.6rem;
}

.footer-copyright {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 6vw 1.5rem;
  text-align: center;
}

.footer-copyright p {
  font-family: var(--font-secondary);
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.65);
  margin: 0;
}

/* ============================================================
   404 Page
   ============================================================ */
.error-page {
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem 6vw;
  background-color: var(--color-bg);
}

.error-page h1 {
  font-size: clamp(4rem, 10vw, 8rem);
  color: var(--color-primary);
  margin-bottom: 1rem;
}

.error-page p {
  font-family: var(--font-secondary);
  font-size: 1.25rem;
  color: var(--color-text-secondary);
  margin-bottom: 2rem;
  max-width: 45ch;
}

/* ============================================================
   Scroll animations
   ============================================================ */
.fade-in-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-left {
  opacity: 0;
  transform: translateX(-24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-left.visible {
  opacity: 1;
  transform: translateX(0);
}

/* ============================================================
   Video Banner — cinematic mid-page strip (index.html)
   ============================================================ */
.video-banner {
  background-color: var(--color-text);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 4rem 0;
  overflow: hidden;
}

.video-banner-vid {
  height: 85vh;
  width: auto;
  max-width: 100%;
  display: block;
}

/* ============================================================
   Intro Splash (index.html only)
   ============================================================ */
#intro-splash {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background-color: var(--color-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.9s ease;
}

#intro-splash.dismissed {
  opacity: 0;
  pointer-events: none;
}

#intro-splash img {
  width: min(600px, 85vw);
  height: auto;
}

body.splash-active {
  overflow: hidden;
}

/* ============================================================
   Section — Store Header
   ============================================================ */
.store-header {
  background-color: var(--color-primary);
  background-image: linear-gradient(rgba(139, 22, 26, 0.82), rgba(139, 22, 26, 0.82)), url('../images/signs-grid.png');
  background-size: cover;
  background-position: center;
  padding: 10rem 6vw 4rem;
  min-height: 35vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.store-header h1 {
  color: var(--color-text-on-primary);
  margin-bottom: 1rem;
}

.store-header .lead-italic {
  color: var(--color-text-on-primary);
  max-width: 50ch;
}

/* ============================================================
   Section — Store Embed
   ============================================================ */
.store-embed {
  background-color: var(--color-bg);
  padding: 3rem 0 0;
}

.store-iframe-wrapper {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
}

.store-iframe {
  width: 100%;
  height: 1050px;
  border: none;
  display: block;
}

.store-fallback {
  text-align: center;
  padding: 2rem;
}

/* ============================================================
   Responsive — Tablet (max-width: 1024px)
   ============================================================ */
@media (max-width: 1024px) {
  .hero {
    min-height: 100vh;
    min-height: 100svh;
  }

  .hero-text {
    padding: 4rem 6vw 4rem;
  }

  .experiment-grid {
    grid-template-columns: 1fr;
  }

  .experiment-image-frame {
    max-width: 600px;
  }

  .book-grid {
    grid-template-columns: 40% 1fr;
    gap: 2rem;
  }

  .press-layout {
    grid-template-columns: 1fr;
  }

  .press-space {
    display: none;
  }

  .about-hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .about-hero-text {
    padding: 6rem 6vw 2rem;
  }

  .about-hero-image {
    padding: 0 6vw 3rem;
    justify-content: flex-start;
  }

  .about-hero-image img {
    max-height: 50vh;
  }

  .speaking-grid {
    grid-template-columns: 1fr;
  }

  .speaking-image {
    order: -1;
    max-width: 500px;
  }

  .veterans-grid {
    grid-template-columns: 1fr;
  }

  .veterans-poster {
    max-width: 300px;
  }

  .masonry-grid {
    columns: 2;
  }

  .press-cards {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 1.5rem;
  }

  .footer-logo {
    display: flex;
    justify-content: center;
  }

  .footer-social {
    justify-content: center;
  }

  .nav-links {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .wild-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 200px;
  }
}

/* ============================================================
   Responsive — Mobile (max-width: 640px)
   ============================================================ */
@media (max-width: 640px) {
  .hero-text {
    padding: 3rem 5vw 3.5rem;
  }

  .hero-text .display {
    font-size: clamp(2.25rem, 8vw, 3rem);
    font-weight: 700;
  }

  .experiment-section {
    padding: 4rem 5vw;
  }

  .experiment-image-frame {
    max-width: 100%;
  }

  .pull-quote {
    padding: 1rem 1.25rem;
    font-size: 1.125rem;
  }

  .impact-numbers {
    flex-direction: column;
    gap: 2rem;
  }

  .impact-stat + .impact-stat::before {
    width: 40%;
    height: 1px;
    top: -1rem;
    left: 30%;
  }

  .impact-number {
    font-size: clamp(3.5rem, 15vw, 5rem);
  }

  .wild-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
  }

  .wild-grid-item {
    width: 60vw;
  }

  .wild-grid-item.tall {
    grid-row: span 1;
  }

  .wild-grid-item:nth-child(odd) {
    margin-left: 0;
    margin-right: auto;
  }

  .wild-grid-item:nth-child(even) {
    margin-left: auto;
    margin-right: 0;
  }

  .wild-grid-item img,
  .wild-grid-item video {
    height: auto;
  }

  .book-grid {
    grid-template-columns: 1fr;
  }

  .book-image {
    max-width: 80%;
  }

  .btn-sign {
    min-width: 240px;
    font-size: 0.9rem;
  }

  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }

  .about-hero-image img {
    max-height: 40vh;
  }

  .journey-section {
    padding: 3rem 5vw;
  }

  .journey-highlight {
    padding: 1.5rem;
  }

  .speaking-contexts {
    justify-content: center;
  }

  .speaking-context-item {
    font-size: 0.65rem;
  }

  .veterans-poster {
    max-width: 200px;
    margin: 0 auto;
  }

  .masonry-grid {
    columns: 1;
  }

  .masonry-item {
    width: 80%;
    margin-left: auto;
    margin-right: auto;
  }

  .masonry-item:nth-child(odd) {
    margin-left: 5%;
    margin-right: auto;
  }

  .masonry-item:nth-child(even) {
    margin-left: auto;
    margin-right: 5%;
  }

  .gallery-header {
    padding: 7rem 5vw 3rem;
  }

  .contact-header {
    padding: 7rem 5vw 3rem;
  }

  .store-header {
    padding: 7rem 5vw 3rem;
  }

  .store-iframe {
    height: 750px;
  }

  .store-iframe-wrapper {
    padding: 0 1rem;
  }

  .contact-section {
    padding: 3rem 5vw;
  }

  .footer-inner {
    padding: 2rem 5vw;
  }

  .footer-logo img {
    width: 160px;
  }

  .press-clip {
    padding: 1rem 0;
  }

  .press-excerpt {
    font-size: 1rem;
  }
}
