:root {
  --gold: #c9a227;
  --gold-light: #e8c84a;
  --gold-dark: #8a6d1a;
  --brass: #b8956a;
  --walnut: #3d2e1f;
  --walnut-light: #5c4a38;
  --steel: #6b7280;
  --steel-light: #9ca3af;
  --oxidized: #6b8f71;
  --charcoal: #1a1814;
  --charcoal-mid: #2a2318;
  --ivory: #f5f0e6;
  --ivory-dark: #e8e0d0;
  --error: #a63d3d;
  --success: #4a7c59;
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-mono: 'IBM Plex Mono', monospace;
  --radius: 4px;
  --shadow: 0 4px 24px rgba(26, 24, 20, 0.25);
  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-display);
  font-size: 1.125rem;
  line-height: 1.65;
  color: var(--ivory);
  background: var(--charcoal);
  background-image:
    radial-gradient(ellipse at 20% 0%, rgba(201, 162, 39, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 100%, rgba(107, 143, 113, 0.05) 0%, transparent 50%);
  min-height: 100vh;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold-light); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--gold); }
address { font-style: normal; }

.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  background: var(--gold);
  color: var(--charcoal);
  padding: 0.5rem 1rem;
  z-index: 9999;
  border-radius: var(--radius);
}
.skip-link:focus { top: 1rem; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(26, 24, 20, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(201, 162, 39, 0.2);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.875rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  color: var(--ivory);
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: 0.04em;
}
.logo-mark { color: var(--gold); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 1px solid var(--brass);
  border-radius: var(--radius);
  padding: 0.5rem;
  cursor: pointer;
  color: var(--ivory);
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--gold);
  transition: var(--transition);
}

.site-nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 1.75rem;
}
.site-nav a {
  color: var(--ivory-dark);
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  position: relative;
}
.site-nav a:hover,
.site-nav a[aria-current="page"] { color: var(--gold); }
.site-nav a[aria-current="page"]::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--gold);
}
.nav-cta {
  padding: 0.4rem 1rem;
  border: 1px solid var(--gold);
  border-radius: var(--radius);
  color: var(--gold) !important;
}
.nav-cta:hover { background: rgba(201, 162, 39, 0.12); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: conic-gradient(from 0deg, transparent, rgba(201, 162, 39, 0.15), transparent);
  opacity: 0;
  transition: opacity var(--transition);
}
.btn:hover::before { opacity: 1; }
.btn-primary {
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  color: var(--charcoal);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.2), 0 2px 8px rgba(0,0,0,0.3);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: inset 0 1px 0 rgba(255,255,255,0.2), 0 4px 16px rgba(201,162,39,0.3); }
.btn-secondary {
  background: transparent;
  color: var(--ivory);
  border: 1px solid var(--brass);
}
.btn-secondary:hover { border-color: var(--gold); color: var(--gold); }

/* Layout */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.section { padding: 4.5rem 0; }
.section-sm { padding: 3rem 0; }

.section-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--oxidized);
  margin-bottom: 0.75rem;
}

h1, h2, h3, h4 {
  font-weight: 600;
  line-height: 1.25;
  color: var(--ivory);
}
h1 { font-size: clamp(2.25rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); margin-bottom: 1rem; }
h3 { font-size: 1.35rem; margin-bottom: 0.5rem; }

.lead { font-size: 1.2rem; color: var(--ivory-dark); max-width: 42rem; }

/* Hero home */
.hero-home {
  position: relative;
  min-height: 85vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
  padding: 3rem 1.5rem 4rem;
  max-width: 1200px;
  margin: 0 auto;
}
.hero-home-content { z-index: 2; }
.hero-home .hero-index {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--brass);
  letter-spacing: 0.2em;
  margin-bottom: 1.5rem;
}
.hero-home h1 { margin-bottom: 1.25rem; }
.hero-home h1 em {
  font-style: normal;
  color: var(--gold);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2rem; }
.hero-visual {
  position: relative;
  border: 1px solid rgba(201, 162, 39, 0.3);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.hero-visual::before {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid rgba(201, 162, 39, 0.15);
  margin: 8px;
  pointer-events: none;
  z-index: 1;
}
.hero-visual img { width: 100%; aspect-ratio: 4/5; object-fit: cover; }
.hero-dial {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  width: 64px;
  height: 64px;
  border: 2px solid var(--gold);
  border-radius: 50%;
  background: rgba(26, 24, 20, 0.85);
  z-index: 2;
}
.hero-dial::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 2px;
  height: 22px;
  background: var(--gold);
  transform-origin: bottom center;
  transform: translate(-50%, -100%) rotate(45deg);
}

