/* The sample shares the page's type scale and spacing. */
.work-example { margin: 3.5rem 0 0; border-top: 1px solid var(--line); padding: 3rem 0; min-width: 0; }
.example-heading { display: grid; grid-template-columns: 1.15fr .85fr; gap: 3rem; align-items: end; margin-bottom: 2rem; }
.example-heading h3 { font-size: clamp(2.25rem, 3.3vw, 3.25rem); line-height: 1.12; letter-spacing: -.02em; color: var(--cream); max-width: 650px; margin: 1rem 0 0; }
.example-heading h3 em { color: var(--gold); }
.example-heading > p { font-size: .9375rem; color: var(--stone); max-width: 360px; margin: 0; justify-self: end; }
.example-desk { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(32px, 5vw, 72px); align-items: center; padding: 1.5rem 0; }
.example-input { padding: 1.25rem 12px; }
.example-column-label { font: 500 .6875rem/1.6 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--stone); margin-bottom: 1.5rem; }
.example-message { position: relative; background: #ded2bf; color: #3e352b; padding: 1.4rem 1.5rem; margin: 0 0 1.5rem; box-shadow: 2px 8px 18px #0002; transform: translateX(-8px) rotate(-3deg); max-width: 420px; border-left: 2px solid #a17350; }
.example-message:nth-of-type(2) { background: #eee4d4; transform: translateX(18px) rotate(2deg); border-left-color: #a7987e; }
.example-message:nth-of-type(3) { background: #ccb69b; transform: translateX(5px) rotate(-1.5deg); border-left-color: #8a5f49; }
.example-message p { font: 400 1.5rem/1.3 var(--serif); margin: 0; }
.example-message span { display: block; font: 400 .75rem/1.6 var(--sans); color: #655541; margin-top: .75rem; }
.example-output { min-height: 390px; display: flex; align-items: stretch; min-width: 0; }
.example-waiting { width: 100%; padding: 2rem; display: flex; flex-direction: column; justify-content: center; border: 1px solid #d4a57435; min-height: 390px; }
.example-waiting .example-column-label { margin-bottom: 1.25rem; }
.example-waiting p:nth-child(2) { font: 400 clamp(2rem, 3vw, 2.75rem)/1.12 var(--serif); letter-spacing: -.015em; color: var(--cream); max-width: 360px; margin: 0; }
.example-waiting p:nth-child(2) em { color: var(--gold); }
.example-waiting p:last-child { color: var(--stone); font-size: .9375rem; margin-top: 1.5rem; max-width: 340px; }
.example-review { background: #f0e8db; color: #3c352c; width: 100%; padding: 2rem; box-shadow: 5px 12px 26px #0002; border-top: 3px solid var(--clay); }
.example-review .example-column-label { color: #7b553d; margin-bottom: .75rem; }
.example-review h4 { font: 400 2.25rem/1.15 var(--serif); color: #302a24; margin: 0 0 1.5rem; }
.example-brief { margin: 0 0 1.5rem; display: grid; grid-template-columns: 80px 1fr; gap: .75rem 1rem; font-size: .875rem; line-height: 1.6; }
.example-brief dt { font-size: .6875rem; text-transform: uppercase; letter-spacing: .07em; color: #79523b; padding-top: .2rem; }
.example-brief dd { margin: 0; color: #51463a; }
.example-draft { border-top: 1px solid #3c352c30; padding-top: 1.25rem; }
.example-draft-label { font-size: .6875rem; letter-spacing: .08em; text-transform: uppercase; color: #79523b; margin: 0 0 .75rem; }
.example-draft blockquote { font: 400 1.25rem/1.5 var(--serif); margin: 0; color: #3e352b; }
.example-draft blockquote p + p { margin-top: .75rem; }
.example-review-note { color: #71614f; font-size: .75rem; line-height: 1.6; margin: 1.25rem 0 0; }
.example-controls { display: flex; align-items: center; gap: 1.5rem; min-height: 48px; margin-top: 1rem; }
.example-button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: .875rem 1.5rem; border: 1px solid var(--gold); background: var(--gold); color: #231d18; font: 500 .875rem/1.5 var(--sans); white-space: nowrap; }
.example-button:hover { background: #e3bc91; }
.example-button[aria-disabled="true"] { cursor: wait; background: #ad8d69; border-color: #ad8d69; color: #211b15; }
.example-status { font-size: .8125rem; line-height: 1.6; color: var(--stone); max-width: 470px; min-height: 1.6em; margin: 0; }
.example-caption { font-size: .75rem; line-height: 1.7; color: var(--stone); margin-top: 1.25rem; max-width: 660px; }
.work-example [hidden] { display: none !important; }
.example-enhanced[data-example-state="gathering"] .example-message, .example-enhanced[data-example-state="complete"] .example-message { transform: translateX(0) rotate(0); box-shadow: 0 3px 9px #0001; }
.example-enhanced[data-example-motion="on"] .example-message { transition: transform 480ms cubic-bezier(.2,.8,.2,1),box-shadow 480ms; }
.example-enhanced[data-example-motion="on"] .example-message:nth-of-type(2) { transition-delay: 80ms; }
.example-enhanced[data-example-motion="on"] .example-message:nth-of-type(3) { transition-delay: 160ms; }
.example-enhanced[data-example-state="complete"][data-example-motion="on"] .example-review { animation: example-arrive 200ms ease-out both; }
@keyframes example-arrive { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 760px) {
  .work-example { margin: 2.5rem 0 0; padding: 2.5rem 0; }
  .example-heading { grid-template-columns: 1fr; gap: 1.25rem; margin-bottom: 1rem; }
  .example-heading h3 { font-size: clamp(2.125rem, 9vw, 2.75rem); }
  .example-heading > p { max-width: none; justify-self: start; }
  .example-desk { grid-template-columns: 1fr; gap: 1.5rem; padding: 1rem 0; }
  .example-input { padding: 1rem 10px 0; }
  .example-message { max-width: none; padding: 1.25rem; transform: translateX(-4px) rotate(-2deg); }
  .example-message:nth-of-type(2) { transform: translateX(7px) rotate(1.5deg); }
  .example-message:nth-of-type(3) { transform: translateX(2px) rotate(-1deg); }
  .example-message p { font-size: 1.375rem; }
  .example-output, .example-waiting { min-height: 280px; }
  .example-review, .example-waiting { padding: 1.5rem; }
  .example-review h4 { font-size: 2rem; }
  .example-brief { grid-template-columns: 65px 1fr; gap: .75rem; }
  .example-controls { align-items: start; flex-direction: column; gap: 1rem; }
  .example-button { min-height: 48px; width: 100%; white-space: normal; }
  .example-status { min-height: 1.6em; }
}
@media (prefers-reduced-motion: reduce) { .work-example * { animation: none !important; transition: none !important; } }
