/* Shared editorial treatment for the new landing page and personal story. */
.test-page {
  --ink: var(--text-primary);
  --muted: #66705f;
  --rule: #d7dbce;
  color: var(--ink);
  background: var(--bg-primary);
}
.test-page .editorial-section { padding-block: clamp(3.25rem, 5.5vw, 5.5rem); }
.test-page section[id] { scroll-margin-top: calc(var(--header-height) + 12px); }
.test-page :where(div, article, li, figure, blockquote) { min-width: 0; }
.test-page h2 { font-size: clamp(1.65rem, 2.4vw, 2.35rem); line-height: 1.3; letter-spacing: -.035em; font-weight: 600; text-wrap: balance; }
.test-page h3 { font-size: clamp(1.1rem, 1.3vw, 1.25rem); line-height: 1.4; letter-spacing: -.025em; font-weight: 600; }
.test-page h1 em, .test-page h2 em { font-family: inherit; font-style: normal; font-weight: inherit; }
.test-page p { font-size: 1rem; line-height: 1.75; margin-bottom: 1rem; }
.test-page p:last-child { margin-bottom: 0; }
.test-page .section-subtitle { display: block; color: var(--muted); font-size: .72rem; font-weight: 600; letter-spacing: .15em; line-height: 1.7; text-transform: uppercase; margin-bottom: 1.35rem; }
.test-page .btn-primary { max-width: 100%; padding: 1rem 1.7rem; line-height: 1.45; font-size: .86rem; text-align: center; box-shadow: none; }
.test-page a:focus-visible { outline: 2px solid currentColor; outline-offset: 6px; }
.test-page .text-link { display: inline-flex; align-items: center; gap: 1.5rem; padding-block: .7rem; border-bottom: 1px solid currentColor; font-size: .95rem; font-weight: 600; }
.test-page .text-link span { transition: transform .2s; }
.test-page .text-link:hover span { transform: translateX(4px); }

