/* LeanShaman / ZX-Agent — editorial product story, inspired by the art direction. */
.behavior-case {
  --story-width: 1680px;
  --story-gutter: clamp(18px, 4vw, 96px);
  border: 0;
  border-radius: 0;
  background: #fdfcf9;
  margin: 0;
  overflow: hidden;
}
.behavior-case > .case-topline,
.behavior-case > .case-layout,
.behavior-case > .behavior-foundation,
.behavior-case > .behavior-fields,
.behavior-case > .behavior-practice {
  width: min(var(--story-width), calc(100% - var(--story-gutter) * 2));
  margin-inline: auto;
}
.behavior-case > .case-topline { padding: 26px 0; border-color: #e7e1d7; }
.behavior-case > .case-layout { grid-template-columns: 1fr 1fr; }
.behavior-case .case-copy { padding: clamp(38px, 4.5vw, 78px) clamp(32px, 5vw, 88px) clamp(38px, 4.5vw, 78px) 0; }
.behavior-case .case-copy h3 { font-size: clamp(2rem, 3.15vw, 3.35rem); letter-spacing: -.055em; }
.behavior-case .case-copy > p { color: #626761; }
.behavior-case .case-finding { border-color: #e5e1d8; }
.behavior-case .case-finding p { color: #626761; }
.behavior-case .case-workbench {
  padding: clamp(38px, 4.5vw, 78px) 0 clamp(38px, 4.5vw, 78px) clamp(32px, 5vw, 88px);
  background: linear-gradient(115deg, #f4f0e980, #fdfcf900 72%);
  border-color: #e7e1d7;
}
.behavior-case .zx-workbench h3 { font-size: clamp(1.8rem, 2.7vw, 2.85rem); letter-spacing: -.05em; }
.behavior-case .workbench-label { margin-bottom: 28px; }
.behavior-case .workbench-label span:last-child { font-size: .6rem; }
.behavior-case .behavior-sequence { margin: 22px 0; }
.behavior-case .behavior-sequence li { border-top: 1px solid #e3dfd6; padding: 20px 0; }
.behavior-case > .behavior-foundation { padding: 34px 0; gap: 0; background: transparent; border-color: #e7e1d7; }
.behavior-foundation > div { padding-right: 38px; }
.behavior-foundation strong { font-size: clamp(4rem, 5.7vw, 6rem); letter-spacing: -.065em; line-height: 1; }
.behavior-foundation strong span { font-size: 1rem; }
.behavior-foundation > p { padding: 12px 0 12px clamp(32px, 4vw, 65px); border-left: 1px solid #e0d8cb; }
.behavior-foundation p { font-size: .9rem; }

/* The typography is HTML; the photograph is an independent responsive asset. */
.measurement-story {
  position: relative;
  isolation: isolate;
  max-width: 2000px;
  min-height: clamp(740px, 55vw, 1080px);
  margin-inline: auto;
  background: #f8f6f2;
}
.measurement-scene { position: absolute; z-index: -1; inset: 0; margin: 0; overflow: hidden; }
.measurement-scene picture { display: block; width: 100%; height: 100%; }
.measurement-scene img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.measurement-scene::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, #fffdfbe8, #fffdfbc7 34%, #fffdfb42 46%, #fffdfb00 56%); pointer-events: none; }
.measurement-scene figcaption { position: absolute; z-index: 1; right: var(--story-gutter); bottom: 22px; color: #50594f; font: .6rem/1.7 var(--mono); letter-spacing: .02em; text-align: right; }
.measurement-scene figcaption span { display: block; font-family: var(--sans); font-size: .65rem; letter-spacing: 0; }
.measurement-inner { width: min(var(--story-width), calc(100% - var(--story-gutter) * 2)); margin-inline: auto; }
.measurement-copy { width: 47%; padding: clamp(68px, 6vw, 110px) 0 clamp(100px, 10vw, 185px); }
.measurement-copy .eyebrow { font-size: .7rem; letter-spacing: .1em; }
.measurement-copy h3 { font-size: clamp(2.65rem, 3.55vw, 4rem); line-height: 1.08; font-weight: 500; letter-spacing: -.062em; margin: 28px 0 32px; color: #18231f; text-wrap: balance; }
.measurement-copy p { max-width: 51ch; margin-bottom: 22px; font-size: 1rem; line-height: 1.75; color: #59615c; }
.measurement-copy .inline-link { display: inline-flex; align-items: center; justify-content: space-between; gap: 26px; padding: 12px 0; margin-top: 8px; border-bottom: 1px solid #39715845; font-size: .9rem; line-height: 1.6; }
.measurement-copy .inline-link > span:last-child { transition: transform .25s ease; }
.measurement-copy .inline-link:hover > span:last-child { transform: translateX(5px); }

.behavior-case > .behavior-practice { display: grid; grid-template-columns: .85fr 1.35fr .6fr; align-items: center; gap: clamp(28px, 4vw, 68px); padding: 60px 0; }
.practice-device { min-width: 0; background: radial-gradient(ellipse, #e7ebe250, transparent 68%); }
.practice-device img { width: 100%; height: auto; display: block; filter: drop-shadow(0 20px 15px #2931270d); }
.practice-copy { min-width: 0; }
.practice-copy .eyebrow { font-size: .65rem; }
.practice-copy h3 { font-size: clamp(1.8rem, 2.5vw, 2.8rem); font-weight: 500; line-height: 1.15; letter-spacing: -.045em; margin: 18px 0; }
.practice-copy p { color: #657066; font-size: .95rem; line-height: 1.8; max-width: 48ch; }
.practice-copy .inline-link { display: inline-flex; align-items: center; gap: 20px; font-size: .85rem; margin-top: 14px; }
.practice-note { border-left: 1px solid #e2e4da; padding-left: 30px; color: #687864; }
.practice-symbol { display: block; font: 1.6rem/1 var(--mono); margin-bottom: 20px; color: #799377; }
.practice-note p { font-size: 1.1rem; line-height: 1.6; letter-spacing: -.025em; }
.practice-code { display: block; font: .55rem/1.7 var(--mono); margin-top: 22px; }
.behavior-case > .behavior-fields { background: transparent; border-color: #e2e4da; padding-bottom: 32px; }
.behavior-fields > div { padding: 30px 32px; }
.behavior-fields > div:first-child { padding-left: 0; }
.behavior-fields > div:last-child { padding-right: 0; }
.behavior-fields h4 { font-size: 1.05rem; letter-spacing: -.025em; }

@media (min-width: 1600px) {
  .measurement-copy { width: 45%; }
  .measurement-copy h3 { font-size: clamp(3.1rem, 3.5vw, 4rem); }
}
@media (max-width: 1100px) {
  .behavior-case .workbench-label { flex-wrap: wrap; gap: 6px; }
  .behavior-case > .behavior-practice { grid-template-columns: .85fr 1.25fr; }
  .practice-note { display: none; }
}
@media (max-width: 1100px) {
  .measurement-story { display: flex; flex-direction: column; min-height: 0; background: #faf9f6; }
  .measurement-inner { order: 0; }
  .measurement-copy { width: 100%; max-width: 720px; padding: 60px 0 30px; }
  .measurement-copy h3 { max-width: 21ch; font-size: clamp(2.5rem, 5.5vw, 3.5rem); margin: 24px 0; }
  .measurement-copy p { max-width: 66ch; }
  .measurement-scene { position: relative; order: 1; z-index: 0; height: clamp(330px, 56vw, 560px); }
  .measurement-scene img { object-position: 92% 65%; }
  .measurement-scene::after { background: linear-gradient(180deg, #faf9f6 0, #faf9f600 17%); }
  .measurement-scene figcaption { bottom: 14px; right: var(--story-gutter); font-size: .6rem; padding: 6px 10px; border-radius: 3px; background: #fffdf9d9; }
}
@media (max-width: 900px) {
  .behavior-case > .case-layout { grid-template-columns: 1fr; }
  .behavior-case .case-copy { padding: 38px 0; }
  .behavior-case .case-workbench { padding: 38px 0; border-left: 0; background: transparent; }
  .behavior-case .case-copy h3 { font-size: clamp(2rem, 5vw, 3rem); }
  .behavior-case .zx-workbench h3 { font-size: clamp(1.9rem, 4.5vw, 2.8rem); }
  .behavior-case .workbench-label { flex-wrap: nowrap; }
  .behavior-case > .behavior-foundation { grid-template-columns: 1fr; gap: 25px; }
  .behavior-foundation > div { padding: 0; }
  .behavior-foundation > p { border-left: 0; border-top: 1px solid #e0d8cb; padding: 22px 0 0; }
  .behavior-case > .behavior-fields { grid-template-columns: 1fr 1fr; }
  .behavior-fields > div:nth-child(odd) { padding-left: 0; }
  .behavior-fields > div:nth-child(even) { padding-right: 0; }
}
@media (max-width: 600px) {
  .behavior-case > .case-topline { font-size: .6rem; padding: 22px 0; }
  .behavior-case .workbench-label { flex-wrap: wrap; }
  .behavior-case > .behavior-foundation { padding: 30px 0; }
  .behavior-foundation strong { font-size: 4.7rem; }
  .behavior-foundation > div { gap: 22px; }
  .behavior-foundation p { font-size: .875rem; }
  .measurement-copy { padding-top: 45px; }
  .measurement-copy h3 { font-size: clamp(2rem, 8.4vw, 3rem); letter-spacing: -.055em; }
  .measurement-copy h3 br { display: none; }
  .measurement-copy .eyebrow { font-size: .65rem; }
  .measurement-copy p { font-size: 1rem; line-height: 1.75; }
  .measurement-copy .inline-link { font-size: .875rem; gap: 20px; }
  .measurement-scene { height: clamp(350px, 100vw, 540px); }
  .behavior-case > .behavior-practice { grid-template-columns: 1fr; padding: 38px 0; gap: 12px; }
  .practice-device { width: min(300px, 85%); justify-self: center; }
  .practice-copy { padding: 8px 0; }
  .practice-copy h3 { font-size: 2rem; }
  .practice-copy p { font-size: 1rem; }
  .behavior-case > .behavior-fields { grid-template-columns: 1fr; }
  .behavior-fields > div { padding: 24px 0; }
}
@media (prefers-reduced-motion: reduce) {
  .measurement-copy .inline-link > span:last-child { transition: none; }
}
@media print {
  .measurement-story { min-height: 0; }
  .measurement-scene { display: none; }
  .measurement-copy { width: 100%; padding: 30px 0; }
  .behavior-case > .behavior-practice { display: block; }
  .practice-device, .practice-note { display: none; }
}
