/* ==========================================================================
   ZÜRIFORGE - Fine Woodworking & Maker Journal
   Craftsmanship Portfolio & Process Documentation
   ========================================================================== */

:root {
  --bg-main: #0c0d10;
  --bg-surface: #14161b;
  --bg-surface-elevated: #1b1e26;
  --bg-card: #181b22;
  --bg-card-hover: #20242e;
  
  --accent-wood: #d4a373;
  --accent-wood-hover: #e0b488;
  --accent-purple: #8b3a5b;
  --accent-purple-glow: rgba(139, 58, 91, 0.25);
  --accent-amber: #e59866;
  
  --text-main: #f0ede6;
  --text-muted: #9da3af;
  --text-dim: #6b7280;
  --text-highlight: #ffffff;
  
  --border-subtle: #262933;
  --border-active: #3c4150;
  --border-accent: rgba(212, 163, 115, 0.4);
  
  --font-serif: "Newsreader", "Cormorant Garamond", "Playfair Display", Georgia, serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", "SF Mono", Consolas, monospace;
  
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.65);
  
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  
  --container-max: 1200px;
  --container-narrow: 840px;
}

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

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.65;
  font-size: 16px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Typography */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  color: var(--text-highlight);
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

p {
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  font-size: 1.05rem;
}

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

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

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container-narrow {
  max-width: var(--container-narrow);
}

/* Navigation Bar */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(12, 13, 16, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-subtle);
  transition: all 0.3s ease;
}

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

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
}

.brand-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  display: block;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.22);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.brand-logo:hover .brand-icon {
  transform: scale(1.08);
  box-shadow: 0 4px 12px rgba(212, 126, 75, 0.35);
}

.brand-name {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--text-highlight);
  text-transform: uppercase;
}

.brand-sub {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--accent-wood);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-left: 0.25rem;
}

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

.nav-link {
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--text-muted);
  letter-spacing: 0.02em;
  position: relative;
  padding: 0.4rem 0;
}

.nav-link:hover, .nav-link.active {
  color: var(--text-highlight);
}

.nav-link.active::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--accent-wood);
}

.nav-badge {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-full);
  color: var(--accent-wood);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-main);
  cursor: pointer;
  padding: 0.5rem;
}

/* Hero Section */
.hero {
  position: relative;
  padding: 5rem 0 4rem;
  border-bottom: 1px solid var(--border-subtle);
  background: radial-gradient(circle at 80% 20%, rgba(139, 58, 91, 0.12) 0%, transparent 60%),
              radial-gradient(circle at 15% 75%, rgba(212, 163, 115, 0.08) 0%, transparent 50%);
}

.hero-meta {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-wood);
  margin-bottom: 1.25rem;
  background: rgba(212, 163, 115, 0.1);
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(212, 163, 115, 0.25);
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4.2rem);
  font-weight: 500;
  margin-bottom: 1.5rem;
  color: var(--text-highlight);
  max-width: 900px;
}

.hero-title em {
  font-style: italic;
  color: var(--accent-wood);
  font-weight: 400;
}

.hero-lead {
  font-size: 1.25rem;
  line-height: 1.7;
  color: var(--text-muted);
  max-width: 760px;
  margin-bottom: 2.2rem;
}

.hero-actions {
  display: flex;
  gap: 1.2rem;
  flex-wrap: wrap;
  align-items: center;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.85rem 1.75rem;
  font-size: 0.95rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
  cursor: pointer;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--accent-wood);
  color: #121214;
  font-weight: 600;
}

.btn-primary:hover {
  background: var(--accent-wood-hover);
  color: #0c0d10;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(212, 163, 115, 0.3);
}

.btn-outline {
  background: transparent;
  color: var(--text-main);
  border-color: var(--border-active);
}

.btn-outline:hover {
  border-color: var(--accent-wood);
  color: var(--accent-wood);
  background: rgba(212, 163, 115, 0.05);
}

/* Non-commercial manifesto banner */
.manifesto-banner {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  padding: 1.25rem 0;
}

.manifesto-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.manifesto-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent-amber);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Featured Project Card */
.section {
  padding: 5rem 0;
}

.section-header {
  margin-bottom: 3rem;
}

.section-subtitle {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--accent-wood);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 0.6rem;
  display: block;
}

.section-title {
  font-size: 2.4rem;
  margin-bottom: 1rem;
}

.project-card-featured {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 0;
}

.project-card-featured:hover {
  border-color: var(--border-accent);
  box-shadow: var(--shadow-lg);
}

