/* ==========================================================
   tobint.com — design tokens
   Earthy ranch palette: oak, cream, harvest gold, sage.
   ========================================================== */
:root {
  --oak-900: #1f1712;
  --oak-800: #2d211a;
  --oak-700: #45332a;
  --oak-500: #7a5c48;
  --cream-50: #fbf8f2;
  --cream-100: #f4ede1;
  --cream-200: #e8dcc8;
  --gold-500: #c8962e;
  --gold-400: #ddb04f;
  --sage-600: #5b6e55;
  --sage-100: #e5ebdf;
  --sky-600: #3e6a7c;
  --plum-600: #6b4a6e;

  --text: var(--oak-900);
  --text-muted: #5f4f44;
  --bg: var(--cream-50);
  --surface: #ffffff;
  --border: var(--cream-200);

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius: 14px;
  --shadow: 0 1px 2px rgba(31, 23, 18, .06), 0 8px 24px rgba(31, 23, 18, .07);
  --max: 1160px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.15; margin: 0 0 .5em; font-weight: 600; }
p { margin: 0 0 1em; }
cite { font-style: normal; font-weight: 600; font-size: .85em; color: var(--gold-500); white-space: nowrap; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 16px; }
@media (min-width: 640px) { .container { padding: 0 28px; } }
.narrow { max-width: 820px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--oak-900); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip-link:focus { left: 8px; }
.small { font-size: .92rem; color: var(--text-muted); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .8em 1.4em; border-radius: 999px;
  background: var(--oak-900); color: var(--cream-50);
  font-weight: 600; font-size: .95rem; text-decoration: none;
  border: 2px solid var(--oak-900);
  transition: transform .15s ease, background .15s ease, color .15s ease;
}
.btn:hover { transform: translateY(-1px); background: var(--oak-700); border-color: var(--oak-700); }
.btn:focus-visible, a:focus-visible, button:focus-visible { outline: 3px solid var(--gold-400); outline-offset: 3px; }
.btn-ghost { background: transparent; color: var(--oak-900); }
.btn-ghost:hover { background: var(--oak-900); color: var(--cream-50); }
.btn-small { padding: .55em 1.1em; font-size: .85rem; }
.btn-gold { background: var(--gold-500); border-color: var(--gold-500); color: var(--oak-900); }
.btn-gold:hover { background: var(--gold-400); border-color: var(--gold-400); }
.btn-ghost-light { background: transparent; color: var(--cream-50); border-color: var(--cream-50); }
.btn-ghost-light:hover { background: var(--cream-50); color: var(--oak-900); border-color: var(--cream-50); }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 248, 242, .88);
  backdrop-filter: saturate(150%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: .55rem; text-decoration: none; }
.brand-mark { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--oak-900); color: var(--gold-400); font-size: 16px; }
.brand-name { font-family: var(--font-display); font-weight: 600; font-size: 1.2rem; }
.nav-links { display: flex; align-items: center; gap: 1.6rem; list-style: none; margin: 0; padding: 0; }
.nav-links a:not(.btn) { text-decoration: none; font-weight: 500; font-size: .95rem; color: var(--text-muted); }
.nav-links a:not(.btn):hover { color: var(--text); }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle .bar { display: block; width: 22px; height: 2px; background: var(--oak-900); margin: 5px 0; transition: transform .2s, opacity .2s; }

@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; top: 64px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--cream-50); border-bottom: 1px solid var(--border);
    padding: 8px 16px 16px; display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links li a:not(.btn) { display: block; padding: 12px 0; border-bottom: 1px solid var(--border); }
  .nav-links li .btn { margin-top: 12px; width: 100%; }
  .nav-toggle[aria-expanded="true"] .bar:nth-child(2) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .bar:nth-child(3) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] .bar:nth-child(4) { transform: translateY(-7px) rotate(-45deg); }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 96px 0 88px;
  background:
    radial-gradient(1200px 500px at 85% -10%, rgba(200, 150, 46, .18), transparent 60%),
    radial-gradient(900px 500px at -10% 110%, rgba(91, 110, 85, .16), transparent 60%),
    var(--cream-50);
  overflow: hidden;
}
.hero-inner { max-width: 880px; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; font-weight: 700; color: var(--gold-500); margin-bottom: 1rem; }
.hero h1 { font-size: clamp(2.5rem, 7vw, 4.6rem); font-weight: 800; letter-spacing: -.02em; }
.hero h1 em { font-weight: 400; color: var(--oak-500); }
.lede { font-size: clamp(1.08rem, 2vw, 1.25rem); color: var(--text-muted); max-width: 680px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .8rem; margin: 1.8rem 0 0; }
.hero-verse {
  margin: 3rem 0 0; padding: 0 0 0 1.2rem; border-left: 3px solid var(--gold-500);
  font-family: var(--font-display); font-style: italic; font-size: 1.15rem; color: var(--oak-700); max-width: 600px;
}
.hero-verse cite { display: block; margin-top: .4rem; font-family: var(--font-body); font-style: normal; }

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
@media (max-width: 640px) { .section { padding: 72px 0; } .hero { padding: 64px 0 64px; } }
.section-head { margin-bottom: 3rem; max-width: 720px; }
.section-head h2 { font-size: clamp(2rem, 4.5vw, 3rem); letter-spacing: -.01em; }
.section-sub { font-size: 1.1rem; color: var(--text-muted); }

