/* Shared refinements; one responsive rule set per layout range. */
.idea, .hero-copy, .service-problem, .service-solution, .about-copy { min-width: 0; }
.idea-panel h3 { white-space: normal; }
.phone { max-width: 100%; }
.hero-description, .hero-sub { font-size: 16px; }
.hero-sub br { display: none; }
.hero-cta { font-size: 18px; min-height: 60px; min-width: min(310px, 100%); }
.hero-copy { padding-block: 15px; }
.hero h1 { line-height: 1.42; white-space: normal; }
.highlight { box-shadow: inset 0 -.16em 0 var(--yellow); -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.highlight::after { content: none; }
.service-row ul { font-size: 15px; }
.idea-panel > p, .before-after, .steps p, .pricing p + p { font-size: 14px; }
.about-copy > p:not(.person) { font-size: 16px; }
.round-link-label { display: none; }
.dialog-close { width: 44px; height: 44px; align-items: center; justify-content: center; }
dialog { overscroll-behavior: contain; }
textarea, select { font-size: 16px !important; }

/* Make the referral and the next step clear before asking for a conversation. */
.hero .eyebrow { margin-bottom: 14px; }
.hero-intro { margin-bottom: 18px; font-size: 14px; line-height: 1.75; color: #52665b; }
.cta-reassurance { margin-top: 12px; font-size: 14px; line-height: 1.8; }
.line-status { margin-top: 7px; font-size: 12px; line-height: 1.7; color: #52665b; }
.signature a { text-decoration: underline; text-underline-offset: 4px; text-decoration-color: #9dae9f; }
.signature a:hover { color: var(--green); }
.consultation-summary { display: grid; grid-template-columns: 1fr 1.3fr; column-gap: 42px; row-gap: 9px; padding-block: 38px; border-bottom: 1px solid var(--line); }
.consultation-summary h2 { grid-row: span 2; font-size: 25px; line-height: 1.7; letter-spacing: -.025em; }
.consultation-summary > p { font-size: 16px; line-height: 1.9; }
.consultation-summary .agreement-note { font-size: 13px; color: #52665b; }
#services { padding-top: 64px; }
.contact-reassurance { margin-top: 14px; font-size: 15px; line-height: 1.9; }
.contact-example { max-width: 600px; margin: 26px auto 0; font-size: 18px; line-height: 1.9; color: white; }
.contact .contact-example strong { display: inline-block; color: var(--yellow); font-size: 1.125em; font-weight: 700; white-space: nowrap; }
.contact-example > span { display: inline-block; }
.about-copy .person { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.about-copy .person > .person-title { font-family: var(--sans); font-size: 14px; line-height: 1.8; }
.person-title > span { display: inline-block; margin-left: 10px; }
.about-copy .person > .person-name { font-family: var(--serif); font-size: 30px; line-height: 1.5; white-space: nowrap; }
.dialog-return { width: 100%; min-height: 52px; }
#dialog-title span { display: inline-block; }

@media (min-width: 1550px) {
  .hero-photo { border-radius: 180px 12px 12px 12px; }
}

/* Tablet: reduce columns before the text becomes cramped. */
@media (min-width: 761px) and (max-width: 1100px) {
  .container { width: calc(100% - 64px); }
  .site-header { padding-inline: 32px; gap: 24px; }
  .site-header nav { display: none; }
  .header-cta { margin-left: auto; }
  .hero { padding-left: 32px; gap: 28px; }
  .hero h1 { font-size: 3.8vw; }
  .hero-photo { min-height: 550px; border-top-left-radius: 120px; }
  .hero-photo figcaption { max-width: calc(100% - 28px); right: 14px; bottom: 20px; font-size: 13px; }
  .hero-description, .hero-sub { font-size: 16px; }
  .hero-cta { min-width: 0; width: 100%; padding-inline: 16px; }
  .service-strip { gap: 24px; font-size: 14px; }
  .service-row { grid-template-columns: 65px minmax(0, 1.3fr) minmax(0, 1fr) 44px; gap: 20px; }
  .service-number { font-size: 60px; }
  .service-problem h3 { font-size: 21px; }
  .service-solution { padding-left: 20px; }
  .section-heading { align-items: flex-start; }
  .section-heading > p { white-space: normal; flex-shrink: 0; max-width: 155px; }
  .section-heading h2 { font-size: 34px; }
  .ideas-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .idea { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; align-items: center; }
  .idea > .story-text-link { grid-column: 1 / -1; margin-top: 0; }
  .idea-panel { height: 365px; padding-inline: 22px; }
  .idea-panel h3 { font-size: 22px; }
  .before-after { font-size: 16px; grid-template-columns: 1fr; gap: 12px; margin: 0; }
  .before-after dt { justify-self: start; padding-inline: 12px; font-size: 12px; }
  .before-after dd + dt { margin-top: 8px; }
  .report-demo, .ai-demo { max-width: 290px; margin-inline: auto; }
  .about-layout { gap: 32px; }
  .about h2 { font-size: 38px; }
  .about-copy { padding-left: 30px; }
  .person { flex-wrap: wrap; gap: 6px 18px; }
  .steps { gap: 26px; }
  .steps li { flex-direction: column; align-items: flex-start; gap: 16px; }
  .step-icon { width: 68px; height: 68px; }
  .steps h3 { font-size: 20px; }
  .pricing { grid-template-columns: 165px minmax(0, 1fr); gap: 26px; }
}

/* Mobile: full-width reading, comfortable type, thumb-friendly controls. */
@media (max-width: 760px) {
  :root { --mobile-gutter: clamp(20px, 5.5vw, 32px); }
  html { scroll-padding-top: 24px; scroll-padding-bottom: 108px; }
  body { font-size: 16px; line-height: 1.9; }
  .container { width: calc(100% - var(--mobile-gutter) * 2); max-width: 560px; }
  .section { padding-block: 60px; }
  h2 { font-size: clamp(27px, 7.4vw, 36px); line-height: 1.6; letter-spacing: -.045em; }
  .mobile-break { display: initial; }
  .desktop-break { display: none; }
  .site-header { padding: 18px var(--mobile-gutter); justify-content: space-between; gap: 14px; }
  .wordmark { font-size: 28px; }
  .site-header nav { display: none; }
  .header-cta { font-size: 12px; padding: 11px 12px; min-height: 44px; gap: 7px; }
  .header-cta svg { width: 17px; height: 17px; }
  .header-cta .arrow { display: none; }
  .hero { display: flex; flex-direction: column; align-items: stretch; gap: 25px; padding: 19px var(--mobile-gutter) 28px; max-width: 624px; }
  .hero-copy { padding: 0; }
  .eyebrow { font-size: 12px; line-height: 1.8; letter-spacing: 0; gap: 10px; margin-bottom: 20px; }
  .eyebrow::before { width: 18px; }
  .hero-intro { margin-bottom: 16px; font-size: 13px; }
  .hero h1 { font-size: clamp(25px, 7.9vw, 43px); line-height: 1.55; letter-spacing: -.06em; }
  .hero-description { margin-top: 24px; font-size: 16px; line-height: 1.9; }
  .hero-sub { margin-top: 12px; font-size: 16px; line-height: 1.9; }
  .hero-sub br { display: initial; }
  .hero-cta { width: 100%; min-width: 0; min-height: 56px; font-size: 16px; margin-top: 24px; padding-inline: 20px; }
  .hero-cta .arrow { margin-left: auto; }
  .cta-reassurance { font-size: 14px; }
  .signature { font-size: 12px; margin-top: 13px; }
  .hero-photo { min-height: 0; height: auto; aspect-ratio: 1.6; border-radius: 80px 8px 8px 8px; }
  .hero-photo img { object-position: center 63%; }
  .hero-photo figcaption { font-size: 12px; right: 12px; bottom: 12px; padding: 8px 10px; max-width: calc(100% - 24px); }
  .service-strip { flex-wrap: wrap; font-size: 13px; line-height: 1.8; gap: 4px 17px; padding: 18px var(--mobile-gutter); }
  .service-strip i { display: none; }
  .consultation-summary { display: block; padding-block: 30px; }
  .consultation-summary h2 { font-size: 22px; line-height: 1.7; }
  .consultation-summary > p { margin-top: 14px; font-size: 16px; }
  .consultation-summary .agreement-note { font-size: 14px; margin-top: 12px; }
  #services { padding-top: 44px; }
  .section-label { font-size: 11px; margin-bottom: 18px; gap: 10px; }
  .section-intro { font-size: 16px; margin-top: 13px; color: #52665b; }
  .service-rows { margin-top: 30px; }
  .service-row { grid-template-columns: 37px minmax(0, 1fr); gap: 18px 13px; align-items: start; padding: 30px 0; }
  .service-number { grid-column: 1; grid-row: 1; font-size: 35px; letter-spacing: -2px; margin-top: 6px; color: #6d8564; }
  .service-problem { display: contents; }
  .service-problem h3 { grid-column: 2; grid-row: 1; font-size: 22px; line-height: 1.55; margin: 0; }
  .service-problem .problem-list { grid-column: 1 / -1; }
  .service-row ul { font-size: 16px; line-height: 1.9; }
  .problem-list { color: #52665b; }
  .problem-list li { padding-left: 14px; position: relative; }
  .problem-list li + li { margin-top: 5px; }
  .problem-list li::before { position: absolute; left: 0; top: .87em; width: 4px; height: 4px; margin: 0; }
  .service-solution { grid-column: 1 / -1; border-left: 0; border-top: 1px solid var(--line); padding: 18px 0 0; }
  .service-solution p { font-size: 13px; font-weight: 600; color: #52665b; margin-bottom: 8px; }
  .service-solution li { font-size: 15px; }
  .round-link { grid-column: 1 / -1; border: 1px solid var(--line); background: var(--sage); border-radius: 5px; width: 100%; min-height: 48px; height: auto; padding: 11px 16px; display: flex; justify-content: space-between; gap: 12px; }
  .round-link-label { display: inline; font-size: 14px; font-weight: 600; }
  .round-link svg { width: 19px; height: 19px; }
  .ideas { padding-top: 0; }
  .section-heading { display: block; margin-bottom: 26px; }
  .section-heading h2 { font-size: clamp(27px, 7.4vw, 36px); }
  .section-heading > p { font-size: 12px; margin-top: 12px; }
  .ideas-grid { grid-template-columns: minmax(0, 1fr); gap: 38px; }
  .idea { display: block; }
  .idea-panel { height: auto; padding: 24px 20px 0; display: flex; flex-direction: column; align-items: stretch; }
  .idea-panel h3 { font-size: 23px; line-height: 1.5; letter-spacing: -.04em; }
  .idea-panel > p { font-size: 15px; line-height: 1.8; margin-top: 10px; }
  .phone { width: min(260px, 100%); height: auto; margin: 22px auto; flex-shrink: 0; border-radius: 28px; }
  .phone-top { font-size: 10px; }
  .phone-title { font-size: 13px; }
  .message-bubble { font-size: 11px; }
  .line-menu span { font-size: 10px; padding-block: 12px; }
  .report-demo { width: 100%; max-width: 300px; height: 242px; margin: 25px auto 0; flex-shrink: 0; }
  .sheet { left: 4px; }
  .report { right: 4px; top: 40px; }
  .ai-demo { width: 100%; max-width: 310px; margin: 24px auto; padding: 16px; min-height: 215px; }
  .ai-prompt { font-size: 11px; }
  .ai-heading { font-size: 13px; }
  .ai-answer > span { font-size: 11px; }
  .ai-answer p { font-size: 10px; }
  .before-after { grid-template-columns: minmax(0, 1fr); gap: 9px; font-size: 16px; margin-top: 22px; }
  .before-after dt { justify-self: start; font-size: 12px; padding: 5px 13px; }
  .before-after dd { line-height: 1.9; }
  .before-after dd + dt { margin-top: 10px; }
  .sample-note { font-size: 12px; line-height: 1.85; margin-top: 26px; }
  .about-layout { grid-template-columns: minmax(0, 1fr); gap: 26px; margin-top: 22px; }
  .about h2 { font-size: 34px; line-height: 1.7; }
  .about-copy { border-left: 0; border-top: 1px solid #b6c6bb; padding: 25px 0 0; }
  .person { gap: 6px 20px; flex-wrap: wrap; margin-bottom: 18px; }
  .about-copy .person > .person-name { font-size: 28px; }
  .about-copy > p:not(.person) { font-size: 16px; line-height: 1.95; margin-top: 18px; }
  .about-copy > p:not(.person) br { display: none; }
  .steps { grid-template-columns: minmax(0, 1fr); gap: 30px; margin: 32px 0 26px; }
  .steps li { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 18px; align-items: start; }
  .step-icon { width: 52px; height: 52px; margin-top: 5px; }
  .step-icon svg { width: 27px; height: 27px; }
  .step-number { font-size: 22px; margin-bottom: 10px; padding-bottom: 5px; }
  .steps h3 { font-size: 21px; line-height: 1.5; }
  .steps p { font-size: 16px; margin-top: 10px; line-height: 1.8; }
  .steps p br { display: none; }
  .flow-note { font-size: 15px; text-align: left; }
  .pricing { grid-template-columns: minmax(0, 1fr); gap: 16px; margin-top: 28px; padding: 25px 0; }
  .pricing h3 { font-size: 24px; border: 0; }
  .pricing p:first-child { font-size: 16px; }
  .pricing p + p { font-size: 14px; margin-top: 10px; line-height: 1.9; }
  .contact { padding-block: 48px; }
  .contact h2 { font-size: clamp(25px, 7vw, 35px); line-height: 1.75; letter-spacing: -.07em; }
  .contact-lead { font-size: 16px; margin-top: 20px; line-height: 1.9; }
  .button-light { min-width: 0; width: 100%; min-height: 58px; font-size: 17px; gap: 15px; padding-inline: 16px; margin-top: 26px; }
  .contact-example { font-size: 16px; line-height: 1.9; margin-top: 24px; }
  .contact-reassurance { font-size: 14px; }
  .site-footer { padding: 30px 24px calc(38px + env(safe-area-inset-bottom)); }
  .site-footer p { font-size: 12px; }
  .site-footer small { font-size: 11px; }
  .mobile-cta { position: fixed; bottom: 0; left: 0; right: 0; z-index: 10; display: block; padding: 10px var(--mobile-gutter) calc(10px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: #fffffff5; backdrop-filter: blur(10px); visibility: hidden; opacity: 0; transform: translateY(100%); transition: transform .2s, opacity .2s, visibility .2s; }
  .mobile-cta.is-visible { visibility: visible; opacity: 1; transform: translateY(0); }
  .modal-open .mobile-cta { visibility: hidden; opacity: 0; }
  .mobile-cta .button { display: flex; width: 100%; max-width: 560px; margin: auto; min-height: 52px; font-size: 16px; padding: 12px 20px; gap: 14px; }
  .mobile-cta .button .arrow { margin-left: auto; }
  .mobile-cta .button > span { margin-right: auto; }
  dialog { width: calc(100% - 24px); max-width: 530px; max-height: calc(100dvh - 24px); padding: 35px 22px 24px; border-radius: 12px; }
  dialog h2 { font-size: 26px; padding-right: 15px; }
  .dialog-close { top: 10px; right: 10px; }
  #dialog-title { font-size: 24px; }
  #dialog-info { font-size: 15px; margin-bottom: 20px; }
  dialog label { font-size: 14px; }
  dialog label span { display: block; margin-left: 0; font-size: 12px; }
  dialog select, dialog textarea { font-size: 16px; padding: 12px; }
  dialog .copy-button, dialog .line-link { font-size: 16px; min-height: 52px; }
  .copy-status { font-size: 13px; }
  .privacy-note { font-size: 12px; }
}

@media (max-width: 359px) {
  .site-header { gap: 10px; }
  .wordmark { font-size: 25px; }
  .header-cta { padding-inline: 10px; font-size: 11px; }
  .eyebrow { font-size: 11px; gap: 8px; }
  .hero h1 { font-size: 7.8vw; }
  .hero-photo figcaption { font-size: 11px; }
  .service-problem h3 { font-size: 20px; }
  .idea-panel { padding-inline: 16px; }
  .idea-panel h3 { font-size: 22px; }
  .steps li { grid-template-columns: 42px minmax(0, 1fr); gap: 14px; }
  .step-icon { width: 42px; height: 42px; }
  .contact h2 { font-size: 7vw; }
  .hero-cta, .mobile-cta .button, .button-light { gap: 10px; padding-inline: 14px; font-size: 15px; }
  .hero-cta .arrow, .mobile-cta .button .arrow, .button-light .arrow { margin-left: 0; }
  #dialog-title { font-size: 22px; }
}

@media (max-width: 760px) and (max-height: 520px) {
  .mobile-cta { padding-block: 6px; }
  .mobile-cta .button { min-height: 44px; padding-block: 8px; }
  dialog { margin-block: 10px; max-height: calc(100dvh - 20px); padding-top: 28px; }
}

/* Emphasize a short takeaway, keeping supporting sentences quiet. */
main strong {
  font-weight: 700;
  color: var(--green);
}
.text-marker {
  box-shadow: inset 0 -0.38em 0 var(--yellow);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  padding-bottom: 0.02em;
}
.text-underline {
  text-decoration-line: underline;
  text-decoration-color: #e8df98;
  text-decoration-thickness: 0.055em;
  text-underline-offset: 0.22em;
  text-decoration-skip-ink: none;
}
.contact strong { color: inherit; }
.before-after dd, .about-copy > p:not(.person), .hero-description, .hero-sub {
  line-height: 1.95;
}
.before-after dt { font-weight: 700; }
.pricing p:first-child { font-weight: 400; }

/* Every value is tied to scroll position, rather than a running CSS transition. */
.scroll-motion main {
  /* Clip the entrance at the page edge without creating a scroll container. */
  overflow-x: clip;
  overflow-y: visible;
}
.scroll-motion .scroll-reveal {
  opacity: var(--scroll-opacity, 1);
  translate: var(--scroll-shift, 0px) 0;
}
.scroll-motion .section-label.ruled::after {
  transform: scaleX(var(--scroll-progress, 1));
  transform-origin: left center;
}
.scroll-motion .hero-photo img {
  transform: translateX(var(--photo-x, 0px)) scale(var(--photo-scale, 1));
}
/* A focused control and its text must remain fully legible during keyboard use. */
.scroll-motion .scroll-reveal:focus-within { opacity: 1; translate: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .scroll-motion .scroll-reveal { opacity: 1; translate: none; }
  .scroll-motion .hero-photo img { transform: none; }
  .scroll-motion .section-label.ruled::after { transform: none; }
}

@media print {
  .scroll-motion .scroll-reveal { opacity: 1; translate: none; }
  .scroll-motion .hero-photo img, .scroll-motion .section-label.ruled::after { transform: none; }
  .mobile-cta { display: none; }
}

@media (min-width: 761px) and (max-width: 1100px) {
  .service-problem h3 .mobile-break { display: block; }
}
