/* Brass Mechanism — Elmcore */
:root {
  --gold: #c9a227;
  --gold-light: #ddb84a;
  --gold-dark: #8b6914;
  --brass: #b8956a;
  --walnut: #2a2318;
  --walnut-mid: #3d3428;
  --steel: #6b7280;
  --steel-light: #9ca3af;
  --green-oxide: #4a5d4e;
  --ivory: #f5f0e6;
  --ivory-dark: #e8e0d0;
  --charcoal: #1a1814;
  --text: #2a2318;
  --text-muted: #5c5348;
  --border: rgba(201, 162, 39, 0.25);
  --shadow: 0 4px 24px rgba(26, 24, 20, 0.12);
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-mono: 'IBM Plex Mono', monospace;
  --radius: 2px;
  --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-serif);
  font-size: 1.125rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--ivory);
  background-image:
    radial-gradient(ellipse at 20% 0%, rgba(201, 162, 39, 0.06) 0%, transparent 50%),
    linear-gradient(180deg, var(--ivory) 0%, var(--ivory-dark) 100%);
  min-height: 100vh;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold-dark); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--gold); }

.skip-link {
  position: absolute; top: -100px; left: 1rem; z-index: 9999;
  background: var(--walnut); color: var(--ivory); padding: 0.5rem 1rem;
}
.skip-link:focus { top: 1rem; }

/* Header */
.site-header {
  background: var(--walnut);
  border-bottom: 1px solid var(--border);
  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;
}

.logo {
  display: flex; align-items: center; gap: 0.6rem;
  color: var(--gold); font-family: var(--font-mono);
  font-size: 0.95rem; letter-spacing: 0.12em; text-transform: uppercase;
}
.logo:hover { color: var(--gold-light); }

.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: 1px solid var(--border); padding: 0.5rem;
  cursor: pointer; color: var(--gold);
}
.nav-toggle-bar { display: block; width: 22px; height: 2px; background: currentColor; }

.main-nav ul {
  display: flex; align-items: center; gap: 0.25rem; list-style: none;
}
.main-nav a {
  color: var(--ivory-dark); font-family: var(--font-mono); font-size: 0.75rem;
  letter-spacing: 0.06em; text-transform: uppercase; padding: 0.5rem 0.75rem;
  border: 1px solid transparent; transition: all var(--transition);
}
.main-nav a:hover, .main-nav a[aria-current="page"] {
  color: var(--gold); border-color: var(--border);
}
.nav-cta {
  background: var(--gold-dark) !important; color: var(--ivory) !important;
  border-color: var(--gold) !important;
}
.nav-cta:hover { background: var(--gold) !important; color: var(--walnut) !important; }

@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .main-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--walnut); border-bottom: 1px solid var(--border);
    display: none; padding: 1rem;
  }
  .main-nav.is-open { display: block; }
  .main-nav ul { flex-direction: column; align-items: stretch; }
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: 0.8rem; letter-spacing: 0.08em;
  text-transform: uppercase; padding: 0.85rem 1.75rem;
  border: 1px solid var(--gold); cursor: pointer;
  transition: all var(--transition); position: relative; overflow: hidden;
}
.btn::before {
  content: ''; position: absolute; inset: 0;
  background: conic-gradient(from 0deg, transparent, var(--gold-light), transparent);
  opacity: 0; transition: opacity var(--transition);
}
.btn:hover::before { opacity: 0.15; animation: gear-spin 0.6s ease; }
.btn-primary { background: var(--gold-dark); color: var(--ivory); }
.btn-primary:hover { background: var(--gold); color: var(--walnut); }
.btn-secondary { background: transparent; color: var(--gold-dark); }
.btn-secondary:hover { background: var(--walnut); color: var(--gold); }

@keyframes gear-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(90deg); }
}

/* Layout */
.content-wrap { max-width: 960px; margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 4rem 0; }
.section--dark { background: var(--walnut); color: var(--ivory); }
.section--dark a { color: var(--gold-light); }
.section--brass {
  background: linear-gradient(135deg, var(--walnut-mid) 0%, var(--green-oxide) 100%);
  color: var(--ivory);
}
.section--brass a { color: var(--gold-light); }

.section-header { margin-bottom: 2.5rem; text-align: center; }
.section-header h2 { font-size: 2rem; margin-bottom: 0.5rem; }
.section-cta { text-align: center; margin-top: 2rem; }