/* Keep the original photography and let the short opening breathe. */
.test-page .hero-section { padding-block: clamp(3rem, 5vw, 5.5rem); }
.test-page .hero-eyebrow { font-size: .8rem; letter-spacing: .16em; margin-bottom: 1.75rem; }
.test-page .hero-title { font-size: clamp(2rem, 3.1vw, 3.4rem); margin-bottom: 2.5rem; line-height: 1.25; text-wrap: balance; }
.test-page .hero-title > span { display: block; }
.test-page .hero-title > span + span { margin-top: .35em; }
.test-page .hero-title > strong { display: block; font-family: var(--font-sans); font-weight: 600; font-size: 1em; line-height: 1.25; margin-top: .35em; color: #e2ddc5; }
.test-page .hero-text-link { color: #fffdf8; font-size: .88rem; padding: .8rem 0; border-bottom: 1px solid #ffffff70; display: inline-flex; gap: .8rem; align-items: center; }
.test-page .hero-actions { gap: 1.1rem 1.7rem; }

/* Two states of mind: quiet thoughts, then a warmer and more assured card. */
.test-page .shift-section { background: var(--bg-surface); }
.test-page .shift-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.test-page .doubt-cloud { list-style: none; display: flex; flex-direction: column; align-items: flex-start; gap: .8rem; padding-top: .75rem; }
.test-page .doubt-cloud li { font-family: var(--font-sans); font-size: 1rem; line-height: 1.4; border: 1px solid #dddcd1; background: #faf8f580; padding: .65rem 1.2rem; border-radius: 6px 20px 20px 20px; }
.test-page .doubt-cloud li:nth-child(2n) { margin-left: 1.75rem; }
.test-page .doubt-cloud li:last-child { margin-left: 3.5rem; }
.test-page .shift-after { position: relative; padding: clamp(1.5rem, 3.3vw, 3.5rem); background: #e5e9dc; border-radius: 24px; border: 1px solid #d4dbc8; }
.test-page .shift-after h2 { font-size: clamp(1.65rem, 2.4vw, 2.35rem); padding-right: 1rem; margin-bottom: 1.8rem; }
.test-page .shift-arrow { position: absolute; right: 1.5rem; top: 1rem; font-family: var(--font-sans); font-size: 2.3rem; }
.test-page .confidence-list { list-style: none; }
.test-page .confidence-list li { padding: 1rem 0 1rem 1.7rem; position: relative; border-top: 1px solid #c8d1bb; font-size: clamp(.95rem, 1.1vw, 1.08rem); line-height: 1.7; }
.test-page .confidence-list li::before { content: '↗'; position: absolute; left: 0; }
.test-page .confidence-list li:last-child { padding-bottom: 0; }

/* The same type scale carries through lists and supporting statements. */
.test-page .help-section { background: #fff; }
.test-page .help-heading { max-width: 1100px; }
.test-page .help-heading > p { margin-top: 1.75rem; }
.test-page .help-list { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 4rem; margin-top: 2rem; }
.test-page .help-list li { display: flex; gap: 1.5rem; padding: 1.15rem 0; border-bottom: 1px solid var(--rule); font-size: 1.05rem; line-height: 1.65; }
.test-page .help-list li span { font-size: .7rem; letter-spacing: .08em; padding-top: .3rem; flex-shrink: 0; }
.test-page .section-takeaway { font-family: var(--font-sans); font-size: clamp(1.1rem, 1.5vw, 1.4rem); line-height: 1.6; margin-top: 2.25rem; }
.test-page .section-takeaway strong { font-weight: 600; }

.test-page .profile-section { background: var(--bg-surface); }
.test-page .profile-layout { display: grid; grid-template-columns: minmax(260px, .8fr) minmax(0, 1.3fr); gap: clamp(2.5rem, 7vw, 7rem); align-items: center; }
.test-page .profile-photo { margin: 0; }
.test-page .profile-photo img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 20%; border-radius: 24px; box-shadow: 0 16px 40px -16px #2c302e26; }
.test-page .profile-photo figcaption { padding-top: 1.25rem; }
.test-page .profile-photo .signature-name, .test-page .profile-photo .signature-title { display: block; }
.test-page .signature-name { font-family: var(--font-sans); font-size: 1rem; font-weight: 600; line-height: 1.5; letter-spacing: 0; }
.test-page .profile-photo .signature-title { font-size: .7rem; }
.test-page .profile-copy h2 { margin-bottom: 1.75rem; }
.test-page .profile-copy p { color: var(--muted); }
.test-page .profile-copy .profile-introduction { font-size: 1.1rem; color: var(--ink); font-weight: 600; }
.test-page .profile-statement { border-top: 1px solid var(--rule); padding-top: 1.25rem; margin-top: 1.5rem; }
.test-page .profile-statement p { margin-bottom: .75rem; }
.test-page .profile-statement strong { color: var(--ink); font-weight: 600; }
.test-page .profile-copy .text-link { margin-top: 1.5rem; }

/* A compact, open testimonial with a consistent reading size. */
.test-page .reference-section { background: var(--bg-primary); }
.test-page .reference-layout { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.test-page .reference-intro h2 { font-size: clamp(1.4rem, 2vw, 1.8rem); max-width: 29ch; }
/* Review switcher: only the active review is rendered, so the box hugs its content. */
.test-page .reference-slider.is-ready .client-reference:not(.is-active) { display: none; }
.test-page .reference-slider.is-ready .client-reference.is-active { animation: reference-fade .4s ease; }
.test-page .reference-slider:not(.is-ready) .client-reference + .client-reference { margin-top: 2rem; }
@keyframes reference-fade { from { opacity: 0; } to { opacity: 1; } }
.test-page .client-reference .text-link { margin-top: 1.35rem; }
.test-page .reference-footer { display: flex; align-items: center; margin-top: 1.5rem; padding-left: clamp(1.5rem, 3vw, 3rem); }
.test-page .reference-controls:not([hidden]) { display: inline-flex; align-items: center; gap: .9rem; }
.test-page .reference-arrow { width: 44px; height: 44px; border-radius: 50%; border: 1px solid #c8d1bb; background: transparent; color: var(--accent-olive); font-size: 1.1rem; cursor: pointer; transition: background-color .2s, color .2s, border-color .2s; }
.test-page .reference-arrow:hover, .test-page .reference-arrow:focus-visible { background: var(--accent-olive); border-color: var(--accent-olive); color: #fff; }
.test-page .reference-count { font-size: .85rem; font-variant-numeric: tabular-nums; color: var(--muted); min-width: 3ch; text-align: center; }
.test-page .client-reference { margin: 0; padding-left: clamp(1.5rem, 3vw, 3rem); border-left: 2px solid #c8d1bb; }
.test-page .client-reference blockquote { font-family: var(--font-sans); font-size: clamp(1.05rem, 1.4vw, 1.25rem); line-height: 1.85; letter-spacing: -.015em; }
.test-page .quote-author { display: flex; align-items: center; gap: .85rem; margin-top: 1.5rem; }
.test-page .quote-author-photo { display: block; border-radius: 50%; width: 64px; height: 64px; object-fit: cover; object-position: center 25%; flex-shrink: 0; }
.test-page .quote-author strong { font-size: .9rem; font-weight: 600; }
.test-page .quote-author p { font-size: .8rem; color: var(--muted); margin-top: .15rem; }

.test-page .possibility-section { background: #fff; }
.test-page .possibility-heading { max-width: 1000px; }
.test-page .possibility-stair { list-style: none; margin: 3rem 0; }
.test-page .possibility-stair li { display: flex; align-items: baseline; gap: 2rem; padding: 1.5rem 0 1.5rem 2rem; border-top: 1px solid #c8cebb; border-left: 1px solid #c8cebb; position: relative; }
.test-page .possibility-stair li::before { content: ''; position: absolute; width: 7px; height: 7px; left: -4px; top: -4px; background: #819367; border-radius: 50%; }
.test-page .possibility-stair li:nth-child(2) { margin-left: 5%; }
.test-page .possibility-stair li:nth-child(3) { margin-left: 10%; }
.test-page .possibility-stair li:nth-child(4) { margin-left: 15%; }
.test-page .possibility-stair li:nth-child(5) { margin-left: 20%; border-bottom: 1px solid #c8cebb; }
.test-page .possibility-stair li > span { font-size: .7rem; }
.test-page .possibility-stair h3 { font-family: var(--font-sans); font-size: clamp(1.05rem, 1.5vw, 1.4rem); font-weight: 500; letter-spacing: -.015em; line-height: 1.4; }
.test-page .possibility-note { display: flex; justify-content: space-between; align-items: end; gap: 2rem; }
.test-page .possibility-note p { color: var(--muted); }
.test-page .possibility-note .note-emphasis { color: var(--ink); font-weight: 600; font-size: 1.15rem; }
.test-page .possibility-note .btn-primary { flex-shrink: 0; }

/* A compact photograph accompanies the original summary and booking copy. */
.test-page .offer-section { background: var(--bg-surface); }
.test-page .coaching-offer { display: grid; grid-template-columns: minmax(240px, 360px) minmax(0, 1fr); grid-template-areas: 'photo content'; gap: clamp(2rem, 4vw, 4rem); align-items: center; }
.test-page .offer-content { grid-area: content; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(1.5rem, 3vw, 3rem); align-items: center; }
.test-page .offer-photo { grid-area: photo; margin: 0; }
.test-page .offer-photo img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 18px; }
.test-page .offer-summary .section-subtitle { margin-bottom: .85rem; }
.test-page .offer-summary h2 { margin-bottom: 1.5rem; }
.test-page .offer-details { list-style: none; }
.test-page .offer-details li { position: relative; display: flex; flex-direction: column; gap: .2rem; padding: .85rem 0 .85rem 1.75rem; border-top: 1px solid var(--rule); font-size: .95rem; line-height: 1.65; }
.test-page .offer-details li::before { content: '✓'; position: absolute; left: 0; color: var(--accent-olive); }
.test-page .offer-details strong { font-weight: 600; }
.test-page .offer-details li > span { color: var(--muted); font-size: .88rem; }
.test-page .offer-booking { border-left: 1px solid var(--rule); padding-left: clamp(1.5rem, 3vw, 3rem); }
.test-page .offer-booking .offer-investment { display: flex; flex-wrap: wrap; align-items: baseline; gap: .5rem 1rem; margin-bottom: 1.25rem; }
.test-page .offer-investment > span { font-size: .8rem; color: var(--muted); }
.test-page .offer-investment strong { color: var(--ink); font-size: 2rem; line-height: 1.3; font-weight: 600; letter-spacing: -.04em; white-space: nowrap; }
.test-page .offer-booking > p { font-size: .95rem; color: var(--muted); }
.test-page .offer-booking .btn-primary { gap: 1.25rem; margin-top: .35rem; padding: .9rem 1.4rem; }
.test-page .offer-guarantee { border-top: 1px solid var(--rule); margin-top: 2rem; padding-top: 1.25rem; font-size: .85rem; line-height: 1.8; color: var(--muted); }
.test-page .offer-guarantee strong { color: var(--ink); font-weight: 600; }

@media (min-width: 761px) and (max-width: 1100px) {
  .test-page .coaching-offer { grid-template-columns: minmax(240px, 320px) minmax(0, 1fr); }
  .test-page .offer-content { grid-template-columns: 1fr; gap: 1.25rem; }
  .test-page .offer-booking { border-left: 0; border-top: 1px solid var(--rule); padding: 1.25rem 0 0; }
}

.test-page .fit-section { background: #fff; }
.test-page .fit-heading { margin-bottom: 2.5rem; }
.test-page .fit-comparison { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; border-block: 1px solid var(--rule); }
.test-page .fit-column { display: flex; flex-direction: column; justify-content: center; padding: 2rem 0; }
.test-page .fit-boundaries { padding-right: clamp(1.5rem, 4vw, 4rem); }
.test-page .fit-readiness { padding-left: clamp(1.5rem, 4vw, 4rem); border-left: 1px solid var(--rule); }
.test-page .fit-column p { font-size: 1rem; color: var(--muted); }
.test-page .fit-column .fit-quotation { font-size: clamp(1.1rem, 1.5vw, 1.4rem); color: var(--ink); font-weight: 600; line-height: 1.45; margin-block: .5rem 1.5rem; }
.test-page .fit-readiness h3 { margin-bottom: 1rem; }
.test-page .fit-readiness ul { list-style: none; }
.test-page .fit-readiness li { position: relative; padding: .65rem 0 .65rem 1.7rem; border-bottom: 1px solid var(--rule); font-size: 1rem; line-height: 1.65; }
.test-page .fit-readiness li:last-child { border-bottom: 0; }
.test-page .fit-readiness li::before { content: '↗'; position: absolute; left: 0; }

/* A quiet invitation: one clear question, followed by a tangible first step. */
.test-page .closing-section { background: var(--bg-surface); }
.test-page .closing-layout { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(2.5rem, 6vw, 6rem); align-items: center; }
.test-page .closing-intro { max-width: 44rem; }
.test-page .closing-title { font-size: clamp(2rem, 3.2vw, 3.4rem); font-weight: 500; line-height: 1.2; text-wrap: initial; }
.test-page .closing-title em { display: inline-block; margin-top: .12em; }
.test-page .closing-reassurance { max-width: 36ch; margin-top: 2rem; color: var(--muted); }
.test-page .closing-emphasis { max-width: 28ch; font-size: clamp(1.15rem, 1.5vw, 1.4rem); font-weight: 600; line-height: 1.55; margin-top: 1.25rem; }
.test-page .closing-invitation { padding: clamp(1.5rem, 3vw, 3rem); background: var(--bg-primary); border: 1px solid var(--border-divider); border-radius: 24px; }
.test-page .closing-mark { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 1.75rem; border: 1px solid #d8d4c9; border-radius: 50%; font-size: 1.5rem; }
.test-page .closing-invitation h3 { font-size: clamp(1.5rem, 2vw, 2rem); line-height: 1.3; margin-bottom: 1.25rem; font-weight: 500; }
.test-page .closing-invitation > p { color: var(--muted); }
.test-page .closing-invitation .btn-primary { margin-top: .75rem; gap: 1.25rem; }
.test-page .closing-invitation .closing-note { margin-top: 1.25rem; margin-bottom: 0; font-size: .78rem; line-height: 1.65; }
/* Direct contact, arranged as a small address book instead of a form/card. */
.test-page .contact-section { background: var(--bg-primary); padding-block: clamp(3.25rem, 5.5vw, 5.5rem); }
.test-page .contact-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.test-page .contact-intro h2 { margin-bottom: 1rem; }
.test-page .contact-intro > p { max-width: 49ch; color: var(--muted); }
.test-page .contact-connections { font-style: normal; }
.test-page .contact-person { display: flex; flex-wrap: wrap; align-items: baseline; gap: .25rem 1rem; padding-bottom: 1.25rem; }
.test-page .contact-person strong { font-size: 1rem; font-weight: 600; }
.test-page .contact-person > span { font-size: .8rem; color: var(--muted); }
.test-page .contact-row { display: grid; grid-template-columns: 65px minmax(0, 1fr) 18px; align-items: center; gap: 1rem; padding-block: 1rem; border-top: 1px solid var(--rule); }
.test-page .contact-row:last-child { border-bottom: 1px solid var(--rule); }
.test-page .contact-row-label { font-size: .8rem; color: var(--muted); }
.test-page .contact-row-value { font-size: clamp(.9rem, 1.15vw, 1.05rem); font-weight: 500; overflow-wrap: anywhere; }
.test-page .contact-row-arrow { font-size: 1.15rem; transition: transform .2s; }
.test-page .contact-row:hover { color: var(--accent-olive-hover); }
.test-page .contact-row:hover .contact-row-arrow { transform: translate(2px, -2px); }
.test-page .contact-linkedin-icon { width: 23px; height: 23px; }

/* The full personal story has a slower, reading-oriented rhythm. */
.test-page .back-link { margin-bottom: 3rem; font-size: .8rem; border: 0; }
.test-page .story-opening { background: var(--bg-surface); padding-top: 2rem; }
.test-page .story-opening-grid { display: grid; grid-template-columns: 1.3fr .8fr; gap: clamp(3rem, 7vw, 7rem); align-items: center; }
.test-page .story-opening h1 { font-size: clamp(2rem, 3.1vw, 3.4rem); line-height: 1.12; font-weight: 500; letter-spacing: -.045em; text-wrap: balance; margin-bottom: 2rem; }
.test-page .story-opening .story-lead { font-size: 1.05rem; }
.test-page .story-opening .section-takeaway { margin-block: 1.75rem; }
/* Three balanced chapters use the width instead of leaving an empty sidebar. */
.test-page .story-chapter { background: #fff; }
.test-page .story-heading { margin-bottom: 2.5rem; }
.test-page .story-heading h2 { margin-top: .8rem; }
.test-page .story-heading > p { color: var(--muted); }
.test-page .story-stages { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.5rem, 3.5vw, 3.5rem); }
.test-page .story-stage { position: relative; }
.test-page .story-stage::before { content: ''; position: absolute; top: 19px; left: 52px; right: 0; height: 1px; background: var(--rule); }
.test-page .story-step { display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 1.4rem; border: 1px solid var(--rule); border-radius: 50%; font-size: .75rem; font-weight: 500; }
.test-page .story-stage p { color: var(--muted); font-size: .95rem; line-height: 1.8; }
.test-page .story-decision strong { font-weight: 600; }
.test-page .story-outcome { margin-top: 2.5rem; margin-bottom: 0; padding: 1.4rem 0 0 1.25rem; border-top: 1px solid var(--rule); position: relative; max-width: 90ch; }
.test-page .story-outcome::before { content: '↗'; position: absolute; left: 0; }
.test-page .story-manifesto { background: #e5e9dc; text-align: center; }
.test-page .story-manifesto h2 { font-size: clamp(1.65rem, 2.4vw, 2.35rem); margin-bottom: 2.5rem; }
/* Staggered milestones follow one central line; document order stays chronological. */
.test-page .education-heading { margin-bottom: 2.75rem; }
.test-page .education-timeline { --timeline-gap: clamp(2rem, 4vw, 4rem); list-style: none; position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: calc(var(--timeline-gap) * 2); row-gap: 1.75rem; max-width: 1120px; margin-inline: auto; padding-bottom: .5rem; }
.test-page .education-timeline::before { content: ''; position: absolute; top: 1rem; bottom: 0; left: calc(50% - .5px); width: 1px; background: var(--rule); }
.test-page .education-milestone { position: relative; align-self: start; padding: 0 0 1.5rem; border-bottom: 1px solid var(--rule); }
.test-page .education-milestone:nth-child(even) { margin-top: 3rem; }
.test-page .education-milestone::before { content: ''; position: absolute; top: 1rem; right: calc(0px - var(--timeline-gap)); width: var(--timeline-gap); height: 1px; background: var(--rule); }
.test-page .education-milestone::after { content: ''; position: absolute; top: calc(1rem - 5px); right: calc(0px - var(--timeline-gap) - 5px); width: 11px; height: 11px; border: 2px solid var(--accent-olive); border-radius: 50%; background: var(--bg-primary); box-shadow: 0 0 0 5px var(--bg-primary); }
.test-page .education-milestone:nth-child(even)::before { right: auto; left: calc(0px - var(--timeline-gap)); }
.test-page .education-milestone:nth-child(even)::after { right: auto; left: calc(0px - var(--timeline-gap) - 5px); }
.test-page .education-milestone:first-child::after { background: var(--accent-olive); }
.test-page .education-year { display: inline-block; font-size: .85rem; line-height: 1.4; font-weight: 600; color: var(--accent-olive); background: #e8ece1; border-radius: 5px; padding: .4rem .65rem; margin-bottom: 1rem; }
.test-page .education-milestone h3 { font-size: 1.1rem; line-height: 1.5; font-weight: 600; max-width: 38ch; }
.test-page .education-milestone p { margin-top: .6rem; color: var(--muted); font-size: .92rem; }
.test-page .education-topics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .55rem 1rem; list-style: none; margin-top: 1rem; color: var(--muted); font-size: .85rem; line-height: 1.65; }
.test-page .education-topics li { padding-left: .8rem; position: relative; }
.test-page .education-topics li::before { content: ''; position: absolute; top: .65em; left: 0; width: 3px; height: 3px; background: #95a182; border-radius: 50%; }

@media (max-width: 960px) {
  .test-page .hero-section { min-height: 40rem; display: flex; background-color: transparent; }
  .test-page .hero-section::before {
    inset: 0;
    aspect-ratio: auto;
    background:
      linear-gradient(180deg, rgba(20, 22, 18, .42), rgba(20, 22, 18, .62) 45%, rgba(20, 22, 18, .45)),
      url('../img/gratefull.webp') center / cover no-repeat;
  }
  .test-page .hero-section::after { content: none; }
  .test-page .hero-eyebrow,
  .test-page .hero-title,
  .test-page .hero-title > strong,
  .test-page .hero-text-link { color: #fffdf8; text-shadow: 0 2px 8px #0006; }
  .test-page .hero-text-link { border-bottom-color: currentColor; }
  .test-page .hero-content { width: 100%; max-width: 42rem; }
  .test-page .hero-title { font-size: clamp(2rem, 4.7vw, 3rem); }
  .test-page .shift-grid { gap: 2rem; }
  .test-page .doubt-cloud li:nth-child(n) { margin-left: 0; }
  .test-page .help-list { column-gap: 2.5rem; }
  .test-page .profile-layout { grid-template-columns: minmax(220px, .75fr) minmax(0, 1.25fr); gap: 2rem; align-items: start; }
  .test-page .possibility-note { align-items: flex-start; flex-direction: column; }
  .test-page .story-opening-grid { gap: 2rem; }
}
@media (max-width: 760px) {
  .test-page .closing-layout { grid-template-columns: 1fr; gap: 2rem; }
  .test-page .closing-intro { max-width: none; }
  .test-page .closing-title { font-size: clamp(2rem, 5.5vw, 2.6rem); }
  .test-page .closing-reassurance { max-width: 42ch; margin-top: 1.5rem; }
  .test-page .story-stages { grid-template-columns: 1fr; gap: 1.5rem; }
  .test-page .story-stage { padding-left: 3.5rem; }
  .test-page .story-stage::before { top: 48px; bottom: -.9rem; left: 19px; right: auto; width: 1px; height: auto; }
  .test-page .story-stage:last-child::before { display: none; }
  .test-page .story-step { position: absolute; top: 0; left: 0; margin: 0; }
  .test-page .story-stage > p:first-of-type { padding-top: .4rem; }
  .test-page .story-heading, .test-page .education-heading { margin-bottom: 2rem; }
  .test-page .story-outcome { margin-top: 2rem; font-size: .95rem; }
  .test-page .education-timeline { display: block; padding: 0 0 0 2rem; }
  .test-page .education-timeline::before { left: 5px; top: 1rem; bottom: 1rem; }
  .test-page .education-milestone { margin-bottom: 1.75rem; }
  .test-page .education-milestone:nth-child(even) { margin-top: 0; }
  .test-page .education-milestone:last-child { margin-bottom: 0; }
  .test-page .education-milestone:nth-child(n)::before { right: auto; left: calc(5px - 2rem); width: calc(2rem - 5px); }
  .test-page .education-milestone:nth-child(n)::after { right: auto; left: -2rem; }
  .test-page .education-milestone h3 { max-width: none; }

  .test-page .reference-layout, .test-page .coaching-offer, .test-page .contact-layout { grid-template-columns: 1fr; gap: 2rem; }
  .test-page .reference-intro h2 { max-width: none; }
  .test-page .reference-footer { padding-left: 1.25rem; }
  .test-page .client-reference { padding-left: 1.25rem; }
  .test-page .coaching-offer { grid-template-areas: 'content' 'photo'; }
  .test-page .offer-content { grid-template-columns: 1fr; gap: 1.25rem; }
  .test-page .offer-booking { border-left: 0; border-top: 1px solid var(--rule); padding: 1.25rem 0 0; }
  .test-page .offer-photo { width: 100%; }
  .test-page .contact-row { grid-template-columns: 56px minmax(0, 1fr) 16px; gap: .65rem; }
  .test-page .shift-grid, .test-page .profile-layout, .test-page .fit-comparison, .test-page .story-opening-grid { grid-template-columns: 1fr; }
  .test-page .shift-grid { gap: 2.5rem; }
  .test-page .shift-before { text-align: center; }
  .test-page .doubt-cloud { align-items: center; }
  .test-page .doubt-cloud li:nth-child(n) { margin-inline: 0; }
  .test-page .doubt-cloud li { font-size: 1rem; }
  .test-page .profile-photo { width: min(100%, 380px); }
  .test-page .profile-copy .text-link { margin-top: 1rem; }
  .test-page .fit-column { padding: 1.75rem 0; }
  .test-page .fit-readiness { border-left: 0; border-top: 1px solid var(--rule); }
  .test-page .story-opening .story-photo { margin-inline: auto; }
  .test-page .story-opening h1 { max-width: 620px; }
}
@media (max-width: 700px) {
  .test-page .help-list { grid-template-columns: 1fr; }
  .test-page .help-list li { gap: 1rem; font-size: 1rem; }
  .test-page .possibility-stair li { gap: 1rem; padding: 1.2rem 0 1.2rem 1rem; }
  .test-page .possibility-stair li:nth-child(2) { margin-left: 2%; }
  .test-page .possibility-stair li:nth-child(3) { margin-left: 4%; }
  .test-page .possibility-stair li:nth-child(4) { margin-left: 6%; }
  .test-page .possibility-stair li:nth-child(5) { margin-left: 8%; }
  .test-page .possibility-stair h3 { font-size: 1.05rem; }
}
@media (max-width: 480px) {
  .test-page .education-topics { grid-template-columns: 1fr; }

  .test-page .contact-row { grid-template-columns: minmax(0, 1fr) 16px; gap: .3rem .75rem; }
  .test-page .contact-row-label { grid-column: 1; }
  .test-page .contact-row-value, .test-page .contact-linkedin-icon { grid-column: 1; }
  .test-page .contact-row-arrow { grid-column: 2; grid-row: 1 / 3; }
  .test-page .hero-actions { flex-direction: row; flex-wrap: nowrap; align-items: center; gap: .75rem; }
  .test-page .hero-actions .btn-primary { flex: 1; min-width: 0; width: auto; padding: .8rem .65rem; font-size: .75rem; gap: .4rem; }
  .test-page .hero-actions .hero-text-link { flex: 0 1 auto; max-width: 42%; min-width: 0; font-size: .75rem; }
  .test-page .hero-title { font-size: clamp(1.8rem, 7vw, 2.2rem); }
  .test-page .doubt-cloud li { padding-inline: .9rem; font-size: .95rem; }
  .test-page .shift-after { padding: 1.5rem; }
  .test-page .shift-after h2 { padding-right: .5rem; }
  .test-page .btn-primary { padding-inline: 1.1rem; }
}
/* Motion is opt-in from JS. Content remains visible if scripts are unavailable. */
@media (prefers-reduced-motion: no-preference) {
  .test-page.motion-enabled .motion-line::before,
  .test-page.motion-enabled .motion-line::after { transition: transform 1s cubic-bezier(.22, 1, .36, 1), background-color .5s ease; }
  .test-page.motion-enabled .story-stage::before { transform: scaleX(0); transform-origin: left; background: #95a182; }
  .test-page.motion-enabled .story-stage.motion-entered::before { transform: scaleX(1); }
  .test-page.motion-enabled .education-timeline::after { content: ''; position: absolute; top: 1rem; bottom: 0; left: calc(50% - .5px); width: 1px; background: var(--accent-olive); transform: scaleY(var(--timeline-progress, 0)); transform-origin: top; pointer-events: none; }
  .test-page.motion-enabled .education-milestone::before { transform: scaleX(0); transform-origin: right; background: #95a182; }
  .test-page.motion-enabled .education-milestone:nth-child(even)::before { transform-origin: left; }
  .test-page.motion-enabled .education-milestone.motion-entered::before { transform: scaleX(1); }
  .test-page.motion-enabled .education-milestone::after { z-index: 1; transform: scale(.65); }
  .test-page.motion-enabled .education-milestone.motion-entered::after { transform: scale(1); background: var(--accent-olive); }
  .test-page.motion-enabled .help-list > li,
  .test-page.motion-enabled .possibility-stair > li,
  .test-page.motion-enabled .contact-row { background-image: linear-gradient(#95a182, #95a182); background-repeat: no-repeat; background-size: 0 1px; background-position: left bottom; transition: background-size 1.1s cubic-bezier(.22, 1, .36, 1), color .2s ease; }
  .test-page.motion-enabled .help-list > li.motion-entered,
  .test-page.motion-enabled .possibility-stair > li.motion-entered,
  .test-page.motion-enabled .contact-row.motion-entered { background-size: 100% 1px; }
  .test-page.motion-enabled .client-reference { position: relative; }
  .test-page.motion-enabled .client-reference::before { content: ''; position: absolute; left: -2px; top: 0; bottom: 0; width: 2px; background: #95a182; transform: scaleY(0); transform-origin: top; }
  .test-page.motion-enabled .client-reference.motion-entered::before { transform: scaleY(1); }
}
@media (prefers-reduced-motion: no-preference) {
  .test-page.motion-enabled .motion-line:not(.motion-entered),
  .test-page.motion-enabled .motion-line:not(.motion-entered)::before,
  .test-page.motion-enabled .motion-line:not(.motion-entered)::after { transition: none; }
}
@media (max-width: 760px) and (prefers-reduced-motion: no-preference) {
  .test-page.motion-enabled .motion-pending { opacity: 0; }
  .test-page.motion-enabled .story-stage::before { transform: scaleY(0); transform-origin: top; }
  .test-page.motion-enabled .story-stage.motion-entered::before { transform: scaleY(1); }
  .test-page.motion-enabled .education-timeline::after { left: 5px; bottom: 1rem; }
  .test-page.motion-enabled .education-milestone:nth-child(n)::before { transform-origin: left; }
}
@media print {
  .test-page *, .test-page *::before, .test-page *::after { animation: none !important; transition: none !important; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .test-page *, .test-page *::before, .test-page *::after { animation: none !important; transition: none !important; }
}
