:root {
  --gold: #b8860b;
  --gold-light: #c9a84c;
  --gold-dark: #8b6914;
  --brass: #a67c3d;
  --walnut: #3d2e1f;
  --walnut-light: #5c4a35;
  --steel: #6b7280;
  --steel-light: #9ca3af;
  --green-oxide: #4a5d4a;
  --charcoal: #1a1814;
  --ivory: #f5f0e6;
  --ivory-dark: #e8e0d0;
  --text: #2a2318;
  --text-muted: #5c5347;
  --border: #c4b896;
  --shadow: rgba(26, 24, 20, 0.12);
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "Source Sans 3", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", monospace;
  --radius: 4px;
  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--ivory);
  background-image:
    radial-gradient(ellipse at 20% 0%, rgba(184, 134, 11, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 100%, rgba(74, 93, 74, 0.05) 0%, transparent 50%);
  min-height: 100vh;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--gold-dark);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color var(--transition);
}

a:hover {
  color: var(--gold);
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.25;
  color: var(--walnut);
}

h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); }

.container {
  width: min(1120px, 92vw);
  margin-inline: auto;
}

/* Header */
.site-header {
  background: linear-gradient(180deg, var(--walnut) 0%, var(--charcoal) 100%);
  border-bottom: 2px solid var(--gold);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 0;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--ivory);
}

.logo-mark {
  width: 42px;
  height: 42px;
  border: 2px solid var(--gold);
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 30% 30%, var(--gold-light), var(--gold-dark));
  position: relative;
}

.logo-mark::after {
  content: "";
  position: absolute;
  inset: 4px;
  border: 1px solid rgba(245, 240, 230, 0.3);
  border-radius: 50%;
}

.logo-text {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.logo-sub {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--gold-light);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  display: block;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--gold);
  color: var(--ivory);
  padding: 0.4rem 0.6rem;
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 0.75rem;
}

.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 0.25rem;
  flex-wrap: wrap;
}

.main-nav a {
  color: var(--ivory-dark);
  text-decoration: none;
  font-size: 0.9rem;
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius);
  transition: background var(--transition), color var(--transition);
}

.main-nav a:hover,
.main-nav a[aria-current="page"] {
  background: rgba(184, 134, 11, 0.2);
  color: var(--gold-light);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.75rem 1.5rem;
  border: 2px solid var(--gold);
  background: linear-gradient(180deg, var(--gold-light) 0%, var(--gold) 50%, var(--gold-dark) 100%);
  color: var(--charcoal);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.25), 0 2px 4px var(--shadow);
}

.btn::before {
  content: "⚙";
  position: absolute;
  left: -20px;
  opacity: 0;
  transition: left var(--transition), opacity var(--transition);
  font-size: 0.7rem;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.3), 0 4px 12px var(--shadow);
}

.btn:hover::before {
  left: 8px;
  opacity: 0.6;
}

.btn:active {
  transform: translateY(0);
}

.btn-secondary {
  background: transparent;
  color: var(--gold-dark);
  border-color: var(--gold-dark);
}

.btn-secondary:hover {
  background: rgba(184, 134, 11, 0.08);
}

/* Hero */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  padding: 4rem 0 5rem;
}

.hero-content {
  position: relative;
}

.hero-index {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--green-oxide);
  letter-spacing: 0.2em;
  margin-bottom: 1rem;
}

.hero h1 {
  margin: 0 0 1.25rem;
}

.hero-lead {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  max-width: 42ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero-visual {
  position: relative;
}

.hero-visual img {
  border: 3px solid var(--gold);
  box-shadow: 8px 8px 0 var(--walnut-light);
  aspect-ratio: 4/3;
  object-fit: cover;
  width: 100%;
}

.hero-visual::before {
  content: "";
  position: absolute;
  top: -12px;
  right: -12px;
  width: 60%;
  height: 60%;
  border: 1px solid var(--gold-light);
  opacity: 0.4;
  pointer-events: none;
}

/* Sections */
section {
  padding: 4rem 0;
}

.section-header {
  margin-bottom: 2.5rem;
}

.section-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--green-oxide);
  margin-bottom: 0.5rem;
}

