/* Anabasis LLC — brand tokens (teal sampled from the logo banner: #043034) */
:root {
  --teal: #043034;
  --teal-2: #0a4449;
  --teal-3: #12575d;
  --gold: #c9a227;
  --gold-light: #f2d27a;
  --gold-dark: #9a7a17;
  --gold-grad: linear-gradient(135deg, #a8841c 0%, #c9a227 30%, #f2d27a 55%, #c9a227 80%, #9a7a17 100%);
  --ink: #1f2a2c;
  --gray: #5a5a5a;      /* wordmark gray */
  --muted: #5f6b6d;
  --line: #e3e7e7;
  --bg-soft: #f6f8f8;
  --white: #fff;
  --serif: "EB Garamond", Garamond, "Times New Roman", Georgia, serif;
  --sans: "Source Sans 3", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  --radius: 10px;
  --max: 1120px;
  --shadow: 0 1px 2px rgba(4, 48, 52, .06), 0 8px 24px rgba(4, 48, 52, .08);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--sans); font-size: 1.0625rem; line-height: 1.65; color: var(--ink); background: var(--white); }
img { max-width: 100%; height: auto; }
a { color: var(--teal-3); text-underline-offset: .18em; }
a:hover { color: var(--teal); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 3px; }
h1, h2, h3, h4 { font-family: var(--serif); color: var(--gray); font-weight: 500; line-height: 1.15; margin: 0 0 .5em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
h3 { font-size: 1.45rem; }
p { margin: 0 0 1em; }
.container { width: min(100% - 2.5rem, var(--max)); margin-inline: auto; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 1rem; top: -4rem; background: var(--teal); color: #fff; padding: .6rem 1rem; z-index: 100; border-radius: 0 0 6px 6px; }
.skip-link:focus { top: 0; color: #fff; }
.small { font-size: .85rem; }

/* Header */
.site-header { background: #fff; border-top: 8px solid var(--teal); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 78px; }
.brand { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; }
.brand-logo { height: 54px; width: auto; display: block; }
.brand-mark { width: 40px; height: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-family: var(--serif); font-size: 1.5rem; color: #fff; }
.brand-tagline { font-family: var(--serif); font-style: italic; color: var(--gold-light); font-size: .95rem; }
.site-nav ul { list-style: none; display: flex; gap: .25rem; margin: 0; padding: 0; align-items: center; }
.site-nav a { display: block; padding: .5rem .8rem; text-decoration: none; color: var(--ink); font-weight: 600; font-size: .98rem; border-radius: 6px; }
.site-nav a:hover { background: var(--bg-soft); color: var(--teal); }
.site-nav a[aria-current="page"] { color: var(--teal); box-shadow: inset 0 -3px 0 var(--gold); border-radius: 0; }
.site-nav a.nav-cta { background: var(--teal); color: #fff; border-radius: 6px; margin-left: .4rem; box-shadow: none; }
.site-nav a.nav-cta:hover, .site-nav a.nav-cta[aria-current="page"] { background: var(--teal-2); color: var(--gold-light); }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 6px; width: 44px; height: 44px; cursor: pointer; position: relative; }
.nav-toggle-bar, .nav-toggle-bar::before, .nav-toggle-bar::after { display: block; width: 22px; height: 2px; background: var(--teal); position: absolute; left: 10px; content: ""; transition: transform .2s; }
.nav-toggle-bar { top: 21px; } .nav-toggle-bar::before { left: 0; top: -7px; } .nav-toggle-bar::after { left: 0; top: 7px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::after { transform: translateY(-7px) rotate(-45deg); }
@media (max-width: 860px) {
  .brand-logo { height: 42px; }
  .header-inner { min-height: 66px; }
  .nav-toggle { display: block; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; padding: .5rem 1.25rem 1rem; }
  .site-nav a { padding: .8rem .5rem; }
  .site-nav a.nav-cta { margin: .5rem 0 0; text-align: center; }
}

/* Buttons */
.btn { display: inline-block; padding: .8rem 1.4rem; border-radius: 6px; font-weight: 700; text-decoration: none; border: 2px solid transparent; transition: transform .15s, box-shadow .15s; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(0,0,0,.15); }
.btn--gold { background: var(--gold-grad); color: #1d1a0c; }
.btn--gold:hover { color: #000; }
.btn--outline { border-color: rgba(255,255,255,.7); color: #fff; }
.btn--outline:hover { color: var(--gold-light); border-color: var(--gold-light); }
.btn--teal { background: var(--teal); color: #fff; }
.btn--teal:hover { background: var(--teal-2); color: var(--gold-light); }
.btn-row { display: flex; flex-wrap: wrap; gap: .8rem; }

/* Hero */
.hero { background: radial-gradient(1200px 500px at 85% -10%, var(--teal-3), transparent 60%), var(--teal); color: #e8f0f0; padding: clamp(3.5rem, 8vw, 6.5rem) 0; position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--gold-grad); }
.hero-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 3rem; align-items: center; }
.hero h1 { color: #fff; font-size: clamp(2.3rem, 5.2vw, 3.7rem); }
.hero h1 em { font-style: italic; background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lede { font-size: 1.2rem; max-width: 36em; color: #d5e2e2; margin-bottom: 1.8rem; }
.hero-art { display: flex; justify-content: center; }
.hero-art img { width: min(300px, 70%); filter: drop-shadow(0 18px 30px rgba(0,0,0,.35)); }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .8rem; font-weight: 700; color: var(--gold); margin-bottom: .8rem; }
.eyebrow a { color: inherit; text-decoration: none; }
.hero .eyebrow { color: var(--gold-light); }
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; gap: 2rem; }
  .hero-art { order: -1; justify-content: flex-start; }
  .hero-art img { width: 120px; }
}

/* Sections */
.section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.section--soft { background: var(--bg-soft); }
.section-head { max-width: 46rem; margin-bottom: 2.5rem; }
.section-head p { color: var(--muted); font-size: 1.1rem; }
.gold-rule { width: 64px; height: 4px; border: 0; background: var(--gold-grad); margin: 0 0 1.2rem; border-radius: 2px; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.25rem; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; box-shadow: var(--shadow); display: flex; flex-direction: column; position: relative; }
.card::before { content: ""; position: absolute; top: 0; left: 1.6rem; width: 48px; height: 4px; background: var(--gold-grad); border-radius: 0 0 3px 3px; }
.card h3 { margin-top: .4rem; }
.card p { color: var(--muted); flex: 1; }
.card .card-link { font-weight: 700; text-decoration: none; }
.card .card-link::after { content: " \2192"; }
.tag { display: inline-block; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 700; color: var(--teal-3); background: #e6f0f0; padding: .15rem .55rem; border-radius: 99px; }
.tag--gold { background: #fbf3d9; color: #7a5f0e; }

.split { display: grid; grid-template-columns: 1fr 1.4fr; gap: 3rem; align-items: center; }
@media (max-width: 760px) { .split { grid-template-columns: 1fr; gap: 1.5rem; } }
.badge-slot { display: flex; align-items: center; justify-content: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow); }
.badge-slot img { width: 180px; }

.approach { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 1.5rem; }
.approach li { counter-increment: step; padding-top: 3.2rem; position: relative; }
.approach li::before { content: counter(step, decimal-leading-zero); position: absolute; top: 0; left: 0; font-family: var(--serif); font-size: 2.2rem; line-height: 1; background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; font-weight: 600; }
.approach h3 { font-size: 1.25rem; }
.approach p { color: var(--muted); }

.cta-band { background: var(--teal); color: #d5e2e2; padding: clamp(3rem, 6vw, 4.5rem) 0; position: relative; }
.cta-band::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--gold-grad); }
.cta-band h2 { color: #fff; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.cta-inner p { margin: 0; max-width: 40em; }

/* Interior pages */
.page-hero { background: var(--teal); color: #d5e2e2; padding: clamp(2.5rem, 6vw, 4rem) 0; position: relative; }
.page-hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--gold-grad); }
.page-hero h1 { color: #fff; margin-bottom: .3em; }
.page-hero .eyebrow { color: var(--gold-light); }
.page-hero .lede { font-size: 1.2rem; max-width: 42em; margin: 0; }
.page-hero--compact { padding: 1.5rem 0; }
.page-hero--compact .eyebrow { margin: 0; }
.post-meta { margin: 0; color: #b9cccc; }
.prose-wrap { padding: clamp(2.5rem, 6vw, 4rem) 0; }
.prose { max-width: 46rem; }
.prose h2 { margin-top: 1.8em; }
.prose h3 { margin-top: 1.5em; color: var(--teal-2); }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose li { margin-bottom: .4em; }
.prose blockquote { margin: 1.5em 0; padding: .4em 1.2em; border-left: 4px solid var(--gold); background: var(--bg-soft); font-family: var(--serif); font-size: 1.2rem; }
.prose table { border-collapse: collapse; width: 100%; margin: 1.2em 0; font-size: .97rem; }
.prose th, .prose td { text-align: left; padding: .55rem .7rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { background: var(--bg-soft); }
.todo { background: #fff6d6; border: 1px dashed #c9a227; border-radius: 6px; padding: .8rem 1rem; color: #6b5310; font-size: .95rem; }
.todo::before { content: "TODO: "; font-weight: 700; }
.back-link { margin-top: 2rem; }

.service { padding: 2.5rem 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 1fr 2fr; gap: 2.5rem; scroll-margin-top: 100px; }
.service:last-child { border-bottom: 0; }
.service h2 { margin-bottom: .3em; }
.service .service-intro { color: var(--muted); }
.service ul { padding-left: 1.2rem; margin: 0 0 1rem; }
.service li { margin-bottom: .45em; }
@media (max-width: 760px) { .service { grid-template-columns: 1fr; gap: .5rem; } }
.service-nav { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.2rem; }
.service-nav a { color: #fff; border: 1px solid rgba(255,255,255,.35); padding: .35rem .85rem; border-radius: 99px; text-decoration: none; font-size: .92rem; }
.service-nav a:hover { border-color: var(--gold-light); color: var(--gold-light); }

.post-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.25rem; max-width: 50rem; }
.post-list .card h2 { font-size: 1.6rem; margin: .3rem 0 .4rem; }
.post-list .card h2 a { color: var(--gray); text-decoration: none; }
.post-list .card h2 a:hover { color: var(--teal); }
.post-date { font-size: .9rem; color: var(--muted); margin: .4rem 0 0; }
.post-cta { margin-top: 3rem; max-width: 46rem; background: var(--bg-soft); border-left: 4px solid var(--gold); padding: 1.5rem 1.8rem; border-radius: 0 var(--radius) var(--radius) 0; }
.post-cta h2 { font-size: 1.6rem; margin-top: 0; }

.updates { display: grid; gap: 1.25rem; max-width: 40rem; }
.update-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem 1.5rem; box-shadow: var(--shadow); max-width: 40rem; }
.update-head { display: flex; gap: .8rem; align-items: center; margin-bottom: .7rem; }
.update-avatar { width: 40px; height: 40px; object-fit: contain; background: var(--teal); border-radius: 50%; padding: 6px; }
.update-author { margin: 0; font-weight: 700; }
.update-date { margin: 0; font-size: .88rem; } .update-date a { color: var(--muted); }
.update-body p:last-child { margin-bottom: 0; }
.update-tags { margin: .8rem 0 0; color: var(--teal-3); font-weight: 600; font-size: .92rem; }

.contact-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 2.5rem; }
@media (max-width: 760px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-box { background: var(--bg-soft); border-radius: var(--radius); padding: 1.8rem; border-top: 4px solid var(--gold); }
.contact-box h2 { font-size: 1.5rem; }
.contact-email { font-size: 1.25rem; font-weight: 700; word-break: break-all; }

/* Footer */
.site-footer { background: var(--teal); color: #b9cccc; padding-top: 3rem; border-top: 4px solid var(--gold); }
.site-footer a { color: #e8f0f0; }
.site-footer a:hover { color: var(--gold-light); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1.2fr; gap: 2rem; padding-bottom: 2rem; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }
.brand--footer { margin-bottom: 1rem; }
.footer-heading { font-family: var(--sans); font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-light); font-weight: 700; margin-bottom: .8rem; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: .4rem; }
.footer-note { max-width: 26rem; }
.footer-legal { border-top: 1px solid rgba(255,255,255,.12); padding: 1.2rem 0 1.6rem; font-size: .9rem; }
.footer-legal p { margin: 0 0 .4rem; }
.footer-legal .small { color: #93acad; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* Headshot slot (placeholder until a photo is added) */
.headshot-slot { float: right; width: 180px; height: 220px; margin: .3rem 0 1rem 1.5rem; border: 2px dashed #b9c4c5; border-radius: var(--radius); background: var(--bg-soft); display: flex; align-items: center; justify-content: center; text-align: center; color: var(--muted); font-size: .9rem; }
.headshot-slot img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); }
@media (max-width: 560px) { .headshot-slot { float: none; margin: 0 0 1.2rem; width: 150px; height: 180px; } }
.prose h2 { clear: both; }

/* Vision & motto */
.vision-band { background: #fff; padding: clamp(3rem, 7vw, 5rem) 0; text-align: center; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); position: relative; }
.vision-band::before { content: ""; display: block; width: 72px; height: 4px; background: var(--gold-grad); margin: 0 auto 1.4rem; border-radius: 2px; }
.vision-quote { margin: 0 auto; max-width: 52rem; font-family: var(--serif); font-style: italic; color: var(--gray); font-size: 1.6rem; line-height: 1.35; border-left: 4px solid var(--gold); padding: .2rem 0 .2rem 1.3rem; }
.vision-quote p { margin: 0; }
.vision-quote--lg { font-size: clamp(1.7rem, 3.6vw, 2.6rem); border-left: 0; padding: 0; }
.vision-motto { font-family: var(--serif); font-style: italic; font-size: 1.25rem; margin: 1rem 0 0; background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; font-weight: 600; display: inline-block; }
.vision-inline { background: var(--bg-soft); border-radius: var(--radius); padding: 1.6rem 1.8rem; margin-bottom: 2rem; border-top: 4px solid var(--gold); }
.vision-inline h2 { margin-top: 0 !important; font-size: 1.5rem; }
.vision-inline .vision-quote { margin: 0; font-size: 1.45rem; }
.prose .vision-inline blockquote { background: none; }
.post-cta .vision-motto { margin: 0 0 .4rem; font-size: 1.1rem; }

/* Headshot */
.headshot { float: right; width: 210px; margin: .3rem 0 1rem 1.75rem; }
.headshot img { display: block; width: 100%; height: auto; border-radius: 12px; border: 3px solid var(--gold); box-shadow: var(--shadow); }
@media (max-width: 560px) { .headshot { float: none; width: 170px; margin: 0 0 1.2rem; } }

/* Footer vision */
.footer-vision { margin: 0 0 .5rem; font-family: var(--serif); font-style: italic; font-size: 1.15rem; color: #e8f0f0; max-width: 26rem; line-height: 1.4; }
.footer-vision p { margin: 0; }
.footer-motto { font-family: var(--serif); font-style: italic; color: var(--gold-light); margin: 0 0 1rem; font-size: 1.05rem; }
.update-signoff { margin: .8rem 0 0; font-size: .88rem; color: var(--muted); }
.prose > h2:first-child { margin-top: 0; }

/* Mission & vision */
.vision-band .eyebrow { font-family: var(--sans); font-size: .8rem; margin-bottom: 1.6rem; }
.mv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem 3rem; text-align: left; align-items: start; }
.mv-grid--lg { max-width: 64rem; margin: 0 auto; }
.mv-label { font-family: var(--sans); font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; color: var(--teal-3); margin: 0 0 .7rem !important; }
.mv-mission { margin: 0; font-size: 1.08rem; line-height: 1.7; color: var(--ink); }
.mv-grid--lg .mv-mission { font-size: 1.15rem; }
.mv-grid .vision-quote { margin: 0; max-width: none; border-left: 4px solid var(--gold); padding: .1rem 0 .1rem 1.2rem; font-size: 1.45rem; }
.mv-grid .vision-quote--lg { font-size: clamp(1.5rem, 2.6vw, 1.95rem); }
.vision-band .vision-motto { margin-top: 1.8rem; }
.vision-inline .mv-grid { gap: 1.2rem 2rem; }
.vision-inline .mv-label { font-size: .75rem; }
.vision-inline .mv-mission { font-size: 1rem; }
.vision-inline .vision-quote { font-size: 1.3rem; }
@media (max-width: 760px) { .mv-grid { grid-template-columns: 1fr; } }

/* Contact extras */
.hero-actions { margin: 1.4rem 0 0; }
.contact-box h2 + p { margin-bottom: 1rem; }
.contact-box h2:not(:first-child) { margin-top: 1.4rem; }
.form-embed { position: relative; width: 100%; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; }
.form-embed iframe { width: 100%; height: 1100px; border: 0; display: block; }
.affiliations { padding-left: 1.2rem; }
.footer-affil { font-size: .92rem; margin: -.4rem 0 0; }
.card--narrow { max-width: 46rem; }
.card-title-link { color: inherit; text-decoration: none; }
.lede-link { color: var(--gold-light); }

/* v5: mission & vision with equal weight */
.mv-grid, .mv-grid--lg { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
.mv-item { border-left: 4px solid var(--gold); padding: .1rem 0 .1rem 1.2rem; }
.mv-text { margin: 0; font-family: var(--serif); font-style: normal; color: var(--gray); font-size: 1.3rem; line-height: 1.5; }
.mv-grid--lg .mv-text { font-size: clamp(1.25rem, 2vw, 1.45rem); }
.vision-inline .mv-text { font-size: 1.15rem; }
.footer-vision { margin: .4rem 0 1rem; }
.contact-box { align-self: start; }
.form-embed iframe { height: 2000px; }

/* Coming soon */
.tag--soon { background: var(--gold-grad); color: #2a2208; }
.pill-soon { display: inline-block; margin-left: .35rem; font-size: .68rem; letter-spacing: .06em; text-transform: uppercase; font-weight: 700; background: var(--gold-grad); color: #2a2208; padding: .05rem .45rem; border-radius: 99px; vertical-align: middle; }
.soon-note { background: #fbf3d9; border-left: 4px solid var(--gold); padding: .7rem 1rem; border-radius: 0 6px 6px 0; }
.badge-slot img { width: 200px; height: auto; }