.project-media-wrapper {
  position: relative;
  overflow: hidden;
  min-height: 480px;
  background: radial-gradient(circle at center, #1b1e26 0%, #0d0f14 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.project-hero-img {
  width: 100%;
  height: 100%;
  max-height: 520px;
  object-fit: contain;
  display: block;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), filter 0.4s ease;
  border-radius: var(--radius-sm);
  filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.55));
  cursor: zoom-in;
}

.project-card-featured:hover .project-hero-img {
  transform: scale(1.02);
  filter: drop-shadow(0 14px 32px rgba(0, 0, 0, 0.7));
}

.project-media-badge {
  position: absolute;
  top: 1.25rem;
  left: 1.25rem;
  z-index: 2;
  background: rgba(12, 13, 16, 0.85);
  backdrop-filter: blur(8px);
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-full);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--accent-wood);
  border: 1px solid var(--border-subtle);
  text-transform: uppercase;
  pointer-events: none;
}

.project-content {
  padding: 3rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.project-category {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent-wood);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.project-title {
  font-size: 2.2rem;
  margin-bottom: 1.2rem;
  line-height: 1.2;
}

.project-excerpt {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.65;
  margin-bottom: 2rem;
}

/* Specs Grid */
.specs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 2.2rem;
  background: var(--bg-surface);
  padding: 1.25rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
}

.spec-item {
  display: flex;
  flex-direction: column;
}

.spec-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.2rem;
}

.spec-value {
  font-size: 0.95rem;
  color: var(--text-highlight);
  font-weight: 500;
}

.spec-value em {
  font-style: normal;
  color: var(--accent-wood);
}

/* Timber Showcase Section */
.timber-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.timber-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 2rem;
  position: relative;
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.timber-card:hover {
  border-color: var(--border-active);
}

.timber-accent-bar {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
}

.timber-accent-beech {
  background: linear-gradient(90deg, #d4a373, #faedcd);
}

.timber-accent-purpleheart {
  background: linear-gradient(90deg, #5c203b, #9b4b60);
}

.timber-header {
  margin-bottom: 1.25rem;
}

.timber-scientific {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--accent-wood);
}

.timber-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
  padding: 1rem 0;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  margin: 1.25rem 0;
  font-size: 0.85rem;
}

/* Craft Pillars */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.pillar-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 2rem 1.5rem;
}

.pillar-num {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  color: var(--accent-wood);
  margin-bottom: 1rem;
  font-weight: 600;
}

.pillar-title {
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
}

/* Detailed Project Build Log Page */
.project-header-hero {
  padding: 4rem 0 3rem;
  border-bottom: 1px solid var(--border-subtle);
  background: radial-gradient(circle at 50% 10%, rgba(139, 58, 91, 0.15) 0%, transparent 70%);
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-bottom: 1.5rem;
}

.breadcrumb a {
  color: var(--text-muted);
}

.breadcrumb a:hover {
  color: var(--accent-wood);
}

.project-page-title {
  font-size: clamp(2.5rem, 5vw, 3.8rem);
  margin-bottom: 1rem;
}

.project-page-subtitle {
  font-size: 1.25rem;
  color: var(--text-muted);
  max-width: 800px;
  margin-bottom: 2rem;
}

/* Master Specifications Table */
.specs-table-wrapper {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin-bottom: 3.5rem;
}

.specs-table {
  width: 100%;
  border-collapse: collapse;
}

.specs-table th, .specs-table td {
  padding: 0.85rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.95rem;
}

.specs-table tr:last-child th, .specs-table tr:last-child td {
  border-bottom: none;
}

.specs-table th {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent-wood);
  font-weight: 500;
  width: 28%;
}

.specs-table td {
  color: var(--text-main);
}

/* Before / After Finish Slider */
.comparison-section {
  margin: 3.5rem 0;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2rem;
}

.comparison-header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.comparison-container {
  position: relative;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  aspect-ratio: 4 / 3;
}

.comparison-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.comparison-before {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 50%;
  overflow: hidden;
  z-index: 2;
  border-right: 2px solid var(--accent-wood);
}

.comparison-before img {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  max-width: none;
  object-fit: cover;
}

.comparison-slider-input {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: ew-resize;
  z-index: 10;
  margin: 0;
}

.comparison-handle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent-wood);
  color: #121214;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 5;
  box-shadow: 0 4px 12px rgba(0,0,0,0.6);
}

.comparison-badge {
  position: absolute;
  bottom: 1.25rem;
  padding: 0.4rem 0.8rem;
  background: rgba(12, 13, 16, 0.85);
  backdrop-filter: blur(6px);
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-highlight);
  border: 1px solid var(--border-subtle);
  z-index: 6;
}

.badge-left {
  left: 1.25rem;
}

