/* ==========================================================================
   Glenn J. Pierce — Personal & Engineering Portfolio
   Theme: Warm & Personal Maker / Executive Engineer
   ========================================================================== */

:root {
  /* Charleston Terracotta & Sage Palette — Warm, Inviting & Joyful */
  --bg-primary: #fcf8f3;
  --bg-secondary: #f5e9dc;
  --bg-card: #ffffff;
  --bg-dark: #2f2a27;
  --bg-dark-card: #3b3531;
  --bg-blueprint: #352f2b;

  /* Text Colors */
  --text-primary: #292524;
  --text-secondary: #5f5752;
  --text-muted: #847a72;
  --text-on-dark: #faf6f0;
  --text-muted-dark: #c4bab1;

  /* Terracotta Coral & Garden Sage Accents */
  --accent-copper: #d95d39;
  --accent-copper-hover: #be4a28;
  --accent-copper-light: rgba(217, 93, 57, 0.13);
  --accent-amber: #d97706;
  --accent-teal: #4a7c59;
  --accent-teal-light: rgba(74, 124, 89, 0.13);
  --accent-green: #3d7a52;

  /* Borders & Shadows */
  --border-light: #e8d8c6;
  --border-strong: #d5c1ab;
  --shadow-sm: 0 2px 8px rgba(47, 42, 39, 0.06);
  --shadow-md: 0 8px 24px rgba(47, 42, 39, 0.09);
  --shadow-lg: 0 16px 40px rgba(47, 42, 39, 0.14);

  /* Typography */
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'Consolas', monospace;

  /* Spacing & Radius */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

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

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

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.65;
  overflow-x: hidden;
  /* Subtle warm linen dot grid */
  background-image: radial-gradient( rgba(140, 100, 70, 0.09) 1px, transparent 1px );
  background-size: 24px 24px;
}

h1, h2, h3, h4, h5 {
  font-family: var(--font-heading);
  line-height: 1.2;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

a {
  color: var(--accent-copper);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--accent-copper-hover);
}

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

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ==========================================================================
   Navigation Header
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(252, 248, 243, 0.93);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
  transition: var(--transition);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-primary);
  font-weight: 700;
  font-family: var(--font-heading);
  font-size: 1.25rem;
}

.brand-badge {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--bg-dark);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 700;
  border: 2px solid var(--accent-copper);
}

.brand-sub {
  display: block;
  font-size: 0.72rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

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

.nav-links a {
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.94rem;
  padding: 0.4rem 0.6rem;
  border-radius: var(--radius-sm);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--accent-copper);
  background: var(--accent-copper-light);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 0.45rem 0.65rem;
  font-size: 1.2rem;
  cursor: pointer;
  color: var(--text-primary);
}

/* ==========================================================================
   Buttons & Badges
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 1.35rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.94rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: var(--transition);
  font-family: var(--font-sans);
}

.btn-primary {
  background: var(--accent-copper);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(217, 93, 57, 0.28);
}

.btn-primary:hover {
  background: var(--accent-copper-hover);
  color: #ffffff;
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text-primary);
  border-color: var(--border-strong);
}

.btn-secondary:hover {
  border-color: var(--accent-copper);
  color: var(--accent-copper);
  transform: translateY(-1px);
}

.btn-dark {
  background: var(--bg-dark);
  color: #ffffff;
}

.btn-dark:hover {
  background: #433c38;
  color: #ffffff;
}

/* Invisible spam-bot honeypot field */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.btn-sm {
  padding: 0.45rem 0.9rem;
  font-size: 0.84rem;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  background: var(--accent-copper-light);
  color: var(--accent-copper);
  font-weight: 600;
  margin-bottom: 0.85rem;
}

.section-header {
  max-width: 720px;
  margin-bottom: 2.75rem;
}

.section-header h2 {
  font-size: clamp(1.85rem, 3.2vw, 2.5rem);
  margin-bottom: 0.75rem;
}

.section-header p {
  color: var(--text-secondary);
  font-size: 1.06rem;
}

section {
  padding: 5rem 0;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
  padding: 4.5rem 0 5rem;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.95fr;
  gap: 3.5rem;
  align-items: center;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
  box-shadow: var(--shadow-sm);
}

.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent-green);
  box-shadow: 0 0 0 4px rgba(43, 122, 75, 0.18);
}

.hero h1 {
  font-size: clamp(2.35rem, 4.5vw, 3.6rem);
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.hero h1 .highlight {
  color: var(--accent-copper);
}

.hero-family-quote {
  background: var(--bg-secondary);
  border-left: 4px solid var(--accent-copper);
  padding: 0.95rem 1.25rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin-bottom: 1.35rem;
  font-size: 1.02rem;
  color: var(--text-primary);
  font-weight: 500;
}

.hero-lead {
  font-size: 1.08rem;
  color: var(--text-secondary);
  margin-bottom: 1.85rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 2.25rem;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-light);
}

