.relationship-metrics{background:var(--ivory)}
main .metrics-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:16px 36px;margin-bottom:24px}
.metrics-heading>div{min-width:0}
.metrics-heading .metrics-note{max-width:26ch;margin:0 0 6px;color:var(--muted);font-size:1rem;line-height:1.5}
.metrics-dashboard{padding:0 18px 18px;border:1px solid #a38c6a50;border-radius:16px;background:#faf7ef;box-shadow:0 16px 48px -30px #34382d50;overflow:hidden}
.metrics-toolbar{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:14px 0}
.metrics-product{display:flex;gap:9px;align-items:center;font-size:1rem;font-weight:500;white-space:nowrap}
.metrics-product-secondary{color:var(--muted);font-weight:400}
.metrics-app-icon{display:grid;place-items:center;width:30px;height:30px;margin-right:3px;border:1px solid #787f6640;border-radius:8px;background:var(--ivory);font-size:.875rem;letter-spacing:-.08em}
.metrics-team{border:1px solid #787f6630;border-radius:24px;background:#787f6610;color:var(--olive);padding:4px 10px;font-size:.875rem;line-height:1.4}
.metrics-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:0}
.relationship-metric{--chart-color:var(--olive);--chart-grid:#787f6625;--chart-fill:#787f6610;min-width:0;margin:0;display:flex;flex-direction:column;gap:10px;padding:20px;border:1px solid #a38c6a35;border-radius:12px;background:var(--ivory)}
.relationship-metric dt{display:flex;align-items:center;gap:8px;font-size:1rem;line-height:1.4;color:var(--muted)}
.relationship-metric dt>span{min-width:0;overflow-wrap:anywhere}
.metric-sketch{flex-shrink:0;width:26px;height:26px;fill:none;stroke:var(--sketch-gray,#a7a79e);stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round;transform:rotate(-5deg);transition:stroke .2s,transform .2s}
.relationship-metric dd{margin:0}
.metric-reading{display:flex;flex-wrap:wrap;align-items:baseline;gap:3px;font-variant-numeric:tabular-nums;line-height:1;letter-spacing:-.06em;color:var(--ink)}
.metric-number{font-size:clamp(2.8rem,4.2vw,4rem);font-weight:400}
.metric-unit{font-size:1.8rem;font-weight:300;color:var(--olive)}
.metric-caption{font-size:.875rem;line-height:1.4;color:var(--muted)}
.metric-calls{--chart-color:var(--yellow);--chart-grid:#f6efdf25;--chart-fill:#e7cc5d15;background:var(--olive);border-color:var(--olive)}
.metric-calls dt,.metric-calls .metric-caption,.metric-calls .metric-reading,.metric-calls .metric-unit{color:var(--ivory)}
.metric-calls .metric-sketch{stroke:#f6efdf99}
.metric-calls .metric-caption{opacity:.85}
.relationship-metric .metric-chart{margin-top:auto;padding-top:8px}
.metric-chart>svg{display:block;width:100%;height:96px;overflow:visible}
.metric-chart-grid{fill:none;stroke:var(--chart-grid);stroke-width:1;stroke-dasharray:3 5}
.metric-chart-area{fill:var(--chart-fill)}
.metric-chart-line{fill:none;stroke:var(--chart-color);stroke-width:2.5;stroke-linecap:round;stroke-linejoin:round}
.metrics-pending{margin:10px 0 0;font-size:.875rem;line-height:1.5;color:var(--muted);text-align:right}
.relationship-metrics+.travel-section{padding-top:clamp(24px,3vw,40px)}
@media(hover:hover) and (pointer:fine){.relationship-metric:hover .metric-sketch{stroke:var(--ochre);transform:rotate(0)}.metric-calls:hover .metric-sketch{stroke:var(--yellow)}}
@media(max-width:900px){main .metrics-heading{display:block}.metrics-heading .metrics-note{max-width:none;margin:12px 0 0}.relationship-metric{padding:16px}.metric-number{font-size:2.8rem}}
@media(max-width:700px){
 .metrics-dashboard{padding-inline:12px}
 .metrics-toolbar{flex-wrap:wrap;padding:12px 0;gap:8px}
 .metrics-product{font-size:.875rem;gap:6px}
 .metrics-grid{grid-template-columns:minmax(0,1fr);gap:10px}
 .relationship-metric{display:grid;grid-template-columns:minmax(min-content,1.15fr) minmax(60px,1fr);gap:6px 12px;padding:14px 16px}
 .relationship-metric dt{grid-column:1/-1}
 .relationship-metric .metric-reading{grid-column:1;grid-row:2;flex-wrap:nowrap;align-self:center;white-space:nowrap}
 .relationship-metric .metric-chart{grid-column:2;grid-row:2;align-self:center;margin:0;padding:0}
 .relationship-metric .metric-caption{grid-column:1/-1}
 .metric-number{font-size:clamp(2.2rem,9vw,2.8rem)}
 .metric-unit{font-size:1.5rem}
 .metric-chart>svg{height:68px}
 .metric-sketch{width:22px;height:22px}
 .metrics-pending{text-align:left}
}
@media(prefers-reduced-motion:reduce){.metric-sketch{transition:none}}

/* Small photo windows sit over the chart without adding another content row. */
.metric-chart-with-memory{position:relative;isolation:isolate}
.metric-memory-window{position:absolute;right:4px;bottom:0;z-index:1;display:block;border:3px solid #faf7ef;border-radius:9px;overflow:hidden;background:var(--ivory);box-shadow:0 4px 12px #34382d25;transform:rotate(5deg);transform-origin:bottom center;transition:transform .2s ease,box-shadow .2s ease;pointer-events:none}
.metric-memory-window>img,.metric-memory-window>svg{display:block;width:100%;height:100%;object-fit:cover}
.memory-call{width:62px;height:106px;transform:rotate(-5deg)}
.memory-plane{width:98px;height:90px}
.memory-plane>img{object-position:50% 35%}
@media(hover:hover) and (pointer:fine){.relationship-metric:hover .metric-memory-window{transform:rotate(0) scale(1.06);box-shadow:0 6px 16px #34382d30}}
@media(max-width:700px){.metric-memory-window{right:0;border-width:2px}.memory-call{width:42px;height:68px}.memory-plane{width:68px;height:60px}}
@media(prefers-reduced-motion:reduce){.metric-memory-window{transition:none}.relationship-metric:hover .metric-memory-window{transform:none}}

.memory-countries{width:78px;height:104px;transform:rotate(-4deg)}
.memory-countries>img{object-position:35% 35%}
@media(max-width:700px){.memory-countries{width:48px;height:64px}}
