@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,700;0,900;1,700&family=Source+Sans+3:wght@300;400;500;600&display=swap');

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

:root {
  --ink: #0f1923;
  --slate: #1e2d3d;
  --rust: #b5451b;
  --amber: #d4832a;
  --cream: #f8f4ee;
  --mist: #ece7df;
  --text: #2c3e50;
  --mid: #5a6a7a;
  --light: #8a9aaa;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Source Sans 3', sans-serif;
  background: var(--cream);
  color: var(--text);
  overflow-x: hidden;
}

/* NAV */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(15,25,35,0.97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  padding: 0 48px;
  height: 64px;
  display: flex; align-items: center; justify-content: space-between;
}

.nav-brand {
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  color: white;
  text-decoration: none;
  letter-spacing: 0.01em;
}

.nav-brand span { color: var(--amber); }

.nav-links { display: flex; gap: 32px; align-items: center; }

.nav-links a {
  font-size: 13.5px;
  font-weight: 500;
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: color 0.2s;
}

.nav-links a:hover { color: white; }

.nav-cta {
  background: var(--rust) !important;
  color: white !important;
  padding: 8px 20px;
  border-radius: 2px;
  font-size: 12.5px !important;
}

.nav-cta:hover { background: #c94f20 !important; }

/* HERO */
.hero {
  min-height: 100vh;
  background: var(--ink);
  display: flex; align-items: center;
  position: relative;
  overflow: hidden;
  padding: 120px 48px 80px;
}

.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 40%, transparent 100%);
}

.hero-glow {
  position: absolute;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(181,69,27,0.12) 0%, transparent 70%);
  top: -100px; right: -100px;
  pointer-events: none;
}

.hero-glow-2 {
  position: absolute;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212,131,42,0.08) 0%, transparent 70%);
  bottom: -50px; left: 10%;
  pointer-events: none;
}

.hero-content {
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
  position: relative;
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 80px;
  align-items: center;
}

.hero-eyebrow {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 24px;
  display: flex; align-items: center; gap: 12px;
}

.hero-eyebrow::before {
  content: '';
  display: block;
  width: 32px; height: 1px;
  background: var(--amber);
}

.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(36px, 5vw, 58px);
  line-height: 1.08;
  color: white;
  margin-bottom: 24px;
}

.hero h1 em {
  font-style: italic;
  color: var(--amber);
}

.hero-sub {
  font-size: 17px;
  line-height: 1.7;
  color: rgba(255,255,255,0.55);
  font-weight: 300;
  margin-bottom: 40px;
  max-width: 520px;
}

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.btn-primary {
  display: inline-block;
  background: var(--rust);
  color: white;
  padding: 14px 32px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-decoration: none;
  border-radius: 2px;
  transition: background 0.2s, transform 0.15s;
}

.btn-primary:hover { background: #c94f20; transform: translateY(-1px); }

.btn-secondary {
  display: inline-block;
  border: 1px solid rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.7);
  padding: 14px 32px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  border-radius: 2px;
  transition: border-color 0.2s, color 0.2s;
}

.btn-secondary:hover { border-color: rgba(255,255,255,0.5); color: white; }

/* Hero card */
.hero-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 4px;
  padding: 32px;
  backdrop-filter: blur(4px);
}

.hero-card-label {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 20px;
}

.what-we-do-summary {
  font-size: 14.5px;
  line-height: 1.75;
  color: rgba(255,255,255,0.55);
  font-weight: 300;
  margin-bottom: 28px;
}

.what-we-do-summary strong {
  color: rgba(255,255,255,0.85);
  font-weight: 500;
}

.stack-divider {
  height: 1px;
  background: rgba(255,255,255,0.08);
  margin-bottom: 24px;
}

.stack-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.25);
  margin-bottom: 14px;
}

.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tech-tag {
  font-size: 12px;
  font-weight: 500;
  color: rgba(255,255,255,0.6);
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 5px 12px;
  border-radius: 2px;
  letter-spacing: 0.03em;
  transition: color 0.2s, border-color 0.2s;
}

.tech-tag:hover {
  color: rgba(255,255,255,0.9);
  border-color: rgba(255,255,255,0.25);
}

.hero-card-note {
  margin-top: 20px;
  font-size: 12px;
  color: rgba(255,255,255,0.3);
  line-height: 1.6;
  font-style: italic;
}

/* SECTION BASE */
section { padding: 96px 48px; }

.section-inner { max-width: 1100px; margin: 0 auto; }