/* Page hero */
.page-hero {
  padding: 4rem 0 3rem;
  border-bottom: 1px solid rgba(201, 162, 39, 0.15);
  background: linear-gradient(180deg, rgba(61, 46, 31, 0.4) 0%, transparent 100%);
}
.page-hero h1 { max-width: 48rem; }

/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.75rem;
}
.card {
  background: var(--charcoal-mid);
  border: 1px solid rgba(184, 149, 106, 0.25);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
}
.card:hover {
  border-color: rgba(201, 162, 39, 0.45);
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}
.card-image { aspect-ratio: 16/10; overflow: hidden; }
.card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.card:hover .card-image img { transform: scale(1.04); }
.card-body { padding: 1.5rem; }
.card-meta {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--brass);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}
.card-body p { color: var(--ivory-dark); font-size: 1rem; margin-top: 0.5rem; }
.card-link {
  display: inline-block;
  margin-top: 1rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
}

/* Instrument panel */
.instrument-panel {
  background: linear-gradient(145deg, var(--walnut), var(--charcoal-mid));
  border: 1px solid rgba(201, 162, 39, 0.25);
  border-radius: var(--radius);
  padding: 2rem;
  position: relative;
}
.instrument-panel::before {
  content: '';
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  bottom: 12px;
  border: 1px solid rgba(201, 162, 39, 0.1);
  pointer-events: none;
  border-radius: 2px;
}
.panel-readout {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--oxidized);
  letter-spacing: 0.12em;
  margin-bottom: 1rem;
}

/* Two column */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}
.two-col-reverse { direction: rtl; }
.two-col-reverse > * { direction: ltr; }

/* Testimonials */
.testimonial {
  background: var(--charcoal-mid);
  border-left: 3px solid var(--gold);
  padding: 1.75rem;
  margin-bottom: 1.5rem;
  border-radius: 0 var(--radius) var(--radius) 0;
}
.testimonial blockquote {
  font-size: 1.05rem;
  color: var(--ivory-dark);
  margin-bottom: 1rem;
}
.testimonial cite {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--brass);
  font-style: normal;
}

/* Process steps */
.process-steps {
  counter-reset: step;
  list-style: none;
  display: grid;
  gap: 2rem;
}
.process-steps li {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 1.5rem;
  align-items: start;
}
.process-steps li::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-mono);
  font-size: 1.5rem;
  color: var(--gold);
  border: 1px solid var(--brass);
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

/* Pricing table */
.pricing-table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
}
.pricing-table th,
.pricing-table td {
  padding: 1rem 1.25rem;
  text-align: left;
  border-bottom: 1px solid rgba(184, 149, 106, 0.2);
}
.pricing-table th {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(61, 46, 31, 0.5);
}
.pricing-table td { color: var(--ivory-dark); }

/* Forms */
.form-group { margin-bottom: 1.25rem; }
.form-group label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 0.4rem;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--charcoal-mid);
  border: 1px solid rgba(184, 149, 106, 0.35);
  border-radius: var(--radius);
  color: var(--ivory);
  font-family: var(--font-display);
  font-size: 1rem;
  transition: border-color var(--transition);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--gold);
}
.form-group textarea { min-height: 140px; resize: vertical; }
.form-error {
  color: var(--error);
  font-size: 0.85rem;
  margin-top: 0.35rem;
  display: none;
}
.form-group.invalid .form-error { display: block; }
.form-group.invalid input,
.form-group.invalid select,
.form-group.invalid textarea { border-color: var(--error); }
.form-success {
  background: rgba(74, 124, 89, 0.15);
  border: 1px solid var(--success);
  color: var(--ivory);
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  display: none;
}
.form-success.visible { display: block; }
.form-fail {
  background: rgba(166, 61, 61, 0.15);
  border: 1px solid var(--error);
  color: var(--ivory);
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  display: none;
}
.form-fail.visible { display: block; }

/* Legal prose */
.legal-content {
  max-width: 760px;
  margin: 0 auto;
  padding: 3rem 1.5rem 5rem;
}
.legal-content h2 {
  font-size: 1.5rem;
  margin: 2.5rem 0 1rem;
  color: var(--gold);
}
.legal-content h3 {
  font-size: 1.15rem;
  margin: 1.75rem 0 0.75rem;
}
.legal-content p,
.legal-content li {
  color: var(--ivory-dark);
  margin-bottom: 0.75rem;
}
.legal-content ul { padding-left: 1.5rem; margin-bottom: 1rem; }

