.story {
  --navy: #17243b;
  --muted: #46556a;
  --accent: #315e9b;
  --line: #d8e1ef;
  background: #fff;
  color: var(--navy);
  line-height: 1.55;
}
.story-wrap { width: min(1140px, calc(100% - 3rem)); margin-inline: auto; }
.story h1, .story h2, .story h3 { margin: 0; text-wrap: balance; color: inherit; line-height: 1.1; }
.story h1 { font-size: clamp(2.2rem, 4.7vw, 4.6rem); letter-spacing: -.055em; }
.story h2 { max-width: 23ch; font-size: clamp(1.85rem, 3.5vw, 3.2rem); letter-spacing: -.04em; }
.story h3 { font-size: clamp(1.3rem, 2vw, 1.65rem); letter-spacing: -.025em; }
.story p { margin: 1rem 0; max-width: 66ch; color: var(--muted); }
.story a { color: var(--accent); text-underline-offset: .2em; }
.story a:focus-visible, .story-skip:focus-visible { outline: 2px solid #315e9b; outline-offset: 4px; }
.story [id] { scroll-margin-top: 6rem; }
.story-skip { position: fixed; left: 1rem; top: 1rem; z-index: 9999; transform: translateY(-180%); background: white; padding: .65rem; }
.story-skip:focus { transform: none; }
.story-hero { display: grid; grid-template-columns: minmax(0,1.5fr) minmax(280px,1fr); align-items: center; gap: clamp(1.5rem,5vw,5rem); padding-block: clamp(2rem,6vw,5rem); }
.story-back { display: inline-block; margin-bottom: .75rem; }
.story .story-kicker { color: var(--accent); font-size: .85rem; font-weight: 700; }
.story .story-role { font-weight: 700; color: var(--navy); }
.story-result { display: grid; gap: .45rem; position: relative; isolation: isolate; overflow: hidden; border-radius: 2rem; padding: clamp(1.2rem,4vw,3rem); background: #edf3fb; border: 1px solid var(--line); }
.story-result::before, .story-result::after { content: ''; position: absolute; z-index: -1; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 32% 30%, #fff 1%, #e1eefc 43%, #a9c7e9a0 100%); box-shadow: inset 0 0 22px #fff, 0 14px 40px #315e9b19; }
.story-result::before { width: 55%; right: -12%; top: -15%; }
.story-result::after { width: 28%; right: 12%; bottom: -10%; }
.story-result strong { color: var(--accent); font-size: clamp(4rem,9vw,8rem); line-height: .88; letter-spacing: -.075em; }
.story-result b { font-size: clamp(1.35rem,3vw,2.5rem); }
.story-result small { color: var(--muted); }
.story-nav, .story-steps { display: flex; flex-wrap: wrap; gap: .5rem 1.15rem; font-size: .9rem; }
.story-nav { padding-block: 1rem; border-block: 1px solid var(--line); }
.story-section { padding-block: clamp(2.75rem,7vw,6rem); }
.story-section + .story-wrap { border-top: 1px solid var(--line); }
.story-insight, .scenario, .story-journey, .story-stats { display: grid; gap: .8rem; margin: 1.5rem 0 0; padding: 0; }
.story-insight { grid-template-columns: repeat(2,minmax(0,1fr)); }
.scenario, .story-journey, .story-stats { grid-template-columns: repeat(3,minmax(0,1fr)); }
.story-insight > div, .scenario > div, .story-journey li, .story-stats > div { position: relative; padding: 1rem; border: 1px solid var(--line); border-radius: 1rem; background: #f3f7fc; }
.story dd { margin: .25rem 0 0; }
.story dt, .story-journey strong { font-weight: 700; }
.story-note, .device-figure figcaption { font-size: .85rem; color: var(--muted); }
.walkthrough { display: grid; grid-template-columns: minmax(0,.8fr) minmax(0,1.4fr); gap: clamp(1rem,5vw,4rem); align-items: start; }
.walkthrough > header { position: sticky; top: 6rem; }
.walkthrough-steps { display: grid; gap: 1rem; min-width: 0; }
.story-panel { padding: clamp(1rem,3vw,1.6rem); border: 1px solid var(--line); border-radius: 1.25rem; background: #fff; }
.device-figure { margin: 1rem 0 0; min-width: 0; }
.device-figure figcaption { margin-top: .65rem; }
.device-view { display: grid; place-items: center; position: relative; overflow: hidden; background: radial-gradient(ellipse at 65% 25%, #fff, #e6effa 72%); border-radius: .85rem; aspect-ratio: 1.55; }
.device-still { width: 87%; height: 82%; display: block; overflow: hidden; border: 5px solid #283853; border-radius: .65rem; background: #fff; box-shadow: 0 8px 25px #17243b30; }
.device-still img { width: 100%; height: 100%; display: block; object-fit: cover; object-position: top; }
.device-view[data-device=phone] .device-still { width: auto; height: 86%; aspect-ratio: .51; border-radius: 1rem; }
.device-view canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.device-view.is-rendered .device-still { opacity: 0; }
.story-results { background: #17243b; color: #fff; }
.story-results p { color: #e2eaf6; }
.story-chart { background: #fff; color: var(--navy); border-radius: 1.25rem; padding: clamp(1rem,4vw,2.3rem); margin: 1.5rem 0; }
.story-chart figcaption { font-weight: 700; margin-bottom: 1rem; }
.chart-list { display: grid; gap: 1rem; }
.chart-list > div { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: .3rem .65rem; align-items: end; }
.chart-track { grid-column: 1/-1; height: clamp(1rem,2.6vw,1.7rem); background: #e9eef5; border-left: 1px solid #686f80; }
.chart-track i { display: block; height: 100%; width: var(--bar); background: #778ca8; border-radius: 0 .32rem .32rem 0; }
.chart-combined .chart-track i { background: var(--accent); }
.chart-scale { display: flex; justify-content: space-between; color: var(--muted); font-size: .75rem; margin-top: .4rem; }
.story-stats > div { background: #223650; border-color: #4c6380; }
.story-stats dd { font-size: clamp(1.25rem,3vw,2rem); font-weight: 700; }
.story-stats dd small { display: block; font-size: .82rem; }
.story-journey { list-style: none; }
.story-journey span { display: block; margin-top: .35rem; }
.vision-layout { display: grid; gap: 1.5rem; }
.vision-layout > figure { width: min(100%, 760px); }
.vision-matrix { overflow-wrap: anywhere; }
.vision-matrix table { width: 100%; table-layout: fixed; border-collapse: collapse; font-size: clamp(.73rem,2.6vw,1rem); }
.vision-matrix caption { text-align: left; font-weight: 700; padding-bottom: .6rem; }
.vision-matrix :is(th,td) { text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); padding: .6em .45em; }
@media (max-width: 760px) {
  .story-wrap { width: calc(100% - 2rem); }
  .story-hero, .walkthrough { grid-template-columns: 1fr; }
  .story-hero > div:first-child > p:last-child { margin-bottom: 0; }
  .walkthrough > header { position: static; }
  .scenario, .story-journey { grid-template-columns: 1fr; }
  .device-view[data-device=phone], .device-view[data-device=laptop] { aspect-ratio: 1; }
  .device-view[data-device=laptop] .device-still { width: auto; height: 85%; aspect-ratio: .5; border-radius: 1rem; }
}
@media (max-width: 420px) { .story-stats { grid-template-columns: 1fr; } }
.device-render { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
@media (prefers-reduced-motion: reduce) {
  .story { scroll-behavior: auto; }
  .device-view.is-rendered .device-still { opacity: 1; }
  .device-view :is(canvas,.device-render) { visibility: hidden; }
}

/* Portfolio typography and colour, with full-width case-study chapters. */
.story {
  --navy: #292a3e;
  --muted: #475467;
  --accent: #51577d;
  --line: #dadbe5;
  --glass: linear-gradient(145deg, #ffffffde, #f4f3f9a8);
  background: #fcfcfd;
}
.story-wrap { width: min(1248px, calc(100% - 48px)); }
.story-intro { position: relative; isolation: isolate; background: #eef0f5; }
.story-hero { position: relative; z-index: 1; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); gap: clamp(24px, 5vw, 80px); padding-block: clamp(32px, 5vw, 72px); }
.story h1.name-copy {
  max-width: 17ch;
  height: auto;
  font: inherit;
  font-size: clamp(36px, 5vw, 72px);
  font-weight: 700;
  line-height: 1.04;
  color: var(--navy);
  background: none;
  -webkit-text-fill-color: currentColor;
}
.story h2 { max-width: 25ch; font-size: clamp(28px, 3.7vw, 48px); }
.story h3 { font-size: clamp(24px, 2.6vw, 36px); }
.story-back { font-size: .9rem; font-weight: 600; }
.story-result {
  width: fit-content;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 4px 20px;
  margin-top: 24px;
  padding: 24px;
  background: var(--glass);
  border: 1px solid #fff;
  border-radius: 16px;
  backdrop-filter: blur(16px);
  box-shadow: 0 12px 28px #292a3e13;
  align-items: baseline;
}
.story-result::before, .story-result::after { content: none; }
.story-result strong { grid-row: span 3; font-size: clamp(48px, 7vw, 96px); color: var(--navy); align-self: center; }
.story-result span { font-weight: 600; }
.story-result b { font-size: clamp(18px, 2.25vw, 32px); }
.story-nav { border-top: 0; column-gap: 24px; }
.story-section { padding-block: clamp(48px, 8vw, 112px); }
.story-results { color: var(--navy); background: #f5f5f9; }
.story-results p { color: var(--muted); }
.story-results > .story-wrap {
  display: grid; grid-template-columns: minmax(0,.8fr) minmax(0,1.2fr); gap: 32px 48px; align-items: start;
}
.story-chart { margin: 0; border: 1px solid var(--line); border-radius: 16px; padding: 24px; }
.chart-track { background: #ececf3; border-left-color: #737591; border-radius: 0 4px 4px 0; }
.chart-track i { background: #989bb4; transform-origin: left center; }
.chart-combined .chart-track i { background: var(--accent); }
.story-stats { grid-column: 1/-1; gap: 24px; margin: 0; }
.story-stats > div { background: transparent; border: 0; border-top: 1px solid var(--line); border-radius: 0; padding: 16px 0 0; }
.story-stats dd { font-size: clamp(22px, 3vw, 40px); letter-spacing: -.045em; }
.story-stats dd small { letter-spacing: normal; }
.story-insight { gap: 0; border: 1px solid var(--line); border-radius: 16px; background: var(--glass); }
.story-insight > div, .scenario > div, .story-journey li { background: transparent; border: 0; border-radius: 0; padding: 24px; }
.story-insight > div + div { border-left: 1px solid var(--line); }
.walkthrough { display: block; }
.walkthrough > header { position: static; margin-bottom: 32px; }
.walkthrough-steps { gap: 0; }
.story-panel { display: grid; grid-template-columns: minmax(0,.85fr) minmax(0,1.15fr); gap: 24px 48px; align-items: center; border: 0; border-top: 1px solid var(--line); border-radius: 0; background: none; padding: 40px 0; }
.story-panel:last-child { padding-bottom: 0; }
.story-panel:nth-child(2) .chapter-copy { grid-column: 2; grid-row: 1; }
.story-panel:nth-child(2) figure { grid-column: 1; grid-row: 1; }
.chapter-step { display: block; font-size: .875rem; margin-bottom: 12px; color: var(--accent); font-weight: 600; }
.questionnaire-visual { padding: 24px; background: #f3f2f8; border-radius: 16px; }
.scenario { margin: 0; gap: 0; }
.scenario > div { padding: 8px; }
.questionnaire-visual p:last-child { margin-bottom: 0; }
.device-figure { margin: 0; }
.device-figure figcaption { text-align: center; }
.device-view { border-radius: 16px; background: radial-gradient(ellipse at center, #e9e8f3, #f7f7fa 72%); }
.hero-device .device-view { background: none; aspect-ratio: .88; max-height: 620px; }
#profile .device-view { aspect-ratio: 1.35; }
.device-still { border-color: #36384e; }
.story-journey { gap: 0; border-block: 1px solid var(--line); }
.story-journey li + li { border-left: 1px solid var(--line); }
.vision-layout { grid-template-columns: minmax(0,.95fr) minmax(0,1.05fr); gap: 32px; align-items: center; }
.story-credits { padding-block: 0 32px; }
@media (max-width: 760px) {
  .story-wrap { width: calc(100% - 32px); }
  .story-hero, .story-results > .story-wrap, .story-panel, .vision-layout { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .story-panel:nth-child(2) .chapter-copy, .story-panel:nth-child(2) figure { grid-column: auto; grid-row: auto; }
  .hero-device .device-view { aspect-ratio: 1; max-height: 440px; }
  .story-result, .story-chart, .questionnaire-visual, .story-insight > div, .story-journey li { padding: 16px; }
  .story-result { gap: 4px 12px; }
  .story-insight { grid-template-columns: 1fr; }
  .story-insight > div + div, .story-journey li + li { border-left: 0; border-top: 1px solid var(--line); }
  .story-stats { grid-template-columns: 1fr; gap: 16px; }
  .story-stats dd small { display: inline; }
}
@media (prefers-reduced-motion: reduce) {
  .story :is([data-reveal], [data-number], .story-stats dd, .chart-track i) { transform: none !important; }
}
.story { font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
.story-hero .story-role { margin-block: 16px 0; }
.story-hero > div > p:has(+ .story-result) { margin-block: 12px 0; }
@media (min-width: 761px) {
  .hero-device .device-view { max-height: 520px; }
  .story-hero { padding-block: clamp(32px, 4vw, 56px); }
}

.walkthrough-metric {
  margin: 24px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.walkthrough-metric dd {
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 700;
  letter-spacing: -.035em;
  font-variant-numeric: tabular-nums;
}
.walkthrough-metric + .story-note { margin-top: 4px; }

.story {
  --navy: #233249;
  --muted: #43516a;
  --accent: #484e83;
  --line: #dadde7;
  font-size: 1rem;
  line-height: 1.65;
}
.story h2 { color: #293855; font-weight: 680; letter-spacing: -.035em; line-height: 1.13; }
.story h3 { color: #414974; font-weight: 660; letter-spacing: -.025em; line-height: 1.18; }
.story h1.name-copy { letter-spacing: -.045em; }
.story-section { padding-block: clamp(36px, 5.25vw, 76px); }
.story-section > p:last-child { margin-bottom: 0; }
.story-role, .story-kicker, .chapter-step { letter-spacing: .015em; }
.story-chart figcaption, .story-stats dt { color: #414974; }
.story :is([data-stat], .story-stats dd) { font-variant-numeric: tabular-nums; transform-origin: left center; }
.story :is(b,strong)[data-stat] { display: inline-block; }
.story-panel { padding-block: clamp(24px, 4vw, 56px); }
.story-panel:not(:first-child) { grid-template-columns: minmax(0,1fr) minmax(0,1.55fr); }
.story-panel:nth-child(2) { grid-template-columns: minmax(0,1.55fr) minmax(0,1fr); }
.story .device-view {
  background: none;
  border-radius: 0;
  overflow: visible;
}
.story .device-view[data-device=laptop] { aspect-ratio: 1.34; }
.story #profile .device-view { aspect-ratio: 1; }
.story .hero-device .device-view { max-height: 590px; }
.story .device-still { box-shadow: 0 18px 36px -18px #28345166; }
.story .device-view[data-device=laptop] .device-still { width: 90%; height: auto; aspect-ratio: 1.6; }
.story .device-view[data-device=phone] .device-still { max-width: 92%; }
.story .device-figure figcaption { margin-top: 12px; }
.story-service { background: #f1f3f8; }
.service-intro { display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px 64px; align-items: center; }
.service-rating { margin: 0; padding: 24px 0 24px 32px; border-left: 2px solid #b3b8d4; }
.service-rating strong { color: var(--accent); font-size: clamp(36px, 5.3vw, 68px); line-height: 1; letter-spacing: -.06em; }
.service-rating figcaption { max-width: 29ch; margin-top: 10px; color: var(--muted); }
.story-journey { counter-reset: journey; margin-top: 32px; }
.story-journey li { counter-increment: journey; }
.story-journey li::before { content: '0' counter(journey); display: block; font-weight: 650; color: var(--accent); margin-bottom: 8px; }
.story-vision { background: radial-gradient(ellipse at 30% 36%, #e9eaf7, transparent 60%); }
.vision-layout { grid-template-columns: minmax(0, 1fr); gap: 32px; }
.vision-layout > .device-figure { width: min(100%, 930px); justify-self: center; }
.vision-matrix { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 16px 24px; }
.vision-matrix :is(th,td) { padding: .85em .55em; }
.vision-matrix tbody tr:last-child > * { border-bottom: 0; }
.story-end { display: flex; align-items: center; justify-content: space-between; gap: 20px 32px; padding-block: 28px; border-block: 1px solid var(--line); }
.story-end h2 { font-size: clamp(24px, 3vw, 36px); }
.story-end > div { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; }
.story a.story-end-primary { display: inline-block; padding: 10px 18px; border-radius: 8px; color: white; background: var(--accent); text-decoration: none; }
.story-credits { padding-top: 16px; }
@media (max-width: 760px) {
  .story-panel:not(:first-child), .story-panel:nth-child(2), .service-intro { grid-template-columns: minmax(0, 1fr); }
  .story .device-view[data-device=laptop] .device-still { width: 90%; height: auto; aspect-ratio: 1.6; }
  .story .hero-device .device-view { max-height: 440px; }
  .story-end { flex-wrap: wrap; }
  .service-rating { padding: 8px 0 8px 16px; }
  .vision-matrix { padding: 12px 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .story [data-stat], .story-stats dd { opacity: 1 !important; transform: none !important; }
}

/* Colours from the 777 palette, deepened for text contrast on glass. */
.story {
  --story-berry: #9b2957;
  --story-violet: #594580;
  --story-blue: #265b82;
  --story-heading: #253550;
  --story-subheading: #414974;
  background:
    radial-gradient(ellipse at 15% 20%, #dce6f1 0%, transparent 52%),
    radial-gradient(ellipse at 95% 40%, #eadcec 0%, transparent 46%),
    radial-gradient(ellipse at 38% 80%, #dce1ef 0%, transparent 58%), #f3f1f6;
}
html[data-heading-colour="berry"] .story { --story-heading: #782549; --story-subheading: #843454; }
html[data-heading-colour="violet"] .story { --story-heading: #49376e; --story-subheading: #594580; }
html[data-heading-colour="blue"] .story { --story-heading: #224e70; --story-subheading: #265b82; }
.story :is(.story-results, .story-service, .story-vision) { background: transparent; }
.story { font-family: var(--font-body, system-ui, sans-serif); }
.story h1.name-copy, .story h2, .story h3 {
  font-family: var(--font-heading, system-ui, sans-serif);
  color: var(--story-heading);
}
.story h3 { color: var(--story-subheading); }
html[data-type="lustria"] .story :is(h2,h3) { font-weight: 400; }
.story .story-liquid {
  --light-x: 26%;
  --light-y: 0%;
  border: 1px solid #ffffffd9;
  border-radius: 18px;
  background:
    radial-gradient(ellipse at var(--light-x) var(--light-y), #ffffffda, transparent 67%),
    linear-gradient(128deg, #ffffff80, #ffffff35 58%, #eeebf8b5);
  box-shadow: inset 0 1px 0 #fff, 0 12px 30px -18px #44416f80;
  backdrop-filter: blur(14px) saturate(135%);
}
.story .story-stats { padding: 4px 20px 16px; }
.story .story-stats > div { border-top: 0; }
.story .service-rating { padding: 24px; }
.story .story-result strong, .chart-combined [data-stat], .mini-combined strong { color: var(--story-berry); }
.story .story-result b, .story-stats > div:nth-child(2) dd, .service-rating strong { color: var(--story-violet); }
.story .story-stats > div:nth-child(3) dd, .chart-list > div:first-child strong, .mini-control strong { color: var(--story-blue); }
.story .chart-list > div:nth-child(2) strong { color: var(--story-violet); }
.chart-list > div:first-child .chart-track i, .mini-control i { background: linear-gradient(90deg, #6099c5, #265b82); }
.chart-list > div:nth-child(2) .chart-track i { background: linear-gradient(90deg, #958ab9, #594580); }
.chart-combined .chart-track i, .mini-combined i { background: linear-gradient(90deg, #c86a93, #9b2957); }
.mini-chart { margin: 24px 0 0; padding: 18px; max-width: 440px; }
.mini-chart figcaption, .story-insight dt { display: flex; align-items: center; gap: 9px; font-weight: 700; }
.story-icon { width: 20px; height: 20px; flex: none; color: var(--story-violet); }
.mini-row { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 2px 8px; align-items: baseline; margin-top: 10px; }
.mini-row strong { font-size: clamp(18px, 2vw, 26px); }
.mini-track { grid-column: 1/-1; height: 6px; background: #38335318; border-radius: 8px; }
.mini-track i { display: block; width: var(--bar); height: 100%; border-radius: inherit; transform-origin: left; }
.story-count-label { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.type-compare:has(+ .story-type-controls) { position: static; max-width: none; }
.story-type-controls { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.story-type-controls button { padding: 4px 12px; border: 1px solid #c8c9dc; border-radius: 999px; background: #fff9; color: #253550; }
.story-type-controls button[aria-pressed="true"] { background: #253550; color: white; }
.story-preview-options { margin-block: 24px 0; }
.story-preview-options > summary { cursor: pointer; margin-bottom: 10px; }
@media (max-width: 760px) {
  .story-chart, .mini-chart, .story .service-rating { padding: 16px; }
}

.story { overflow: clip; isolation: isolate; }
.story-glow-anchor { position: sticky; top: 0; height: 0; pointer-events: none; }
.story-glow-viewport { position: relative; height: 100svh; opacity: .72; }
.story-content { position: relative; z-index: 1; }
.story-intro { background: transparent; }

.story h1.name-copy, .story h2 {
  background: linear-gradient(106deg, var(--story-heading) 12%, var(--story-violet) 56%, var(--story-berry) 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  width: fit-content;
}
.story h3 { font-size: clamp(21px, 2.15vw, 29px); color: #263e63; }
.story-liquid { position: relative; }
.story .help-card-lens { position: absolute; inset: 0; pointer-events: none; border-radius: inherit; }
.story .story-liquid-canvas { position: fixed !important; inset: 0 auto auto 0; z-index: 1 !important; }
.story-content { z-index: 2; }
.story.is-liquid .story-liquid { background: transparent; backdrop-filter: none; box-shadow: none; border-color: transparent; }
.story.is-liquid .story-liquid > :not(.help-card-lens) { translate: var(--glass-content-offset, 0px 0px); }
.story-liquid-definition { grid-column: 1/-1; }
.story .story-liquid-definition > .story-stats { padding: 4px 20px 16px; }
.story .story-liquid-definition > .story-insight { margin: 0; border: 0; background: none; }
.story-liquid-definition:has(.story-insight) { margin-top: 24px; }
.device-view canvas { transition: opacity 1.45s ease-out; opacity: 0; }
.device-view.is-rendered canvas { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .story [data-reveal] { opacity: 1 !important; transform: none !important; }
  .story-liquid-canvas { display: none; }
}

.story h3 { font-size: clamp(18px, 1.8vw, 24px); font-weight: 550; line-height: 1.3; letter-spacing: -.015em; }
.story h1.name-copy, .story h2 { line-height: 1.19; padding-bottom: .09em; }
.story-result { overflow: visible; }
.story-result strong, .service-rating strong { line-height: 1.08; }
.story-liquid :is(dt, dd, figcaption, p, span) { min-width: 0; overflow-wrap: anywhere; }
.story.is-scrolling .story-liquid-canvas { visibility: hidden !important; }
.story.is-liquid.is-scrolling .story-liquid {
  background: #f7f6fcba;
  border-color: #ffffffc9;
}
.story.is-liquid.is-scrolling .story-liquid > :not(.help-card-lens) { translate: none; }
html.help-magnettype .story-liquid :is(dt,dd,figcaption,.mini-row > span:first-child,.chart-list > div > span,.story-result > span) {
  font-family: Kecal, var(--font-body, system-ui), sans-serif;
}
@media (max-width: 440px) {
  .story .story-result { grid-template-columns: minmax(0, 1fr); }
  .story .story-result strong { grid-row: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .story-hero > div > *, .results-header { opacity: 1 !important; transform: none !important; }
}

.story .device-view.is-rendered { touch-action: pan-y pinch-zoom; }
.story .story-journey { gap: 12px; border: 0; }
.story .story-journey .story-liquid + .story-liquid { border-color: #ffffffd9; }
.story.is-liquid .story-journey .story-liquid + .story-liquid { border-color: transparent; }
.story :is(.questionnaire-visual, .vision-matrix, .story-journey .story-liquid) { overflow: visible; }
html.help-magnettype .story-liquid :is(.story-journey li > strong, .story-journey li > span, caption, th, .questionnaire-visual > p) {
  font-family: Kecal, var(--font-body, system-ui), sans-serif;
}

.story .hero-device .device-view { aspect-ratio: .72; max-height: 710px; }
.story .device-view[data-device=laptop] { aspect-ratio: 1.22; }
.story #profile .device-view { aspect-ratio: .81; max-height: 780px; }
.vision-layout > .device-figure { width: min(100%, 1080px); }
@media (min-width: 761px) {
  .story-panel:nth-child(2) { grid-template-columns: minmax(0, 1.85fr) minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .story .hero-device .device-view, .story #profile .device-view { max-height: 540px; }
}