.section-eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--rust);
  margin-bottom: 16px;
  display: flex; align-items: center; gap: 12px;
}

.section-eyebrow::before {
  content: '';
  display: block;
  width: 24px; height: 1px;
  background: var(--rust);
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(28px, 3.5vw, 40px);
  color: var(--ink);
  line-height: 1.15;
  margin-bottom: 16px;
}

.section-sub {
  font-size: 16px;
  line-height: 1.75;
  color: var(--mid);
  font-weight: 300;
  max-width: 580px;
}

/* PITCH SECTION */
.pitch { background: white; }

.pitch-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
  margin-top: 56px;
}

.pitch-statement {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  line-height: 1.5;
  color: var(--ink);
  font-style: italic;
  padding-left: 24px;
  border-left: 3px solid var(--rust);
}

.pitch-body {
  font-size: 15.5px;
  line-height: 1.8;
  color: var(--mid);
  font-weight: 300;
}

.pitch-body p + p { margin-top: 16px; }

/* SERVICES */
.services { background: var(--cream); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  margin-top: 56px;
  background: var(--mist);
  border: 1px solid var(--mist);
}

.service-card {
  background: white;
  padding: 40px 36px;
  text-decoration: none;
  color: inherit;
  display: block;
  position: relative;
  transition: background 0.2s;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--rust);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s;
}

.service-card:hover::before { transform: scaleX(1); }
.service-card:hover { background: #fdfcfa; }

.service-number {
  font-family: 'Playfair Display', serif;
  font-size: 42px;
  color: var(--mist);
  line-height: 1;
  margin-bottom: 16px;
  transition: color 0.2s;
}

.service-card:hover .service-number { color: rgba(181,69,27,0.12); }

.service-name {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  color: var(--ink);
  margin-bottom: 12px;
  line-height: 1.2;
}

.service-desc {
  font-size: 14px;
  line-height: 1.7;
  color: var(--mid);
  font-weight: 300;
}

.service-link {
  margin-top: 20px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--rust);
  display: flex; align-items: center; gap: 6px;
}

.service-link::after { content: '→'; }

/* ABOUT */
.about { background: var(--ink); }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
  margin-top: 56px;
}

.about .section-title { color: white; }
.about .section-eyebrow { color: var(--amber); }
.about .section-eyebrow::before { background: var(--amber); }

.about-bio {
  font-size: 15.5px;
  line-height: 1.85;
  color: rgba(255,255,255,0.6);
  font-weight: 300;
}

.about-bio p + p { margin-top: 16px; }

.about-bio strong {
  color: rgba(255,255,255,0.9);
  font-weight: 500;
}

.credentials {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.credential {
  padding: 20px 24px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 2px;
}

.credential-label {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 6px;
}

.credential-value {
  font-size: 14px;
  color: rgba(255,255,255,0.7);
  font-weight: 300;
  line-height: 1.5;
}

/* CONTACT */
.contact { background: white; }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  margin-top: 56px;
  align-items: start;
}

.contact-info { display: flex; flex-direction: column; gap: 24px; }

.contact-item {
  display: flex; align-items: flex-start; gap: 16px;
}

.contact-icon {
  width: 40px; height: 40px;
  background: var(--ink);
  border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.contact-item-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--light);
  margin-bottom: 4px;
}

.contact-item-value {
  font-size: 15px;
  color: var(--ink);
  font-weight: 500;
  text-decoration: none;
}

.contact-item-value:hover { color: var(--rust); }

/* Contact form */
.contact-form { display: flex; flex-direction: column; gap: 16px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.form-group { display: flex; flex-direction: column; gap: 6px; }

.form-group label {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mid);
}

.form-group input,
.form-group textarea,
.form-group select {
  padding: 12px 16px;
  border: 1px solid var(--mist);
  border-radius: 2px;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 15px;
  color: var(--ink);
  background: var(--cream);
  transition: border-color 0.2s;
  outline: none;
  width: 100%;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--rust);
  background: white;
}

.form-group textarea { resize: vertical; min-height: 120px; }

.form-submit {
  background: var(--rust);
  color: white;
  border: none;
  padding: 14px 32px;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 2px;
  cursor: pointer;
  transition: background 0.2s;
  align-self: flex-start;
}

