:root {
  --canvas: #211d19;
  --surface: #302922;
  --surface-hover: #3b322a;
  --text-main: #f4f1ea;
  --text-muted: #b8b1a6;
  --accent: #d4a84b;
  --accent-hover: #e8bd5f;
  --shadow-soft: 0 4px 12px rgba(0,0,0,0.3);
  --shadow-hover: 0 8px 24px rgba(0,0,0,0.4);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --max-width: 1200px;
  --read-width: 70ch;
}

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

html, body {
  background-color: var(--canvas);
  color: var(--text-main);
  font-family: system-ui, -apple-system, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
  width: 100%;
}

body, h1, h2, h3, h4, h5, h6, p, li {
  overflow-wrap: anywhere;
  hyphens: auto;
}

/* Typography */
h1, h2, h3, h4 {
  font-family: "Arial Narrow", "Helvetica Neue", Helvetica, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
  margin-bottom: 1rem;
  line-height: 1.2;
}

h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
}

h2 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  border-bottom: 2px solid var(--surface);
  padding-bottom: 0.5rem;
}

h3 {
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  color: var(--accent);
}

p {
  margin-bottom: 1.5rem;
}

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

/* Header & Nav */
header {
  position: relative;
  background-color: var(--canvas);
  padding: 1.5rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--surface);
  z-index: 100;
}

.brand {
  font-family: "Arial Narrow", "Helvetica Neue", Helvetica, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--text-main);
}

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

.nav-links a {
  color: var(--text-main);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-family: "Arial Narrow", "Helvetica Neue", sans-serif;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--accent);
  transition: width 0.3s var(--ease);
}

.nav-links a:hover::after {
  width: 100%;
}

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

/* Hero Section */
.hero {
  position: relative;
  background: var(--canvas);
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 2rem;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 60vw;
  height: 60vw;
  background: radial-gradient(circle, rgba(212, 168, 75, 0.12) 0%, transparent 60%);
  transform: translate(-50%, -50%);
  animation: pulse-light 10s infinite alternate ease-in-out;
  pointer-events: none;
}

@keyframes pulse-light {
  0% { transform: translate(-50%, -50%) scale(0.9); opacity: 0.8; }
  100% { transform: translate(-50%, -50%) scale(1.1); opacity: 1; }
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: var(--read-width);
}

.hero p {
  font-size: 1.25rem;
  color: var(--text-muted);
  max-width: 60ch;
  margin: 1.5rem auto 2.5rem;
}

/* Buttons & Links */
.btn-primary {
  display: inline-block;
  background-color: var(--accent);
  color: var(--canvas);
  font-family: "Arial Narrow", "Helvetica Neue", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
  padding: 1rem 2rem;
  border: none;
  border-radius: 0;
  cursor: pointer;
  transition: all 0.3s var(--ease);
}

.btn-primary:hover {
  background-color: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}

.text-link {
  color: var(--accent);
  position: relative;
  font-weight: 600;
}

.text-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--accent);
  transition: width 0.3s var(--ease);
}

.text-link:hover::after {
  width: 100%;
}

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

.read-container {
  max-width: var(--read-width);
  margin: 0 auto;
  padding: 2rem;
}

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

.panel {
  background-color: var(--surface);
  padding: 2rem;
  border-radius: 0;
  position: relative;
}

.panel.interactive:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  background-color: var(--surface-hover);
  transition: all 0.4s var(--ease);
}

.summary-strip {
  background-color: var(--surface);
  padding: 1.5rem 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: space-between;
  border-left: 4px solid var(--accent);
  margin-bottom: 2rem;
}

.summary-item strong {
  display: block;
  font-family: "Arial Narrow", "Helvetica Neue", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.85rem;
  color: var(--accent);
  margin-bottom: 0.25rem;
}

/* Labels & Badges */
.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: var(--canvas);
  color: var(--accent);
  font-weight: 700;
  font-size: 1.2rem;
  border: 2px solid var(--accent);
  margin-bottom: 1rem;
}

