/* rvn.consulting */

:root {
  --bg: #f6f3ec;
  --bg-alt: #ece7dc;
  --ink: #15171c;
  --ink-soft: #4a4d55;
  --ink-muted: #7a7d85;
  --line: #d9d3c6;
  --accent: #b5532c;
  --accent-ink: #f6f3ec;
  --dark: #15171c;
  --dark-soft: #23262d;
  --dark-text: #f4efe6;
  --dark-muted: #a9a49a;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --max: 1120px;
  --radius: 6px;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }

a { color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2.4rem, 5.6vw, 4.4rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); }
h3 { font-size: 1.35rem; }

p { margin: 0 0 1.1em; }

.container {
  width: min(var(--max), 100% - 3rem);
  margin-inline: auto;
}

.eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.2rem;
}

.lede {
  font-size: 1.2rem;
  color: var(--ink-soft);
  max-width: 60ch;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.9rem 0;
}

.wordmark {
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  text-decoration: none;
  white-space: nowrap;
}

.wordmark .dot { color: var(--accent); }
.wordmark .tld { font-weight: 400; color: var(--ink-soft); }

.nav-links {
  display: flex;
  gap: 1.6rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.95rem;
}

.nav-links a {
  text-decoration: none;
  color: var(--ink-soft);
}

.nav-links a:hover { color: var(--ink); }

.nav-links .cta a {
  color: var(--ink);
  font-weight: 600;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 2px;
}

/* Buttons */

.btn {
  display: inline-block;
  padding: 0.85rem 1.4rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  border: 1.5px solid transparent;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: #9c4523; }

.btn-ghost { border-color: var(--ink); color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--bg); }

.btn-light { background: var(--dark-text); color: var(--dark); }
.btn-light:hover { background: #fff; }

.btn-row { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 2rem; }

/* Hero */

.hero {
  padding: clamp(4rem, 10vw, 8rem) 0 clamp(3.5rem, 8vw, 6rem);
}

.hero h1 { max-width: 18ch; }

.hero .lede { margin-top: 1.4rem; }

.hero-note {
  margin-top: 3.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  color: var(--ink-muted);
  font-size: 0.92rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 2.2rem;
}

/* Sections */

.section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }

.section-alt { background: var(--bg-alt); }

.section-dark {
  background: var(--dark);
  color: var(--dark-text);
}

.section-dark .lede { color: var(--dark-muted); }
.section-dark .eyebrow { color: #d9825f; }

.section-head { max-width: 62ch; margin-bottom: 2.8rem; }

.two-col {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 3rem 5rem;
  align-items: start;
}

.two-col .section-head { margin-bottom: 0; }

.prose p { max-width: 62ch; }
.prose p:last-child { margin-bottom: 0; }

/* Symptom grid */

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
}

.card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem 1.5rem;
}

.card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.97rem;
}

/* Services */

.services {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--line);
}

.service {
  padding: 2.2rem 2rem 2.2rem 0;
  border-bottom: 1px solid var(--line);
}

.service:nth-child(odd) { border-right: 1px solid var(--line); padding-right: 3rem; }
.service:nth-child(even) { padding-left: 3rem; }

.service .num {
  font-family: var(--serif);
  color: var(--accent);
  font-size: 1rem;
  margin-bottom: 0.8rem;
}

.service h3 { font-size: 1.5rem; }

.service .meta {
  font-size: 0.85rem;
  color: var(--ink-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.9rem;
}

.service p { color: var(--ink-soft); }
.service p:last-child { margin-bottom: 0; }

/* Approach */

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: step;
  display: grid;
  gap: 0;
}

.steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 3.5rem 1fr;
  gap: 1rem;
  padding: 1.6rem 0;
  border-top: 1px solid var(--dark-soft);
}

.steps li:last-child { border-bottom: 1px solid var(--dark-soft); }

.steps li::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--serif);
  font-size: 1.4rem;
  color: #d9825f;
  line-height: 1.2;
}

.steps h3 { margin-bottom: 0.3rem; font-size: 1.3rem; }
.steps p { margin: 0; color: var(--dark-muted); max-width: 60ch; }

/* Stats */

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.2rem;
  margin-bottom: 3.5rem;
}

.stat {
  padding: 1.4rem 0 0;
  border-top: 2px solid var(--ink);
}

.stat .value {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 4vw, 3rem);
  line-height: 1;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.stat .label {
  font-size: 0.92rem;
  color: var(--ink-soft);
}

/* Experience list */

.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
}

.timeline li {
  display: grid;
  grid-template-columns: 11rem 1fr;
  gap: 1.5rem;
  padding: 1.4rem 0;
  border-top: 1px solid var(--line);
}

.timeline li:last-child { border-bottom: 1px solid var(--line); }

.timeline .when {
  font-size: 0.9rem;
  color: var(--ink-muted);
  padding-top: 0.2rem;
}

.timeline .role { font-weight: 600; }
.timeline .org { color: var(--ink-soft); }
.timeline p { margin: 0.35rem 0 0; color: var(--ink-soft); font-size: 0.97rem; max-width: 62ch; }

/* About */

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 3rem 5rem;
  align-items: start;
}

.aside {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem 1.6rem;
}

.aside h3 { font-size: 1.1rem; margin-bottom: 0.9rem; }

.aside ul {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.aside li { margin-bottom: 0.35rem; }

/* Contact */

.contact { text-align: left; }

.contact h2 { max-width: 20ch; }

.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2.5rem;
  margin-top: 2rem;
  font-size: 1.05rem;
}

.contact-links a { color: var(--dark-text); text-decoration-color: #d9825f; text-underline-offset: 4px; }

/* Footer */

.site-footer {
  padding: 2rem 0;
  font-size: 0.88rem;
  color: var(--ink-muted);
  border-top: 1px solid var(--line);
}

.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 2rem;
}

/* Responsive */

@media (max-width: 900px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .two-col, .about-grid { grid-template-columns: 1fr; gap: 2rem; }
}

@media (max-width: 680px) {
  body { font-size: 16px; }
  .nav { padding: 0.75rem 0; }
  .nav-links { gap: 1rem; font-size: 0.9rem; }
  .nav-links li:not(.cta) { display: none; }
  .grid { grid-template-columns: 1fr; }
  .services { grid-template-columns: 1fr; }
  .service, .service:nth-child(odd), .service:nth-child(even) {
    padding: 1.8rem 0;
    border-right: 0;
  }
  .timeline li { grid-template-columns: 1fr; gap: 0.2rem; }
  .steps li { grid-template-columns: 2.5rem 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
