/* ==========================================================================
   ROAN ADVISORY — Design tokens
   Palette: Roan Umber & Savanna (drawn from the Roan antelope itself)
   Display: Playfair Display (editorial serif) · Body: Inter · Numerals: IBM Plex Sans
   ========================================================================== */

:root {
  --charcoal: #26160E;
  --charcoal-light: #3A2417;
  --charcoal-lighter: #4A3020;
  --umber: #A8481F;
  --umber-light: #C15E2E;
  --umber-pale: #D99A4E;
  --olive: #B5772A;
  --olive-light: #D99A4E;
  --brass: #D99A4E;
  --brass-light: #EBCB9E;
  --bone: #F4E9D8;
  --bone-warm: #EFE3D0;
  --ink: #2A1810;
  --muted: #6E5A48;
  --muted-light: #C0A98F;
  --line: #DCCDB8;

  --font-display: 'Fraunces', 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-numeric: 'IBM Plex Sans', 'Inter', sans-serif;

  --container: 1180px;
  --radius: 10px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--bone);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

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

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

a { color: inherit; text-decoration: none; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.1;
  margin: 0 0 0.5em;
  color: var(--charcoal);
  letter-spacing: -0.01em;
}

h1 { font-weight: 500; }
em { font-style: italic; color: var(--umber); }

p { margin: 0 0 1em; }

.eyebrow {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 12.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--umber);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}
.eyebrow::before {
  content: '';
  width: 24px;
  height: 1.5px;
  background: var(--brass);
  display: inline-block;
}

/* ---------------- Header / Nav ---------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(244, 233, 216, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 20px;
  color: var(--charcoal);
}
.brand-mark {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
}
.nav-links {
  display: flex;
  gap: 36px;
  align-items: center;
}
.nav-links a {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--charcoal);
  position: relative;
  padding: 6px 0;
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; right: 100%;
  bottom: 0;
  height: 1.5px;
  background: var(--brass);
  transition: right 0.3s var(--ease);
}
.nav-links a:hover::after, .nav-links a.active::after { right: 0; }
.nav-links a.active { color: var(--umber); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14.5px;
  padding: 12px 24px;
  border-radius: 100px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: all 0.25s var(--ease);
}
.btn-primary {
  background: var(--umber);
  color: var(--bone);
}
.btn-primary:hover { background: var(--charcoal); transform: translateY(-1px); }
.btn-ghost {
  border-color: var(--charcoal);
  color: var(--charcoal);
}
.btn-ghost:hover { background: var(--charcoal); color: var(--bone); }
.btn-ghost-light {
  border-color: rgba(244,233,216,0.4);
  color: var(--bone);
}
.btn-ghost-light:hover { background: var(--bone); color: var(--charcoal); }

.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--charcoal); margin: 5px 0; transition: 0.3s; }

/* ---------------- Hero sections ---------------- */
.hero {
  background: var(--charcoal);
  color: var(--bone);
  position: relative;
  overflow: hidden;
  padding: 130px 0 110px;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('images/topo-pattern-dark.svg');
  background-size: cover;
  background-position: center;
  pointer-events: none;
}
.hero-decor { display: none; }
.hero-inner { position: relative; z-index: 2; max-width: 720px; }
.hero h1 { color: var(--bone); font-size: clamp(42px, 6.2vw, 84px); font-weight: 500; }
.hero .lede { font-size: 19px; color: var(--muted-light); max-width: 560px; margin-bottom: 34px; }
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; }

.page-hero {
  background: var(--charcoal);
  color: var(--bone);
  padding: 100px 0 76px;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('images/topo-pattern-dark.svg');
  background-size: cover;
  background-position: center;
  pointer-events: none;
}
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 { color: var(--bone); font-size: clamp(34px, 4.6vw, 52px); max-width: 780px; font-weight: 500; }
.page-hero .lede { color: var(--muted-light); font-size: 17.5px; max-width: 620px; }

/* ---------------- Sections ---------------- */
section { padding: 96px 0; }
.section-tight { padding: 72px 0; }
.section-alt { background: var(--bone-warm); }
.section-dark { background: var(--charcoal); color: var(--bone); position: relative; overflow: hidden; }
.section-dark::before { content: ''; position: absolute; inset: 0; background-image: url('images/topo-pattern-dark.svg'); background-size: cover; background-position: center; pointer-events: none; }
.section-dark .container { position: relative; z-index: 2; }
.section-dark h2, .section-dark h3 { color: var(--bone); }
.section-dark .eyebrow { color: var(--umber-light); }
.section-dark .eyebrow::before { background: var(--brass-light); }

.section-head { max-width: 640px; margin-bottom: 56px; }
.section-head h2 { font-size: clamp(28px, 3.4vw, 38px); }
.section-head p { color: var(--muted); font-size: 17px; }
.section-dark .section-head p { color: var(--muted-light); }

