:root {
  --radius: 0.5rem;
  --background: oklch(0.985 0.002 80);
  --foreground: oklch(0.18 0 0);
  --card: oklch(1 0 0);
  --card-foreground: oklch(0.18 0 0);
  --popover: oklch(1 0 0);
  --popover-foreground: oklch(0.18 0 0);
  --primary: oklch(0.55 0.21 25);
  --primary-foreground: oklch(0.985 0 0);
  --secondary: oklch(0.96 0 0);
  --secondary-foreground: oklch(0.18 0 0);
  --muted: oklch(0.96 0 0);
  --muted-foreground: oklch(0.45 0 0);
  --accent: oklch(0.96 0 0);
  --accent-foreground: oklch(0.18 0 0);
  --destructive: oklch(0.55 0.21 25);
  --destructive-foreground: oklch(0.985 0 0);
  --border: oklch(0 0 0 / 10%);
  --input: oklch(0 0 0 / 12%);
  --ring: oklch(0.55 0.21 25);
  --radius-sm: calc(var(--radius) - 4px);
  --radius-md: calc(var(--radius) - 2px);
  --radius-lg: var(--radius);
  --radius-xl: calc(var(--radius) + 4px);
  --color-background: var(--background);
  --color-foreground: var(--foreground);
  --color-card: var(--card);
  --color-card-foreground: var(--card-foreground);
  --color-popover: var(--popover);
  --color-popover-foreground: var(--popover-foreground);
  --color-primary: var(--primary);
  --color-primary-foreground: var(--primary-foreground);
  --color-secondary: var(--secondary);
  --color-secondary-foreground: var(--secondary-foreground);
  --color-muted: var(--muted);
  --color-muted-foreground: var(--muted-foreground);
  --color-accent: var(--accent);
  --color-accent-foreground: var(--accent-foreground);
  --color-destructive: var(--destructive);
  --color-destructive-foreground: var(--destructive-foreground);
  --color-border: var(--border);
  --color-input: var(--input);
  --color-ring: var(--ring);
  --color-brand: #be202f;
  --color-brand-soft: #e8344a;
  --color-bone: #fcfaf9;
  --color-ink: #18181b;
  --font-display: "Instrument Sans", ui-sans-serif, system-ui, sans-serif;
  --font-sans: "Instrument Sans", ui-sans-serif, system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
}

