/* ===========================================================
   Sustain Health — design tokens
   Pine (deep forest) + Gold (mustard) sampled from brand mark
   Fraunces (display/editorial serif) + Inter Tight (body)
=========================================================== */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,340;0,9..144,440;0,9..144,560;1,9..144,400;1,9..144,500&family=Inter+Tight:wght@400;500;600;700&display=swap');

:root {
  /* color */
  --pine: #1f3617;
  --pine-deep: #162711;
  --sage: #6f8757;
  --sage-deep: #52683f;
  --sage-mute: #cdd6bf;
  --gold: #e3c34a;
  --gold-soft: #f0dfa0;
  --cream: #f6f1e4;
  --ink: #17210f;

  /* type */
  --font-display: 'Fraunces', ui-serif, Georgia, serif;
  --font-body: 'Inter Tight', ui-sans-serif, system-ui, sans-serif;

  --step-eyebrow: 0.8125rem;
  --step-body: 1.0625rem;
  --step-lede: 1.25rem;
  --step-h3: clamp(1.4rem, 1.1rem + 1vw, 1.85rem);
  --step-h2: clamp(2.1rem, 1.5rem + 2.6vw, 3.4rem);
  --step-h1: clamp(2.75rem, 1.9rem + 4vw, 5.4rem);

  --radius-frame: 4px 120px 4px 4px;
  --container: 1180px;
  --edge: clamp(1.5rem, 5vw, 4rem);

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a { color: inherit; }

.wrap {
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--edge);
  padding-right: var(--edge);
}

.eyebrow {
  font-family: var(--font-body);
  font-size: var(--step-eyebrow);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
}
.eyebrow::before {
  content: '';
  width: 1.6em;
  height: 1px;
  background: currentColor;
  opacity: 0.55;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 440;
  margin: 0;
  letter-spacing: -0.01em;
}

em, i.emph {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  color: var(--gold);
  padding: 0 0.02em;
}

section :is(.on-pine) em, .on-pine em { color: var(--gold); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  padding: 0.95em 1.7em;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.35s var(--ease), background 0.35s var(--ease), color 0.35s var(--ease), border-color .35s var(--ease);
}
.btn-gold { background: var(--gold); color: var(--pine-deep); }
.btn-gold:hover { background: var(--gold-soft); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: inherit; border-color: currentColor; opacity: 0.85; }
.btn-ghost:hover { opacity: 1; transform: translateY(-2px); }
.btn:focus-visible, a:focus-visible, button:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  z-index: 200;
  background: var(--gold);
  color: var(--pine-deep);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.8em 1.3em;
  border-radius: 999px;
  text-decoration: none;
  transition: top 0.25s var(--ease);
}
.skip-link:focus { top: 1rem; }

/* ---------------- Nav ---------------- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(246, 241, 228, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(23, 33, 15, 0.08);
}
.site-nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--ink);
}
.brand img { height: 34px; width: 34px; border-radius: 6px; }
.brand span {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 2.4rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 1px;
  background: var(--pine);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.nav-links a:hover::after { transform: scaleX(1); }
.nav-cta { display: flex; align-items: center; gap: 1.4rem; }
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 44px; height: 44px;
  align-items: center;
  justify-content: center;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: '';
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  position: relative;
  transition: transform .3s var(--ease), opacity .3s var(--ease);
}
.nav-toggle span::before { position: absolute; top: -7px; width: 22px; }
.nav-toggle span::after { position: absolute; top: 7px; width: 22px; }

.mobile-panel {
  position: fixed;
  inset: 76px 0 0 0;
  background: var(--pine);
  color: var(--cream);
  z-index: 99;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2rem;
  padding: 2rem var(--edge);
  transform: translateY(-8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .35s var(--ease), transform .35s var(--ease);
}
.mobile-panel.is-open { opacity: 1; transform: translateY(0); pointer-events: auto; }
.mobile-panel a {
  font-family: var(--font-display);
  font-size: 2rem;
  text-decoration: none;
  color: var(--cream);
}
.mobile-panel .btn-gold { align-self: flex-start; margin-top: 1rem; }

/* ---------------- Hero ---------------- */
.hero {
  background: var(--pine);
  color: var(--cream);
  position: relative;
  overflow: hidden;
  padding: clamp(3.5rem, 8vw, 7rem) 0 clamp(3rem, 6vw, 5rem);
}
.hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  position: relative;
}
.hero-eyebrow { color: var(--sage-mute); margin-bottom: 1.6rem; }
.hero h1 { font-size: var(--step-h1); line-height: 1.02; color: var(--cream); }
.hero-lede {
  font-size: var(--step-lede);
  color: var(--sage-mute);
  max-width: 34em;
  margin: 1.8rem 0 2.4rem;
  line-height: 1.55;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; }
.hero-art { position: relative; max-width: 300px; margin-inline: auto; }
.hero-art svg { width: 100%; height: auto; color: var(--gold); }

