:root {
  /* Brand palette */
  --moss:   #4A5E3A;
  --forest: #2D5016;
  --sage:   #87A878;
  --fern:   #5C7A45;
  --bark:   #6B4F2E;
  --earth:  #8B6914;
  --mist:   #D4DFC8;
  --stone:  #A89880;

  /* Derived UI tokens */
  --bg: #f5f8f0;
  --bg-alt: var(--mist);
  --ink: #2D5016;          /* forest */
  --ink-soft: #4A5E3A;     /* moss */
  --line: #cdd9bd;         /* light sage border */
  --grad: linear-gradient(100deg, #2D5016 0%, #4A5E3A 50%, #5C7A45 100%);
  --max: 980px;
}

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

body {
  margin: 0;
  background-color: var(--bg);
  background-image: linear-gradient(180deg, #e4ecd9 0%, #eaf0e0 30%, #f0f4ea 60%, var(--bg) 100%);
  background-repeat: no-repeat;
  background-size: 100% 150vh;
  color: var(--ink);
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  font-size: 18px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

h1, h2, h3 { font-family: "Fraunces", Georgia, serif; font-weight: 500; line-height: 1.12; letter-spacing: -0.01em; }

a { color: var(--fern); text-decoration: none; }
a:hover { text-decoration: underline; }

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

.eyebrow {
  display: inline-block;
  font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase;
  font-weight: 700; margin: 0 0 18px;
}

/* ---- Logo ---- */
.logo { display: inline-flex; align-items: center; gap: 11px; }
.logo:hover { text-decoration: none; }
.logo svg { display: block; }
.logo .word { font-family: "Fraunces", serif; font-size: 22px; font-weight: 600; color: var(--ink); letter-spacing: -0.02em; }
.logo .word .dot { color: var(--earth); }

/* ---- Scroll progress bar ---- */
#progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0%;
  background: var(--grad); z-index: 50; transition: width .08s linear;
}

/* ---- Nav ---- */
nav {
  position: sticky; top: 0; z-index: 40;
  background: rgba(245,248,240,0.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s, box-shadow .25s;
}
nav.scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 24px -18px rgba(36,55,20,.4); }
nav .wrap { display: flex; align-items: center; justify-content: space-between; padding: 16px 28px; }
.nav-links { display: flex; align-items: center; gap: 22px; }
.nav-links .link { font-size: 15px; font-weight: 500; color: var(--ink-soft); }
.nav-links .link:hover { color: var(--ink); text-decoration: none; }
.nav-cta {
  font-family: "Inter", sans-serif; font-size: 14px; font-weight: 600; color: #fff;
  background: var(--grad); background-size: 160% 160%; border-radius: 999px;
  padding: 9px 20px; transition: transform .18s, box-shadow .18s, background-position .5s;
  box-shadow: 0 6px 18px -8px rgba(45,80,22,.7);
}
.nav-cta:hover { text-decoration: none; transform: translateY(-1px); background-position: 100% 0; box-shadow: 0 10px 24px -8px rgba(45,80,22,.85); }

/* ---- Buttons ---- */
.btn {
  display: inline-block; font-family: "Inter", sans-serif; font-size: 16px; font-weight: 600;
  background: var(--grad); background-size: 160% 160%; color: #fff; border-radius: 999px; padding: 15px 32px;
  transition: transform .18s, box-shadow .18s, background-position .5s;
  box-shadow: 0 10px 28px -10px rgba(45,80,22,.7);
}
.btn:hover { text-decoration: none; transform: translateY(-2px); background-position: 100% 0; box-shadow: 0 16px 34px -10px rgba(107,79,46,.6); }
.btn.ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--line); box-shadow: none; margin-left: 10px; }
.btn.ghost:hover { border-color: var(--fern); color: var(--fern); box-shadow: 0 8px 22px -12px rgba(45,80,22,.5); }