.section-header h2 {
  margin: 0;
}

.section-header p {
  color: var(--text-muted);
  margin-top: 0.75rem;
  max-width: 55ch;
}

/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.75rem;
}

.card {
  background: var(--ivory);
  border: 1px solid var(--border);
  box-shadow: 0 2px 8px var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
  overflow: hidden;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px var(--shadow);
}

.card-image {
  aspect-ratio: 16/10;
  overflow: hidden;
  border-bottom: 2px solid var(--gold);
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.card:hover .card-image img {
  transform: scale(1.03);
}

.card-body {
  padding: 1.5rem;
}

.card-meta {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  color: var(--steel);
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.card h3 {
  margin: 0 0 0.75rem;
  font-size: 1.25rem;
}

.card p {
  color: var(--text-muted);
  margin: 0 0 1rem;
  font-size: 0.95rem;
}

.card-link {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--gold-dark);
}

/* Stats strip - domain specific */
.instrument-strip {
  background: var(--walnut);
  color: var(--ivory);
  padding: 2.5rem 0;
  border-top: 2px solid var(--gold);
  border-bottom: 2px solid var(--gold);
}

.instrument-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  text-align: center;
}

.instrument-item .num {
  font-family: var(--font-mono);
  font-size: 2rem;
  color: var(--gold-light);
  display: block;
}

.instrument-item .label {
  font-size: 0.85rem;
  color: var(--ivory-dark);
  opacity: 0.85;
}

/* Testimonials */
.testimonial {
  background: var(--ivory-dark);
  border-left: 4px solid var(--gold);
  padding: 1.75rem;
  margin-bottom: 1.5rem;
}

.testimonial blockquote {
  margin: 0 0 1rem;
  font-style: italic;
  color: var(--text);
}

.testimonial cite {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
  font-style: normal;
}

/* Page header */
.page-header {
  background: linear-gradient(135deg, var(--walnut) 0%, var(--charcoal) 100%);
  color: var(--ivory);
  padding: 3.5rem 0;
  border-bottom: 3px solid var(--gold);
}

.page-header h1 {
  color: var(--ivory);
  margin: 0 0 0.75rem;
}

.page-header p {
  color: var(--ivory-dark);
  margin: 0;
  max-width: 60ch;
}

.page-header .section-label {
  color: var(--gold-light);
}

/* Content prose */
.prose {
  max-width: 72ch;
}

.prose p {
  margin-bottom: 1.25rem;
}

.prose ul, .prose ol {
  margin-bottom: 1.25rem;
  padding-left: 1.5rem;
}

.prose li {
  margin-bottom: 0.5rem;
}

/* Service detail */
.service-detail-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 3rem;
  padding: 3rem 0;
}

.service-sidebar {
  background: var(--ivory-dark);
  border: 1px solid var(--border);
  padding: 1.75rem;
  height: fit-content;
  position: sticky;
  top: 90px;
}

.service-sidebar h3 {
  font-size: 1rem;
  margin: 0 0 1rem;
  font-family: var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green-oxide);
}

.detail-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
}

.detail-list li {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.92rem;
}

.detail-list strong {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  display: block;
}

/* Pricing */
.price-table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
}

.price-table th,
.price-table td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.price-table th {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--ivory-dark);
  color: var(--walnut);
}

.price-table td:last-child {
  font-family: var(--font-mono);
  color: var(--gold-dark);
  white-space: nowrap;
}

.price-note {
  background: var(--ivory-dark);
  border: 1px solid var(--border);
  padding: 1.5rem;
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* Contact form */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  padding: 3rem 0;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
  color: var(--text-muted);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border);
  background: var(--ivory);
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text);
  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: #8b2942;
  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: #8b2942;
}

.form-success {
  background: rgba(74, 93, 74, 0.12);
  border: 1px solid var(--green-oxide);
  padding: 1.25rem;
  margin-top: 1rem;
  display: none;
}

.form-success.visible {
  display: block;
}

