:root {
  --gold: #c9a227;
  --gold-light: #e0c068;
  --gold-dark: #8b6914;
  --brass: #b8860b;
  --walnut: #3d2b1f;
  --walnut-mid: #5c4033;
  --steel: #6b7280;
  --steel-light: #9ca3af;
  --patina: #4a5d4a;
  --charcoal: #1a1a1a;
  --charcoal-soft: #2c2416;
  --ivory: #f5f0e6;
  --ivory-dark: #e8e0d0;
  --text: #2c2416;
  --text-muted: #5c4a3a;
  --border: rgba(201, 162, 39, 0.35);
  --shadow: 0 4px 24px rgba(26, 26, 26, 0.12);
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-mono: "IBM Plex Mono", "Courier New", monospace;
  --radius: 2px;
  --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-display);
  font-size: 1.125rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--ivory);
  background-image:
    radial-gradient(circle at 20% 80%, rgba(74, 93, 74, 0.06) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(201, 162, 39, 0.08) 0%, transparent 40%);
  min-height: 100vh;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--gold-dark);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--brass);
}

h1, h2, h3, h4 {
  font-weight: 600;
  line-height: 1.2;
  color: var(--charcoal-soft);
}

h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h3 { font-size: 1.35rem; }

p { margin: 0 0 1rem; }

ul, ol { margin: 0 0 1rem; padding-left: 1.4rem; }

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

.skip-link:focus {
  top: 1rem;
}

/* Header */
.site-header {
  background: var(--charcoal-soft);
  border-bottom: 2px solid var(--gold);
  position: sticky;
  top: 0;
  z-index: 100;
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--ivory);
  text-decoration: none;
}

.brand:hover { color: var(--gold-light); }

.brand-mark { color: var(--gold); flex-shrink: 0; }

.brand-text {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 1px solid var(--gold);
  padding: 8px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--gold);
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.site-nav a {
  color: var(--ivory-dark);
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--gold);
}

.nav-cta {
  border: 1px solid var(--gold) !important;
  padding: 0.4rem 0.85rem !important;
  transition: background var(--transition), color var(--transition);
}

.nav-cta:hover {
  background: var(--gold);
  color: var(--charcoal) !important;
}

/* Footer */
.site-footer {
  background: var(--charcoal-soft);
  color: var(--ivory-dark);
  padding: 3rem 1.5rem 1.5rem;
  margin-top: 4rem;
  border-top: 3px double var(--gold-dark);
}

.footer-grid {
  max-width: 1200px;
  margin: 0 auto 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}

.footer-brand {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--gold);
  margin-bottom: 0.5rem;
}

.footer-tagline { font-size: 0.95rem; opacity: 0.85; }

.footer-heading {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold);
  margin: 0 0 0.75rem;
}

.footer-col address { font-style: normal; font-size: 0.95rem; }
.footer-col a { color: var(--ivory); }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 0.35rem; }
.footer-links a { color: var(--ivory-dark); text-decoration: none; font-size: 0.95rem; }
.footer-links a:hover { color: var(--gold); }

.footer-copy {
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  opacity: 0.6;
  margin: 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(201, 162, 39, 0.2);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.75rem 1.5rem;
  border: 2px solid var(--gold-dark);
  background: linear-gradient(180deg, var(--gold-light) 0%, var(--gold) 50%, var(--gold-dark) 100%);
  color: var(--charcoal);
  cursor: pointer;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}

.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-conic-gradient(from 0deg, transparent 0deg 30deg, rgba(0,0,0,0.03) 30deg 60deg);
  opacity: 0;
  transition: opacity var(--transition), transform 0.6s ease;
  transform: rotate(0deg);
}

.btn:hover::before {
  opacity: 1;
  transform: rotate(90deg);
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

.btn-secondary {
  background: transparent;
  color: var(--gold-dark);
  border-color: var(--walnut-mid);
}

.btn-secondary:hover {
  background: var(--ivory-dark);
}

/* Layout utilities */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 4rem 0;
}

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

.section-label::before {
  content: "§ ";
  color: var(--gold);
}

/* Hero */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
  padding: 3rem 1.5rem 4rem;
  max-width: 1200px;
  margin: 0 auto;
}

.hero-content { order: 1; }

.hero-dial {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--steel);
  letter-spacing: 0.2em;
  margin-bottom: 1rem;
}

.hero-dial span {
  color: var(--gold-dark);
  font-weight: 500;
}

.hero h1 {
  margin: 0 0 1.25rem;
  border-left: 4px solid var(--gold);
  padding-left: 1rem;
}

.hero-lead {
  font-size: 1.2rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero-visual {
  order: 2;
  position: relative;
}

.hero-visual img {
  border: 3px solid var(--gold-dark);
  box-shadow: var(--shadow);
}

.hero-frame {
  position: absolute;
  inset: -8px;
  border: 1px solid var(--patina);
  pointer-events: none;
}

.hero-frame::after {
  content: "042° N";
  position: absolute;
  bottom: -1.5rem;
  right: 0;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--steel);
  letter-spacing: 0.1em;
}

/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--ivory);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: transform var(--transition);
}

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