.badge-right {
  right: 1.25rem;
}

/* Build Log Steps */
.build-step {
  margin-bottom: 4.5rem;
  position: relative;
}

.step-meta {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 0.75rem;
}

.step-number {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 600;
  color: #121214;
  background: var(--accent-wood);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-sm);
}

.step-phase {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.step-title {
  font-size: 2rem;
  margin-bottom: 1.25rem;
}

.step-description {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 1.75rem;
}

.step-media {
  margin: 1.75rem 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
}

.step-img {
  width: 100%;
  max-height: 600px;
  object-fit: cover;
  display: block;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.step-video {
  width: 100%;
  max-height: 600px;
  display: block;
  background: #000;
}

.step-img:hover {
  opacity: 0.95;
}

.step-caption {
  padding: 1rem 1.25rem;
  font-size: 0.9rem;
  color: var(--text-dim);
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.step-caption-text {
  font-style: italic;
}

.step-zoom-hint {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent-wood);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

/* Note Callout Box */
.callout-box {
  background: rgba(212, 163, 115, 0.06);
  border-left: 3px solid var(--accent-wood);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
}

.callout-title {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--accent-wood);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.callout-box p:last-child {
  margin-bottom: 0;
}

/* Gallery Grid */
.gallery-section {
  padding: 4rem 0;
  border-top: 1px solid var(--border-subtle);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  cursor: pointer;
}

.gallery-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery-item:hover .gallery-thumb {
  transform: scale(1.05);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(12, 13, 16, 0.85) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.25s ease;
  display: flex;
  align-items: flex-end;
  padding: 1rem;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-item-title {
  font-size: 0.85rem;
  color: var(--text-highlight);
  font-weight: 500;
}

/* Care Guide */
.care-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.care-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.75rem;
}

.care-card h4 {
  font-size: 1.2rem;
  margin-bottom: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.care-card ul {
  list-style: none;
  padding: 0;
}

.care-card li {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 0.6rem;
  position: relative;
  padding-left: 1.25rem;
}

.care-card li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--accent-wood);
  font-weight: bold;
}

/* Lightbox Modal */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(10, 11, 14, 0.95);
  backdrop-filter: blur(12px);
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.lightbox.active {
  display: flex;
  opacity: 1;
}

.lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
}

.lightbox-caption {
  margin-top: 1rem;
  color: var(--text-main);
  font-size: 0.95rem;
  text-align: center;
  max-width: 700px;
}

.lightbox-close {
  position: absolute;
  top: -45px;
  right: 0;
  background: none;
  border: none;
  color: var(--text-main);
  font-size: 2rem;
  cursor: pointer;
  padding: 0.5rem;
  line-height: 1;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(20, 22, 27, 0.7);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.lightbox-nav:hover {
  background: var(--accent-wood);
  color: #121214;
}

.lightbox-prev {
  left: 20px;
}

.lightbox-next {
  right: 20px;
}

/* Site Footer */
.site-footer {
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  padding: 4rem 0 2rem;
  margin-top: 4rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand-desc {
  color: var(--text-dim);
  font-size: 0.95rem;
  max-width: 380px;
  margin-top: 1rem;
}

.footer-heading {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  text-transform: uppercase;
  color: var(--accent-wood);
  letter-spacing: 0.12em;
  margin-bottom: 1.25rem;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.65rem;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.92rem;
}

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

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--text-dim);
}

/* Responsive adjustments */
@media (max-width: 900px) {
  .project-card-featured {
    grid-template-columns: 1fr;
  }
  .project-media-wrapper {
    min-height: 300px;
    padding: 1.25rem;
  }
  .project-content {
    padding: 2rem;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--bg-surface-elevated);
    flex-direction: column;
    padding: 2rem;
    border-bottom: 1px solid var(--border-subtle);
  }
  .nav-links.active {
    display: flex;
  }
  .menu-toggle {
    display: block;
  }
  .specs-grid {
    grid-template-columns: 1fr;
  }
  .specs-table th {
    width: 40%;
  }
  .manifesto-content {
    flex-direction: column;
    align-items: flex-start;
  }
  .lightbox-nav {
    display: none;
  }
}


/* ==========================================================================
   Workshop Build Archive Drawer & Top Bar Button
   ========================================================================== */

.nav-drawer-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(212, 126, 75, 0.1);
  border: 1px solid rgba(212, 126, 75, 0.35);
  color: var(--text-highlight);
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.25s ease;
  line-height: 1;
  margin-left: 0.5rem;
}

.nav-drawer-btn:hover {
  background: var(--accent-wood);
  border-color: var(--accent-wood);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(212, 126, 75, 0.3);
}

