/* untangle&simplify — site styles */
:root {
  --moss: #26302B;
  --sage: #8FA593;
  --stone: #CFC8BB;
  --cream: #F2EFE8;
  --cream-shade: #E7E2D8;
  --clay: #B8643E;
  --clay-deep: #9A4F2E;
  --clay-light: #E0A07C;
  --moss-grey: #5E6B63;
  --moss-line: #4A5850;
  --on-moss-soft: #D9DED9;

  --display: 'Space Grotesk', 'Helvetica Neue', Arial, sans-serif;
  --body: 'Plus Jakarta Sans', 'Helvetica Neue', Arial, sans-serif;
  --serif: 'Libre Baskerville', Georgia, serif;

  --radius: 20px;
  --radius-lg: 28px;
  --wrap: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--moss);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
a:hover { color: var(--clay-deep); }
:focus-visible { outline: 3px solid var(--clay); outline-offset: 3px; border-radius: 6px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 28px; }
.section { padding: 96px 0; }
.section--tight { padding: 72px 0; }
.dark { background: var(--moss); color: var(--cream); }
.dark a:hover { color: var(--clay-light); }
.shade { background: var(--cream-shade); }

.skip { position: absolute; left: -9999px; top: 12px; background: var(--moss); color: var(--cream); padding: 10px 16px; border-radius: 999px; z-index: 10; }
.skip:focus { left: 12px; }

/* Type */
h1, h2, h3 { font-family: var(--display); font-weight: 700; margin: 0; letter-spacing: -0.02em; }
h1 { font-size: clamp(42px, 6.4vw, 82px); line-height: 0.98; letter-spacing: -0.035em; }
h2 { font-size: clamp(32px, 4vw, 52px); line-height: 1.05; }
h3 { font-size: 24px; line-height: 1.2; letter-spacing: -0.01em; }
p { margin: 0; }
.amp, .em { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.01em; color: var(--clay); }
.dark .amp, .dark .em { color: var(--clay-light); }
.eyebrow { font-family: var(--display); font-size: 13px; font-weight: 500; letter-spacing: 3px; text-transform: uppercase; color: var(--clay-deep); }
.dark .eyebrow { color: var(--sage); }
.lede { font-size: 20px; line-height: 1.55; max-width: 580px; }
.muted { color: var(--moss-grey); }
.dark .muted { color: var(--on-moss-soft); }
.stack { display: flex; flex-direction: column; gap: 20px; }
.stack-sm { display: flex; flex-direction: column; gap: 12px; }
.head-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 44px; }
.head-row .stack { max-width: 680px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 14px 28px; border-radius: 999px; font-family: var(--display); font-size: 17px; font-weight: 700; text-decoration: none; border: 1.5px solid transparent; cursor: pointer; transition: transform .15s ease, background .15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--moss); color: var(--cream); }
.btn--primary:hover { color: var(--cream); background: #1A221E; }
.btn--ghost { border-color: var(--moss); color: var(--moss); font-weight: 500; }
.btn--accent { background: var(--clay-light); color: var(--moss); }
.btn--accent:hover { color: var(--moss); background: #E8B08F; }
.dark .btn--ghost { border-color: var(--cream); color: var(--cream); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 5; background: rgba(242, 239, 232, 0.92); backdrop-filter: blur(8px); border-bottom: 1px solid transparent; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 18px; padding-bottom: 18px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--moss); }
.brand:hover { color: var(--moss); }
.wordmark { display: inline-flex; align-items: baseline; line-height: 1; font-family: var(--display); font-size: 22px; letter-spacing: -0.02em; white-space: nowrap; }
.wordmark .w1 { font-weight: 500; }
.wordmark .w2 { font-weight: 700; }
.wordmark .amp { margin: 0 1px; }
.nav { display: flex; align-items: center; gap: 30px; font-family: var(--display); font-weight: 500; font-size: 16px; }
.nav a { text-decoration: none; }
.nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--clay); text-decoration-thickness: 2px; text-underline-offset: 6px; }
.nav .btn { min-height: 44px; padding: 10px 22px; font-size: 16px; }
.nav-toggle { display: none; background: none; border: 1.5px solid var(--moss); border-radius: 999px; min-height: 44px; padding: 8px 18px; font-family: var(--display); font-weight: 700; font-size: 15px; color: var(--moss); cursor: pointer; }