/* Home hero */
.home-hero {
  padding: 3rem 1.5rem 4rem;
  background: linear-gradient(160deg, var(--walnut) 0%, var(--walnut-mid) 60%, var(--green-oxide) 100%);
  color: var(--ivory); position: relative; overflow: hidden;
}
.home-hero::after {
  content: ''; position: absolute; inset: 0;
  background: repeating-linear-gradient(90deg, transparent, transparent 59px, rgba(201,162,39,0.03) 59px, rgba(201,162,39,0.03) 60px);
  pointer-events: none;
}
.hero-inner {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: auto 1fr 1fr; gap: 2rem; align-items: center;
}
.hero-dial { color: var(--gold); width: 100px; }
.dial-svg { width: 100%; height: auto; }
.dial-hand { transform-origin: 60px 60px; animation: dial-tick 8s steps(12) infinite; }
@keyframes dial-tick { to { transform: rotate(360deg); } }

.hero-index {
  font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.15em;
  color: var(--brass); margin-bottom: 1rem;
}
.home-hero h1 { font-size: clamp(1.75rem, 4vw, 2.75rem); line-height: 1.2; margin-bottom: 1rem; }
.hero-intro { color: var(--ivory-dark); margin-bottom: 1.5rem; max-width: 36ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.hero-image { border: 1px solid var(--border); box-shadow: var(--shadow); }

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-dial { display: none; }
}

/* Intro */
.intro-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 3rem; align-items: start; }
.intro-grid h2 { font-size: 1.75rem; margin-bottom: 1rem; }
.intro-grid p + p { margin-top: 1rem; }

.stat-panel {
  border: 1px solid var(--border); background: var(--walnut);
  color: var(--ivory); padding: 1.5rem;
}
.stat-item { padding: 1rem 0; border-bottom: 1px solid var(--border); }
.stat-item:last-child { border-bottom: none; }
.stat-value {
  display: block; font-family: var(--font-mono); font-size: 1.5rem;
  color: var(--gold); letter-spacing: 0.05em;
}
.stat-label { font-size: 0.85rem; color: var(--steel-light); }

@media (max-width: 768px) { .intro-grid { grid-template-columns: 1fr; } }

/* Cards */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.5rem; }
.card-link { display: block; color: inherit; border: 1px solid var(--border); background: var(--ivory); transition: transform var(--transition), box-shadow var(--transition); }
.card-link:hover { transform: translateY(-3px); box-shadow: var(--shadow); color: inherit; }
.card-image { aspect-ratio: 4/3; overflow: hidden; }
.card-image--wide { aspect-ratio: 16/9; }
.card-image img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 1.25rem; }
.card-body h3 { font-size: 1.15rem; margin-bottom: 0.5rem; }
.card-body p { font-size: 0.95rem; color: var(--text-muted); }
.card-meta { display: block; margin-top: 0.75rem; font-family: var(--font-mono); font-size: 0.7rem; color: var(--brass); letter-spacing: 0.05em; }
.card-body time { font-family: var(--font-mono); font-size: 0.7rem; color: var(--brass); }

/* Quote */
.featured-quote {
  border-left: 3px solid var(--gold); padding: 1.5rem 2rem;
  background: rgba(201, 162, 39, 0.05); font-size: 1.2rem; font-style: italic;
}
.featured-quote footer { margin-top: 1rem; font-size: 0.9rem; font-style: normal; color: var(--text-muted); }

/* Page headers */
.page-header { padding: 3rem 0 2rem; border-bottom: 1px solid var(--border); }
.page-header--legal { padding-bottom: 1rem; }
.hero-label, .page-header .hero-label {
  font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.15em;
  color: var(--brass); text-transform: uppercase; margin-bottom: 0.75rem;
}
.page-header h1, .page-hero h1 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); margin-bottom: 0.75rem; }
.page-lead, .hero-lead { color: var(--text-muted); max-width: 60ch; }

/* Hero grid */
.page-hero { padding: 3rem 1.5rem; }
.hero-grid {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center;
}
.hero-grid--reverse { direction: rtl; }
.hero-grid--reverse > * { direction: ltr; }
.hero-figure { border: 1px solid var(--border); box-shadow: var(--shadow); }
.hero-figure--portrait img { aspect-ratio: 4/5; object-fit: cover; width: 100%; }
.hero-figure img { width: 100%; object-fit: cover; }

@media (max-width: 768px) {
  .hero-grid, .hero-grid--reverse { grid-template-columns: 1fr; direction: ltr; }
}

.meta-strip {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.75rem;
  margin: 1.5rem 0; font-family: var(--font-mono); font-size: 0.75rem;
}
.meta-strip dt { color: var(--brass); letter-spacing: 0.05em; }
.meta-strip dd { color: var(--text); }