.cookies-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.95rem;
}
.cookies-table th,
.cookies-table td {
  padding: 0.75rem;
  border: 1px solid rgba(184, 149, 106, 0.25);
  text-align: left;
}
.cookies-table th { background: rgba(61, 46, 31, 0.5); color: var(--gold); font-family: var(--font-mono); font-size: 0.7rem; }

/* Service detail */
.service-detail-hero {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2.5rem;
  align-items: start;
  margin-bottom: 3rem;
}
.service-detail-hero img {
  border-radius: var(--radius);
  border: 1px solid rgba(201, 162, 39, 0.25);
}
.service-specs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
  margin: 2rem 0;
}
.spec-item {
  background: rgba(61, 46, 31, 0.4);
  border: 1px solid rgba(184, 149, 106, 0.2);
  padding: 1rem;
  border-radius: var(--radius);
}
.spec-item dt {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 0.25rem;
}
.spec-item dd { color: var(--ivory); font-size: 0.95rem; }

/* Blog */
.blog-post-header { margin-bottom: 2.5rem; }
.blog-post-meta {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--brass);
  letter-spacing: 0.1em;
  margin-bottom: 0.75rem;
}
.blog-post-cover {
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 2.5rem;
  border: 1px solid rgba(201, 162, 39, 0.2);
}
.blog-post-cover img { width: 100%; max-height: 420px; object-fit: cover; }
.prose { max-width: 680px; }
.prose p { margin-bottom: 1.25rem; color: var(--ivory-dark); }
.prose h2 { font-size: 1.5rem; margin: 2rem 0 0.75rem; }
.prose ul { padding-left: 1.5rem; margin-bottom: 1.25rem; color: var(--ivory-dark); }

/* 404 */
.error-page {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3rem 1.5rem;
}
.error-code {
  font-family: var(--font-mono);
  font-size: 5rem;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 1rem;
}

/* Footer */
.site-footer {
  background: var(--charcoal-mid);
  border-top: 1px solid rgba(201, 162, 39, 0.2);
  padding: 3.5rem 1.5rem 1.5rem;
  margin-top: 4rem;
}
.footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}
.footer-name {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--ivory);
  margin-bottom: 0.75rem;
}
.footer-tagline { color: var(--steel-light); font-size: 0.95rem; }
.footer-heading {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}
.footer-links ul,
.footer-legal ul { list-style: none; }
.footer-links li,
.footer-legal li { margin-bottom: 0.5rem; }
.footer-links a,
.footer-legal a { color: var(--ivory-dark); font-size: 0.95rem; }
.footer-contact address p { margin-bottom: 0.4rem; color: var(--ivory-dark); font-size: 0.95rem; }
.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(184, 149, 106, 0.15);
  text-align: center;
}
.footer-bottom p { font-size: 0.85rem; color: var(--steel); }

/* Cookie banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: var(--walnut);
  border-top: 1px solid rgba(201, 162, 39, 0.3);
  padding: 1.25rem 1.5rem;
  box-shadow: 0 -4px 24px rgba(0,0,0,0.4);
}
.cookie-banner[hidden] { display: none; }
.cookie-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.cookie-inner p { color: var(--ivory-dark); font-size: 0.95rem; max-width: 680px; }
.cookie-actions { display: flex; gap: 0.75rem; flex-shrink: 0; }

/* Image placeholder */
.img-placeholder {
  background: linear-gradient(135deg, var(--walnut), var(--charcoal-mid));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brass);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  min-height: 200px;
}

/* Responsive */
@media (max-width: 900px) {
  .hero-home { grid-template-columns: 1fr; min-height: auto; padding-top: 2rem; }
  .hero-visual { order: -1; }
  .two-col, .service-detail-hero { grid-template-columns: 1fr; }
  .two-col-reverse { direction: ltr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .nav-toggle { display: flex; }
  .site-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: min(300px, 85vw);
    height: 100vh;
    background: var(--charcoal-mid);
    border-left: 1px solid rgba(201, 162, 39, 0.2);
    padding: 5rem 1.5rem 2rem;
    transition: right var(--transition);
    z-index: 99;
  }
  .site-nav.open { right: 0; }
  .site-nav ul { flex-direction: column; align-items: flex-start; gap: 1.25rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .cookie-inner { flex-direction: column; align-items: stretch; }
  .cookie-actions { justify-content: flex-end; }
}