@media (max-width: 820px) {
  .nav-toggle { display: inline-flex; align-items: center; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0; background: var(--cream); border-bottom: 1px solid var(--stone); padding: 8px 28px 24px; }
  .nav.is-open { display: flex; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--cream-shade); }
  .nav .btn { margin-top: 16px; border-bottom: none; }
  .site-header .wrap { position: relative; }
}

/* Hero */
.hero { display: flex; flex-wrap: wrap; gap: 56px; align-items: center; padding: 64px 0 104px; }
.hero__copy { flex: 999 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 26px; }
.hero__side { flex: 1 1 340px; min-width: 0; }
.page-hero { padding: 72px 0 80px; }
.page-hero .stack { max-width: 820px; }

.portrait { border-radius: var(--radius-lg); overflow: hidden; background: var(--moss); color: var(--cream); }
.portrait__img { aspect-ratio: 1 / 1; background: var(--stone); display: flex; align-items: center; justify-content: center; }
.portrait__img img { width: 100%; height: 100%; object-fit: cover; }
.portrait__img svg { width: 42%; height: auto; }
.portrait__cap { padding: 22px 26px; display: flex; flex-direction: column; gap: 6px; }
.portrait__cap strong { font-family: var(--display); font-size: 26px; letter-spacing: -0.02em; }

/* Grids & cards */
.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); }
.card { border-radius: var(--radius); padding: 30px; display: flex; flex-direction: column; gap: 14px; background: var(--cream); }
.card--outline { background: transparent; border: 1.5px solid var(--moss-line); }
.card--shade { background: var(--cream-shade); }
.card--stone { background: var(--stone); }
.card--moss { background: var(--moss); color: var(--cream); }
.card--moss .muted { color: var(--on-moss-soft); }
.card p { font-size: 16px; line-height: 1.6; }
.card .grow { flex: 1; }
.card h3 a { text-decoration: none; }
.step-num { font-family: var(--display); font-size: 14px; font-weight: 700; color: var(--clay-deep); }
.card--moss .step-num { color: var(--clay-light); }
.step-art { height: 70px; width: 100%; }
.pill { align-self: flex-start; border-radius: 999px; padding: 6px 14px; font-size: 13px; font-weight: 700; }
.pill--sage { background: var(--sage); color: var(--moss); }
.pill--stone { background: var(--stone); color: var(--moss); }
.pill--clay { background: var(--clay-light); color: var(--moss); }
.price { font-family: var(--display); font-size: 15px; font-weight: 500; color: var(--moss-grey); }
.card--moss .price { color: var(--sage); }
.pain h3 { font-size: 22px; }
.pain .card { gap: 10px; }

.chips { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.chips__label { font-family: var(--display); font-size: 20px; font-weight: 700; margin-right: 12px; }
.chip { border: 1.5px solid var(--moss); border-radius: 999px; padding: 10px 18px; font-size: 15px; font-weight: 500; }

.split { display: flex; flex-wrap: wrap; gap: 56px; align-items: flex-start; }
.split > * { flex: 1 1 420px; min-width: 0; }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 20px; }
.stat { border-top: 2px solid var(--sage); padding-top: 18px; display: flex; flex-direction: column; gap: 8px; }
.stat b { font-family: var(--display); font-size: 52px; font-weight: 700; letter-spacing: -0.03em; line-height: 1; }
.stat span { font-size: 15px; line-height: 1.5; }
.stats-note { font-size: 13px; margin-top: 16px; }