/* Service list */
.service-list { display: flex; flex-direction: column; gap: 2rem; }
.service-row {
  display: grid; grid-template-columns: 280px 1fr; gap: 2rem;
  padding: 1.5rem; border: 1px solid var(--border); background: var(--ivory);
}
.service-row--featured { border-color: var(--gold); box-shadow: var(--shadow); }
.service-row-image img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.badge {
  display: inline-block; font-family: var(--font-mono); font-size: 0.65rem;
  letter-spacing: 0.1em; text-transform: uppercase; background: var(--gold-dark);
  color: var(--ivory); padding: 0.25rem 0.5rem; margin-bottom: 0.5rem;
}
.inline-meta { display: flex; flex-wrap: wrap; gap: 1.5rem; margin: 1rem 0; font-family: var(--font-mono); font-size: 0.75rem; }
.inline-meta dt { color: var(--brass); display: inline; }
.inline-meta dd { display: inline; margin-left: 0.25rem; }
.link-arrow { font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.06em; text-transform: uppercase; }
.link-arrow::after { content: ' →'; }

@media (max-width: 640px) { .service-row { grid-template-columns: 1fr; } }

/* Service detail */
.service-detail .content-wrap { padding: 3rem 1.5rem; }
.service-section { margin-bottom: 2.5rem; }
.service-section h2 { font-size: 1.35rem; margin-bottom: 0.75rem; color: var(--gold-dark); }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
@media (max-width: 640px) { .two-col { grid-template-columns: 1fr; } }

.check-list, .dash-list { list-style: none; }
.check-list li::before { content: '◆ '; color: var(--gold); }
.dash-list li::before { content: '— '; color: var(--steel); }

.process-list { list-style: none; counter-reset: step; }
.process-list li { display: flex; gap: 1rem; margin-bottom: 1rem; align-items: baseline; }
.step-num {
  font-family: var(--font-mono); font-size: 0.85rem; color: var(--gold);
  border: 1px solid var(--border); width: 2rem; height: 2rem;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.provider-note { margin-bottom: 1rem; }

/* Prose */
.prose h2 { font-size: 1.35rem; margin: 2rem 0 0.75rem; color: var(--gold-dark); }
.prose p { margin-bottom: 1rem; }
.prose ul, .prose ol { margin: 0 0 1rem 1.5rem; }
.prose li { margin-bottom: 0.35rem; }

/* Timeline */
.timeline { list-style: none; }
.timeline-item {
  display: grid; grid-template-columns: 4rem 1fr; gap: 1.5rem;
  padding: 2rem 0; border-bottom: 1px solid var(--border);
}
.timeline-item:last-child { border-bottom: none; }
.timeline-num {
  font-family: var(--font-mono); font-size: 1.25rem; color: var(--gold);
  border: 1px solid var(--border); width: 3.5rem; height: 3.5rem;
  display: flex; align-items: center; justify-content: center;
}
.timeline-item h2 { font-size: 1.25rem; margin-bottom: 0.5rem; }
.timeline-detail { font-family: var(--font-mono); font-size: 0.75rem; color: var(--brass); margin-top: 0.5rem; }

.prep-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 1.5rem; }
.prep-card { border: 1px solid var(--border); padding: 1.25rem; background: rgba(0,0,0,0.15); }
.prep-card h3 { font-size: 1rem; margin-bottom: 0.5rem; color: var(--gold); }
@media (max-width: 768px) { .prep-grid { grid-template-columns: 1fr; } }

/* Pricing */
.pricing-table { border: 1px solid var(--border); }
.pricing-row {
  display: grid; grid-template-columns: 2fr 1fr auto; gap: 1rem;
  padding: 1.25rem 1.5rem; border-bottom: 1px solid var(--border); align-items: center;
}
.pricing-row:last-child { border-bottom: none; }
.pricing-amount { font-family: var(--font-mono); font-size: 1rem; color: var(--gold-dark); display: block; }
.pricing-duration { font-size: 0.85rem; color: var(--text-muted); }
.pricing-notes { margin-top: 3rem; }

@media (max-width: 640px) {
  .pricing-row { grid-template-columns: 1fr; }
}

/* Reviews */
.reviews-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.review-card {
  border: 1px solid var(--border); padding: 1.5rem; background: var(--ivory);
}
.review-card footer { margin-top: 1rem; font-size: 0.85rem; color: var(--text-muted); }
.review-card footer strong { display: block; color: var(--text); }
.case-study { max-width: 720px; }
.case-meta { font-family: var(--font-mono); font-size: 0.75rem; color: var(--brass); margin-bottom: 1rem; }
.section--dark .case-study p { color: var(--ivory-dark); margin-bottom: 1rem; }

@media (max-width: 768px) { .reviews-grid { grid-template-columns: 1fr; } }