html { scroll-behavior: smooth; }
* { border-color: var(--color-border); box-sizing: border-box; margin: 0; padding: 0; }
body {
  background-color: var(--color-bone);
  color: var(--color-ink);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

.min-h-screen { min-height: 100vh; }
.bg-bone { background-color: var(--color-bone); }
.text-ink { color: var(--color-ink); }
.selection\:bg-brand ::selection { background-color: var(--color-brand); }
.selection\:text-white ::selection { color: white; }

/* Nav */
nav { position: fixed; top: 0; z-index: 50; width: 100%; border-bottom: 1px solid rgba(228, 228, 231, 0.7); background-color: rgba(252, 250, 249, 0.85); backdrop-filter: blur(12px); }
nav > div { margin: 0 auto; display: flex; height: 3.5rem; max-width: 80rem; align-items: center; justify-content: space-between; padding: 0 1.5rem; }
nav a { text-decoration: none; }
nav img { height: 3.25rem; width: auto; }
.nav-links { display: none; gap: 1.75rem; }
@media (min-width: 768px) { .nav-links { display: flex; } }
.nav-link { font-family: var(--font-mono); font-size: 0.625rem; text-transform: uppercase; letter-spacing: 0.2em; color: #71717a; transition: color 0.15s; }
.nav-link:hover { color: var(--color-brand); }
.nav-cta { border-radius: 0.125rem; background-color: var(--color-ink); padding: 0.5rem 0.75rem; font-family: var(--font-mono); font-size: 0.625rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.18em; color: var(--color-bone); box-shadow: 0 0 0 1px rgba(24, 24, 27, 0.1); transition: transform 0.15s; }
.nav-cta:hover { transform: translateY(-1px); }

/* Hero */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid #e4e4e7; padding-top: 9rem; padding-bottom: 7rem; background-attachment: fixed; background-size: 40px 40px; background-image: linear-gradient(to right, rgba(0, 0, 0, 0.035) 1px, transparent 1px), linear-gradient(to bottom, rgba(0, 0, 0, 0.035) 1px, transparent 1px); }
.hero-container { position: relative; margin: 0 auto; max-width: 80rem; padding: 0 1.5rem; }
.hero-content { position: relative; z-index: 10; max-width: 48rem; }
.hero-badge { margin-bottom: 2rem; display: inline-flex; align-items: center; gap: 0.5rem; border-radius: 9999px; background-color: rgba(255, 255, 255, 0.7); padding: 0.25rem 0.75rem; box-shadow: 0 0 0 1px #e4e4e7; }
.red-dot { display: block; width: 0.375rem; height: 0.375rem; border-radius: 9999px; background-color: var(--color-brand); animation: pulse-dot 2s cubic-bezier(0.4, 0, 0.6, 1) infinite; }
@keyframes pulse-dot { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }
.hero-badge span { font-family: var(--font-mono); font-size: 0.625rem; text-transform: uppercase; letter-spacing: 0.2em; color: var(--color-brand); }
.hero h1 { font-family: var(--font-display); font-size: 3rem; font-weight: 500; line-height: 1.02; letter-spacing: -0.025em; color: var(--color-ink); }
@media (min-width: 768px) { .hero h1 { font-size: 4.5rem; } }
.hero h1 span { color: #a1a1aa; }
.hero p { margin-top: 2rem; max-width: 36rem; font-size: 1.125rem; line-height: 1.75; color: #52525b; }
.hero-actions { margin-top: 2.5rem; display: flex; flex-wrap: wrap; align-items: center; gap: 1.5rem; }
.btn-primary { border-radius: 0.125rem; background-color: var(--color-brand); padding: 0.625rem 1rem; font-size: 0.875rem; font-weight: 500; color: white; text-decoration: none; box-shadow: 0 0 0 1px rgba(190, 32, 47, 0.2); transition: background-color 0.15s; }
.btn-primary:hover { background-color: #a01b28; }
.hero-location { border-left: 1px solid #d4d4d8; padding: 0.25rem 0 0.25rem 1.5rem; }
.hero-location p { margin: 0; font-family: var(--font-mono); font-size: 0.625rem; text-transform: uppercase; letter-spacing: 0.2em; color: #a1a1aa; }
.hero-image { pointer-events: none; position: absolute; top: 50%; right: 0; display: none; transform: translate(40%, -50%); z-index: 1; }
@media (min-width: 1280px) { .hero-image { display: block; } }
.hero-image img { width: 620px; height: 620px; opacity: 0.18; mix-blend-mode: multiply; }

/* Section common */
section { padding: 6rem 0; }
.container { margin: 0 auto; max-width: 80rem; padding: 0 1.5rem; }
.section-header { margin-bottom: 4rem; }
.section-label { font-family: var(--font-mono); font-size: 0.625rem; text-transform: uppercase; letter-spacing: 0.25em; color: #a1a1aa; }
.section-title { margin-top: 1rem; font-family: var(--font-display); font-size: 2.25rem; font-weight: 500; }
@media (min-width: 768px) { .section-title { font-size: 2.5rem; } }

/* Who We Are */
.who-section { border-bottom: 1px solid #e4e4e7; background-color: white; }
.who-grid { display: grid; gap: 3rem; }
@media (min-width: 1024px) { .who-grid { grid-template-columns: repeat(12, 1fr); } }
.who-left { }
@media (min-width: 1024px) { .who-left { grid-column: span 4; } }
.who-left h2 { margin-top: 1rem; font-family: var(--font-display); font-size: 1.5rem; font-weight: 500; }
.who-right { }
@media (min-width: 1024px) { .who-right { grid-column: span 8; } }
.who-cols { display: grid; gap: 2rem; }
@media (min-width: 768px) { .who-cols { grid-template-columns: repeat(2, 1fr); } }
.who-cols p { font-size: 1rem; color: #52525b; }

/* Services */
.services-section { background-color: #fafafa; }
.services-grid { display: grid; gap: 1px; overflow: hidden; border-radius: 0.5rem; border: 1px solid #e4e4e7; background-color: #e4e4e7; }
@media (min-width: 768px) { .services-grid { grid-template-columns: repeat(3, 1fr); } }
.service-card { display: flex; flex-direction: column; background-color: white; padding: 2rem; }
.service-number { margin-bottom: 1.5rem; font-family: var(--font-mono); font-size: 0.75rem; color: var(--color-brand); }
.service-card h3 { margin-bottom: 1rem; font-family: var(--font-display); font-size: 1.25rem; font-weight: 500; }
.service-body { margin-bottom: 2rem; flex: 1; font-size: 0.875rem; line-height: 1.75; color: #71717a; }
.service-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.service-tag { border: 1px solid #f4f4f5; background-color: #fafafa; padding: 0.25rem 0.5rem; font-family: var(--font-mono); font-size: 0.625rem; text-transform: uppercase; letter-spacing: 0.05em; color: #71717a; }

/* Process */
.process-section { border-bottom: 1px solid #e4e4e7; background-color: white; }
.process-grid { display: grid; gap: 2rem; }
@media (min-width: 768px) { .process-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .process-grid { grid-template-columns: repeat(4, 1fr); } }
.process-step { position: relative; }
.step-line { position: absolute; top: 0.75rem; left: 2.5rem; display: none; height: 1px; width: 100%; background-color: #e4e4e7; }
@media (min-width: 1024px) { .step-line { display: block; } }
.process-step:last-child .step-line { display: none; }
.step-number { position: relative; margin-bottom: 1.5rem; display: grid; place-items: center; width: 1.5rem; height: 1.5rem; border-radius: 9999px; background-color: var(--color-brand); font-family: var(--font-mono); font-size: 0.625rem; color: white; }
.step-label { font-family: var(--font-mono); font-size: 0.625rem; color: var(--color-brand); }
.process-step h3 { margin-top: 0.5rem; margin-bottom: 0.75rem; font-family: var(--font-display); font-size: 1.25rem; font-weight: 500; }
.step-body { font-size: 0.875rem; line-height: 1.75; color: #71717a; }

/* Numbers */
.numbers-section { border-bottom: 1px solid #e4e4e7; background-color: #fafafa; }
.numbers-grid { display: grid; gap: 3rem; }
@media (min-width: 768px) { .numbers-grid { grid-template-columns: repeat(3, 1fr); } }
.stat { }
.stat-value { font-family: var(--font-display); font-size: 3.75rem; font-weight: 500; letter-spacing: -0.025em; color: var(--color-ink); }
@media (min-width: 768px) { .stat-value { font-size: 4.5rem; } }
.stat-value .suffix { color: var(--color-brand); }
.stat-label { margin-top: 1rem; font-family: var(--font-mono); font-size: 0.625rem; text-transform: uppercase; letter-spacing: 0.2em; color: #71717a; }

/* Testimonials */
.testimonials-section { border-bottom: 1px solid #e4e4e7; background-color: white; }
.testimonials-grid { display: grid; gap: 1px; overflow: hidden; border-radius: 0.5rem; border: 1px solid #e4e4e7; background-color: #e4e4e7; }
@media (min-width: 768px) { .testimonials-grid { grid-template-columns: repeat(3, 1fr); } }
.testimonial { display: flex; flex-direction: column; background-color: white; padding: 2rem; }
.quote-icon { margin-bottom: 1.5rem; width: 1.5rem; height: 1.5rem; color: var(--color-brand); }
.testimonial blockquote { margin-bottom: 2rem; flex: 1; font-size: 1rem; line-height: 1.75; color: #3f3f46; }
.testimonial-author { font-family: var(--font-display); font-size: 0.875rem; font-weight: 500; color: var(--color-ink); }
.testimonial-role { margin-top: 0.25rem; font-family: var(--font-mono); font-size: 0.625rem; text-transform: uppercase; letter-spacing: 0.18em; color: #71717a; }

/* Contact */
.contact-section { background-color: var(--color-bone); }
.contact-grid { display: grid; gap: 4rem; }
@media (min-width: 1024px) { .contact-grid { grid-template-columns: repeat(2, 1fr); } }
.contact-info h2 { margin-top: 1.5rem; margin-bottom: 2rem; font-family: var(--font-display); font-size: 2.5rem; font-weight: 500; letter-spacing: -0.025em; }
@media (min-width: 768px) { .contact-info h2 { font-size: 3rem; } }
.contact-details { display: flex; flex-direction: column; gap: 1.25rem; }
.contact-item { display: flex; align-items: center; gap: 1rem; }
.contact-icon { display: grid; place-items: center; width: 2.5rem; height: 2.5rem; flex-shrink: 0; border-radius: 9999px; background-color: white; box-shadow: 0 0 0 1px #e4e4e7; }
.contact-icon svg { width: 1rem; height: 1rem; color: #52525b; }
.contact-item-label { font-family: var(--font-mono); font-size: 0.625rem; text-transform: uppercase; letter-spacing: 0.2em; color: #a1a1aa; }
.contact-item-value { font-weight: 500; color: var(--color-ink); }
.contact-form { border-radius: 0.5rem; background-color: white; padding: 2rem; box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05); box-shadow: 0 0 0 1px #e4e4e7; }
.form-grid { display: grid; gap: 1.5rem; }
.form-row { display: grid; gap: 1.5rem; }
@media (min-width: 768px) { .form-row { grid-template-columns: repeat(2, 1fr); } }
.form-group { display: flex; flex-direction: column; gap: 0.5rem; }
.form-label { padding: 0 0.25rem; font-family: var(--font-mono); font-size: 0.625rem; text-transform: uppercase; letter-spacing: 0.2em; color: #a1a1aa; }
.form-input, .form-select, .form-textarea { width: 100%; border-radius: 0.125rem; border: none; background-color: #fafafa; padding: 0.75rem 1rem; font-size: 0.875rem; color: var(--color-ink); box-shadow: 0 0 0 1px #e4e4e7; outline: none; transition: box-shadow 0.15s; }
.form-input::placeholder, .form-textarea::placeholder { color: #a1a1aa; }
.form-input:focus, .form-select:focus, .form-textarea:focus { box-shadow: 0 0 0 1px var(--color-brand); }
.form-textarea { resize: none; }
.form-error { padding: 0 0.25rem; font-size: 0.75rem; color: var(--color-brand); }
.form-submit { width: 100%; border-radius: 0.125rem; background-color: var(--color-brand); padding: 0.75rem; font-size: 0.875rem; font-weight: 500; color: white; border: none; cursor: pointer; box-shadow: 0 0 0 1px rgba(190, 32, 47, 0.2); transition: transform 0.15s; }
.form-submit:hover { transform: translateY(-1px); }
.form-submit:disabled { opacity: 0.6; }

/* Footer */
footer { border-top: 1px solid #e4e4e7; background-color: white; padding: 2.5rem 0; }
footer > div { margin: 0 auto; display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: 1.5rem; max-width: 80rem; padding: 0 1.5rem; }
@media (min-width: 768px) { footer > div { flex-direction: row; } }
.footer-brand { display: flex; align-items: center; gap: 0.5rem; }
.footer-square { display: block; width: 0.5rem; height: 0.5rem; background-color: var(--color-ink); }
.footer-brand span { font-family: var(--font-mono); font-size: 0.625rem; text-transform: uppercase; letter-spacing: 0.18em; color: #71717a; }
.footer-links { display: flex; gap: 2rem; }
.footer-link { font-family: var(--font-mono); font-size: 0.625rem; text-transform: uppercase; letter-spacing: 0.18em; color: #a1a1aa; text-decoration: none; transition: color 0.15s; }
.footer-link:hover { color: var(--color-brand); }

/* Animations */
@keyframes reveal-up { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.reveal { opacity: 0; }
.reveal.in-view { animation: reveal-up 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards; }

/* Toast notifications */
.toast-container { position: fixed; top: 1rem; left: 50%; transform: translateX(-50%); z-index: 100; }
.toast { padding: 1rem 1.5rem; border-radius: 0.5rem; background-color: white; box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1); font-size: 0.875rem; opacity: 0; transform: translateY(-1rem); transition: all 0.3s; }
.toast.show { opacity: 1; transform: translateY(0); }
.toast.success { border-left: 4px solid #22c55e; }
.toast.error { border-left: 4px solid var(--color-brand); }
