:root {
  --cream: #f7f1e7;
  --paper: #fffdf8;
  --forest: #31463a;
  --rust: #b75d3e;
  --sage: #72806b;
  --ink: #252b27;
}

* { box-sizing: border-box; }
body { overflow-x: hidden; }
::selection { background: #b75d3e; color: white; }

.skip-link {
  position: fixed; left: 1rem; top: -5rem; z-index: 100;
  border-radius: .75rem; background: var(--paper); padding: .8rem 1rem;
  color: var(--forest); font-weight: 700; box-shadow: 0 8px 30px rgb(0 0 0 / .12);
}
.skip-link:focus { top: 1rem; }

.nav-link {
  position: relative; padding: .5rem 0; font-size: .95rem; font-weight: 600;
  color: rgb(49 70 58 / .72); transition: color .2s ease;
}
.nav-link::after {
  content: ""; position: absolute; right: 0; bottom: 0; left: 0; height: 2px;
  background: var(--rust); transform: scaleX(0); transform-origin: right; transition: transform .25s ease;
}
.nav-link:hover, .nav-link.is-active { color: var(--forest); }
.nav-link:hover::after, .nav-link.is-active::after { transform: scaleX(1); transform-origin: left; }

.button {
  display: inline-flex; min-height: 3.25rem; align-items: center; justify-content: center;
  border-radius: 999px; padding: .8rem 1.45rem; font-size: .92rem; font-weight: 700;
  transition: transform .2s ease, background-color .2s ease, border-color .2s ease;
}
.button:hover { transform: translateY(-2px); }
.button-small { min-height: 2.75rem; padding: .65rem 1.15rem; font-size: .85rem; }
.button-rust { background: var(--rust); color: white; }
.button-rust:hover { background: #9e4e34; }
.button-dark { background: var(--forest); color: white; }
.button-dark:hover { background: #24382d; }
.button-outline { border: 1px solid rgb(49 70 58 / .3); color: var(--forest); }
.button-outline:hover { border-color: var(--forest); background: var(--paper); }

.eyebrow {
  font-size: .75rem; font-weight: 700; letter-spacing: .19em; line-height: 1.5;
  text-transform: uppercase; color: var(--rust);
}
.eyebrow-light { color: #d99576; }
.section-title {
  margin-top: 1.1rem; font-family: Fraunces, serif; font-size: clamp(2.35rem, 5vw, 3.5rem);
  font-weight: 600; line-height: 1.05; letter-spacing: -.028em; color: var(--forest);
}
.section-copy { margin-top: 1.25rem; font-size: 1.1rem; line-height: 1.8; color: rgb(37 43 39 / .68); }
.text-link { display: inline-flex; gap: .4rem; align-items: center; color: var(--forest); font-weight: 700; }
.text-link span { transition: transform .2s ease; }
.text-link:hover span { transform: translateX(.25rem); }

.hero-grid {
  background-image: linear-gradient(rgb(49 70 58 / .055) 1px, transparent 1px), linear-gradient(90deg, rgb(49 70 58 / .055) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to right, black, transparent 78%);
}
.browser-frame { border: 1px solid rgb(49 70 58 / .13); }
.check-item::before { content: "✓"; margin-right: .45rem; color: var(--rust); }

.service-card {
  min-height: 24rem; border: 1px solid rgb(49 70 58 / .12); border-radius: 1.5rem;
  background: var(--cream); padding: 2rem; display: flex; flex-direction: column;
  transition: transform .25s ease, box-shadow .25s ease;
}
.service-card:hover { transform: translateY(-5px); box-shadow: 0 18px 50px rgb(49 70 58 / .1); }
.service-card .service-number { font-family: Fraunces, serif; font-size: 1.1rem; color: var(--rust); }
.service-card h3 { margin-top: auto; font-family: Fraunces, serif; font-size: 2rem; font-weight: 600; color: var(--forest); }
.service-card p { margin-top: 1rem; font-size: .96rem; line-height: 1.7; color: rgb(37 43 39 / .65); }
.service-card a { margin-top: 1.5rem; font-size: .9rem; font-weight: 700; color: var(--forest); }
.service-card-dark { background: var(--forest); color: var(--cream); }
.service-card-dark .service-number { color: #d99576; }
.service-card-dark h3, .service-card-dark a { color: var(--cream); }
.service-card-dark p { color: rgb(247 241 231 / .65); }

.project-card {
  overflow: hidden; border: 1px solid rgb(49 70 58 / .12); border-radius: 1.5rem;
  background: var(--paper); transition: transform .25s ease, box-shadow .25s ease;
}
.project-card:hover { transform: translateY(-5px); box-shadow: 0 18px 50px rgb(49 70 58 / .1); }
.project-preview { display: grid; min-height: 20rem; place-items: center; overflow: hidden; padding: 2.5rem 2rem; }
.mini-window {
  width: 92%; max-width: 18rem; border-radius: 1rem; background: var(--paper); padding: 1.4rem;
  box-shadow: 0 18px 35px rgb(37 43 39 / .16); transition: transform .3s ease;
}
.project-card:hover .mini-window { transform: scale(1.03) rotate(0); }
.project-type { font-size: .7rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--rust); }
.project-card h3 { margin-top: .65rem; font-family: Fraunces, serif; font-size: 1.65rem; font-weight: 600; color: var(--forest); }
.project-card p:last-child { margin-top: .65rem; line-height: 1.65; color: rgb(37 43 39 / .62); }

.route-list { position: relative; }
.route-list::before { content: ""; position: absolute; left: 1.25rem; top: 1.4rem; bottom: 1.4rem; width: 1px; background: rgb(49 70 58 / .25); }
.route-list li { position: relative; display: grid; grid-template-columns: 2.5rem 1fr; gap: 1.25rem; padding-bottom: 2.25rem; }
.route-list li:last-child { padding-bottom: 0; }
.route-list li > span {
  z-index: 1; display: grid; width: 2.5rem; height: 2.5rem; place-items: center; border-radius: 999px;
  background: var(--rust); color: white; font-weight: 700; box-shadow: 0 0 0 7px #e6e9e1;
}
.route-list h3 { font-family: Fraunces, serif; font-size: 1.5rem; font-weight: 600; color: var(--forest); }
.route-list p { margin-top: .5rem; font-size: .96rem; line-height: 1.7; color: rgb(37 43 39 / .62); }

.page-hero { position: relative; overflow: hidden; padding: 5.5rem 0 6.5rem; border-bottom: 1px solid rgb(49 70 58 / .1); }
.page-hero::after {
  content: ""; position: absolute; width: 32rem; height: 32rem; right: -12rem; bottom: -18rem;
  border: 1px solid rgb(183 93 62 / .28); border-radius: 50%; box-shadow: 0 0 0 4rem rgb(183 93 62 / .04), 0 0 0 8rem rgb(114 128 107 / .04);
}
.page-hero h1 { margin-top: 1.4rem; font-family: Fraunces, serif; font-size: clamp(3.1rem, 7vw, 5.5rem); font-weight: 600; line-height: .98; letter-spacing: -.04em; color: var(--forest); }
.page-hero p:last-child { margin-top: 1.6rem; max-width: 48rem; font-size: 1.18rem; line-height: 1.75; color: rgb(37 43 39 / .67); }

.service-detail { scroll-margin-top: 5rem; padding: 5.5rem 0; }
.detail-number { font-family: Fraunces, serif; font-size: 4.5rem; font-weight: 600; line-height: 1; color: rgb(183 93 62 / .22); }
.service-detail h2 { margin-top: 1rem; max-width: 30rem; font-family: Fraunces, serif; font-size: clamp(2.5rem, 5vw, 3.5rem); font-weight: 600; line-height: 1.05; color: var(--forest); }
.feature-list { display: grid; gap: .8rem; }
.feature-list li { position: relative; padding-left: 1.65rem; line-height: 1.65; color: rgb(37 43 39 / .68); }
.feature-list li::before { content: ""; position: absolute; left: 0; top: .62rem; width: .48rem; height: .48rem; border-radius: 50%; background: var(--rust); }
.feature-list-light li { color: rgb(247 241 231 / .7); }
.feature-list-light li::before { background: #d99576; }

.accordion-trigger { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.35rem 0; text-align: left; font-size: 1rem; font-weight: 700; color: var(--forest); }
.accordion-plus { display: grid; flex: 0 0 auto; width: 2rem; height: 2rem; place-items: center; border: 1px solid rgb(49 70 58 / .18); border-radius: 50%; transition: transform .2s ease; }
.accordion-trigger[aria-expanded="true"] .accordion-plus { transform: rotate(45deg); }
.accordion-panel { padding: 0 3rem 1.4rem 0; }
.accordion-panel p { font-size: .95rem; line-height: 1.7; color: rgb(37 43 39 / .62); }

.work-section { scroll-margin-top: 5rem; padding: 6rem 0; }
.work-section h2 { margin-top: .9rem; font-family: Fraunces, serif; font-size: clamp(2.6rem, 5vw, 4rem); font-weight: 600; line-height: 1.04; color: var(--forest); }
.work-lede { margin-top: 1.35rem; font-size: 1.12rem; line-height: 1.8; color: rgb(37 43 39 / .66); }
.work-meta { border-top: 1px solid rgb(49 70 58 / .18); padding-top: 1rem; }
.work-meta span { display: block; font-size: .68rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: rgb(37 43 39 / .45); }
.work-meta strong { display: block; margin-top: .35rem; color: var(--forest); }
.demo-shell { overflow: hidden; border: 1px solid rgb(49 70 58 / .14); border-radius: 1.5rem; background: var(--cream); box-shadow: 0 18px 50px rgb(49 70 58 / .1); }
.demo-bar { display: flex; align-items: center; gap: .4rem; border-bottom: 1px solid rgb(49 70 58 / .1); background: var(--paper); padding: .85rem 1rem; }
.demo-bar span { width: .58rem; height: .58rem; border-radius: 50%; background: #d99576; }
.demo-bar span:nth-child(2) { background: #c9b36b; }
.demo-bar span:nth-child(3) { background: #72806b; }
.demo-bar strong { margin-left: .5rem; font-size: .7rem; color: rgb(37 43 39 / .45); }
.demo-label { font-size: .78rem; font-weight: 700; color: var(--forest); }
.demo-input { display: block; width: 100%; margin-top: .45rem; border: 1px solid rgb(49 70 58 / .18); border-radius: .8rem; background: var(--paper); padding: .75rem .8rem; font-size: .85rem; color: var(--ink); }
.demo-input:focus { outline: 3px solid rgb(183 93 62 / .18); border-color: var(--rust); }
.choice-card { border: 1px solid rgb(49 70 58 / .15); border-radius: .8rem; background: var(--paper); padding: 1rem; font-size: .85rem; font-weight: 700; color: var(--forest); transition: all .2s ease; }
.choice-card:hover, .choice-card.is-selected { border-color: var(--rust); background: rgb(183 93 62 / .09); color: var(--rust); }
.therapy-choice { display: flex; width: 100%; justify-content: space-between; border: 1px solid rgb(65 73 67 / .14); border-radius: .8rem; background: var(--paper); padding: 1rem; text-align: left; font-size: .9rem; font-weight: 700; color: #414943; transition: transform .2s ease, background .2s ease; }
.therapy-choice:hover { transform: translateX(.2rem); background: #e7e2da; }

.value-card { min-height: 18rem; border: 1px solid rgb(49 70 58 / .12); border-radius: 1.5rem; padding: 2rem; background: var(--paper); }
.value-card span { font-family: Fraunces, serif; color: var(--rust); }
.value-card h3 { margin-top: 4rem; font-family: Fraunces, serif; font-size: 2rem; font-weight: 600; color: var(--forest); }
.value-card p { margin-top: .9rem; line-height: 1.75; color: rgb(37 43 39 / .62); }

.contact-step { display: grid; width: 2.25rem; height: 2.25rem; flex: 0 0 auto; place-items: center; border-radius: 50%; background: var(--rust); color: white; font-weight: 700; }
.quote-form { display: grid; gap: 2.2rem; border: 1px solid rgb(49 70 58 / .12); border-radius: 2rem; background: var(--cream); padding: clamp(1.4rem, 4vw, 2.5rem); box-shadow: 0 8px 30px rgb(37 43 39 / .06); }
.quote-form fieldset { border-bottom: 1px solid rgb(49 70 58 / .12); padding-bottom: 2.2rem; }
.quote-form legend { font-family: Fraunces, serif; font-size: 1.65rem; font-weight: 600; color: var(--forest); }
.radio-card { cursor: pointer; }
.radio-card input { position: absolute; opacity: 0; pointer-events: none; }
.radio-card span { display: block; height: 100%; border: 1px solid rgb(49 70 58 / .15); border-radius: .9rem; background: var(--paper); padding: 1rem; transition: border-color .2s ease, background .2s ease, box-shadow .2s ease; }
.radio-card strong { display: block; font-size: .9rem; color: var(--forest); }
.radio-card small { display: block; margin-top: .35rem; font-size: .72rem; line-height: 1.45; color: rgb(37 43 39 / .5); }
.radio-card input:checked + span { border-color: var(--rust); background: rgb(183 93 62 / .08); box-shadow: 0 0 0 2px rgb(183 93 62 / .12); }
.radio-card input:focus-visible + span { outline: 3px solid rgb(183 93 62 / .22); }
.form-label { font-size: .8rem; font-weight: 700; color: var(--forest); }
.form-label > span { color: var(--rust); }
.form-input { display: block; width: 100%; margin-top: .5rem; border: 1px solid rgb(49 70 58 / .18); border-radius: .8rem; background: var(--paper); padding: .85rem .9rem; font-size: .92rem; font-weight: 400; color: var(--ink); }
.form-input:focus { outline: 3px solid rgb(183 93 62 / .16); border-color: var(--rust); }
.form-input::placeholder { color: rgb(37 43 39 / .35); }

@media (max-width: 767px) {
  .page-hero { padding: 4rem 0 4.5rem; }
  .service-detail, .work-section { padding: 4.5rem 0; }
  .project-preview { min-height: 17rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