/* ---------------- Grid / cards ---------------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
}
.card-dark {
  background: var(--charcoal-light);
  border-radius: var(--radius);
  padding: 32px;
}

.stat-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.stat { border-left: 2px solid var(--umber); padding-left: 20px; }
.stat .num { font-family: var(--font-numeric); font-size: clamp(30px, 3.6vw, 44px); font-weight: 600; color: var(--umber-light); line-height: 1; margin-bottom: 8px; }
.stat .label { color: var(--muted-light); font-size: 14.5px; }

.pa-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px 32px;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.pa-card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(38,22,14,0.08); border-color: var(--brass); }
.pa-card .code { font-family: var(--font-numeric); font-size: 14px; font-weight: 600; color: var(--umber); margin-bottom: 14px; letter-spacing: 0.04em; }
.pa-card h3 { font-size: 21px; margin-bottom: 12px; }
.pa-card p { color: var(--muted); font-size: 15.5px; margin-bottom: 18px; }
.pa-card ul { margin: 0; padding: 0; list-style: none; }
.pa-card li { font-size: 14.5px; color: var(--ink); padding: 7px 0; border-top: 1px solid var(--line); }
.pa-card li:first-child { border-top: none; }

.pa-image { border-radius: var(--radius); overflow: hidden; margin-bottom: 40px; }
.pa-image img { width: 100%; height: 320px; object-fit: cover; display: block; }
@media (max-width: 600px) { .pa-image img { height: 220px; } }

.pa-icon { width: 30px; height: 30px; color: var(--umber); margin-bottom: 16px; }
.pa-icon svg { width: 100%; height: 100%; }
.pa-icon-lg { width: 38px; height: 38px; }

/* ---------------- Cycle diagram (signature element) ---------------- */
.cycle-wrap { display: flex; justify-content: center; padding: 20px 0 10px; }
.cycle-svg { width: 100%; max-width: 640px; height: auto; }
.cycle-node circle { fill: var(--umber); transition: fill 0.3s; }
.cycle-node:hover circle { fill: var(--olive); }
.cycle-node text { fill: var(--bone); font-family: var(--font-body); font-weight: 600; }
.cycle-path {
  fill: none;
  stroke: var(--olive-light);
  stroke-width: 2;
  stroke-dasharray: 6 8;
  stroke-linecap: round;
  opacity: 0.6;
}
.cycle-arrow { fill: var(--olive-light); opacity: 0.8; }

/* ---------------- Process steps ---------------- */
.process-row { display: flex; justify-content: space-between; gap: 8px; margin: 48px 0 16px; flex-wrap: wrap; }
.process-step { flex: 1; min-width: 140px; text-align: center; position: relative; }
.process-step .n {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--brass); color: var(--charcoal);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-numeric); font-weight: 600; font-size: 18px;
  margin: 0 auto 14px;
}
.process-step .label { font-weight: 600; font-size: 15px; }

/* ---------------- Table ---------------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th { background: var(--charcoal); color: var(--bone); text-align: left; padding: 16px 20px; font-weight: 600; font-size: 13.5px; letter-spacing: 0.03em; text-transform: uppercase; }
td { padding: 16px 20px; border-top: 1px solid var(--line); }
tr:nth-child(even) td { background: var(--bone-warm); }

/* ---------------- Quote / value strip ---------------- */
.value-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 28px 20px; }
.value-item { text-align: left; }
.value-icon { width: 26px; height: 26px; color: var(--brass); margin-bottom: 14px; }
.value-icon svg { width: 100%; height: 100%; }
.value-item .mark { width: 30px; height: 3px; background: var(--brass); margin-bottom: 14px; }
.value-item h4 { font-size: 16px; margin-bottom: 6px; }
.value-item p { font-size: 14px; color: var(--muted); margin: 0; }

/* ---------------- Founder / bio ---------------- */
.bio-grid { display: grid; grid-template-columns: 300px 1fr; gap: 56px; align-items: start; }
.bio-photo {
  aspect-ratio: 1;
  background: var(--charcoal);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  position: relative;
  overflow: hidden;
}
.bio-photo .initials { font-family: var(--font-display); font-size: 72px; color: var(--bone); font-weight: 600; z-index: 2; }
.bio-photo .ring { position: absolute; width: 170px; height: 170px; border-radius: 50%; background: var(--umber); }
.credential-list { list-style: none; margin: 20px 0 0; padding: 0; }
.credential-list li { padding: 10px 0; border-top: 1px solid var(--line); font-size: 15px; }
.credential-list li:first-child { border-top: none; }
.credential-list strong { color: var(--charcoal); }