/* ---- Decorative blobs ---- */
.blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .5; z-index: 0; pointer-events: none; }
.blob.b1 { width: 460px; height: 460px; background: radial-gradient(circle, #2D5016, transparent 70%); top: -160px; right: -120px; animation: float1 14s ease-in-out infinite; }
.blob.b2 { width: 420px; height: 420px; background: radial-gradient(circle, #87A878, transparent 70%); top: 120px; left: -160px; animation: float2 17s ease-in-out infinite; }
.blob.b3 { width: 360px; height: 360px; background: radial-gradient(circle, #8B6914, transparent 70%); bottom: -160px; right: 120px; animation: float1 20s ease-in-out infinite; }
@keyframes float1 { 0%,100%{transform:translate(0,0)} 50%{transform:translate(-30px,30px)} }
@keyframes float2 { 0%,100%{transform:translate(0,0)} 50%{transform:translate(30px,-24px)} }

/* ====================================================
   LANDING / HERO
   ==================================================== */
.landing {
  position: relative; min-height: calc(100vh - 70px); display: flex; align-items: center;
  padding: 64px 0 96px; overflow: hidden;
  background: transparent;
}
@supports (min-height: 100dvh) {
  .landing { min-height: calc(100dvh - 70px); }
}
/* Shorter hero (used on the contact page, which has a calendar below) */
.landing.landing--short { min-height: auto; padding: 72px 0 44px; }
@supports (min-height: 100dvh) {
  .landing.landing--short { min-height: auto; }
}
.landing .wrap { position: relative; z-index: 1; text-align: center; }
.landing .logo-hero { justify-content: center; margin-bottom: 30px; }
.landing .logo-hero .word { font-size: 30px; }
.landing h1 { font-size: clamp(46px, 8vw, 88px); margin: 0 auto 26px; max-width: 16ch; }
.landing .lead { font-size: clamp(19px, 2.4vw, 23px); color: var(--ink-soft); max-width: 52ch; margin: 0 auto; line-height: 1.5; }

.founder-card {
  display: inline-flex; align-items: center; gap: 20px; text-align: left;
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  padding: 12px 26px 12px 12px; margin: 0 auto 46px;
  box-shadow: 0 18px 40px -26px rgba(36,55,20,.45);
}
.founder-card img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; object-position: 50% 35%; box-shadow: 0 0 0 3px transparent; }
.founder-card .fc-role { font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 700; margin: 0 0 2px; }
.founder-card .fc-name { font-family: "Fraunces", serif; font-size: 18px; color: var(--ink); }
.founder-card .fc-sub { font-size: 13px; color: var(--ink-soft); margin: 1px 0 0; }

.landing .actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.landing .actions .btn.ghost { margin-left: 0; }

/* ---- Contact detail card (contact.html) ---- */
.contact-detail {
  background: #fff; border: 1px solid var(--line); border-radius: 22px;
  padding: 34px 38px; max-width: 460px; margin: 0 auto; text-align: left;
  box-shadow: 0 24px 56px -30px rgba(36,55,20,.45);
}
.contact-detail .cd-name { font-family: "Fraunces", serif; font-size: 28px; color: var(--ink); margin: 0; }
.contact-detail .cd-role { font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 700; margin: 4px 0 0; }
.cd-rows { margin-top: 22px; border-top: 1px solid var(--line); }
.cd-row { display: flex; align-items: baseline; justify-content: space-between; gap: 18px; padding: 16px 0; border-bottom: 1px solid var(--line); transition: padding-left .2s; }
.cd-row:hover { text-decoration: none; padding-left: 8px; }
.cd-label { font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-soft); font-weight: 700; }
.cd-value { font-family: "Fraunces", serif; font-size: 21px; }

/* ---- Scheduling / calendar embed ---- */
.schedule { padding: 8px 0 96px; }
.schedule .sched-head { text-align: center; margin-bottom: 30px; }
.schedule .sched-head h2 { font-size: clamp(26px, 4vw, 38px); margin: 0 0 10px; }
.schedule .sched-head p { color: var(--ink-soft); max-width: 46ch; margin: 0 auto; }
.cal-card {
  background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 14px;
  max-width: 920px; margin: 0 auto; overflow: hidden;
  box-shadow: 0 26px 60px -32px rgba(36,55,20,.45);
}
#cal-inline { width: 100%; height: 660px; overflow: auto; border-radius: 12px; }

/* ====================================================
   CONTENT SECTIONS
   ==================================================== */
header.subhero { position: relative; padding: 90px 0 64px; overflow: hidden; }
header.subhero .wrap { position: relative; z-index: 1; }
header.subhero h1 { font-size: clamp(40px, 6.4vw, 70px); margin: 0 0 24px; max-width: 16ch; }
header.subhero .lead { font-size: clamp(18px, 2.2vw, 22px); color: var(--ink-soft); max-width: 58ch; margin: 0; line-height: 1.5; }

section { position: relative; padding: 78px 0; scroll-margin-top: 80px; }
section + section::before {
  content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 64px; height: 3px; border-radius: 3px; background: var(--grad);
}
section h2 { font-size: clamp(28px, 4.2vw, 44px); margin: 0 0 24px; max-width: 22ch; }
section p { color: var(--ink-soft); max-width: 62ch; }
section p strong { color: var(--ink); font-weight: 600; }

.services { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 14px; }
.service {
  background: #fff; padding: 30px 28px; border-radius: 16px; border: 1px solid var(--line);
  position: relative; overflow: hidden;
  transition: transform .22s, box-shadow .22s, border-color .22s;
}
.service::before {
  content: ""; position: absolute; left: 0; top: 0; height: 100%; width: 4px; background: var(--grad);
  transform: scaleY(0); transform-origin: top; transition: transform .3s ease;
}
.service:hover { transform: translateY(-5px); box-shadow: 0 22px 44px -24px rgba(45,80,22,.45); border-color: transparent; }
.service:hover::before { transform: scaleY(1); }
.service .num { font-family: "Fraunces", serif; font-size: 15px; font-weight: 600; }
.service h3 { font-size: 22px; margin: 10px 0 8px; }
.service p { font-size: 15px; margin: 0; line-height: 1.55; }
.service p + p { margin-top: 14px; }
.service-link { font-weight: 600; font-size: 14px; }

/* Hero proof strip */
.hero-proof { font-size: 13px; color: var(--ink-soft); max-width: 64ch; margin: 18px auto 0; line-height: 1.55; }

/* "Applied AI" umbrella over the four service lines */
.umbrella { text-align: center; margin: 6px 0 26px; }
.umbrella-pill {
  display: inline-block; font-family: "Inter", sans-serif; font-weight: 700;
  font-size: 17px; letter-spacing: 0.12em; text-transform: uppercase; color: #fff;
  background: var(--grad); background-size: 160% 160%;
  padding: 12px 32px; border-radius: 999px;
  box-shadow: 0 10px 26px -10px rgba(45,80,22,.6);
}
.umbrella-bracket { display: block; width: 100%; max-width: 560px; height: 44px; margin: 2px auto 0; }
.umbrella-bracket path { fill: none; stroke: var(--line); stroke-width: 2; stroke-linecap: round; }
.umbrella h2 { margin: 4px auto 0; max-width: none; }

.principles { margin-top: 8px; }
.principle { padding: 22px 0; border-bottom: 1px solid var(--line); transition: padding-left .25s; }
.principle:last-child { border-bottom: none; }
.principle:hover { padding-left: 14px; }
.principle h3 { font-size: 20px; margin: 0 0 6px; font-weight: 500; }
.principle p { font-size: 16px; margin: 0; }

.founder-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 48px; align-items: center; }
.founder-photo { position: relative; }
.founder-photo img {
  width: 100%; height: auto; display: block; border-radius: 20px;
  box-shadow: 0 30px 60px -28px rgba(36,55,20,.5); position: relative; z-index: 1;
}
.founder-photo::after {
  content: ""; position: absolute; inset: 18px -18px -18px 18px; border-radius: 24px;
  background: var(--grad); z-index: 0; opacity: .9; filter: blur(2px);
}
.founder .role { font-size: 13px; letter-spacing: 0.06em; font-weight: 700; margin: 0 0 8px; text-transform: uppercase; }
.founder .meta { font-size: 15px; color: var(--ink-soft); margin-top: 18px; }

ul.plain { list-style: none; padding: 0; margin: 10px 0 0; max-width: 62ch; }
ul.plain li { color: var(--ink-soft); padding: 13px 0 13px 30px; border-bottom: 1px solid var(--line); position: relative; transition: padding-left .2s, color .2s; }
ul.plain li:last-child { border-bottom: none; }
ul.plain li::before { content: ""; position: absolute; left: 4px; top: 21px; width: 10px; height: 10px; border-radius: 50%; background: var(--grad); }
ul.plain li:hover { color: var(--ink); padding-left: 36px; }

.why { color: #fff; }
.why-inner {
  background: var(--grad); border-radius: 28px; padding: 56px 48px; position: relative; overflow: hidden;
  box-shadow: 0 30px 70px -34px rgba(45,80,22,.6);
}
.why-inner::after { content: ""; position: absolute; width: 360px; height: 360px; border-radius: 50%; background: rgba(255,255,255,.12); top: -160px; right: -80px; }
.why .eyebrow { color: rgba(255,255,255,.85); -webkit-text-fill-color: rgba(255,255,255,.85); }
.why .pull { color: #fff; font-family: "Fraunces", serif; font-size: clamp(23px, 3.1vw, 32px); font-weight: 400; line-height: 1.34; max-width: 32ch; position: relative; z-index: 1; margin: 0; }
.why p.body { color: rgba(255,255,255,.92); position: relative; z-index: 1; max-width: 60ch; }

#contact { text-align: center; }
#contact h2 { margin: 0 auto 16px; }
#contact .sub { color: var(--ink-soft); margin: 0 auto 36px; max-width: 48ch; }

footer { border-top: 1px solid var(--line); padding: 40px 0 56px; }
footer .wrap { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
footer .legal { font-size: 14px; color: var(--ink-soft); }
footer .brand-sm { font-family: "Fraunces", serif; font-size: 16px; font-weight: 600; }

/* ---- Scroll reveal ---- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); will-change: opacity, transform; }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }
.reveal.d4 { transition-delay: .32s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .blob { animation: none !important; }
  html { scroll-behavior: auto; }
}

/* ---- Responsive ---- */
@media (max-width: 760px) {
  body { font-size: 17px; }
  .founder-grid { grid-template-columns: 1fr; gap: 30px; }
  .founder-photo img { max-width: 420px; margin: 0 auto; }
  .founder-photo::after { inset: 14px -10px -14px 10px; }
}
@media (max-width: 600px) {
  .wrap { padding: 0 20px; }
  nav .wrap { padding: 14px 20px; }
  .services { grid-template-columns: 1fr; }
  .umbrella-bracket { display: none; }
  .umbrella { margin-bottom: 18px; }
  section { padding: 56px 0; }
  .why-inner { padding: 38px 24px; }
  .founder-card { flex-direction: column; text-align: center; border-radius: 22px; padding: 22px; gap: 14px; }
  .nav-links { gap: 14px; }
  .nav-links .link { display: none; }
  .nav-cta { padding: 9px 16px; font-size: 13px; }
  .logo .word { font-size: 19px; }
  .landing .logo-hero .word { font-size: 25px; }
  .landing { padding: 48px 0 72px; }
  .landing h1 { font-size: clamp(34px, 10vw, 52px); }
  .landing .lead { font-size: 18px; }
  header.subhero h1 { font-size: clamp(32px, 9vw, 48px); }
  .cd-value, .contact-detail .cd-name { word-break: break-word; }
  #cal-inline { height: 580px; }
}
@media (max-width: 380px) {
  .wrap { padding: 0 16px; }
  nav .wrap { padding: 12px 16px; }
  .landing h1 { font-size: clamp(30px, 9.5vw, 40px); }
  .btn { padding: 14px 24px; font-size: 15px; }
  .contact-detail { padding: 22px 18px; }
}