/* ---------- Ventures ---------- */
.now { background: var(--cream-100); }
.ventures { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 24px; }
.venture-fitness { grid-column: 1 / -1; }
@media (min-width: 980px) {
  .ventures { grid-template-columns: repeat(2, 1fr); }
}
.venture {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  border-top: 5px solid var(--accent, var(--gold-500));
}
.venture-wide { grid-column: 1 / -1; }
.venture-fitness { --accent: #b86b2b; } /* Titus Fitness brand copper */
.venture .venture-head-logo { flex-direction: column; align-items: flex-start; gap: .6rem; }
.venture .venture-logo { display: block; width: 200px; height: auto; }
.venture-bio { --accent: #308a9b; } /* Biotech Particles brand teal */
.venture-bio .venture-logo { width: 220px; }
.venture-silico { --accent: #ec3013; } /* Silicognitive brand red */
.venture-silico .venture-logo { width: 260px; }
.venture-ranch { --accent: #6e622a; } /* Dead Oak Ranch brand olive */
.venture .venture-logo-wide { width: min(100%, 380px); }
.venture-ranch .ranch-col { background: #f4f0dc; }
.venture-ranch .ranch-col h4 { color: #6e622a; }
.venture-ranch .pill-list li { border-color: #ddd3a6; }
.venture-head { display: flex; align-items: center; gap: 14px; margin-bottom: 1rem; }
.venture-head h3 { font-size: 1.6rem; margin: 0; }
.venture-tag { margin: 0; color: var(--text-muted); font-size: .92rem; }
.venture-icon {
  flex: none; display: grid; place-items: center;
  width: 52px; height: 52px; border-radius: 12px;
  background: color-mix(in srgb, var(--accent) 14%, white);
  color: var(--accent);
}
.venture-icon svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.venture-list { margin: 0 0 1.2rem; padding-left: 1.1rem; }
.venture-list li { margin-bottom: .45rem; }
.venture-list li::marker { color: var(--accent, var(--gold-500)); }
.venture-links { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.2rem; }

.ranch-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 24px; margin-top: .5rem; }
.ranch-col { background: var(--sage-100); border-radius: 12px; padding: 20px 22px; }
.ranch-col h4 { font-size: 1.15rem; color: var(--sage-600); }
.pill-list { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; padding: 0; margin: 0 0 1rem; }
.pill-list li { background: #fff; border: 1px solid #cfd8c6; border-radius: 999px; padding: .3em .85em; font-size: .9rem; font-weight: 500; }

/* ---------- Testimony ---------- */
.testimony { background: var(--bg); }
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 23px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(var(--gold-500), var(--sage-600)); opacity: .5; }
.chapter { display: grid; grid-template-columns: 48px 1fr; gap: 20px; padding-bottom: 2.4rem; position: relative; }
.chapter:last-child { padding-bottom: 0; }
.chapter-num {
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
  background: var(--oak-900); color: var(--gold-400);
  font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; position: relative; z-index: 1;
}
.chapter h3 { font-size: 1.5rem; margin-top: .4rem; }
.chapter p { color: var(--text-muted); font-size: 1.05rem; }

/* ---------- Career ---------- */
.career { background: var(--cream-100); }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 16px; margin: 0 0 40px; }
.stat { background: var(--oak-900); color: var(--cream-50); border-radius: var(--radius); padding: 22px 24px; display: flex; flex-direction: column-reverse; }
.stat dt { font-size: .82rem; text-transform: uppercase; letter-spacing: .1em; color: var(--cream-200); }
.stat dd { margin: 0 0 .2rem; font-family: var(--font-display); font-size: 3rem; font-weight: 800; line-height: 1; color: var(--gold-400); }
.stat-word { font-size: 2rem; font-weight: 600; }
.career-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 20px; }
.career-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.career-card h3 { font-size: 1.3rem; }
.career-card p { color: var(--text-muted); margin: 0; }
.career-card-accent { background: var(--gold-500); border-color: var(--gold-500); }
.career-card-accent h3, .career-card-accent p { color: var(--oak-900); }

/* ---------- Faith / Gospel ---------- */
.faith {
  background:
    radial-gradient(800px 400px at 50% 0%, rgba(221, 176, 79, .22), transparent 70%),
    var(--oak-900);
  color: var(--cream-100);
}
.section-head.light h2 { color: #fff; }
.faith-body p { font-size: 1.12rem; }
.faith-body strong { color: #fff; }
.gospel { counter-reset: g; list-style: none; padding: 0; margin: 2rem 0; display: grid; gap: 14px; }
.gospel li {
  counter-increment: g; position: relative;
  background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 12px; padding: 18px 20px 18px 64px; line-height: 1.6;
}
.gospel li::before {
  content: counter(g); position: absolute; left: 18px; top: 16px;
  width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center;
  background: var(--gold-500); color: var(--oak-900); font-weight: 700;
}
.gospel li strong { display: block; font-family: var(--font-display); font-size: 1.15rem; margin-bottom: .2rem; }
.gospel cite { color: var(--gold-400); }

/* ---------- Connect ---------- */
.connect-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 14px; }
.connect-grid a {
  display: flex; flex-direction: column; gap: .15rem; text-decoration: none;
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 18px 20px;
  transition: border-color .15s, transform .15s;
}
.connect-grid a:hover { border-color: var(--gold-500); transform: translateY(-2px); }
.connect-grid span { font-weight: 600; }
.connect-grid small { color: var(--text-muted); }

/* ---------- Footer ---------- */
.site-footer { background: var(--oak-800); color: var(--cream-200); padding: 48px 0; text-align: center; }
.footer-verse { font-family: var(--font-display); font-style: italic; font-size: 1.15rem; color: var(--cream-100); max-width: 640px; margin: 0 auto 1rem; }
.footer-verse cite { display: block; margin-top: .3rem; font-family: var(--font-body); font-style: normal; }
.footer-meta { font-size: .85rem; margin: 0; opacity: .8; }

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
}