/* Blog */
.blog-list { display: flex; flex-direction: column; gap: 2.5rem; }
.blog-row { display: grid; grid-template-columns: 320px 1fr; gap: 2rem; }
.blog-row-image img { width: 100%; aspect-ratio: 16/10; object-fit: cover; border: 1px solid var(--border); }
.blog-row-body time { font-family: var(--font-mono); font-size: 0.7rem; color: var(--brass); }
.blog-author { font-size: 0.85rem; color: var(--text-muted); margin: 0.5rem 0; }
.blog-footer-nav { display: flex; gap: 1rem; flex-wrap: wrap; padding-bottom: 3rem; }

@media (max-width: 640px) { .blog-row { grid-template-columns: 1fr; } }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 3rem; }
.contact-info address { font-style: normal; }
.contact-info p { margin-bottom: 1.25rem; }
.contact-note { font-size: 0.95rem; color: var(--text-muted); margin-top: 1.5rem; }

.contact-form { display: flex; flex-direction: column; gap: 1.25rem; }
.form-group label { display: block; font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.05em; margin-bottom: 0.35rem; }
.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-serif); 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);
}
.field-error { display: block; color: #8b2942; font-size: 0.85rem; margin-top: 0.25rem; }
.form-group.has-error input, .form-group.has-error textarea, .form-group.has-error select {
  border-color: #8b2942;
}
.form-message { padding: 1rem; margin-bottom: 0.5rem; font-size: 0.95rem; }
.form-message--error { background: #fde8ec; border: 1px solid #8b2942; color: #5c1a2e; }
.form-message--success { background: #e8f5e9; border: 1px solid var(--green-oxide); color: var(--green-oxide); }

@media (max-width: 768px) { .contact-grid { grid-template-columns: 1fr; } }

/* CTA panel */
.cta-panel { text-align: center; max-width: 560px; margin: 0 auto; }
.cta-panel h2 { margin-bottom: 0.75rem; }
.cta-panel p { margin-bottom: 1.5rem; color: var(--text-muted); }
.section--dark .cta-panel p, .section--brass .cta-panel p { color: var(--ivory-dark); }

/* Legal */
.legal-content { padding: 2rem 1.5rem 4rem; }
.cookies-table { width: 100%; border-collapse: collapse; margin: 1rem 0 2rem; font-size: 0.95rem; }
.cookies-table th, .cookies-table td { border: 1px solid var(--border); padding: 0.75rem; text-align: left; }
.cookies-table th { background: var(--walnut); color: var(--ivory); font-family: var(--font-mono); font-size: 0.75rem; }

/* 404 */
.error-page { padding: 6rem 1.5rem; text-align: center; min-height: 50vh; display: flex; align-items: center; justify-content: center; }
.error-page h1 { margin-bottom: 1rem; }

/* Footer */
.site-footer {
  background: var(--charcoal); color: var(--ivory-dark);
  border-top: 1px solid var(--border); margin-top: 4rem;
}
.footer-grid {
  max-width: 1200px; margin: 0 auto; padding: 3rem 1.5rem 2rem;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2rem;
}
.footer-name { font-family: var(--font-mono); font-size: 0.85rem; color: var(--gold); letter-spacing: 0.08em; margin-bottom: 0.5rem; }
.footer-tagline { font-size: 0.9rem; color: var(--steel-light); }
.footer-heading { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold); margin-bottom: 0.75rem; }
.footer-links ul, .footer-legal ul { list-style: none; }
.footer-links a, .footer-legal a, .footer-contact a { color: var(--ivory-dark); font-size: 0.9rem; }
.footer-links a:hover, .footer-legal a:hover, .footer-contact a:hover { color: var(--gold); }
.footer-links li, .footer-legal li { margin-bottom: 0.35rem; }
.footer-contact address { font-style: normal; font-size: 0.9rem; }
.footer-contact p { margin-bottom: 0.35rem; }
.footer-bottom {
  border-top: 1px solid rgba(201,162,39,0.15); padding: 1rem 1.5rem;
  text-align: center; font-family: var(--font-mono); font-size: 0.7rem; color: var(--steel);
}

@media (max-width: 768px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

/* Cookie banner */
.cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 200;
  background: var(--walnut); border-top: 1px solid var(--gold);
  padding: 1.25rem 1.5rem; box-shadow: 0 -4px 24px rgba(0,0,0,0.3);
}
.cookie-banner[hidden] { display: none; }
.cookie-inner { max-width: 960px; margin: 0 auto; }
.cookie-title { font-family: var(--font-mono); font-size: 0.8rem; color: var(--gold); letter-spacing: 0.08em; margin-bottom: 0.5rem; }
.cookie-desc { font-size: 0.9rem; color: var(--ivory-dark); margin-bottom: 1rem; }
.cookie-desc a { color: var(--gold-light); }
.cookie-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; }