/* ---------------- Insights ---------------- */
.insight-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: border-color 0.25s var(--ease), transform 0.25s var(--ease); }
.insight-card:hover { border-color: var(--brass); transform: translateY(-3px); }
.insight-card .tag { padding: 22px 24px 0; }
.insight-card .tag span { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--umber); }
.insight-card .body { padding: 12px 24px 24px; flex: 1; display: flex; flex-direction: column; }
.insight-card h3 { font-size: 19px; margin-bottom: 10px; }
.insight-card p { color: var(--muted); font-size: 14.5px; flex: 1; }
.insight-card .read-more { font-size: 14px; font-weight: 600; color: var(--umber); margin-top: 12px; display: inline-flex; align-items: center; gap: 6px; }

/* ---------------- Contact ---------------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; }
.form-field { margin-bottom: 20px; }
.form-field label { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 8px; color: var(--charcoal); }
.form-field input, .form-field textarea, .form-field select {
  width: 100%;
  font-family: var(--font-body);
  font-size: 15px;
  padding: 13px 16px;
  border: 1.5px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  transition: border-color 0.2s;
}
.form-field input:focus, .form-field textarea:focus, .form-field select:focus {
  outline: none;
  border-color: var(--umber);
}
.form-field textarea { resize: vertical; min-height: 120px; }
.form-message { border-radius: 8px; padding: 16px 18px; font-size: 14.5px; font-weight: 500; margin-bottom: 20px; }
.form-message-success { background: rgba(107,114,80,0.14); border: 1px solid var(--olive); color: #4A5038; }
.form-message-error { background: rgba(122,62,46,0.10); border: 1px solid var(--umber); color: var(--umber); }
.field-error { display: block; font-size: 13px; color: var(--umber); margin-top: 6px; }
input[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: var(--umber) !important; }
.contact-detail { display: flex; gap: 16px; padding: 18px 0; border-top: 1px solid var(--line); }
.contact-detail:first-child { border-top: none; }
.contact-detail .icon-dot { width: 38px; height: 38px; border-radius: 50%; background: var(--umber); flex-shrink: 0; display: flex; align-items: center; justify-content: center; color: var(--bone); font-size: 15px; }
.contact-detail .icon-dot svg { width: 17px; height: 17px; }
.contact-detail .txt .label { font-size: 13px; color: var(--muted); margin-bottom: 2px; }
.contact-detail .txt .val { font-weight: 600; }

/* ---------------- Footer ---------------- */
.site-footer { background: var(--charcoal); color: var(--muted-light); padding: 64px 0 32px; }
.footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 48px; border-bottom: 1px solid rgba(244,233,216,0.12); margin-bottom: 32px; }
.footer-brand { font-family: var(--font-display); font-size: 20px; color: var(--bone); margin-bottom: 12px; }
.footer-tagline { font-size: 14px; max-width: 280px; }
.footer-col h4 { color: var(--bone); font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 16px; }
.footer-col a { display: block; font-size: 14.5px; padding: 6px 0; color: var(--muted-light); transition: color 0.2s; }
.footer-col a:hover { color: var(--bone); }
.footer-bottom { display: flex; justify-content: space-between; font-size: 13px; flex-wrap: wrap; gap: 12px; }

/* ---------------- CTA band ---------------- */
.cta-band { background: var(--charcoal); color: var(--bone); text-align: center; padding: 76px 0; position: relative; overflow: hidden; }
.cta-band::before { content: ''; position: absolute; inset: 0; background-image: url('images/topo-pattern-dark.svg'); background-size: cover; background-position: center; pointer-events: none; }
.cta-band .container { position: relative; z-index: 2; }
.cta-band h2 { color: var(--bone); }
.cta-band p { color: var(--muted-light); max-width: 520px; margin: 0 auto 32px; }
.cta-band .btn-primary { background: var(--umber); }
.cta-band .btn-primary:hover { background: var(--umber-light); }

/* ---------------- Reveal on scroll ----------------
   Content is visible by default. JS adds .pre before observing, so if JS
   fails to run for any reason, nothing stays hidden. */
.reveal.pre { opacity: 0; transform: translateY(18px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.pre.in { opacity: 1; transform: translateY(0); }

/* ---------------- Responsive ---------------- */
@media (max-width: 900px) {
  .grid-3, .grid-2, .stat-strip, .value-strip { grid-template-columns: 1fr; }
  .bio-grid { grid-template-columns: 1fr; }
  .bio-photo { max-width: 260px; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .nav-links { position: fixed; top: 78px; left: 0; right: 0; background: var(--bone); flex-direction: column; align-items: flex-start; padding: 24px 32px; gap: 4px; border-bottom: 1px solid var(--line); transform: translateY(-130%); transition: transform 0.3s var(--ease); }
  .nav-links.open { transform: translateY(0); }
  .nav-links a { width: 100%; padding: 12px 0; }
  .nav-toggle { display: block; }
  .nav .btn-ghost { display: none; }
  .process-row { flex-direction: column; }
  .process-step { display: flex; align-items: center; gap: 16px; text-align: left; }
  .process-step .n { margin: 0; }
}
@media (max-width: 600px) {
  .container { padding: 0 20px; }
  section { padding: 64px 0; }
  .hero { padding: 90px 0 64px; }
}