.stat-card {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--border-light);
  padding: 0.9rem 1rem;
  border-radius: var(--radius-sm);
}

.stat-num {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--accent-copper);
  line-height: 1.1;
}

.stat-label {
  font-size: 0.82rem;
  color: var(--text-secondary);
  font-weight: 600;
  margin-top: 0.2rem;
}

/* Hero Portrait Card */
.hero-visual {
  position: relative;
}

.portrait-frame {
  background: var(--bg-card);
  padding: 1rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-light);
  position: relative;
}

.portrait-img-wrap {
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 4 / 4.4;
  position: relative;
}

.portrait-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
}

.portrait-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 0.4rem 0.2rem;
  font-size: 0.86rem;
}

.portrait-caption strong {
  display: block;
  color: var(--text-primary);
  font-size: 0.95rem;
}

.portrait-caption span {
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.78rem;
}

.floating-badge {
  position: absolute;
  bottom: 4.5rem;
  left: -1.5rem;
  background: var(--bg-dark);
  color: #fff;
  padding: 0.75rem 1.1rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.floating-badge i {
  font-size: 1.35rem;
}

/* ==========================================================================
   Beyond the Blueprint (Personal & Maker Section)
   ========================================================================== */
.beyond-section {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.pillar-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.pillar-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent-copper);
}

.pillar-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--accent-copper-light);
  color: var(--accent-copper);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.1rem;
}

.pillar-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.65rem;
}

.pillar-card p {
  color: var(--text-secondary);
  font-size: 0.96rem;
  flex-grow: 1;
}

.pillar-quote {
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px dashed var(--border-light);
  font-style: italic;
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* Interactive CAD-to-Print Elly Bracket Showcase */
.maker-spotlight {
  background: var(--bg-dark);
  color: var(--text-on-dark);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.maker-spotlight-grid {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 2.5rem;
  align-items: center;
}

.maker-spotlight h3 {
  color: #fff;
  font-size: 1.65rem;
  margin-bottom: 0.75rem;
}

.maker-spotlight p {
  color: var(--text-muted-dark);
  margin-bottom: 1.25rem;
  font-size: 0.98rem;
}

.maker-specs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.spec-item {
  background: var(--bg-dark-card);
  padding: 0.65rem 0.9rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.spec-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  color: var(--text-muted-dark);
}

.spec-val {
  font-weight: 700;
  font-size: 0.9rem;
  color: #fff;
}

.stage-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.stage-tab {
  background: var(--bg-dark-card);
  color: var(--text-muted-dark);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 0.55rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.stage-tab.active,
.stage-tab:hover {
  background: var(--accent-copper);
  color: #fff;
  border-color: var(--accent-copper);
}

.stage-viewer {
  background: #12181d;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.stage-img-container {
  aspect-ratio: 16 / 10;
  width: 100%;
  background: #0d1216;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.stage-img-container img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: opacity 0.25s ease;
}

.stage-caption-bar {
  padding: 0.85rem 1.15rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-dark-card);
  font-size: 0.86rem;
  color: var(--text-on-dark);
}

.stage-step-badge {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  background: rgba(200, 90, 40, 0.25);
  color: #ff9d70;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
}

/* ==========================================================================
   Automation & Engineering Video Theater + Noteworthy Projects
   ========================================================================== */
.video-theater {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-md);
  margin-bottom: 3.5rem;
}

.theater-grid {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  gap: 2rem;
}

.main-player-wrap {
  background: #0f1419;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 16 / 9;
  position: relative;
  box-shadow: var(--shadow-sm);
}

.main-player-wrap video,
.main-player-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  object-fit: contain;
  background: #000;
}

.active-video-meta {
  padding-top: 1.1rem;
}

.active-video-meta h3 {
  font-size: 1.35rem;
  margin-bottom: 0.35rem;
}

.active-video-meta p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.video-playlist {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.playlist-header {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.playlist-item {
  text-align: left;
  background: var(--bg-primary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 0.95rem 1.1rem;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
}

.playlist-item:hover {
  border-color: var(--accent-copper);
  background: #fff;
}

.playlist-item.active {
  background: var(--bg-dark);
  color: #fff;
  border-color: var(--bg-dark);
}

.playlist-item.active h4 {
  color: #fff;
}

.playlist-item.active p {
  color: var(--text-muted-dark);
}

.play-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--accent-copper-light);
  color: var(--accent-copper);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.9rem;
  margin-top: 0.1rem;
}

.playlist-item.active .play-icon {
  background: var(--accent-copper);
  color: #fff;
}

.playlist-item h4 {
  font-size: 0.98rem;
  margin-bottom: 0.2rem;
}

.playlist-item p {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

/* Noteworthy Projects Grid */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  position: relative;
}

.project-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-strong);
}

