:root {
  --ink: #101722;
  --muted: #5d687a;
  --line: #d8dde4;
  --soft: #f3efec;
  --brown: #6d4a3b;
  --brown-deep: #56301d;
  --green: #54b58a;
  --green-soft: #e8f6ef;
  --max: 1200px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

svg {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.shell {
  width: min(calc(100% - 64px), var(--max));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 10px;
  left: 10px;
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  transform: translateY(-160%);
}

.skip-link:focus { transform: translateY(0); }

.site-header {
  position: relative;
  z-index: 20;
  border-bottom: 1px solid #e4e7eb;
  background: rgba(255, 255, 255, .96);
}

.header-inner {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.brand { display: inline-flex; }
.brand img { display: block; width: 201px; height: auto; }

.primary-nav {
  display: flex;
  align-items: center;
  gap: 30px;
  font-size: 14px;
}

.primary-nav > a:not(.button), .nav-menu summary {
  color: #313a48;
  text-decoration: none;
}

.primary-nav > a:not(.button):hover, .nav-menu summary:hover { color: var(--brown-deep); }

.nav-menu { position: relative; }
.nav-menu summary { cursor: pointer; list-style: none; }
.nav-menu summary::-webkit-details-marker { display: none; }
.nav-menu summary span { margin-left: 3px; }

.nav-popover {
  position: absolute;
  top: calc(100% + 14px);
  left: -16px;
  width: 180px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}

.nav-menu-right .nav-popover { right: -16px; left: auto; }

.nav-popover a {
  display: block;
  padding: 10px 12px;
  border-radius: 8px;
  color: #303846;
  text-decoration: none;
}

.nav-popover a:hover, .nav-popover a:focus-visible { background: var(--soft); }

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 500;
  text-decoration: none;
  transition: transform .2s ease, background-color .2s ease, color .2s ease;
}

.button:hover { transform: translateY(-2px); }
.button-solid { background: var(--brown); color: #fff; }
.button-solid:hover { background: var(--brown-deep); }
.button-outline { border-color: var(--line); background: #fff; color: var(--ink); }
.button-outline:hover { border-color: #9ba3ad; }
.button-light { min-width: 202px; background: #fff; color: var(--brown-deep); }
.header-cta { min-height: 48px; padding-inline: 26px; }

:focus-visible { outline: 3px solid #9a7e6c; outline-offset: 3px; }

.hero {
  min-height: 600px;
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(520px, 1.05fr);
  align-items: center;
  gap: 32px;
  padding-block: 58px 46px;
}

.eyebrow {
  margin: 0;
  color: #3f5066;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 620px;
  margin: 28px 0 16px;
  font-size: clamp(48px, 4vw, 58px);
  line-height: .98;
  letter-spacing: -.052em;
}

.hero h1 span { white-space: nowrap; }

.hero-intro {
  max-width: 560px;
  margin: 0;
  color: var(--muted);
  font-size: 20px;
  line-height: 1.48;
}

.hero-actions { display: flex; gap: 16px; margin-top: 34px; }

.hero-visual {
  position: relative;
  min-height: 500px;
  isolation: isolate;
}

.stones {
  position: absolute;
  inset: 0 0 auto auto;
  z-index: -1;
  width: min(100%, 500px);
  height: auto;
}

.workflow-card {
  position: absolute;
  z-index: 2;
  width: 250px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  opacity: 1;
  transition: opacity .5s ease, transform .5s ease, visibility .5s;
}

.is-motion-ready .workflow-card {
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
}

.is-motion-ready .workflow-card.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.workflow-onboarding { top: 8px; left: 4px; }
.workflow-intake { right: -14px; bottom: 52px; }

.workflow-title {
  display: flex;
  align-items: center;
  gap: 9px;
  padding-bottom: 10px;
  border-bottom: 1px solid #edf0f2;
}

.workflow-title svg { width: 23px; height: 23px; }
.workflow-title h2 { margin: 0; font-size: 13px; line-height: 1.2; }

.workflow-row {
  min-height: 45px;
  display: grid;
  grid-template-columns: 18px 1fr auto;
  align-items: center;
  gap: 8px;
  color: #536071;
  font-size: 10px;
  white-space: nowrap;
}

.check {
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  border: 1px solid #bfc6cc;
  border-radius: 50%;
  background: #fff;
  transition: background-color .3s ease, border-color .3s ease;
}

.check svg {
  width: 11px;
  height: 11px;
  stroke: #fff;
  stroke-width: 2.2;
  stroke-dasharray: 14;
  stroke-dashoffset: 14;
  transition: stroke-dashoffset .35s ease;
}

.workflow-row.is-complete .check { border-color: var(--green); background: var(--green); }
.workflow-row.is-complete .check svg { stroke-dashoffset: 0; }

.status {
  min-width: 55px;
  padding: 6px 7px;
  border-radius: 8px;
  background: #f5f2ef;
  color: #807369;
  text-align: center;
  transition: background-color .3s ease, color .3s ease;
}

.workflow-row.is-complete .status { background: var(--green-soft); color: #397d66; }

.motion-toggle {
  position: absolute;
  right: 0;
  bottom: 0;
  z-index: 3;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,.94);
  color: #536071;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
}

.motion-toggle svg { width: 15px; height: 15px; stroke-width: 2; }
.motion-toggle .play-icon { display: none; }
.motion-toggle[aria-pressed="true"] .pause-icon { display: none; }
.motion-toggle[aria-pressed="true"] .play-icon { display: block; }

.products { padding-block: 26px 44px; }
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 18px; }

.product-card {
  position: relative;
  min-height: 260px;
  padding: 28px 30px;
  border: 1px solid var(--line);
  border-radius: 16px;
  text-decoration: none;
  transition: border-color .2s ease, transform .2s ease;
}

.product-card:hover { border-color: #9ea7b1; transform: translateY(-3px); }
.icon-tile, .round-icon {
  display: grid;
  place-items: center;
  background: var(--soft);
  color: var(--brown-deep);
}

.icon-tile { width: 72px; height: 72px; border-radius: 10px; }
.icon-tile svg { width: 36px; height: 36px; }
.card-arrow {
  position: absolute;
  top: 38px;
  right: 30px;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  font-size: 22px;
}

.product-card h2 { margin: 24px 0 8px; font-size: 25px; letter-spacing: -.025em; }
.product-card p { max-width: 260px; margin: 0; color: var(--muted); font-size: 18px; line-height: 1.4; }

.principles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 42px 38px;
  border: 1px solid var(--line);
  border-radius: 16px;
}

.principle { display: flex; align-items: center; gap: 24px; padding-inline: 20px; }
.principle + .principle { border-left: 1px solid var(--line); }
.round-icon { width: 84px; height: 84px; flex: 0 0 auto; border-radius: 50%; }
.round-icon svg { width: 40px; height: 40px; }
.principle h2 { margin: 0 0 8px; font-size: 21px; letter-spacing: -.025em; }
.principle p { margin: 0; color: var(--muted); font-size: 14px; }

.approach { padding-block: 58px 64px; }
.steps {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.steps li {
  position: relative;
  min-width: 92px;
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  font-size: 16px;
}

.steps li:not(:last-child)::after {
  content: "→";
  position: absolute;
  top: 29px;
  right: -14px;
  color: #8e9baa;
  font-size: 34px;
  font-weight: 200;
}

.steps span {
  width: 80px;
  height: 80px;
  display: grid;
  place-items: center;
  border: 1px solid #cfd5dc;
  border-radius: 50%;
}

.steps svg { width: 34px; height: 34px; }

.closing {
  min-height: 250px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background: linear-gradient(115deg, #735344, #8b6a5b);
  color: #fff;
  text-align: center;
}

.closing .eyebrow { color: #fff; font-size: 12px; }
.closing h2 { margin: 28px 0 22px; font-size: clamp(40px, 5vw, 58px); line-height: 1; letter-spacing: -.045em; }

.site-footer {
  min-height: 104px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 44px;
  margin-top: 34px;
  border-top: 1px solid #e4e7eb;
  color: #5c6675;
  font-size: 13px;
}

.site-footer nav { display: flex; gap: 34px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--brown-deep); }
.site-footer p { margin: 0; padding-left: 38px; border-left: 1px solid var(--line); }

@media (max-width: 1020px) {
  .hero { grid-template-columns: 1fr 1fr; }
  .hero h1 { font-size: 52px; }
  .hero-visual { transform: scale(.88); transform-origin: center right; }
  .principles { padding-inline: 14px; }
  .principle { gap: 14px; padding-inline: 12px; }
  .round-icon { width: 68px; height: 68px; }
}

@media (max-width: 820px) {
  .shell { width: min(calc(100% - 40px), var(--max)); }
  .header-inner { min-height: 74px; }
  .brand img { width: 170px; }
  .primary-nav { gap: 16px; }
  .primary-nav > a:not(.button), .primary-nav > details:first-child { display: none; }
  .header-cta { min-height: 42px; padding-inline: 18px; }
  .hero { grid-template-columns: 1fr; padding-top: 64px; }
  .hero-copy { text-align: center; }
  .hero h1, .hero-intro { margin-inline: auto; }
  .hero-actions { justify-content: center; }
  .hero-visual { width: min(100%, 590px); margin-inline: auto; transform: none; }
  .product-grid { grid-template-columns: 1fr; }
  .product-card { min-height: 220px; }
  .principles { grid-template-columns: 1fr; padding: 12px 28px; }
  .principle { padding-block: 24px; }
  .principle + .principle { border-top: 1px solid var(--line); border-left: 0; }
  .steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px 10px; }
  .steps li:not(:last-child)::after { display: none; }
}

@media (max-width: 560px) {
  .shell { width: min(calc(100% - 28px), var(--max)); }
  .brand img { width: 148px; }
  .primary-nav { gap: 10px; }
  .nav-menu-right summary { font-size: 13px; }
  .header-cta { min-height: 40px; padding-inline: 14px; font-size: 13px; }
  .hero { min-height: auto; padding-block: 52px 32px; }
  .hero h1 { margin-top: 22px; font-size: clamp(42px, 13vw, 58px); }
  .hero h1 span { white-space: normal; }
  .hero-intro { font-size: 18px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-visual { min-height: 475px; margin-top: 10px; }
  .stones { top: 16px; left: 50%; width: min(430px, 100%); transform: translateX(-50%); }
  .workflow-card { width: 230px; }
  .workflow-onboarding { top: 2px; left: 0; }
  .workflow-intake { right: 0; bottom: 42px; }
  .motion-toggle { right: 50%; transform: translateX(50%); }
  .products { padding-top: 16px; }
  .product-card { min-height: 210px; padding: 24px; }
  .card-arrow { top: 30px; right: 24px; }
  .principles { padding-inline: 18px; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .closing { min-height: 260px; padding: 30px 20px; }
  .closing h2 { font-size: 42px; }
  .site-footer { min-height: 130px; flex-direction: column; justify-content: center; gap: 20px; }
  .site-footer nav { gap: 24px; }
  .site-footer p { padding: 0; border: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .button:hover, .product-card:hover { transform: none; }
  .motion-toggle { display: none; }
  .is-motion-ready .workflow-card { opacity: 0; visibility: hidden; transform: none; }
  .is-motion-ready .workflow-onboarding { opacity: 1; visibility: visible; }
}