.form-submit:hover { background: #c94f20; }

/* FOOTER */
footer {
  background: var(--ink);
  padding: 40px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.footer-brand {
  font-family: 'Playfair Display', serif;
  font-size: 16px;
  color: white;
}

.footer-brand span { color: var(--amber); }

.footer-text {
  font-size: 13px;
  color: rgba(255,255,255,0.3);
}

.footer-stack {
  font-size: 12px;
  color: rgba(255,255,255,0.25);
  text-align: right;
}

/* ANIMATIONS */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-eyebrow { animation: fadeUp 0.6s ease both; }
.hero h1 { animation: fadeUp 0.6s 0.1s ease both; }
.hero-sub { animation: fadeUp 0.6s 0.2s ease both; }
.hero-actions { animation: fadeUp 0.6s 0.3s ease both; }
.hero-card { animation: fadeUp 0.6s 0.35s ease both; }

.page.active { display: block; }
#home.active { display: block; }

.service-page { padding-top: 120px; min-height: 100vh; }

.service-hero {
  background: var(--ink);
  padding: 80px 48px;
  position: relative;
  overflow: hidden;
}

.service-hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 48px 48px;
}

.service-hero-inner { max-width: 1100px; margin: 0 auto; position: relative; }

.back-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 500;
  color: rgba(255,255,255,0.4);
  text-decoration: none;
  margin-bottom: 32px;
  transition: color 0.2s;
  cursor: pointer;
  background: none; border: none;
  font-family: 'Source Sans 3', sans-serif;
}

.back-link:hover { color: rgba(255,255,255,0.8); }
.back-link::before { content: '←'; }

.service-hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(32px, 4vw, 48px);
  color: white;
  margin-bottom: 16px;
}

.service-hero-sub {
  font-size: 17px;
  color: rgba(255,255,255,0.5);
  font-weight: 300;
  max-width: 560px;
  line-height: 1.7;
}

.service-content {
  padding: 80px 48px;
  max-width: 1100px;
  margin: 0 auto;
}

.service-coming-soon {
  text-align: center;
  padding: 80px 40px;
  background: white;
  border: 1px solid var(--mist);
  border-radius: 4px;
  margin-top: 48px;
}

.coming-soon-icon { font-size: 48px; margin-bottom: 24px; }

.service-coming-soon h2 {
  font-family: 'Playfair Display', serif;
  font-size: 28px;
  color: var(--ink);
  margin-bottom: 12px;
}

.service-coming-soon p {
  font-size: 16px;
  color: var(--mid);
  font-weight: 300;
  max-width: 440px;
  margin: 0 auto 32px;
  line-height: 1.7;
}

/* Audit page specific */
.audit-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-top: 48px;
}

.detail-block {
  background: white;
  border: 1px solid var(--mist);
  padding: 36px;
  border-radius: 2px;
}

.detail-block h3 {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  color: var(--ink);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--rust);
  display: inline-block;
}

.detail-list { list-style: none; display: flex; flex-direction: column; gap: 10px; }

.detail-list li {
  font-size: 14.5px;
  color: var(--mid);
  font-weight: 300;
  padding-left: 20px;
  position: relative;
  line-height: 1.5;
}

.detail-list li::before {
  content: '→';
  position: absolute; left: 0;
  color: var(--rust);
  font-size: 12px;
}

.audit-cta {
  margin-top: 48px;
  background: var(--ink);
  padding: 48px;
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.audit-cta h3 {
  font-family: 'Playfair Display', serif;
  font-size: 26px;
  color: white;
  margin-bottom: 8px;
}

.audit-cta p {
  font-size: 15px;
  color: rgba(255,255,255,0.5);
  font-weight: 300;
}

.audit-pricing-chips {
  display: flex; gap: 12px; flex-shrink: 0;
  flex-direction: column;
  align-items: flex-end;
}

.chip {
  display: flex; align-items: center; gap: 12px;
  background: rgba(255,255,255,0.06);
  padding: 10px 18px;
  border-radius: 2px;
  white-space: nowrap;
}

.chip-size { font-size: 13px; color: rgba(255,255,255,0.5); }
.chip-price { font-family: 'Playfair Display', serif; font-size: 18px; color: white; }

@media (max-width: 768px) {
  nav { padding: 0 24px; }
  .nav-links { display: none; }
  .hero { padding: 100px 24px 60px; }
  .hero-content { grid-template-columns: 1fr; gap: 40px; }
  section { padding: 64px 24px; }
  .pitch-grid, .about-grid, .contact-grid, .audit-detail-grid { grid-template-columns: 1fr; gap: 40px; }
  .services-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  footer { flex-direction: column; gap: 16px; text-align: center; }
  .audit-cta { flex-direction: column; }
  .audit-pricing-chips { align-items: flex-start; flex-direction: row; flex-wrap: wrap; }
}