.project-metric {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 700;
  background: var(--accent-teal-light);
  color: var(--accent-teal);
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  margin-bottom: 0.8rem;
}

.project-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.6rem;
}

.project-card p {
  color: var(--text-secondary);
  font-size: 0.94rem;
}

/* ==========================================================================
   Experience & Resume Section
   ========================================================================== */
.resume-section {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.resume-top-bar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.resume-layout {
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

.timeline {
  position: relative;
  padding-left: 1.75rem;
  border-left: 2px solid var(--border-strong);
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.timeline-item {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.timeline-dot {
  position: absolute;
  left: -2.35rem;
  top: 1.6rem;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--accent-copper);
  border: 3px solid var(--bg-secondary);
}

.timeline-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.4rem;
}

.timeline-date {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--accent-copper);
  font-weight: 700;
}

.timeline-loc {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.timeline-item h3 {
  font-size: 1.2rem;
  margin-bottom: 0.15rem;
}

.timeline-role {
  font-weight: 600;
  color: var(--accent-teal);
  font-size: 0.95rem;
  margin-bottom: 0.85rem;
}

.timeline-list {
  padding-left: 1.15rem;
  color: var(--text-secondary);
  font-size: 0.92rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

/* Skills & Equipment Sidebar */
.skills-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.sidebar-box {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.sidebar-box h3 {
  font-size: 1.12rem;
  margin-bottom: 1rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.skill-tag {
  font-size: 0.82rem;
  padding: 0.35rem 0.7rem;
  background: var(--bg-primary);
  border: 1px solid var(--border-light);
  border-radius: 6px;
  color: var(--text-primary);
  font-weight: 500;
}

.skill-tag.equip {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  background: var(--accent-teal-light);
  border-color: transparent;
  color: var(--accent-teal);
}

/* ==========================================================================
   Limited-Access Journal / Blog Section
   ========================================================================== */
.journal-toolbar {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  box-shadow: var(--shadow-sm);
}

.access-status {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.92rem;
}

.lock-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  background: #fef3c7;
  color: #b45309;
}

.lock-pill.unlocked {
  background: #dcfce7;
  color: #15803d;
}

.passcode-form {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.input-field {
  padding: 0.6rem 0.9rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 0.92rem;
  background: #fff;
  color: var(--text-primary);
}

.input-field:focus {
  outline: none;
  border-color: var(--accent-copper);
  box-shadow: 0 0 0 3px var(--accent-copper-light);
}

.journal-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.journal-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  position: relative;
}

.journal-card.locked-card {
  border-style: dashed;
  border-color: var(--border-strong);
  background: linear-gradient(180deg, #ffffff 0%, #f8f4ec 100%);
}

.journal-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  font-size: 0.82rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.visibility-badge {
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
}

.visibility-badge.public {
  background: var(--accent-teal-light);
  color: var(--accent-teal);
}

.visibility-badge.private {
  background: var(--accent-copper-light);
  color: var(--accent-copper);
}

.journal-card h3 {
  font-size: 1.3rem;
  margin-bottom: 0.65rem;
}

.journal-body {
  color: var(--text-secondary);
  font-size: 0.95rem;
  white-space: pre-line;
  flex-grow: 1;
}

.journal-photo {
  margin-top: 1rem;
  border-radius: var(--radius-sm);
  max-height: 260px;
  object-fit: cover;
  width: 100%;
  border: 1px solid var(--border-light);
}

.locked-overlay-prompt {
  margin-top: 1.15rem;
  padding: 1rem;
  border-radius: var(--radius-sm);
  background: var(--bg-secondary);
  border: 1px solid var(--border-strong);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.88rem;
}

/* Admin Composer Panel */
.admin-panel {
  display: none;
  background: var(--bg-dark);
  color: #fff;
  padding: 1.75rem;
  border-radius: var(--radius-md);
  margin-bottom: 2rem;
}

.admin-panel.active {
  display: block;
}

.admin-panel h3 {
  color: #fff;
  margin-bottom: 1rem;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 1rem;
}

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

.form-group label {
  font-size: 0.84rem;
  font-weight: 600;
}

textarea.input-field {
  min-height: 110px;
  resize: vertical;
}

/* ==========================================================================
   Interactive Visitor Engagement Hub (Guestbook + Ask an Engineer / Print Idea)
   ========================================================================== */
.engagement-section {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-light);
}

.engagement-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2.25rem;
  align-items: start;
}

.interactive-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
}

.interactive-panel h3 {
  font-size: 1.4rem;
  margin-bottom: 0.4rem;
}

.interactive-panel > p {
  color: var(--text-secondary);
  font-size: 0.94rem;
  margin-bottom: 1.5rem;
}

.guestbook-feed {
  margin-top: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-height: 540px;
  overflow-y: auto;
  padding-right: 0.25rem;
}

.guest-entry {
  background: var(--bg-primary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 1.1rem;
}

.guest-entry-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.45rem;
}

.guest-author {
  font-weight: 700;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.guest-badge {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  background: var(--accent-copper-light);
  color: var(--accent-copper);
}

.guest-date {
  font-size: 0.76rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.guest-msg {
  font-size: 0.92rem;
  color: var(--text-secondary);
}

.guest-photo {
  margin-top: 0.75rem;
  border-radius: var(--radius-sm);
  max-height: 190px;
  object-fit: cover;
  border: 1px solid var(--border-light);
  cursor: pointer;
}

/* Ask an Engineer / Suggest a 3D Print Box */
.idea-list {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.idea-item {
  background: var(--bg-primary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 1rem;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.85rem;
}

.idea-type {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--accent-teal);
}

.idea-title {
  font-weight: 600;
  font-size: 0.93rem;
  margin: 0.15rem 0 0.25rem;
}

.idea-answer {
  margin-top: 0.5rem;
  padding: 0.55rem 0.75rem;
  background: #fff;
  border-left: 3px solid var(--accent-copper);
  font-size: 0.84rem;
  color: var(--text-secondary);
}

.upvote-btn {
  background: #fff;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 0.4rem 0.65rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 52px;
  transition: var(--transition);
}

.upvote-btn:hover,
.upvote-btn.voted {
  border-color: var(--accent-copper);
  color: var(--accent-copper);
  background: var(--accent-copper-light);
}

/* Moderation & Confirmation Notices */
.form-notice {
  display: none;
  margin-top: 1rem;
  padding: 0.85rem 1.05rem;
  border-radius: var(--radius-sm);
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #065f46;
  font-size: 0.9rem;
  font-weight: 500;
}

.form-notice.visible {
  display: block;
}

.pending-entry {
  border: 1.5px dashed var(--accent-amber) !important;
  background: #fffbeb !important;
}

.pending-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  background: #fef3c7;
  color: #b45309;
  border: 1px solid #fcd34d;
}

.owner-actions {
  margin-top: 0.65rem;
  padding-top: 0.6rem;
  border-top: 1px dashed var(--border-light);
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
}

.btn-approve {
  background: var(--accent-green);
  color: #ffffff;
  border-color: var(--accent-green);
}

.btn-approve:hover {
  background: #21613b;
  color: #ffffff;
}

.pending-summary-bar {
  margin-bottom: 1.25rem;
  padding: 0.85rem 1.1rem;
  border-radius: var(--radius-sm);
  background: rgba(217, 119, 6, 0.16);
  border: 1px solid rgba(252, 211, 77, 0.45);
  color: #fef3c7;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.9rem;
}

.pending-summary-bar.clear {
  background: rgba(43, 122, 75, 0.22);
  border-color: rgba(134, 239, 172, 0.35);
  color: #dcfce7;
}

/* ==========================================================================
   Footer & Contact
   ========================================================================== */
.site-footer {
  background: var(--bg-dark);
  color: var(--text-on-dark);
  padding: 4rem 0 2.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.site-footer h2 {
  color: #fff;
  font-size: 1.85rem;
  margin-bottom: 0.75rem;
}

.site-footer p {
  color: var(--text-muted-dark);
  max-width: 520px;
}

.contact-cards {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.contact-card {
  background: var(--bg-dark-card);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1rem 1.25rem;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #fff;
}

.contact-card:hover {
  border-color: var(--accent-copper);
  color: #fff;
}

.footer-bottom {
  padding-top: 1.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--text-muted-dark);
}

/* Responsive Breakpoints */
@media (max-width: 980px) {
  .hero-grid,
  .maker-spotlight-grid,
  .theater-grid,
  .resume-layout,
  .engagement-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .pillars-grid,
  .projects-grid,
  .journal-grid {
    grid-template-columns: 1fr;
  }

  .floating-badge {
    left: 1rem;
    bottom: 1rem;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 74px;
    left: 0;
    right: 0;
    background: var(--bg-card);
    flex-direction: column;
    padding: 1.25rem;
    border-bottom: 1px solid var(--border-light);
    box-shadow: var(--shadow-md);
  }

  .nav-links.open {
    display: flex;
  }

  .mobile-menu-btn {
    display: block;
  }

  .hero-stats,
  .form-grid {
    grid-template-columns: 1fr;
  }
}