.card-image {
  aspect-ratio: 16/10;
  overflow: hidden;
  border-bottom: 2px solid var(--gold-dark);
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-body { padding: 1.25rem; }

.card-meta {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--patina);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.card h3 { margin: 0 0 0.5rem; font-size: 1.2rem; }
.card p { font-size: 0.95rem; color: var(--text-muted); margin-bottom: 1rem; }

.card-link {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Page header */
.page-header {
  background: var(--charcoal-soft);
  color: var(--ivory);
  padding: 3rem 1.5rem;
  border-bottom: 3px solid var(--gold);
}

.page-header h1 {
  color: var(--ivory);
  max-width: 800px;
  margin: 0 auto 0.75rem;
}

.page-header p {
  max-width: 800px;
  margin: 0 auto;
  opacity: 0.85;
  font-size: 1.05rem;
}

.page-header .container,
.page-header-inner {
  max-width: 1100px;
  margin: 0 auto;
}

/* Instrument panel */
.instrument-panel {
  background: linear-gradient(145deg, var(--walnut) 0%, var(--charcoal-soft) 100%);
  border: 2px solid var(--gold-dark);
  padding: 2rem;
  color: var(--ivory);
  position: relative;
}

.instrument-panel::before {
  content: "";
  position: absolute;
  top: 8px;
  left: 8px;
  right: 8px;
  bottom: 8px;
  border: 1px solid rgba(201, 162, 39, 0.25);
  pointer-events: none;
}

.instrument-readout {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  color: var(--gold);
  margin-bottom: 1rem;
}

/* Testimonials */
.testimonial {
  border-left: 3px solid var(--gold);
  padding: 1rem 0 1rem 1.5rem;
  margin-bottom: 2rem;
}

.testimonial blockquote {
  margin: 0 0 0.75rem;
  font-style: italic;
}

.testimonial cite {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-style: normal;
  color: var(--text-muted);
}

/* Forms */
.form-group { margin-bottom: 1.25rem; }

.form-group label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.35rem;
  color: var(--text-muted);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.65rem 0.85rem;
  font-family: var(--font-display);
  font-size: 1rem;
  border: 1px solid var(--border);
  background: var(--ivory);
  color: var(--text);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: 2px solid var(--gold);
  outline-offset: 1px;
}

.form-error {
  color: #8b2500;
  font-size: 0.85rem;
  margin-top: 0.25rem;
}

.form-success {
  background: rgba(74, 93, 74, 0.15);
  border: 1px solid var(--patina);
  padding: 1rem;
  margin-top: 1rem;
}

.form-fail {
  background: rgba(139, 37, 0, 0.1);
  border: 1px solid #8b2500;
  padding: 1rem;
  margin-top: 1rem;
}

/* Legal pages */
.legal-content {
  max-width: 760px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

.legal-content h2 {
  font-size: 1.35rem;
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.legal-content h2:first-of-type {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--charcoal-soft);
  border-top: 2px solid var(--gold);
  padding: 1.25rem;
  z-index: 200;
  box-shadow: 0 -4px 24px rgba(0,0,0,0.2);
}

.cookie-inner {
  max-width: 900px;
  margin: 0 auto;
}

.cookie-title {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--gold);
  margin: 0 0 0.5rem;
}

.cookie-desc {
  font-size: 0.9rem;
  color: var(--ivory-dark);
  margin: 0 0 1rem;
}

.cookie-desc a { color: var(--gold-light); }

.cookie-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.cookie-error {
  color: #ff8a80;
  font-size: 0.85rem;
  margin-top: 0.5rem;
}

/* Process steps */
.process-steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
  margin: 2rem 0;
}

.process-steps li {
  counter-increment: step;
  padding: 1.5rem 1.5rem 1.5rem 4rem;
  margin-bottom: 1rem;
  background: var(--ivory);
  border: 1px solid var(--border);
  position: relative;
}

.process-steps li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 1rem;
  top: 1.25rem;
  font-family: var(--font-mono);
  font-size: 1.25rem;
  color: var(--gold-dark);
  font-weight: 500;
}

/* Pricing table */
.pricing-table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  font-size: 0.95rem;
}

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

.pricing-table th {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: var(--charcoal-soft);
  color: var(--ivory);
}

.pricing-table tr:hover td {
  background: rgba(201, 162, 39, 0.06);
}

/* 404 */
.error-page {
  text-align: center;
  padding: 5rem 1.5rem;
}

.error-code {
  font-family: var(--font-mono);
  font-size: 4rem;
  color: var(--gold-dark);
  margin-bottom: 1rem;
}

/* Image placeholder */
.img-placeholder {
  background: linear-gradient(135deg, var(--ivory-dark), var(--walnut-mid));
  aspect-ratio: 16/10;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--steel);
  font-family: var(--font-mono);
  font-size: 0.75rem;
}

/* Responsive */
@media (max-width: 768px) {
  .nav-toggle { display: flex; }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--charcoal-soft);
    border-bottom: 2px solid var(--gold);
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition);
  }

  .site-nav.is-open { max-height: 400px; }

  .site-nav ul {
    flex-direction: column;
    align-items: stretch;
    padding: 1rem 1.5rem 1.5rem;
    gap: 0.75rem;
  }

  .hero {
    grid-template-columns: 1fr;
    padding-top: 2rem;
  }

  .hero-visual { order: -1; }
}