/* Page-load sequence: copy rises in staggered, the line-art grows after it */
.hero-copy > * { animation: rise-in 0.8s var(--ease) both; }
.hero-copy .hero-eyebrow { animation-delay: 0.05s; }
.hero-copy h1 { animation-delay: 0.16s; }
.hero-copy .hero-lede { animation-delay: 0.32s; }
.hero-copy .hero-actions { animation-delay: 0.46s; }
@keyframes rise-in {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
svg.draw path {
  transition: stroke-dashoffset 1.1s var(--ease);
}
.leaf {
  opacity: 0;
  transition: opacity 0.9s var(--ease);
}
.leaf.is-visible { opacity: 1; }
.hero-art .leaf { fill: var(--sage-mute); }
.hero-art .leaf.leaf-dark { fill: var(--sage); }
.divider-art .leaf { fill: var(--sage-deep); }

@media (prefers-reduced-motion: reduce) {
  .hero-copy > * { animation: none; opacity: 1; transform: none; }
  svg.draw path { transition: none; }
  .leaf { opacity: 1; transition: none; }
}

/* ---------------- Philosophy ---------------- */
.philosophy {
  background: var(--cream);
  padding: clamp(4rem, 9vw, 7.5rem) 0;
}
.philosophy .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}
.philosophy .col-quote { grid-column: 1 / 2; }
.philosophy .thesis {
  margin: 1.4rem 0 0;
  font-size: var(--step-h2);
  line-height: 1.14;
}
.philosophy .col-support {
  grid-column: 2 / 3;
  padding-top: clamp(3.2rem, 6vw, 5rem);
}
.philosophy .col-support p { max-width: 32em; color: rgba(23,33,15,0.78); }
.philosophy .divider-art { width: 64px; height: auto; color: var(--pine); opacity: 0.85; margin-bottom: 1.6rem; }

/* ---------------- The Work ---------------- */
.work {
  background: var(--pine-deep);
  color: var(--cream);
  padding: clamp(4rem, 9vw, 7.5rem) 0;
}
.work-head { max-width: 40em; margin-bottom: clamp(2.5rem, 6vw, 4rem); }
.work-head .eyebrow { color: var(--sage-mute); margin-bottom: 1.2rem; }
.work-head h2 { color: var(--cream); }
.work-list { border-top: 1px solid rgba(246,241,228,0.16); }
.work-item {
  display: grid;
  grid-template-columns: minmax(0, 0.6fr) minmax(0, 1.4fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  padding: clamp(2.2rem, 5vw, 3rem) 0;
  border-bottom: 1px solid rgba(246,241,228,0.16);
}
.work-item h3 {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
}
.work-mark { width: 16px; height: 22px; flex: none; color: var(--gold); opacity: 0.9; }
.work-item p { color: rgba(246,241,228,0.82); max-width: 38em; margin: 0; }
.work-item .tag {
  display: inline-block;
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--sage-mute);
  font-weight: 500;
}

/* ---------------- Meet Us ---------------- */
.meet {
  background: var(--cream);
  padding: clamp(4rem, 9vw, 7.5rem) 0;
}
.meet .wrap {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}
.meet-photo {
  position: relative;
  border-radius: var(--radius-frame);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: var(--pine);
}
.meet-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 22%;
  filter: url(#duotone-pine-gold) contrast(1.05);
}
.meet-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(165deg, rgba(31,54,23,0.35) 0%, rgba(31,54,23,0.04) 45%, rgba(227,195,74,0.16) 100%);
  mix-blend-mode: multiply;
}
.meet-copy .eyebrow { color: var(--sage-deep); margin-bottom: 1.2rem; }
.meet-copy h2 { margin-bottom: 1.8rem; }
.bio {
  margin-bottom: 1.7rem;
  padding-left: 1.1rem;
  border-left: 2px solid var(--sage);
}
.bio:last-child { margin-bottom: 0; }
.bio .name {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: 1.15rem;
  color: var(--pine);
  display: block;
  margin-bottom: 0.35rem;
}
.bio p { margin: 0; color: rgba(23,33,15,0.82); max-width: 42em; }

/* ---------------- Closing CTA ---------------- */
.closing {
  background: var(--pine);
  color: var(--cream);
  padding: clamp(4.5rem, 10vw, 8rem) 0;
  text-align: left;
  position: relative;
  overflow: hidden;
}
.closing .wrap { max-width: 46em; }
.closing h2 { color: var(--cream); margin-bottom: 1.4rem; }
.closing p { color: var(--sage-mute); font-size: var(--step-lede); margin-bottom: 2.2rem; max-width: 30em; }

/* ---------------- Footer ---------------- */
.site-footer {
  background: var(--pine-deep);
  color: rgba(246,241,228,0.75);
  padding: 3rem 0 2.2rem;
}
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(246,241,228,0.14);
  padding-bottom: 2rem;
  margin-bottom: 1.6rem;
}
.footer-brand { display: flex; align-items: center; gap: 0.7rem; }
.footer-brand img { height: 30px; width: 30px; border-radius: 6px; }
.footer-brand span {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--gold-soft);
  font-size: 1rem;
}
.footer-links { display: flex; gap: 2rem; list-style: none; margin: 0; padding: 0; }
.footer-links a { text-decoration: none; font-size: 0.9rem; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 2rem;
  justify-content: space-between;
  font-size: 0.82rem;
  opacity: 0.7;
}

/* ---------------- Responsive ---------------- */
@media (max-width: 1024px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-art { order: -1; max-width: 220px; margin: 0 auto; }
  .philosophy .wrap { grid-template-columns: 1fr; }
  .philosophy .col-support { padding-top: 0; }
  .meet .wrap { grid-template-columns: 1fr; }
  .meet-photo { max-width: 420px; margin: 0 auto; }
}

@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .nav-cta .btn-gold { display: none; }
  .work-item { grid-template-columns: 1fr; gap: 0.8rem; }
}

@media (max-width: 640px) {
  .site-nav .wrap { height: 68px; }
  .mobile-panel { inset: 68px 0 0 0; }
  .brand span { display: none; }
  .hero { padding-top: 2.5rem; }
  .philosophy .thesis { font-size: clamp(1.7rem, 7vw, 2.2rem); }
}
