:root {
  /* Dynamic Palette: Artisanal Woodcraft (Strictly No Blue) */
  --bg-canvas: #09090b; /* Deep Obsidian */
  --bg-surface: #1c1917; /* Rich Charcoal */
  --text-primary: #f4f1ea; /* Off-white */
  --text-muted: #a8a29e; /* Warm Grey for metadata */
  --accent-primary: #d4a84b; /* Warm Gold */
  --accent-shadow: #f4f1ea;
  
  /* Typography & Layout */
  --font-family: 'Trebuchet MS', 'Segoe UI', sans-serif;
  --line-height: 1.8;
  --max-width: 1100px;
  
  /* Advanced UI */
  --ease-kinetic: cubic-bezier(0.16, 1, 0.3, 1);
  --glass-bg: rgba(28, 25, 23, 0.6);
  --glass-backdrop: blur(12px);
}

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

body {
  font-family: var(--font-family);
  background-color: var(--bg-canvas);
  color: var(--text-primary);
  line-height: var(--line-height);
  overflow-x: hidden;
  overflow-wrap: anywhere;
  hyphens: auto;
}

/* Typography */
h1, h2, h3, h4 {
  font-weight: 400;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: 1.5rem; color: var(--accent-primary); }

p {
  margin-bottom: 1.5rem;
  max-width: 72ch;
}

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

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

/* Layout Core */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

.section {
  padding: 6rem 0;
  position: relative;
}

.section-alt {
  background-color: var(--bg-surface);
  clip-path: polygon(0 4%, 100% 0, 100% 96%, 0 100%);
  padding: 8rem 0;
  margin: -3rem 0;
  z-index: 2;
}

/* Header */
.top-bar {
  background: var(--bg-surface);
  color: var(--text-muted);
  font-size: 0.85rem;
  padding: 0.5rem 2rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  text-align: center;
  border-bottom: 1px solid rgba(244, 241, 234, 0.1);
}

.header {
  padding: 1.5rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  background: var(--bg-canvas);
  z-index: 100;
}

.brand {
  font-size: 1.5rem;
  font-weight: bold;
  letter-spacing: -0.02em;
}

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

.nav-desktop a {
  font-size: 1rem;
  text-transform: lowercase;
  letter-spacing: 0.05em;
}

.btn {
  display: inline-block;
  background: var(--accent-primary);
  color: var(--bg-canvas);
  padding: 1rem 2rem;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border: none;
  cursor: pointer;
  box-shadow: 4px 4px 0 var(--accent-shadow);
  transition: all 0.2s var(--ease-kinetic);
}

.btn:hover {
  transform: translate(4px, 4px);
  box-shadow: 0px 0px 0 var(--accent-shadow);
  color: var(--bg-canvas);
}

/* Mobile Nav */
.mobile-nav-toggle {
  display: none;
  font-size: 1.5rem;
  background: none;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
}

.mobile-menu {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: var(--bg-surface);
  padding: 2rem;
  display: none;
  flex-direction: column;
  gap: 1.5rem;
  border-bottom: 1px solid var(--accent-primary);
}

.mobile-menu.active {
  display: flex;
}

/* Hero Section */
.hero {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
  align-items: center;
  min-height: 70vh;
}

.hero-content h1 {
  margin-bottom: 2rem;
}

.hero-images {
  position: relative;
  height: 600px;
  width: 100%;
}

.hero-images img {
  position: absolute;
  object-fit: cover;
  box-shadow: 12px 12px 0 rgba(0,0,0,0.5);
  border: 1px solid rgba(255,255,255,0.1);
}

.hero-img-1 { top: 0; right: 0; width: 65%; height: 60%; z-index: 1; }
.hero-img-2 { bottom: 0; left: 0; width: 55%; height: 55%; z-index: 2; }
.hero-img-3 { top: 30%; left: 30%; width: 45%; height: 45%; z-index: 3; }

/* Asymmetric Feature Cards */
.grid-asymmetric {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 3rem;
  margin-top: 4rem;
}