.cta-band { background: var(--clay); color: var(--cream); border-radius: 32px; padding: clamp(36px, 6vw, 72px); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 32px; }
.cta-band > div { flex: 999 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.cta-band h2 { font-size: clamp(36px, 4.5vw, 60px); line-height: 1; letter-spacing: -0.03em; }
.cta-band p { font-family: var(--display); font-size: 24px; font-weight: 500; line-height: 1.35; }
.cta-band .btn { flex: 0 0 auto; }

/* Lists */
.checks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.checks li { position: relative; padding-left: 26px; font-size: 16px; line-height: 1.5; }
.checks li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 14px; height: 2px; background: var(--moss); border-radius: 2px; }
.checks li::after { content: ""; position: absolute; left: 14px; top: calc(0.55em - 2px); width: 6px; height: 6px; border-radius: 50%; background: var(--clay); }
.card--moss .checks li::before { background: var(--cream); }
.card--moss .checks li::after { background: var(--clay-light); }

.service { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 40px; padding: 48px 0; border-top: 1.5px solid var(--stone); }
.service:last-child { border-bottom: 1.5px solid var(--stone); }
.service__meta { display: flex; flex-direction: column; gap: 14px; }
.service__facts { display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 15px; }
.service__facts b { font-family: var(--display); }
@media (max-width: 760px) { .service { grid-template-columns: 1fr; gap: 20px; } }

/* FAQ */
.faq { display: flex; flex-direction: column; border-top: 1.5px solid var(--stone); }
.faq details { border-bottom: 1.5px solid var(--stone); padding: 22px 0; }
.faq summary { font-family: var(--display); font-size: 20px; font-weight: 700; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 20px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-weight: 500; font-size: 26px; color: var(--clay); line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin-top: 12px; max-width: 760px; }

/* Contact */
.contact-ways { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.form { display: grid; gap: 18px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.form .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-family: var(--display); font-weight: 500; font-size: 15px; }
.field input, .field select, .field textarea { font: inherit; font-size: 16px; color: var(--moss); background: #FBFAF7; border: 1.5px solid var(--stone); border-radius: 12px; padding: 13px 14px; min-height: 48px; width: 100%; }
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--moss); box-shadow: 0 0 0 3px rgba(184, 100, 62, 0.25); }
.hidden { position: absolute; left: -9999px; }

/* Footer */
.site-footer { background: var(--moss); color: var(--cream); padding: 56px 0 40px; }
.site-footer .line { width: 100%; height: 28px; margin-bottom: 36px; }
.footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 32px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 14px 28px; font-size: 15px; }
.footer-links a { text-decoration: none; }
.footer-small { margin-top: 36px; font-size: 13px; color: var(--sage); }
.site-footer .wordmark .amp { color: var(--clay-light); }
.site-footer .muted { color: var(--on-moss-soft); }
.site-footer a:hover { color: var(--clay-light); }