/* Imagery & 3D CSS Objects */
img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 0;
  object-fit: cover;
  background-color: var(--surface);
}

.image-panel {
  aspect-ratio: 16/9;
  width: 100%;
  margin: 2rem 0;
}

.image-grid {
  aspect-ratio: 4/3;
  width: 100%;
}

.css-3d-wrapper {
  display: flex;
  gap: 2rem;
  justify-content: center;
  margin: 3rem 0;
}

.css-luggage {
  width: 120px;
  height: 160px;
  background: var(--surface);
  border: 4px solid var(--accent);
  position: relative;
  box-shadow: var(--shadow-soft);
}
.css-luggage::before {
  content: '';
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 20px;
  border: 4px solid var(--accent);
  border-bottom: none;
}
.css-luggage::after {
  content: '';
  position: absolute;
  top: 20px; bottom: 20px; left: 20px; right: 20px;
  border: 2px solid var(--text-muted);
  opacity: 0.2;
}

/* Accordions */
.accordion {
  margin-bottom: 1rem;
}
.accordion-btn {
  width: 100%;
  text-align: left;
  background: var(--surface);
  color: var(--text-main);
  padding: 1.5rem;
  border: none;
  cursor: pointer;
  font-family: "Arial Narrow", "Helvetica Neue", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 1.1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.accordion-btn::after {
  content: '+';
  color: var(--accent);
  font-size: 1.5rem;
}
.accordion-btn.active::after {
  content: '−';
}
.accordion-content {
  background: var(--canvas);
  padding: 0 1.5rem;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s var(--ease), padding 0.3s var(--ease);
  border-left: 2px solid var(--accent);
}
.accordion-content.open {
  padding: 1.5rem;
  max-height: 1000px;
}

/* Contact Composer */
.composer-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  background: var(--surface);
  padding: 3rem;
}
.form-group {
  margin-bottom: 1.5rem;
}
.form-group label {
  display: block;
  font-family: "Arial Narrow", "Helvetica Neue", sans-serif;
  text-transform: uppercase;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}
.form-group input, .form-group textarea {
  width: 100%;
  background: var(--canvas);
  border: 1px solid var(--text-muted);
  color: var(--text-main);
  padding: 1rem;
  font-family: inherit;
  border-radius: 0;
}
.form-group input:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
}
.preview-panel {
  background: var(--canvas);
  padding: 2rem;
  border: 1px dashed var(--text-muted);
  white-space: pre-wrap;
  font-family: monospace;
  color: var(--text-main);
  min-height: 300px;
}
.composer-actions {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

/* Tables */
.table-wrapper {
  overflow-x: auto;
  margin: 2rem 0;
}
table {
  width: 100%;
  border-collapse: collapse;
}
th, td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid var(--surface);
}
th {
  font-family: "Arial Narrow", "Helvetica Neue", sans-serif;
  text-transform: uppercase;
  color: var(--accent);
}

/* Footer */
footer {
  background-color: var(--surface);
  padding: 4rem 2rem 2rem;
  border-top: 2px solid var(--canvas);
  margin-top: 4rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 3rem;
  max-width: var(--max-width);
  margin: 0 auto 3rem;
}
.footer-col h4 {
  color: var(--text-main);
  font-size: 1rem;
  margin-bottom: 1.5rem;
}
.footer-col ul {
  list-style: none;
}
.footer-col li {
  margin-bottom: 0.75rem;
}
.footer-col a {
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: color 0.2s;
}
.footer-col a:hover {
  color: var(--accent);
}
.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  color: var(--text-muted);
  font-size: 0.8rem;
}

/* Scroll Reveal */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Media Queries */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--surface);
    flex-direction: column;
    padding: 2rem;
    gap: 1.5rem;
    box-shadow: var(--shadow-soft);
  }
  .nav-links.show {
    display: flex;
  }
  .menu-toggle {
    display: block;
  }
  .composer-layout {
    grid-template-columns: 1fr;
  }
}

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