.form-failure {
  background: rgba(139, 41, 66, 0.1);
  border: 1px solid #8b2942;
  padding: 1.25rem;
  margin-top: 1rem;
  display: none;
}

.form-failure.visible {
  display: block;
}

.contact-info {
  background: var(--ivory-dark);
  border: 1px solid var(--border);
  padding: 2rem;
}

.contact-info h3 {
  margin-top: 0;
}

.contact-info address {
  font-style: normal;
  line-height: 1.8;
}

/* FAQ */
.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 1.25rem 0;
}

.faq-item h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
}

.faq-item p {
  margin: 0;
  color: var(--text-muted);
}

/* Footer */
.site-footer {
  background: var(--charcoal);
  color: var(--ivory-dark);
  padding: 3rem 0 1.5rem;
  border-top: 3px solid var(--gold);
  margin-top: 4rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--ivory);
  margin-bottom: 0.75rem;
}

.footer-grid a {
  color: var(--ivory-dark);
  text-decoration: none;
  font-size: 0.9rem;
  display: block;
  padding: 0.25rem 0;
}

.footer-grid a:hover {
  color: var(--gold-light);
}

.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 1rem;
}

.footer-bottom {
  border-top: 1px solid var(--walnut-light);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.82rem;
  color: var(--steel-light);
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--walnut);
  color: var(--ivory);
  padding: 1.25rem;
  border-top: 2px solid var(--gold);
  z-index: 1000;
  transform: translateY(100%);
  transition: transform 0.4s ease;
  box-shadow: 0 -4px 20px var(--shadow);
}

.cookie-banner.visible {
  transform: translateY(0);
}

.cookie-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  max-width: 1120px;
  margin: 0 auto;
}

.cookie-text {
  flex: 1;
  min-width: 240px;
  font-size: 0.9rem;
}

.cookie-text a {
  color: var(--gold-light);
}

.cookie-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.cookie-actions .btn {
  padding: 0.5rem 1.25rem;
  font-size: 0.72rem;
}

.btn-reject {
  background: transparent;
  color: var(--ivory);
  border-color: var(--steel-light);
}

/* 404 */
.error-page {
  text-align: center;
  padding: 6rem 0;
}

.error-code {
  font-family: var(--font-mono);
  font-size: 5rem;
  color: var(--gold);
  line-height: 1;
}

/* Process timeline */
.timeline {
  position: relative;
  padding-left: 2rem;
  border-left: 2px solid var(--gold);
  margin: 2rem 0;
}

.timeline-item {
  position: relative;
  padding-bottom: 2rem;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -2.45rem;
  top: 0.35rem;
  width: 12px;
  height: 12px;
  background: var(--gold);
  border: 2px solid var(--ivory);
  border-radius: 50%;
}

.timeline-item h3 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
}

.timeline-item p {
  color: var(--text-muted);
  margin: 0;
}

/* Blog */
.blog-meta {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--steel);
  letter-spacing: 0.06em;
  margin-bottom: 0.75rem;
}

.article-hero {
  margin-bottom: 2rem;
}

.article-hero img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border: 2px solid var(--gold);
}

.legal-content h2 {
  font-size: 1.3rem;
  margin-top: 2rem;
}

.cookies-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.9rem;
}

.cookies-table th,
.cookies-table td {
  border: 1px solid var(--border);
  padding: 0.75rem;
  text-align: left;
}

.cookies-table th {
  background: var(--ivory-dark);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.img-placeholder {
  background: linear-gradient(135deg, var(--ivory-dark), var(--border));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  aspect-ratio: inherit;
  min-height: 200px;
}

/* Responsive */
@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }

  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--charcoal);
    border-bottom: 2px solid var(--gold);
    padding: 1rem;
  }

  .main-nav.open {
    display: block;
  }

  .main-nav ul {
    flex-direction: column;
  }

  .hero {
    grid-template-columns: 1fr;
    padding: 2.5rem 0 3rem;
  }

  .hero-visual {
    order: -1;
  }

  .service-detail-grid,
  .contact-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .service-sidebar {
    position: static;
  }
}