/* Small screens */
@media (max-width: 560px) {
  body { font-size: 16px; }
  .section { padding: 72px 0; }
  .hero { padding: 40px 0 72px; gap: 40px; }
  .wrap { padding: 0 20px; }
  .wordmark { font-size: 19px; }
  .brand svg { width: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}

/* Service offers */
.offer { gap: 14px; }
.offer h3 { font-size: 26px; }
.offer .checks { margin-top: 4px; }
.offer__note { font-size: 15px; background: rgba(224, 160, 124, 0.14); border-radius: 12px; padding: 12px 14px; }
.offer__foot { margin-top: auto; padding-top: 16px; border-top: 1.5px solid var(--stone); display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px 16px; }
.offer__price { font-family: var(--display); font-size: 24px; font-weight: 700; letter-spacing: -0.02em; }
.offer__meta { font-size: 14px; color: var(--moss-grey); }
.card--moss .offer__foot, .dark .offer__foot { border-top-color: var(--moss-line); }
.card--moss .offer__meta, .dark .offer__meta { color: var(--sage); }
.dark .card--outline { color: var(--cream); }
.dark .checks li::before { background: var(--cream); }
.dark .checks li::after { background: var(--clay-light); }
.card--moss .eyebrow { color: var(--sage); }
.jump { display: flex; flex-wrap: wrap; gap: 10px; padding-top: 8px; }
.jump a { text-decoration: none; border: 1.5px solid var(--moss); border-radius: 999px; padding: 10px 18px; font-family: var(--display); font-size: 15px; font-weight: 500; min-height: 44px; display: inline-flex; align-items: center; }
.jump a:hover { background: var(--moss); color: var(--cream); }
.section[id] { scroll-margin-top: 80px; }

/* ===========================================================
   Motion & interaction
   =========================================================== */
:root { --ease: cubic-bezier(.22, .8, .24, 1); }

/* Sticky header gets a hairline once you scroll */
.site-header { transition: border-color .3s ease, box-shadow .3s ease; }
.site-header.is-scrolled { border-bottom-color: var(--stone); box-shadow: 0 6px 24px rgba(38, 48, 43, 0.06); }

/* Nav links: underline grows in */
.nav a:not(.btn) { background: linear-gradient(var(--clay), var(--clay)) left bottom / 0 2px no-repeat; padding-bottom: 4px; transition: background-size .3s var(--ease); }
.nav a:not(.btn):hover { background-size: 100% 2px; color: var(--moss); }
.nav a[aria-current="page"] { text-decoration: none; background-size: 100% 2px; }

/* Buttons: the brand dot slides in on hover */
.btn::after { content: ""; width: 0; height: 7px; border-radius: 50%; background: var(--clay-light); margin-left: -8px; opacity: 0; transition: width .25s var(--ease), margin .25s var(--ease), opacity .2s ease; }
.btn:hover::after, .btn:focus-visible::after { width: 7px; margin-left: 2px; opacity: 1; }
.btn--accent::after, .cta-band .btn--primary::after { background: var(--clay); }
.btn--accent::after { background: var(--moss); }
.btn--ghost:hover { background: var(--moss); color: var(--cream); }
.dark .btn--ghost:hover { background: var(--cream); color: var(--moss); }

/* Cards lift on hover; whole card clickable when its title is a link */
.card { position: relative; transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .3s ease; }
.card:has(h3 a):hover, .offer:hover, .pain-card:hover, .pain-card:focus-visible { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(38, 48, 43, 0.12); }
.card h3 a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.card h3 a { text-decoration: none; background: linear-gradient(currentColor, currentColor) left bottom / 0 2px no-repeat; transition: background-size .3s var(--ease); }
.card:hover h3 a { background-size: 100% 2px; }
.dark .pain-card:hover, .dark .pain-card:focus-visible { border-color: var(--sage); box-shadow: 0 18px 40px rgba(0, 0, 0, 0.25); }
.offer:hover .offer__price { color: var(--clay-deep); }
.card--moss.offer:hover .offer__price, .dark .offer:hover .offer__price { color: var(--clay-light); }
.offer__price { transition: color .3s ease; }

/* Chips fill on hover */
.chip { transition: background .2s ease, color .2s ease; }
.chip:hover { background: var(--moss); color: var(--cream); }

/* Pain cards: the squiggle straightens out */
.fix { width: 100%; max-width: 220px; height: 24px; margin-top: auto; padding-top: 10px; overflow: visible; }
.fix__tangle { transition: opacity .35s ease; }
.fix__line { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset .6s var(--ease) .15s; }
.fix__dot { transform-box: fill-box; transform-origin: center; transform: scale(0); transition: transform .35s var(--ease) .6s; }
.pain-card:hover .fix__tangle, .pain-card:focus-visible .fix__tangle { opacity: 0; }
.pain-card:hover .fix__line, .pain-card:focus-visible .fix__line { stroke-dashoffset: 0; }
.pain-card:hover .fix__dot, .pain-card:focus-visible .fix__dot { transform: scale(1); }
@media (hover: none) {
  .is-in .pain-card .fix__tangle { opacity: 0; transition-delay: 1.2s; }
  .is-in .pain-card .fix__line { stroke-dashoffset: 0; transition-delay: 1.3s; }
  .is-in .pain-card .fix__dot { transform: scale(1); transition-delay: 1.9s; }
}

/* Line drawing */
.draw-load { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.4s var(--ease) .2s forwards; }
.draw--hero { animation-duration: 2.2s; }
.pop-load { transform-box: fill-box; transform-origin: center; transform: scale(0); animation: pop .5s var(--ease) 1.3s forwards; }
.pop--hero { animation-delay: 2.1s; }
.hero-mark { width: 150px; height: auto; margin-bottom: -6px; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes pop { 0% { transform: scale(0); } 70% { transform: scale(1.35); } 100% { transform: scale(1); } }

/* Scroll reveal (only when JS is running) */
.js [data-reveal]:not(svg) > * { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js [data-reveal].is-in > * { opacity: 1; transform: none; }
.js [data-reveal].is-in > *:nth-child(2) { transition-delay: .08s; }
.js [data-reveal].is-in > *:nth-child(3) { transition-delay: .16s; }
.js [data-reveal].is-in > *:nth-child(4) { transition-delay: .24s; }
.js [data-reveal].is-in > *:nth-child(5) { transition-delay: .32s; }
.js [data-reveal].is-in > *:nth-child(n+6) { transition-delay: .4s; }
/* once revealed, hover lift should feel instant */
.js [data-reveal].is-in > .card:hover { transition-delay: 0s; }

/* Step illustrations draw in sequence: tangled, loosening, straight */
.js .step-art .draw { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.6s var(--ease); }
.js .step-art .pop { transform-box: fill-box; transform-origin: center; transform: scale(0); transition: transform .5s var(--ease); }
.js .is-in .step-art .draw { stroke-dashoffset: 0; }
.js .is-in > :nth-child(1) .step-art .draw { transition-delay: .3s; }
.js .is-in > :nth-child(2) .step-art .draw { transition-delay: .9s; }
.js .is-in > :nth-child(3) .step-art .draw { transition-delay: 1.5s; }
.js .is-in .step-art .pop { transform: scale(1); transition-delay: 2.6s; }
.card:hover .step-art .pop { transform: scale(1.4); transition-delay: 0s; }

/* Footer line draws across */
.js .site-footer .line .draw { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 2s var(--ease); }
.js .site-footer .line .pop { transform-box: fill-box; transform-origin: center; transform: scale(0); transition: transform .5s var(--ease) 1.8s; }
.js .site-footer .line.is-in .draw { stroke-dashoffset: 0; }
.js .site-footer .line.is-in .pop { transform: scale(1); }

/* FAQ: smooth open */
.faq summary { transition: color .2s ease; }
.faq summary:hover { color: var(--clay-deep); }
.faq summary::after { transition: transform .3s var(--ease); }
.faq details[open] summary::after { content: "+"; transform: rotate(45deg); }

/* Respect reduced motion: everything visible, nothing moves */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .draw-load, .js .step-art .draw, .js .site-footer .line .draw, .fix__line { stroke-dashoffset: 0 !important; }
  .pop-load, .js .step-art .pop, .js .site-footer .line .pop { transform: none !important; }
  .js [data-reveal] > * { opacity: 1 !important; transform: none !important; }
  .card:hover { transform: none !important; }
}

/* After the reveal finishes, hand transitions back to hover */
.js [data-reveal].is-done > * { transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .3s ease, opacity .3s ease; transition-delay: 0s; }
.js [data-reveal].is-in > .card:has(h3 a):hover,
.js [data-reveal].is-in > .offer:hover,
.js [data-reveal].is-in > .pain-card:hover,
.js [data-reveal].is-in > .pain-card:focus-visible { transform: translateY(-6px); }
@media (prefers-reduced-motion: reduce) {
  .js [data-reveal].is-in > .card:hover, .js [data-reveal].is-in > .pain-card:focus-visible { transform: none !important; }
}

/* How I work principles */
.principles .card { gap: 12px; }
.principles h3 { font-size: 22px; line-height: 1.25; }
.principles p { font-size: 16px; }

/* Homepage hero without photo */
.hero--solo { flex-direction: column; align-items: stretch; gap: 48px; padding: 88px 0 96px; }
.hero--solo .hero__copy { max-width: 900px; flex: none; }
.hero--solo h1 { font-size: clamp(46px, 7.4vw, 104px); }
.hero-line { width: 100%; height: auto; display: block; }
.hero-line path { stroke-width: 2.5; }