.nav-drawer-btn svg {
  color: var(--accent-wood);
  transition: color 0.25s ease;
}

.nav-drawer-btn:hover svg {
  color: #fff;
}

.drawer-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-wood);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 600;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  transition: background 0.25s ease, color 0.25s ease;
}

.nav-drawer-btn:hover .drawer-pill {
  background: #fff;
  color: var(--accent-wood);
}

.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(14, 12, 10, 0.72);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 9990;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.drawer-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.workshop-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(620px, 95vw);
  height: 100vh;
  background: var(--bg-surface);
  border-left: 1px solid var(--border-subtle);
  box-shadow: -12px 0 40px rgba(0, 0, 0, 0.5);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  visibility: hidden;
  pointer-events: none;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.35s ease;
}

.workshop-drawer.active {
  transform: translateX(0);
  visibility: visible;
  pointer-events: auto;
}

.drawer-header {
  padding: 1.75rem 2rem 1.25rem;
  border-bottom: 1px solid var(--border-subtle);
  background: var(--bg-body);
}

.drawer-header-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.drawer-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent-wood);
  margin-bottom: 0.25rem;
}

.drawer-title {
  font-family: var(--font-serif);
  font-size: 1.85rem;
  font-weight: 600;
  margin: 0;
  color: var(--text-highlight);
  letter-spacing: -0.01em;
}

.drawer-close {
  background: transparent;
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.drawer-close:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-highlight);
  border-color: var(--accent-wood);
  transform: rotate(90deg);
}

.drawer-subtitle {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0 0 1.1rem 0;
  line-height: 1.5;
}

.drawer-filters {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.25rem;
  scrollbar-width: none;
}

.drawer-filter-btn {
  background: transparent;
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-family: var(--font-sans);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.drawer-filter-btn:hover {
  border-color: var(--accent-wood);
  color: var(--text-highlight);
}

.drawer-filter-btn.active {
  background: var(--accent-wood);
  border-color: var(--accent-wood);
  color: #fff;
}

.drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 1.5rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.drawer-project-card {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  background: var(--bg-body);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 1rem 1.15rem;
  text-decoration: none;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}

.drawer-project-card:hover {
  border-color: var(--accent-wood);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  background: rgba(212, 126, 75, 0.04);
}

.drawer-thumb-wrap {
  width: 110px;
  height: 88px;
  border-radius: 7px;
  overflow: hidden;
  flex-shrink: 0;
  background: #111;
  border: 1px solid var(--border-subtle);
}

.drawer-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.drawer-project-card:hover .drawer-thumb {
  transform: scale(1.08);
}

.drawer-card-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.35rem;
}

.drawer-card-meta,
.drawer-card-title,
.drawer-timber-tags,
.drawer-specs-line {
  flex-shrink: 0;
}

.drawer-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.drawer-cat-tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--accent-wood);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.drawer-date {
  font-size: 0.75rem;
  color: var(--text-dim);
}

.drawer-card-title {
  font-family: var(--font-serif);
  font-size: 1.22rem;
  font-weight: 600;
  margin: 0;
  color: var(--text-highlight);
  line-height: 1.35;
  overflow: visible;
  white-space: normal;
}

.drawer-project-card:hover .drawer-card-title {
  color: var(--accent-wood);
}

.drawer-timber-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.timber-chip {
  background: rgba(212, 126, 75, 0.08);
  border: 1px solid rgba(212, 126, 75, 0.22);
  color: var(--accent-wood);
  font-size: 0.72rem;
  padding: 0.15rem 0.55rem;
  border-radius: 4px;
  font-family: var(--font-mono);
  line-height: 1.25;
}

.drawer-specs-line {
  font-size: 0.78rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.45rem;
  line-height: 1.4;
}

.drawer-footer {
  padding: 1.25rem 1.75rem;
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-body);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.drawer-footer-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.drawer-view-all-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1rem;
  font-size: 0.88rem;
}

@media (max-width: 768px) {
  .nav-drawer-btn {
    width: 100%;
    justify-content: center;
    padding: 0.6rem 1rem;
    font-size: 0.95rem;
  }
}

@media (max-width: 540px) {
  .workshop-drawer {
    width: 100vw;
  }
  .drawer-header {
    padding: 1.25rem 1.25rem 1rem;
  }
  .drawer-body {
    padding: 1rem 1.25rem;
  }
  .drawer-footer {
    padding: 1rem 1.25rem;
  }
  .drawer-thumb-wrap {
    width: 95px;
    height: 75px;
  }
  .drawer-card-title {
    font-size: 1.1rem;
  }
}