.card-glass {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-backdrop);
  padding: 2.5rem;
  border: 1px solid rgba(244, 241, 234, 0.05);
  position: relative;
  transition: transform 0.4s var(--ease-kinetic);
}

.card-glass:hover {
  transform: translateY(-8px);
}

.card-glass img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  margin-bottom: 1.5rem;
  filter: grayscale(20%);
  transition: filter 0.4s ease;
}

.card-glass:hover img {
  filter: grayscale(0%);
}

.round-badge {
  position: absolute;
  top: -20px;
  right: -20px;
  width: 80px;
  height: 80px;
  background: var(--accent-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bg-canvas);
  font-weight: bold;
  font-size: 0.9rem;
  text-align: center;
  line-height: 1.1;
  box-shadow: 4px 4px 0 var(--text-primary);
}

/* Horizontal Scroll (Materials) */
.horizontal-scroll-wrapper {
  overflow-x: auto;
  padding-bottom: 2rem;
  scrollbar-width: thin;
  scrollbar-color: var(--accent-primary) var(--bg-surface);
}

.horizontal-scroll {
  display: flex;
  gap: 2rem;
  width: max-content;
}

.material-card {
  width: 400px;
  background: var(--bg-surface);
  padding: 2rem;
}

.material-card img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  margin-bottom: 1rem;
}

/* Accordion (Commission Process) */
.accordion {
  margin-top: 3rem;
  max-width: 800px;
  margin-inline: auto;
}

.accordion-item {
  border-bottom: 1px solid rgba(244, 241, 234, 0.2);
  margin-bottom: 1rem;
}

.accordion-header {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.5rem;
  padding: 1.5rem 0;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.accordion-content p {
  padding-bottom: 1.5rem;
  color: var(--text-muted);
}

/* Forms & Tools */
.tool-container {
  background: var(--bg-surface);
  padding: 3rem;
  margin-top: 3rem;
  border-left: 4px solid var(--accent-primary);
}

.form-group {
  margin-bottom: 1.5rem;
}

label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--text-muted);
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
}

input[type="text"],
input[type="email"],
select,
textarea {
  width: 100%;
  padding: 1rem;
  background: var(--bg-canvas);
  border: 1px solid rgba(244, 241, 234, 0.2);
  color: var(--text-primary);
  font-family: inherit;
}

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

.tool-actions {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}

.output-preview {
  margin-top: 2rem;
  padding: 1rem;
  background: var(--bg-canvas);
  font-family: monospace;
  white-space: pre-wrap;
  display: none;
}

/* Footer */
footer {
  background: var(--bg-surface);
  padding: 6rem 2rem 2rem;
  margin-top: 4rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 4rem;
  max-width: var(--max-width);
  margin: 0 auto;
  border-bottom: 1px solid rgba(244, 241, 234, 0.1);
  padding-bottom: 4rem;
}

.footer-brand h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.footer-links h4 {
  color: var(--accent-primary);
  font-size: 1rem;
  margin-bottom: 1.5rem;
}

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

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

.footer-bottom {
  max-width: var(--max-width);
  margin: 2rem auto 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.footer-bottom-links {
  display: flex;
  gap: 1.5rem;
}

/* Animations & Scroll Reveal */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s var(--ease-kinetic);
}

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

/* Utilities */
.text-center { text-align: center; }
.mt-4 { margin-top: 4rem; }
.mb-2 { margin-bottom: 2rem; }

/* Responsive */
@media (max-width: 1024px) {
  .hero { grid-template-columns: 1fr; text-align: center; }
  .hero-content p { margin: 0 auto 2rem; }
  .hero-images { height: 400px; margin-top: 2rem; }
}

@media (max-width: 768px) {
  .nav-desktop { display: none; }
  .mobile-nav-toggle { display: block; }
  .section-alt { clip-path: polygon(0 2%, 100% 0, 100% 98%, 0 100%); }
  .tool-actions { flex-direction: column; }
}

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