@font-face {
  font-family: "Libre Baskerville";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("assets/fonts/libre-baskerville-latin-700-normal.woff2") format("woff2");
}
.case-view[data-project="friyo"] :is(h1, h2, h3, h4, strong, b, .case-tagline, .case-media-heading, .case-table caption, .case-table th) {
  font-family: "Libre Baskerville", Georgia, serif;
  font-weight: 700;
  font-synthesis: none;
}
.case-view { --case-nav-height: 72px; }
.case-view[data-project="fleurence"] { background: #fbfcfb; color: #26312c; }
.case-view[data-project="fleurence"] .case-topbar { background: #fbfcfb; border-color: #d8e1dd; }
.case-view[data-project="fleurence"] .case-hero { padding-top: 42px; }
.case-view[data-project="fleurence"] .case-hero h1 { font-family: Georgia,serif; font-size: 64px; line-height: 1.12; font-weight: 500; }
.case-view[data-project="fleurence"] .case-tagline { font-family: Georgia,serif; font-size: 28px; font-style: italic; line-height: 1.4; margin-top: 18px; }
.case-view[data-project="fleurence"] .case-summary { font-size: 18px; line-height: 1.8; color: #526059; max-width: 850px; }
.case-view[data-project="fleurence"] :is(.case-eyebrow,.case-section-number,.case-meta dt,.case-toc > span,.case-figure figcaption) { color: #66766d; }
.case-view[data-project="fleurence"] .case-meta { grid-template-columns: repeat(4,minmax(0,1fr)); border-color: #d8e1dd; }
.case-view[data-project="fleurence"] .case-section { border-color: #d8e1dd; }
.case-view[data-project="fleurence"] .case-section h2 { font-family: Georgia,serif; font-size: 34px; line-height: 1.35; font-weight: 500; }
.case-view[data-project="fleurence"] .case-copy { color: #526059; }
.case-view[data-project="fleurence"] .case-toc a { color: #66766d; border-color: #d8e1dd; }
.case-view[data-project="fleurence"] .case-toc a[aria-current="location"] { color: #344d3e; border-color: #587660; }
.case-view[data-project="fleurence"] .case-hero > .case-figure img { border-radius: 0; }
.case-view[data-project="fleurence"] .case-statement { margin: 36px 0; padding: 22px 0 22px 22px; border-left: 2px solid #587660; }
.case-view[data-project="fleurence"] .case-statement > p { font-size: 12px; color: #66766d; margin: 0 0 12px; }
.case-view[data-project="fleurence"] .case-statement h3 { font-family: Georgia,serif; font-size: 27px; font-weight: 500; line-height: 1.5; margin: 0; }
.case-view[data-project="fleurence"] .case-walkthrough > h3 { font-size: 18px; font-weight: 500; margin: 0 0 30px; }
.case-view[data-project="fleurence"] .case-walkthrough ol { list-style: none; padding: 0; margin: 0; }
.case-view[data-project="fleurence"] .case-walkthrough li { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); align-items: center; gap: 42px; padding: 30px 0; border-top: 1px solid #d8e1dd; }
.case-view[data-project="fleurence"] .case-walkthrough li:nth-child(even) .case-figure { order: -1; }
.case-view[data-project="fleurence"] .case-walkthrough-copy > span { font-size: 12px; color: #66766d; }
.case-view[data-project="fleurence"] .case-walkthrough-copy h4 { font-family: Georgia,serif; font-size: 25px; line-height: 1.4; font-weight: 500; margin: 12px 0; }
.case-view[data-project="fleurence"] .case-walkthrough-copy p { font-size: 15px; line-height: 1.85; color: #526059; }
.case-view[data-project="fleurence"] .case-walkthrough .case-figure { margin: 0; }
.case-view[data-project="fleurence"] .case-walkthrough img { max-height: 520px; object-fit: contain; background: #e8eeeb; }
.case-view[data-project="fleurence"] .case-gallery--grid .case-gallery-track { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 24px; }
.case-view[data-project="fleurence"] .case-gallery--grid .case-image-button img { width: 100%; aspect-ratio: 4 / 5; object-fit: contain; background: #f0f4f2; }
.case-view[data-project="fleurence"] .case-storyboards .storyboard-cell > .case-image-button { aspect-ratio: 4 / 3; background: #f0f4f2; }
.case-view[data-project="fleurence"] .case-storyboards .case-image-button img { height: 100%; object-fit: contain; }
.case-view[data-project="fleurence"] #case-collection .case-storyboards .storyboard-cell > .case-image-button { aspect-ratio: 1; }
.case-view[data-project="fleurence"] .case-figure--fleurence-poster { max-width: 720px; margin: 38px auto 0; }
.case-view[data-project="fleurence"] #case-media-fleurence-film { scroll-margin-top: calc(var(--case-nav-height) + 24px); }
.case-view[data-project="fleurence"] .case-credit { max-width: 1280px; margin: 36px auto 0; padding: 0 32px; font-family: ui-monospace,monospace; font-size: 13px; line-height: 1.7; color: #66766d; }
.case-view[data-project="fleurence"] .case-title-row { gap: 30px; align-items: center; }
.case-view[data-project="fleurence"] .case-title-row h1 { font-size: 76px; line-height: 1.08; }
.case-view[data-project="fleurence"] .case-title-row .case-logo { width: 112px; height: 112px; object-fit: contain; background: transparent; border-radius: 0; }
.case-view[data-project="fleurence"] .case-eyebrow { font-size: 12px; line-height: 1.6; margin-bottom: 24px; text-transform: none; color: #697e70; }
.case-view[data-project="fleurence"] .case-tagline { color: #536b59; }
.case-view[data-project="fleurence"] .case-meta { margin-top: 34px; padding-block: 28px; }
.case-view[data-project="fleurence"] .case-meta dt { font-size: 11px; text-transform: uppercase; }
.case-view[data-project="fleurence"] .case-toc > span { font-family: Georgia,serif; font-size: 16px; font-style: italic; color: #53705e; }
.case-view[data-project="fleurence"] .case-toc > span::after { content: ""; display: block; width: 130px; height: 23px; margin-top: 10px; background: url("assets/projects/fleurence/coastal-line.svg") left center / contain no-repeat; opacity: .8; }
.case-view[data-project="fleurence"] .case-toc a { position: relative; padding: 12px 8px 12px 34px; line-height: 1.6; }
.case-view[data-project="fleurence"] .case-toc a::before { content: ""; position: absolute; left: 9px; top: 15px; width: 15px; height: 20px; background: url("assets/icons/sprout.svg") center / contain no-repeat; opacity: .3; transition: opacity .18s ease,transform .18s ease; }
.case-view[data-project="fleurence"] .case-toc a[aria-current="location"]::before { opacity: .85; transform: rotate(-8deg); }
.case-view[data-project="fleurence"] .case-toc a[aria-current="location"] { color: #334f3e; border-color: #53705e; background: #eef3ee; }
.case-view[data-project="fleurence"] .case-section { position: relative; padding-block: 56px; }
.case-view[data-project="fleurence"] .case-section-number { color: #997055; font-size: 11px; }
.case-view[data-project="fleurence"] .case-section > h2 { position: relative; padding-right: 80px; margin-bottom: 28px; }
.case-view[data-project="fleurence"] .case-section > h2::after { content: ""; position: absolute; right: 0; top: 0; width: 58px; height: 58px; background: url("assets/icons/leaf.svg") center / contain no-repeat; opacity: .3; transform: rotate(-17deg); }
.case-view[data-project="fleurence"] #case-making > h2::after { background-image: url("assets/icons/flower-2.svg"); transform: rotate(11deg); }
.case-view[data-project="fleurence"] #case-collection > h2::after { background-image: url("assets/projects/fleurence/logo-transparent.webp"); transform: none; opacity: .25; }
.case-view[data-project="fleurence"] #case-film > h2::after { background-image: url("assets/icons/waves.svg"); transform: none; }
.case-view[data-project="fleurence"] .case-statement { border-left-color: #8b9f87; padding-left: 26px; }
.case-view[data-project="fleurence"] .case-credit { border-top: 1px solid #d8e1dd; padding-top: 24px; }
@media (max-width: 900px) {
  .case-view[data-project="fleurence"] .case-toc > span::after { display: none; }
  .case-view[data-project="fleurence"] .case-toc a { padding: 10px 12px 10px 34px; }
  .case-view[data-project="fleurence"] .case-toc a::before { top: calc(50% - 10px); }
}
@media (max-width: 520px) {
  .case-view[data-project="fleurence"] .case-title-row { gap: 18px; }
  .case-view[data-project="fleurence"] .case-title-row h1 { font-size: 42px; }
  .case-view[data-project="fleurence"] .case-title-row .case-logo { width: 74px; height: 74px; flex-basis: 74px; }
  .case-view[data-project="fleurence"] .case-section > h2 { padding-right: 54px; }
  .case-view[data-project="fleurence"] .case-section > h2::after { width: 38px; height: 44px; }
}
@media (prefers-reduced-motion: reduce) { .case-view[data-project="fleurence"] .case-toc a::before { transition: none; } }
.fleurence-botanicals > h3 { font-size: 18px; line-height: 1.5; font-weight: 500; margin: 0 0 24px; }
.fleurence-botanicals > div { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 20px; }
.fleurence-botanicals section { min-width: 0; }
.fleurence-botanicals .case-image-button { aspect-ratio: 3 / 4; background: #e8eeeb; }
.fleurence-botanicals img { width: 100%; height: 100%; object-fit: contain; }
.fleurence-botanicals section > p { display: flex; gap: 10px; align-items: baseline; font-size: 14px; line-height: 1.5; color: #344d3e; margin: 14px 0 0; }
.fleurence-botanicals section > p span { font-size: 11px; color: #7c8c81; }
@media (max-width: 900px) {
  .case-view[data-project="fleurence"] .case-meta { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .fleurence-botanicals > div { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 640px) {
  .case-view[data-project="fleurence"] .case-hero h1 { font-size: 42px; }
  .case-view[data-project="fleurence"] .case-tagline { font-size: 24px; }
  .case-view[data-project="fleurence"] .case-summary { font-size: 17px; }
  .case-view[data-project="fleurence"] .case-section h2 { font-size: 28px; }
  .case-view[data-project="fleurence"] .case-walkthrough li { grid-template-columns: minmax(0,1fr); gap: 20px; }
  .case-view[data-project="fleurence"] .case-walkthrough li:nth-child(even) .case-figure { order: 0; }
  .case-view[data-project="fleurence"] .case-meta { grid-template-columns: minmax(0,1fr); }
  .case-view[data-project="fleurence"] .case-gallery--grid .case-gallery-track { grid-template-columns: minmax(0,1fr); }
  .case-view[data-project="fleurence"] .case-statement h3 { font-size: 23px; }
  .case-view[data-project="fleurence"] .case-credit { padding-inline: 20px; }
}
body:has(.case-view[data-project="artopus"].active) { background: #f0f2ee; }
.app:has(> .case-view[data-project="artopus"].active) { padding-top: 0; padding-inline: 0; }
.case-view[data-project="artopus"] { background: #f0f2ee; color: #1c1d1b; }
.case-view[data-project="artopus"] .case-topbar { background: #f0f2ee; border-bottom: 2px solid #252622; backdrop-filter: none; }
.case-view[data-project="artopus"] .case-hero { padding-top: 42px; }
.case-view[data-project="artopus"] .case-brand { font-size: 16px; font-family: ui-monospace,monospace; font-weight: 600; margin: 0 0 20px; }
.case-view[data-project="artopus"] .case-hero h1 { font-size: 44px; line-height: 1.18; font-weight: 800; max-width: 1060px; }
.case-view[data-project="artopus"] .case-multiline-title > span { display: block; }
.case-view[data-project="artopus"] .case-multiline-title .case-title-subline { font-size: 26px; font-weight: 550; line-height: 1.5; margin-top: 12px; }
.case-view[data-project="artopus"] .case-links { margin: 26px 0 34px; }
.case-view[data-project="artopus"] .case-links a { display: inline-flex; justify-content: center; align-items: center; max-width: 100%; padding: 14px 20px; background: #fff; border: 3px solid #282925; border-radius: 8px; box-shadow: 5px 5px 0 #282925; font-size: 16px; font-weight: 600; line-height: 1.5; text-decoration: none; overflow-wrap: anywhere; transition: transform .16s,box-shadow .16s; }
.case-view[data-project="artopus"] .case-links a:hover { transform: translate(-1px,-1px); box-shadow: 7px 7px 0 #282925; }
.case-view[data-project="artopus"] .case-links a:focus-visible { outline: 3px solid #839c16; outline-offset: 8px; }
.case-view[data-project="artopus"] .case-summary { font-size: 18px; line-height: 1.8; max-width: 930px; color: #4b5148; }
.case-view[data-project="artopus"] :is(.case-eyebrow,.case-section-number) { font-family: ui-monospace,monospace; color: #4d5747; font-size: 12px; }
.case-view[data-project="artopus"] .case-meta { grid-template-columns: repeat(4,minmax(0,1fr)); border-top: 2px solid #252622; }
.case-view[data-project="artopus"] .case-meta dt { color: #555e50; }
.case-view[data-project="artopus"] .case-section { border-color: #252622; }
.case-view[data-project="artopus"] .case-section h2 { font-size: 34px; line-height: 1.3; font-weight: 800; }
.case-view[data-project="artopus"] .case-copy { color: #4b5148; }
.case-view[data-project="artopus"] .case-toc > span { color: #555e50; font-family: ui-monospace,monospace; }
.case-view[data-project="artopus"] .case-toc a { border-color: #bcc4b6; color: #555e50; }
.case-view[data-project="artopus"] .case-toc a[aria-current="location"] { border-color: #242620; background: #ddff47; color: #20221d; }
.case-view[data-project="artopus"] .case-figure figcaption { color: #555e50; }
.case-view[data-project="artopus"] .case-hero > .case-figure > .case-image-button { overflow: hidden; border: 2px solid #252622; border-radius: 8px; }
.case-view[data-project="artopus"] .case-dimensions { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 28px; margin: 32px 0; }
.case-view[data-project="artopus"] .case-dimensions .case-block { margin: 0; padding-top: 22px; border-top: 3px solid #242620; }
.case-view[data-project="artopus"] .case-statement { padding: 24px 0; border-block: 2px solid #252622; background: #ddff47; margin: 32px 0; }
.case-view[data-project="artopus"] .case-statement > p { margin: 0 24px 12px; font-family: ui-monospace,monospace; font-size: 12px; }
.case-view[data-project="artopus"] .case-statement h3 { margin: 0 24px; font-size: 27px; line-height: 1.5; font-weight: 700; }
.artopus-quote { margin: 32px 0; padding: 22px 0 22px 26px; border-left: 6px solid #252622; }
.artopus-quote p { max-width: 830px; margin: 0 0 18px; font-size: 23px; font-weight: 600; line-height: 1.7; }
.artopus-quote cite { font-family: ui-monospace,monospace; font-size: 12px; font-style: normal; color: #555e50; }
.artopus-capsules { border: 3px solid #252622; border-radius: 8px; overflow: hidden; background: #fff; }
.artopus-capsules > header { padding: 22px 24px; border-bottom: 3px solid #252622; background: #ddff47; }
.artopus-capsules header p { font-family: ui-monospace,monospace; font-size: 11px; margin: 0 0 12px; }
.case-view[data-project="artopus"] .artopus-capsules header h3 { font-size: 25px; line-height: 1.4; margin: 0; font-weight: 750; }
.artopus-capsule-stage { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 16px; padding: 42px 24px 26px; }
.artopus-capsule-cell { min-width: 0; }
.artopus-capsule { display: block; width: 100%; aspect-ratio: 1; padding: 0; border: 0; background: transparent; cursor: pointer; position: relative; }
.artopus-capsule:focus-visible { outline: 3px solid #242620; outline-offset: 5px; border-radius: 50%; }
.artopus-capsule-art { display: block; width: 100%; height: 100%; transform-origin: 50% 80%; }
.artopus-capsule-art img { width: 100%; height: 100%; display: block; object-fit: contain; border-radius: 0; }
.artopus-capsule-art--blue { clip-path: ellipse(47% 46% at 50% 48%); }
.artopus-capsule-art--violet { clip-path: ellipse(47% 38% at 48% 39%); }
.artopus-capsule-art--lime { clip-path: ellipse(49% 47% at 50% 49%); }
.artopus-capsule-art--rose { clip-path: ellipse(49% 49% at 50% 50%); }
.artopus-capsule-cell > p { display: flex; justify-content: center; gap: 10px; font-size: 13px; line-height: 1.5; margin: 20px 0 0; font-weight: 600; }
.artopus-capsule-cell > p span { font-family: ui-monospace,monospace; color: #76816b; font-size: 11px; }
.artopus-capsules > figcaption { border-top: 1px solid #d3d9cc; padding: 16px 24px; margin: 0; }
@media (max-width: 900px) {
  .case-view[data-project="artopus"] .case-dimensions { grid-template-columns: minmax(0,1fr); }
  .case-view[data-project="artopus"] .case-meta { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .artopus-capsule-stage { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 30px 20px; }
  .artopus-capsule-cell { max-width: 280px; width: 100%; justify-self: center; }
}
@media (max-width: 520px) {
  .case-view[data-project="artopus"] .case-hero { padding-top: 30px; }
  .case-view[data-project="artopus"] .case-hero h1 { font-size: 30px; }
  .case-view[data-project="artopus"] .case-multiline-title .case-title-subline { font-size: 21px; }
  .case-view[data-project="artopus"] .case-links a { font-size: 14px; padding: 12px 14px; }
  .case-view[data-project="artopus"] .case-summary { font-size: 17px; }
  .case-view[data-project="artopus"] .case-section h2 { font-size: 28px; }
  .case-view[data-project="artopus"] .case-meta { grid-template-columns: minmax(0,1fr); }
  .case-view[data-project="artopus"] .case-statement h3 { font-size: 22px; }
  .artopus-quote p { font-size: 19px; }
  .artopus-capsules > header { padding: 18px; }
  .case-view[data-project="artopus"] .artopus-capsules header h3 { font-size: 21px; }
  .artopus-capsule-stage { padding: 32px 16px 24px; gap: 24px 10px; }
  .artopus-capsule-cell > p { font-size: 12px; gap: 6px; }
}
@media (prefers-reduced-motion: reduce) { .case-view[data-project="artopus"] .case-links a { transition: none; } .case-view[data-project="artopus"] .case-links a:hover { transform: none; } }
body:has(.case-view[data-project="popcorn-brain"].active) { background: #f5dcb1; }
.app:has(> .case-view[data-project="popcorn-brain"].active) { padding-top: 0; padding-inline: 0; }
.case-view[data-project="popcorn-brain"] { background: #f5dcb1; color: #272523; position: relative; isolation: isolate; min-height: 100vh; }
.case-view[data-project="popcorn-brain"] .case-topbar { background: #f5dcb1; border-color: #c5ad87; backdrop-filter: none; }
.case-view[data-project="popcorn-brain"] :is(.case-hero,.case-layout,.case-next) { position: relative; z-index: 1; }
.case-view[data-project="popcorn-brain"] .case-hero { padding-top: 42px; }
.case-view[data-project="popcorn-brain"] .case-image-title { max-width: 1040px; }
.case-view[data-project="popcorn-brain"] .case-image-title img { display: block; width: 100%; height: auto; }
.case-view[data-project="popcorn-brain"] .case-tagline { font-size: 26px; font-style: italic; font-family: Georgia,serif; margin-top: 26px; }
.case-view[data-project="popcorn-brain"] .case-summary { max-width: 900px; font-size: 18px; line-height: 1.75; color: #46413b; }
.case-view[data-project="popcorn-brain"] :is(.case-eyebrow,.case-section-number,.case-meta dt,.case-toc > span,.case-figure figcaption) { color: #645641; }
.case-view[data-project="popcorn-brain"] :is(.case-section,.case-meta,.case-next) { border-color: #c5ad87; }
.case-view[data-project="popcorn-brain"] .case-meta { grid-template-columns: repeat(4,minmax(0,1fr)); }
.case-view[data-project="popcorn-brain"] .case-copy { color: #46413b; }
.case-view[data-project="popcorn-brain"] .case-section h2 { font-family: Georgia,serif; font-weight: 700; font-size: 32px; line-height: 1.35; }
.case-view[data-project="popcorn-brain"] .case-toc a { color: #584d40; border-color: #c5ad87; }
.case-view[data-project="popcorn-brain"] .case-toc a[aria-current="location"] { color: #242321; border-color: #b3372f; }
.case-view[data-project="popcorn-brain"] .case-tags { display: flex; flex-wrap: wrap; gap: 9px; padding: 0; margin: 0 0 24px; list-style: none; }
.case-view[data-project="popcorn-brain"] .case-tags li { padding: 7px 14px; border: 1px solid #a36a48; border-radius: 999px; background: #fff0c9; color: #69412e; font-size: 12px; font-weight: 550; line-height: 1.4; }
.case-view[data-project="popcorn-brain"] .case-tags li:last-child { background: #e3ecd2; border-color: #92a178; color: #43563a; }
.case-view[data-project="popcorn-brain"] .case-links { gap: 14px; margin-block: 28px 32px; }
.case-view[data-project="popcorn-brain"] .case-link-button { display: inline-flex; justify-content: center; align-items: center; gap: 10px; min-height: 48px; padding: 12px 18px; border: 1px solid #826c41; border-radius: 8px; background: #e3edcf; color: #3b4931; font-size: 14px; line-height: 1.4; text-decoration: none; box-shadow: 0 4px 0 #9eae82,0 7px 12px rgba(65,47,24,.1); transition: transform .18s ease,box-shadow .18s ease; }
.case-view[data-project="popcorn-brain"] .case-link-button:nth-child(2) { background: #ffe6a0; color: #61461d; border-color: #a47d3a; box-shadow: 0 4px 0 #cba34d,0 7px 12px rgba(65,47,24,.1); }
.case-view[data-project="popcorn-brain"] .case-link-button:nth-child(3) { background: #b54135; color: #fff; border-color: #87372e; box-shadow: 0 4px 0 #7e352b,0 7px 12px rgba(65,47,24,.1); }
.case-view[data-project="popcorn-brain"] .case-link-button img { width: 19px; height: 19px; flex-shrink: 0; }
.case-view[data-project="popcorn-brain"] .case-link-button:nth-child(3) img { filter: invert(1); }
.case-view[data-project="popcorn-brain"] .case-link-button:hover { transform: translateY(-2px); }
.case-view[data-project="popcorn-brain"] .case-link-button:active { transform: translateY(3px); box-shadow: none; }
.case-view[data-project="popcorn-brain"] .case-link-button:focus-visible { outline: 2px solid #b3372f; outline-offset: 6px; }
.case-view[data-project="popcorn-brain"] #case-media-popcorn-demo video { width: 100%; height: auto; aspect-ratio: auto; max-height: none; object-fit: contain; background: transparent; }
.case-view[data-project="popcorn-brain"] :is(.popcorn-overview,.case-figure--popcorn-cutout) .case-image-button { background: transparent; border: 0; }
.case-view[data-project="popcorn-brain"] .case-figure--popcorn-cutout img { background: transparent; border-radius: 0; }
.case-view[data-project="popcorn-brain"] .case-toc a { position: relative; padding: 11px 8px 11px 39px; min-height: 45px; border-radius: 0 6px 6px 0; }
.case-view[data-project="popcorn-brain"] .case-toc a::before { content: ""; position: absolute; left: 8px; top: calc(50% - 14px); width: 25px; height: 28px; background: url("assets/projects/popcorn-brain/kernel.webp") center / contain no-repeat; opacity: .4; }
.case-view[data-project="popcorn-brain"] .case-toc a[aria-current="location"] { background: rgba(255,255,255,.24); }
.case-view[data-project="popcorn-brain"] .case-toc a[aria-current="location"]::before { background-image: url("assets/projects/popcorn-brain/popcorn.webp"); opacity: 1; animation: popcorn-toc-pop .55s cubic-bezier(.2,.8,.2,1) both; }
@keyframes popcorn-toc-pop { 0% { transform: scale(.4) rotate(-18deg); } 60% { transform: scale(1.2) rotate(9deg); } 100% { transform: scale(1) rotate(0); } }
@media (max-width: 900px) { .case-view[data-project="popcorn-brain"] .case-toc a { padding: 10px 12px 10px 38px; border-radius: 6px 6px 0 0; } }
@media (max-width: 520px) { .case-view[data-project="popcorn-brain"] .case-link-button { width: 100%; } }
@media (prefers-reduced-motion: reduce) {
  .case-view[data-project="popcorn-brain"] .case-link-button { transition: none; }
  .case-view[data-project="popcorn-brain"] .case-link-button:hover { transform: none; }
  .case-view[data-project="popcorn-brain"] .case-toc a[aria-current="location"]::before { animation: none; }
}
.case-view[data-project="popcorn-brain"] .case-dimensions { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 28px; margin: 34px 0; }
.case-view[data-project="popcorn-brain"] .case-dimensions .case-block { margin: 0; border-top: 2px solid #bd4035; padding-top: 22px; }
.case-view[data-project="popcorn-brain"] .case-gallery--row .case-gallery-track { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 24px; overflow: visible; }
.case-view[data-project="popcorn-brain"] .case-gallery--row .case-image-button img { height: auto; aspect-ratio: 1; background: transparent; }
.case-view[data-project="popcorn-brain"] :is(.case-callout,.case-statement) { margin: 32px 0; padding: 20px 0 20px 22px; border-left: 2px solid #bd4035; }
.case-view[data-project="popcorn-brain"] .case-callout h3 { font-size: 19px; line-height: 1.5; margin: 0 0 12px; }
.case-view[data-project="popcorn-brain"] .case-callout p { font-size: 15px; line-height: 1.85; color: #46413b; margin: 0; }
.case-view[data-project="popcorn-brain"] .case-statement > p { font-size: 12px; margin: 0 0 12px; color: #645641; }
.case-view[data-project="popcorn-brain"] .case-statement h3 { font-family: Georgia,serif; font-size: 28px; line-height: 1.5; margin: 0; }
.case-view[data-project="popcorn-brain"] .case-resource-links { margin: 28px 0; }
.case-view[data-project="popcorn-brain"] .case-resource-links h3 { font-size: 16px; margin: 0 0 12px; }
.case-view[data-project="popcorn-brain"] .case-resource-links ul { list-style: none; padding: 0; }
.case-view[data-project="popcorn-brain"] .case-resource-links a { display: inline-flex; align-items: center; gap: 12px; font-size: 13px; line-height: 1.7; text-decoration: underline; text-underline-offset: 4px; }
.case-view[data-project="popcorn-brain"] .case-resource-links img { width: 16px; height: 16px; }
.case-view[data-project="popcorn-brain"] #case-media-popcorn-demo { scroll-margin-top: calc(var(--case-nav-height) + 24px); }
.popcorn-overview-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 20px; }
.popcorn-overview-toolbar p { font-family: Georgia,serif; font-style: italic; font-size: 19px; line-height: 1.5; margin: 0; }
.popcorn-overview-toolbar .case-icon-button { background: #f5dcb1; border-color: #b7a17e; border-radius: 50%; }
.popcorn-overview-toolbar .case-icon-button:hover { background: #ffe9c6; }
.popcorn-overview > .case-image-button { max-width: 940px; margin: 0 auto; }
.popcorn-overview > .case-image-button img { max-height: 500px; object-fit: contain; }
.popcorn-overview figcaption { text-align: center; margin-top: 18px; }
.popcorn-rain { position: fixed; inset: var(--case-nav-height) 0 0; z-index: 0; overflow: hidden; pointer-events: none; user-select: none; }
.popcorn-rain-piece { display: block; position: absolute; top: -120px; left: var(--rain-left); width: var(--rain-size); height: var(--rain-size); opacity: .23; animation: popcorn-fall var(--rain-duration) linear var(--rain-delay) infinite; will-change: transform; }
.popcorn-rain-piece img { display: block; width: 100%; height: 100%; object-fit: contain; }
.case-view[data-popcorn-motion="paused"] .popcorn-rain-piece { animation-play-state: paused; }
@keyframes popcorn-fall {
  from { transform: translate3d(-50%,0,0) rotate(0deg); }
  to { transform: translate3d(calc(-50% + var(--rain-drift)),calc(100dvh + 120px),0) rotate(var(--rain-turn)); }
}
.popcorn-journey ol { list-style: none; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 34px 24px; padding: 0; margin: 0; }
.popcorn-journey li { min-width: 0; }
.popcorn-journey .case-image-button { aspect-ratio: 16 / 9; overflow: hidden; }
.popcorn-journey .case-image-button img { width: 100%; height: 100%; object-fit: contain; }
.case-view[data-project="popcorn-brain"] .popcorn-journey .case-image-button { aspect-ratio: 234 / 131; }
.case-view[data-project="popcorn-brain"] .popcorn-journey .case-image-button img { object-fit: cover; }
.popcorn-journey li > div { position: relative; padding: 16px 0 0 30px; }
.popcorn-journey li span { position: absolute; top: 18px; left: 0; font-size: 11px; color: #645641; }
.case-view[data-project="popcorn-brain"] .popcorn-journey h3 { font-size: 17px; line-height: 1.5; margin: 0 0 8px; }
.popcorn-journey li p { font-size: 14px; line-height: 1.75; color: #46413b; margin: 0; }
@media (max-width: 900px) {
  .case-view[data-project="popcorn-brain"] .case-meta { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .case-view[data-project="popcorn-brain"] .case-dimensions { grid-template-columns: minmax(0,1fr); }
  .popcorn-journey ol { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .popcorn-rain-piece:nth-child(n+9) { display: none; }
}
@media (max-width: 520px) {
  .case-view[data-project="popcorn-brain"] .case-hero { padding-top: 30px; }
  .case-view[data-project="popcorn-brain"] .case-tagline { font-size: 23px; }
  .case-view[data-project="popcorn-brain"] .case-summary { font-size: 17px; }
  .case-view[data-project="popcorn-brain"] .case-section h2 { font-size: 27px; }
  .case-view[data-project="popcorn-brain"] .case-statement h3 { font-size: 23px; }
  .case-view[data-project="popcorn-brain"] .case-meta { grid-template-columns: minmax(0,1fr); }
  .popcorn-overview-toolbar p { font-size: 17px; }
  .popcorn-journey ol { grid-template-columns: minmax(0,1fr); }
  .popcorn-rain-piece { opacity: .17; }
}
@media (prefers-reduced-motion: reduce) { .popcorn-rain { display: none; } .popcorn-rain-piece { animation: none; } }
.case-view[data-project="ostomy-care"] .case-brand { font-size: 24px; font-weight: 600; margin: 0 0 18px; }
.case-view[data-project="ostomy-care"] .case-tagline { font-size: 28px; line-height: 1.45; max-width: 900px; }
.case-view[data-project="ostomy-care"] .case-meta { grid-template-columns: repeat(3,minmax(0,1fr)); }
.case-view[data-project="ostomy-care"] .case-storyboards .storyboard-cell > .case-image-button { aspect-ratio: 4 / 5; background: #f4f5f7; }
.case-view[data-project="ostomy-care"] .case-storyboards .case-image-button img { height: 100%; object-fit: contain; }
.case-view[data-project="ostomy-care"] .case-dimensions { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 28px; margin: 32px 0; }
.case-view[data-project="ostomy-care"] .case-dimensions .case-block { margin: 0; padding-top: 20px; border-top: 2px solid #797f90; }
.case-view[data-project="ostomy-care"] :is(.case-statement,.case-callout) { margin: 30px 0; padding: 24px 0 24px 24px; border-left: 2px solid #797f90; }
.case-view[data-project="ostomy-care"] .case-callout { background: #f4f6f7; padding-right: 24px; }
.case-view[data-project="ostomy-care"] .case-callout h3 { font-size: 18px; margin: 0 0 12px; line-height: 1.5; }
.case-view[data-project="ostomy-care"] .case-callout p { font-size: 15px; line-height: 1.8; color: #555d64; margin: 0; }
.case-view[data-project="ostomy-care"] .case-statement > p { font-size: 12px; color: #71797f; margin: 0 0 12px; }
.case-view[data-project="ostomy-care"] .case-statement h3 { font-size: 25px; line-height: 1.5; margin: 0; }
.case-view[data-project="ostomy-care"] :is(.case-decision,.case-section) > .case-figure > .case-image-button img { max-height: 720px; object-fit: contain; background: #f7f8f8; }
.case-view[data-project="ostomy-care"] .case-flow-canvas { max-width: 100%; overflow-x: auto; overscroll-behavior-x: contain; }
.case-view[data-project="ostomy-care"] .case-flow-canvas .case-image-button { width: max(100%,620px); }
.case-view[data-project="ostomy-care"] .case-flow-canvas img { width: 100%; height: auto; max-width: none; }
.case-view[data-project="ostomy-care"] .case-walkthrough > h3 { font-size: 20px; line-height: 1.5; margin: 0 0 28px; }
.case-view[data-project="ostomy-care"] .case-walkthrough ol { list-style: none; padding: 0; margin: 0; }
.case-view[data-project="ostomy-care"] .case-walkthrough li { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); align-items: center; gap: 40px; padding: 30px 0; border-top: 1px solid #e2e6e7; }
.case-view[data-project="ostomy-care"] .case-walkthrough-copy > span { font-size: 12px; color: #757d85; }
.case-view[data-project="ostomy-care"] .case-walkthrough-copy h4 { font-size: 22px; line-height: 1.5; margin: 12px 0; }
.case-view[data-project="ostomy-care"] .case-walkthrough-copy p { font-size: 16px; line-height: 1.8; color: #555d64; }
.case-view[data-project="ostomy-care"] .case-walkthrough .case-figure { margin: 0; }
.case-view[data-project="ostomy-care"] .case-walkthrough img { max-height: 500px; object-fit: contain; }
.ostomy-journey ol { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 30px 24px; }
.ostomy-journey li { min-width: 0; }
.ostomy-journey .case-image-button { aspect-ratio: 1; }
.ostomy-journey img { width: 100%; height: 100%; object-fit: contain; }
.ostomy-journey li > p { margin: 14px 0 0; }
.ostomy-journey li span { display: block; font-size: 11px; color: #777f87; margin-bottom: 7px; }
.ostomy-journey li strong { display: block; font-size: 16px; line-height: 1.5; font-weight: 550; }
.case-view[data-project="early-student-work"] .case-layout { display: block; }
.case-view[data-project="early-student-work"] .case-toc { display: none; }
.case-view[data-project="early-student-work"] .case-meta { grid-template-columns: repeat(3,minmax(0,1fr)); }
.case-view[data-project="early-student-work"] .case-hero > .case-figure { margin-bottom: 0; }
.case-view[data-project="early-student-work"] .case-title-line { display: grid; grid-template-columns: minmax(0,1fr) minmax(360px,490px); align-items: center; gap: 32px; margin-bottom: 22px; }
.case-view[data-project="early-student-work"] .case-title-line h1 { min-width: 0; max-width: none; font-size: 48px; line-height: 1.15; }
.case-view[data-project="early-student-work"] .case-title-line .case-meta { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; border: 0; }
.case-view[data-project="early-student-work"] .case-title-line .case-meta > div { position: relative; display: inline-flex; align-items: center; max-width: 100%; min-height: 34px; padding: 8px 12px; border: 1px solid #dbe2d6; border-radius: 999px; background: #f2f5ee; }
.case-view[data-project="early-student-work"] .case-title-line .case-meta dt { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.case-view[data-project="early-student-work"] .case-title-line .case-meta dd { margin: 0; font-size: 12px; line-height: 1.4; color: #4c5c44; white-space: nowrap; }
@media (max-width: 1000px) {
  .case-view[data-project="early-student-work"] .case-title-line { grid-template-columns: minmax(0,1fr); gap: 18px; }
}
@media (max-width: 520px) {
  .case-view[data-project="early-student-work"] .case-title-line h1 { font-size: 34px; }
  .case-view[data-project="early-student-work"] .case-title-line .case-meta > div { padding: 7px 10px; }
  .case-view[data-project="early-student-work"] .case-title-line .case-meta dd { font-size: 11px; }
}
.student-projects { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 32px; margin: 36px 0 60px; }
.student-project { min-width: 0; border-top: 1px solid #d8ddd9; padding-top: 20px; }
.student-project-number { font-size: 11px; color: #747c73; margin: 0 0 16px; }
.case-view[data-project="early-student-work"] .student-project h3 { font-size: 24px; line-height: 1.4; min-height: 112px; margin: 0 0 10px; font-weight: 550; }
.student-project-subtitle { font-size: 13px; line-height: 1.6; color: #687168; min-height: 62px; margin: 0 0 16px; }
.student-project-preview { display: block; width: 100%; padding: 0; border: 1px solid #dfe4df; border-radius: 8px; overflow: hidden; background: #f4f5f3; text-align: left; cursor: pointer; transition: border-color .18s,box-shadow .18s; }
.student-project-preview > img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: contain; background: #fff; }
.student-project-preview > span { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 54px; padding: 14px 16px; font-size: 12px; line-height: 20px; background: white; border-top: 1px solid #e5e8e4; }
.student-project-preview .student-preview-title { display: block; flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.student-project-preview span img { width: 18px; height: 18px; flex-shrink: 0; }
.student-project-preview[aria-expanded="true"] { border-color: #597050; box-shadow: 0 0 0 1px #597050; }
.student-project-preview[aria-expanded="true"] span img { transform: rotate(90deg); }
.student-project-preview:hover { border-color: #879b7d; box-shadow: 0 4px 16px #263c2210; }
.student-project-preview:focus-visible { outline: 2px solid #597050; outline-offset: 5px; }
.student-project-copy { font-size: 14px; line-height: 1.85; color: #555e55; margin: 22px 0 0; }
.student-document { scroll-margin-top: calc(var(--case-nav-height) + 28px); outline: none; }
.student-document > header { display: flex; justify-content: space-between; gap: 24px; align-items: center; padding: 22px 0; border-top: 1px solid #d8ddd9; background: #fff; position: sticky; top: var(--case-nav-height); z-index: 2; }
.student-document > header > div { flex: 1; min-width: 0; }
.student-document-switcher { width: 195px; max-width: 100%; border: 1px solid #d8ddd9; border-radius: 4px; padding: 10px 28px 10px 12px; background: white; color: #465442; font: inherit; font-size: 13px; }
.student-document-switcher:focus-visible { outline: 2px solid #597050; outline-offset: 3px; }
.student-document header p { font-size: 11px; color: #747c73; margin: 0 0 12px; }
.case-view[data-project="early-student-work"] .student-document h3 { font-size: 28px; line-height: 1.4; margin: 0; }
.student-document header > span { white-space: nowrap; font-size: 12px; color: #747c73; padding-bottom: 4px; }
.student-page { margin: 0 0 36px; }
.student-page .case-image-button { background: #f5f6f4; }
.student-page .case-image-button img { display: block; width: 100%; height: auto; object-fit: contain; }
.student-page figcaption { font-size: 11px; color: #747c73; }
@media (max-width: 900px) {
  .case-view[data-project="ostomy-care"] .case-dimensions { grid-template-columns: minmax(0,1fr); }
  .student-projects { gap: 20px; }
  .case-view[data-project="early-student-work"] .student-project h3 { font-size: 21px; min-height: 150px; }
}
@media (max-width: 640px) {
  .case-view[data-project="ostomy-care"] .case-tagline { font-size: 22px; }
  .case-view[data-project="ostomy-care"] .case-meta,.case-view[data-project="early-student-work"] .case-meta { grid-template-columns: minmax(0,1fr); }
  .case-view[data-project="ostomy-care"] .case-walkthrough li { grid-template-columns: minmax(0,1fr); gap: 20px; }
  .case-view[data-project="ostomy-care"] .case-statement h3 { font-size: 21px; }
  .ostomy-journey ol { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 24px 14px; }
  .ostomy-journey li strong { font-size: 14px; }
  .student-projects { grid-template-columns: minmax(0,1fr); gap: 40px; }
  .case-view[data-project="early-student-work"] .student-project h3 { min-height: 0; }
  .student-project-subtitle { min-height: 0; }
  .case-view[data-project="early-student-work"] .student-document h3 { font-size: 23px; }
  .student-document > header { flex-wrap: wrap; gap: 14px; }
  .student-document-switcher { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { .student-project-preview { transition: none; } }
#case-study[data-project="epistemic-research-studio"] { --er-red: #bd352b; font-family: Arial,Helvetica,sans-serif; color: #242424; background: #fff; }
#case-study[data-project="epistemic-research-studio"] :is(h1,h2,h3,h4) { letter-spacing: 0; }
#case-study[data-project="epistemic-research-studio"] .case-topbar { background: #fff; border-color: #e7e7e7; }
#case-study[data-project="epistemic-research-studio"] .case-hero { padding-top: 24px; }
#case-study[data-project="epistemic-research-studio"] #case-media-er-hero-demo { margin: 36px 0 0; }
#case-study[data-project="epistemic-research-studio"] .case-figure video { aspect-ratio: 1800 / 946; object-fit: contain; background: #f7f7f6; border-radius: 4px; }
#case-study[data-project="epistemic-research-studio"] .case-brand { display: inline-block; position: relative; padding-bottom: 12px; }
#case-study[data-project="epistemic-research-studio"] .case-brand::after { content: ""; position: absolute; left: 0; bottom: 2px; width: 100%; height: 7px; border-bottom: 2px solid var(--er-red); border-radius: 40% 25% 45% 35%; transform: rotate(-1deg); }
#case-study[data-project="epistemic-research-studio"] .case-hero h1 { font-size: 50px; line-height: 1.15; font-weight: 500; }
#case-study[data-project="epistemic-research-studio"] :is(.case-copy,.case-summary,.case-callout p,.case-table td,.case-decision dd) { color: #595959; }
#case-study[data-project="epistemic-research-studio"] :is(.case-eyebrow,.case-section-number,.case-meta dt) { color: #777; }
#case-study[data-project="epistemic-research-studio"] .case-section-number { color: var(--er-red); }
#case-study[data-project="epistemic-research-studio"] .case-section > h2 { position: relative; font-size: 32px; line-height: 1.3; font-weight: 500; padding-bottom: 18px; }
#case-study[data-project="epistemic-research-studio"] .case-section > h2::after { content: ""; display: block; position: absolute; bottom: 0; left: 0; width: 115px; height: 6px; border-top: 2px solid var(--er-red); border-radius: 45% 30%; transform: rotate(-2deg); }
#case-study[data-project="epistemic-research-studio"] :is(#case-problem,#case-workspace,#case-reflection) > h2 { padding-left: 52px; }
#case-study[data-project="epistemic-research-studio"] :is(#case-problem,#case-workspace,#case-reflection) > h2::before { content: ""; position: absolute; top: 2px; left: 0; width: 36px; height: 36px; background: url("assets/projects/epistemic-research-studio/red-brain.svg") center / contain no-repeat; transform: rotate(-8deg); }
#case-study[data-project="epistemic-research-studio"] #case-workspace > h2::before { background-image: url("assets/projects/epistemic-research-studio/red-pencil-line.svg"); transform: rotate(7deg); }
#case-study[data-project="epistemic-research-studio"] #case-reflection > h2::before { background-image: url("assets/projects/epistemic-research-studio/red-lightbulb.svg"); }
#case-study[data-project="epistemic-research-studio"] .case-toc > span { font-family: "Caveat",cursive; font-size: 22px; color: var(--er-red); text-transform: none; }
#case-study[data-project="epistemic-research-studio"] .case-toc a { color: #777; border-color: #e4e4e4; padding: 11px 14px; }
#case-study[data-project="epistemic-research-studio"] .case-toc a[aria-current="location"] { border-color: var(--er-red); background: #fdf1ef; color: var(--er-red); }
#case-study[data-project="epistemic-research-studio"] .case-toc :is(a:hover,a:focus-visible) { color: var(--er-red); }
#case-study[data-project="epistemic-research-studio"] :is(.case-callout,.case-statement) { border-left-color: var(--er-red); }
#case-study[data-project="epistemic-research-studio"] .case-statement > p { font-family: "Caveat",cursive; color: var(--er-red); font-size: 25px; line-height: 1.25; }
#case-study[data-project="epistemic-research-studio"] .case-statement h3 { color: #333; }
#case-study[data-project="epistemic-research-studio"] .case-table th { background: #f7f7f6; color: #333; border-bottom-color: #d8d8d8; }
#case-study[data-project="epistemic-research-studio"] .er-research-context > strong { color: var(--er-red); }
#case-study[data-project="epistemic-research-studio"] :is(.case-section,.case-meta,.case-dimensions .case-block,.er-research-context,.er-reasoning-overview li) { border-color: #e5e5e5; }
#case-study[data-project="epistemic-research-studio"] .case-figure > h3 { font-size: 19px; line-height: 1.5; font-weight: 500; margin: 0 0 20px; }
#case-study[data-project="epistemic-research-studio"] .case-image-button img { border-radius: 4px; }
#case-study[data-project="epistemic-research-studio"] .case-media-slot { width: 100%; min-width: 0; grid-template-columns: minmax(0,1fr); overflow-wrap: anywhere; }
#case-study[data-project="epistemic-research-studio"] .case-gallery--stack .case-gallery-track { display: grid; grid-template-columns: minmax(0,1fr); gap: 24px; }
#case-study[data-project="epistemic-research-studio"] .case-gallery--stack img { width: 100%; height: auto; aspect-ratio: auto; object-fit: contain; }
#case-study[data-project="epistemic-research-studio"] .er-flow-toolbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; margin-bottom: 16px; }
#case-study[data-project="epistemic-research-studio"] .er-flow-toolbar h3 { font-size: 19px; line-height: 1.4; font-weight: 500; margin: 0; }
#case-study[data-project="epistemic-research-studio"] .er-flow-controls { display: flex; align-items: center; gap: 6px; }
#case-study[data-project="epistemic-research-studio"] .er-flow-controls output { width: 56px; text-align: center; font-size: 12px; font-variant-numeric: tabular-nums; }
#case-study[data-project="epistemic-research-studio"] .er-flow-controls .case-icon-button { width: 34px; height: 34px; border-color: #e3e3e3; }
#case-study[data-project="epistemic-research-studio"] .er-flow-controls button:disabled { opacity: .35; cursor: default; }
#case-study[data-project="epistemic-research-studio"] .er-flow-viewport { width: 100%; aspect-ratio: 14628 / 4850; border: 1px solid #ddd; border-radius: 4px; overflow: auto; overscroll-behavior: contain; background: #e5e5e5; user-select: none; }
#case-study[data-project="epistemic-research-studio"] .er-flow-viewport:focus-visible { outline: 2px solid var(--er-red); outline-offset: 4px; }
#case-study[data-project="epistemic-research-studio"] .er-flow-viewport[data-zoomed="true"] { cursor: grab; }
#case-study[data-project="epistemic-research-studio"] .er-flow-viewport.is-dragging { cursor: grabbing; }
#case-study[data-project="epistemic-research-studio"] .er-flow-sheet { width: 100%; }
#case-study[data-project="epistemic-research-studio"] .er-flow-sheet img { display: block; width: 100%; max-width: none; height: auto; border-radius: 0; }
#case-study[data-project="epistemic-research-studio"] .er-workspace-pair { display: grid; grid-template-columns: minmax(0,.8fr) 28px minmax(0,1.6fr); gap: 16px; align-items: start; }
#case-study[data-project="epistemic-research-studio"] .er-workspace-arrow { display: grid; place-items: center; padding-top: 52px; }
#case-study[data-project="epistemic-research-studio"] .er-workspace-arrow img { width: 28px; height: 28px; }
#case-study[data-project="epistemic-research-studio"] :is(.er-start-screen,.er-focus-screen) > p { color: #666; font-size: 12px; line-height: 1.5; margin: 14px 0 0; }
#case-study[data-project="epistemic-research-studio"] .er-annotated-visual { position: relative; min-width: 0; }
#case-study[data-project="epistemic-research-studio"] .er-sketch-overlay { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; fill: none; stroke: var(--er-red); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
#case-study[data-project="epistemic-research-studio"] .er-sketch-overlay :is(path,circle) { vector-effect: non-scaling-stroke; }
#case-study[data-project="epistemic-research-studio"] .er-sketch-echo { opacity: .55; }
#case-study[data-project="epistemic-research-studio"] .er-sketch-overlay circle { fill: #fff; }
#case-study[data-project="epistemic-research-studio"] .er-sketch-overlay text { fill: var(--er-red); stroke: none; font: 16px Arial,sans-serif; text-anchor: middle; }
#case-study[data-project="epistemic-research-studio"] .er-note-arrows { display: block; width: 100%; height: 38px; fill: none; stroke: var(--er-red); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
#case-study[data-project="epistemic-research-studio"] .er-note-arrows path { vector-effect: non-scaling-stroke; }
#case-study[data-project="epistemic-research-studio"] .er-sketch-notes ol { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; list-style: none; margin: 0; padding: 0; }
#case-study[data-project="epistemic-research-studio"] .er-sketch-notes li { display: flex; align-items: start; gap: 5px; min-width: 0; color: var(--er-red); }
#case-study[data-project="epistemic-research-studio"] .er-sketch-notes li > span { font: 11px Arial,sans-serif; padding-top: 7px; }
#case-study[data-project="epistemic-research-studio"] .er-sketch-notes strong { font-family: "Caveat",cursive; font-size: 23px; font-weight: 500; line-height: 1.1; }
#case-study[data-project="epistemic-research-studio"] .er-sketch-notes p { font-size: 14px; line-height: 1.7; color: #666; margin: 12px 0 0; }
#case-study[data-project="epistemic-research-studio"] .er-annotated-layout--aside { display: grid; grid-template-columns: minmax(0,1fr) 220px; align-items: center; gap: 38px; }
#case-study[data-project="epistemic-research-studio"] .er-annotated-layout--aside .er-sketch-notes { position: relative; }
#case-study[data-project="epistemic-research-studio"] .er-annotated-layout--aside .er-note-arrows { display: none; }
#case-study[data-project="epistemic-research-studio"] .er-annotated-layout--aside .er-sketch-notes::before { content: ""; position: absolute; top: 15px; left: -44px; width: 32px; border-top: 2px solid var(--er-red); transform: rotate(-5deg); }
#case-study[data-project="epistemic-research-studio"] .er-annotated-layout--aside .er-sketch-notes::after { content: ""; position: absolute; top: 9px; left: -18px; width: 8px; height: 8px; border-top: 2px solid var(--er-red); border-right: 2px solid var(--er-red); transform: rotate(40deg); }
#case-study[data-project="epistemic-research-studio"] .er-annotated-layout--aside ol { grid-template-columns: minmax(0,1fr); }
@media (max-width: 900px) {
  #case-study[data-project="epistemic-research-studio"] .case-toc { background: #fff; }
  #case-study[data-project="epistemic-research-studio"] .case-toc a { padding: 10px 12px; }
  #case-study[data-project="epistemic-research-studio"] .er-workspace-pair { grid-template-columns: minmax(0,1fr) 24px minmax(0,1.8fr); gap: 10px; }
}
@media (max-width: 650px) {
  #case-study[data-project="epistemic-research-studio"] .case-hero h1 { font-size: 34px; }
  #case-study[data-project="epistemic-research-studio"] .case-section > h2 { font-size: 26px; }
  #case-study[data-project="epistemic-research-studio"] .case-meta { grid-template-columns: repeat(2,minmax(0,1fr)); }
  #case-study[data-project="epistemic-research-studio"] .case-dimensions { grid-template-columns: minmax(0,1fr); }
  #case-study[data-project="epistemic-research-studio"] .er-workspace-pair { grid-template-columns: minmax(0,1fr); gap: 18px; }
  #case-study[data-project="epistemic-research-studio"] .er-workspace-arrow { padding: 0; }
  #case-study[data-project="epistemic-research-studio"] .er-workspace-arrow img { transform: rotate(90deg); }
  #case-study[data-project="epistemic-research-studio"] .er-sketch-notes ol { grid-template-columns: minmax(0,1fr); gap: 12px; }
  #case-study[data-project="epistemic-research-studio"] .er-sketch-notes strong { font-size: 21px; }
  #case-study[data-project="epistemic-research-studio"] .er-annotated-layout--aside { grid-template-columns: minmax(0,1fr); gap: 0; }
  #case-study[data-project="epistemic-research-studio"] .er-annotated-layout--aside .er-note-arrows { display: block; }
  #case-study[data-project="epistemic-research-studio"] .er-annotated-layout--aside .er-sketch-notes::before,
  #case-study[data-project="epistemic-research-studio"] .er-annotated-layout--aside .er-sketch-notes::after { display: none; }
  #case-study[data-project="epistemic-research-studio"] #case-media-er-hero-demo { margin-top: 28px; }
}
.case-view[data-project="epistemic-research-studio"] .case-brand { font-size: 26px; line-height: 1.3; font-weight: 600; margin: 0 0 18px; }
.case-view[data-project="epistemic-research-studio"] .case-hero h1 { font-weight: 600; }
.case-view[data-project="epistemic-research-studio"] #case-media-er-demo { scroll-margin-top: calc(var(--case-nav-height) + 24px); }
.case-view[data-project="epistemic-research-studio"] .case-meta { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.case-view[data-project="epistemic-research-studio"] .case-dimensions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; margin: 36px 0; }
.case-view[data-project="epistemic-research-studio"] .case-dimensions .case-block { margin: 0; padding-top: 20px; border-top: 1px solid #d7ddd7; }
.case-view[data-project="epistemic-research-studio"] .case-statement { margin: 34px 0; padding: 24px 0 24px 24px; border-left: 2px solid #596d56; }
.case-view[data-project="epistemic-research-studio"] .case-statement > p { font-size: 12px; line-height: 1.5; color: #777f77; margin: 0 0 14px; }
.case-view[data-project="epistemic-research-studio"] .case-statement h3 { max-width: 800px; font-size: 25px; font-weight: 500; line-height: 1.4; margin: 0; }
.case-view[data-project="epistemic-research-studio"] .case-callout { margin: 28px 0; padding: 22px 0 22px 24px; border-left: 2px solid #596d56; }
.case-view[data-project="epistemic-research-studio"] .case-callout h3 { font-size: 19px; font-weight: 550; line-height: 1.4; margin: 0 0 14px; }
.case-view[data-project="epistemic-research-studio"] .case-callout p { max-width: 720px; font-size: 15px; line-height: 1.8; color: #545d54; margin: 0; }
.case-view[data-project="epistemic-research-studio"] .case-media-slot { aspect-ratio: 16 / 9; min-height: 180px; padding: 24px; }
.case-view[data-project="epistemic-research-studio"] .case-media-slot > span { font-size: 17px; line-height: 1.5; text-align: center; }
.case-view[data-project="epistemic-research-studio"] .case-figure--flow > .case-flow-canvas { width: 100%; max-width: 100%; overflow-x: auto; overscroll-behavior-x: contain; }
.case-view[data-project="epistemic-research-studio"] .case-flow-canvas:focus-visible { outline: 2px solid #58704b; outline-offset: 4px; }
.case-view[data-project="epistemic-research-studio"] .case-figure--flow .case-media-slot { aspect-ratio: 3 / 1; min-height: 240px; }
.case-view[data-project="epistemic-research-studio"] .case-figure--flow .case-image-button img { height: auto; max-width: none; object-fit: contain; }
.case-view[data-project="epistemic-research-studio"] #case-iterations .storyboard-cell > .case-image-button { aspect-ratio: auto; }
.case-view[data-project="epistemic-research-studio"] #case-iterations .storyboard-pending { aspect-ratio: 16 / 10; background: #f2f4f2; color: #7b847b; }
.case-view[data-project="epistemic-research-studio"] #case-iterations .storyboard-cell .case-image-button img { height: auto; }
.case-view[data-project="epistemic-research-studio"] .case-comparison-evidence { margin: 20px 0 0; }
.case-view[data-project="epistemic-research-studio"] .case-comparison-evidence dt { font-size: 12px; color: #777f77; margin: 14px 0 6px; }
.case-view[data-project="epistemic-research-studio"] .case-comparison-evidence dd { font-size: 14px; line-height: 1.8; color: #545d54; margin: 0; }
.case-view[data-project="epistemic-research-studio"] .er-research-context { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 24px; align-items: start; margin: 32px 0; padding: 24px 0; border-block: 1px solid #e5e7e5; }
.case-view[data-project="epistemic-research-studio"] .er-research-context > strong { font-size: 42px; line-height: 1.2; font-weight: 500; }
.case-view[data-project="epistemic-research-studio"] .er-research-context h3 { font-size: 19px; font-weight: 550; line-height: 1.5; margin: 0 0 10px; }
.case-view[data-project="epistemic-research-studio"] .er-research-context p { max-width: 620px; font-size: 13px; line-height: 1.8; color: #777f77; margin: 0; }
.case-view[data-project="epistemic-research-studio"] .er-reasoning-overview > h3 { font-size: 19px; line-height: 1.5; font-weight: 550; margin: 0 0 24px; }
.case-view[data-project="epistemic-research-studio"] .er-reasoning-overview ol { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 28px; }
.case-view[data-project="epistemic-research-studio"] .er-reasoning-overview li { position: relative; min-width: 0; padding: 18px 0; border-top: 1px solid #d7ddd7; }
.case-view[data-project="epistemic-research-studio"] .er-reasoning-overview li > span:not(.er-flow-arrow) { font-size: 12px; color: #777f77; }
.case-view[data-project="epistemic-research-studio"] .er-reasoning-overview h4 { font-size: 16px; font-weight: 550; line-height: 1.5; margin: 12px 0 0; }
.case-view[data-project="epistemic-research-studio"] .er-flow-arrow { position: absolute; width: 22px; height: 1px; right: -25px; top: 24px; background: #777f77; }
.case-view[data-project="epistemic-research-studio"] .er-flow-arrow::after { content: ""; position: absolute; right: 0; top: -4px; width: 8px; height: 8px; border-top: 1px solid #777f77; border-right: 1px solid #777f77; transform: rotate(45deg); }
.case-view[data-project="thought-gym"] .case-meta { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.case-view[data-project="thought-gym"] .case-tagline { font-size: 32px; line-height: 1.3; max-width: 850px; }
.case-view[data-project="thought-gym"] .case-dimensions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; margin: 36px 0; }
.case-view[data-project="thought-gym"] .case-dimensions .case-block { margin: 0; padding-top: 20px; border-top: 2px solid #ba2f25; }
.case-view[data-project="thought-gym"] .case-statement { margin: 36px 0; padding: 22px 0 22px 24px; border-left: 2px solid #ba2f25; }
.case-view[data-project="thought-gym"] .case-statement > p { font-size: 12px; line-height: 1.5; color: #777f77; margin: 0 0 14px; }
.case-view[data-project="thought-gym"] .case-statement h3 { max-width: 820px; font-size: 29px; line-height: 1.4; font-weight: 500; margin: 0; }
.case-view[data-project="thought-gym"] .thought-artifact { padding: 32px 0; }
.case-view[data-project="thought-gym"] .thought-artifact + .thought-artifact { border-top: 1px solid #e5e7e5; margin-top: 24px; }
.case-view[data-project="thought-gym"] .thought-artifact-number { color: #ba2f25; font-size: 12px; font-weight: 600; margin: 0 0 12px; }
.case-view[data-project="thought-gym"] .thought-artifact > h3 { font-size: 25px; font-weight: 500; line-height: 1.4; margin: 0 0 20px; }
.case-view[data-project="thought-gym"] .case-gallery--row .case-gallery-track { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.case-view[data-project="thought-gym"] .case-gallery--row .case-image-button img { aspect-ratio: auto; height: auto; }
.case-view[data-project="thought-gym"] #case-world .case-gallery--row .case-gallery-track { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.case-view[data-project="thought-gym"] .case-resource-links { margin: 36px 0; }
.case-view[data-project="thought-gym"] .case-resource-links h3, .case-view[data-project="thought-gym"] .case-callout h3 { font-size: 19px; font-weight: 550; line-height: 1.4; margin: 0 0 14px; }
.case-view[data-project="thought-gym"] .case-resource-links ul { list-style: none; padding: 0; margin: 0; }
.case-view[data-project="thought-gym"] .case-resource-links a { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 0; border-bottom: 1px solid #e5e7e5; font-size: 15px; line-height: 1.5; }
.case-view[data-project="thought-gym"] .case-resource-links a:hover { text-decoration: underline; text-underline-offset: 4px; }
.case-view[data-project="thought-gym"] .case-resource-links a:focus-visible { outline: 2px solid #ba2f25; outline-offset: 4px; }
.case-view[data-project="thought-gym"] .case-resource-links img { width: 18px; height: 18px; flex: 0 0 auto; }
.case-view[data-project="thought-gym"] .case-callout { margin: 28px 0; padding: 22px 0 22px 24px; border-left: 2px solid #ba2f25; }
.case-view[data-project="thought-gym"] .case-callout p { max-width: 720px; font-size: 15px; line-height: 1.8; color: #545d54; margin: 0; }
.case-view[data-project="thought-gym"] .case-media-slot { aspect-ratio: 16 / 9; min-height: 180px; padding: 24px; }
.case-view[data-project="thought-gym"] .thought-flow > h3, .case-view[data-project="thought-gym"] .thought-timeline h3 { font-size: 20px; line-height: 1.5; font-weight: 550; margin: 0 0 22px; }
.case-view[data-project="thought-gym"] .thought-flow > ol { list-style: none; display: grid; grid-template-columns: repeat(var(--thought-steps), minmax(0, 1fr)); gap: 30px; padding: 0; margin: 0; }
.case-view[data-project="thought-gym"] .thought-flow > ol > li { position: relative; min-width: 0; border-top: 1px solid #d7ddd7; padding: 20px 0; }
.case-view[data-project="thought-gym"] .thought-flow li > span:not(.thought-flow-arrow) { font-size: 12px; color: #ba2f25; }
.case-view[data-project="thought-gym"] .thought-flow h4 { font-size: 17px; font-weight: 550; line-height: 1.5; margin: 12px 0; }
.case-view[data-project="thought-gym"] .thought-flow p { font-size: 14px; line-height: 1.8; color: #545d54; margin: 0; }
.case-view[data-project="thought-gym"] .thought-flow-arrow { position: absolute; width: 22px; height: 1px; right: -26px; top: 26px; background: #777f77; }
.case-view[data-project="thought-gym"] .thought-flow-arrow::after { content: ""; position: absolute; right: 0; top: -4px; width: 8px; height: 8px; border-top: 1px solid #777f77; border-right: 1px solid #777f77; transform: rotate(45deg); }
.case-view[data-project="thought-gym"] .thought-timeline header > p { color: #ba2f25; font-size: 12px; line-height: 1.5; margin: 0 0 12px; }
.case-view[data-project="thought-gym"] .thought-timeline > .case-image-button { margin-bottom: 30px; }
.case-view[data-project="thought-gym"] .thought-timeline ol { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; padding: 0; margin: 0; }
.case-view[data-project="thought-gym"] .thought-timeline li { display: grid; grid-template-columns: 86px minmax(0, 1fr); gap: 18px; align-items: start; border-top: 1px solid #d7ddd7; padding-top: 18px; }
.case-view[data-project="thought-gym"] .thought-year { font-size: 27px; line-height: 1.2; font-weight: 500; color: #ba2f25; }
.case-view[data-project="thought-gym"] .thought-timeline h4 { font-size: 17px; line-height: 1.5; font-weight: 550; margin: 0 0 10px; }
.case-view[data-project="thought-gym"] .thought-timeline li p { font-size: 14px; line-height: 1.8; color: #545d54; margin: 0; }
.case-view[data-project="cognisense"] .case-brand { font-size: 26px; line-height: 1.3; font-weight: 600; margin: 0 0 18px; }
.case-view[data-project="cognisense"] .case-meta { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.case-view[data-project="cognisense"] .case-team-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.case-view[data-project="cognisense"] .case-team-member { display: flex; align-items: start; gap: 12px; min-width: 0; min-height: 72px; }
.case-view[data-project="cognisense"] .case-team-member > img { width: 72px; height: 72px; flex: 0 0 72px; object-fit: cover; border-radius: 8px; }
.case-view[data-project="cognisense"] .case-team-member > div { min-width: 0; }
.case-view[data-project="cognisense"] .case-team-name { display: block; font-size: 17px; font-weight: 550; line-height: 1.4; margin-bottom: 4px; }
.case-view[data-project="cognisense"] .case-team-school { display: block; font-size: 13px; line-height: 1.5; }
.case-view[data-project="cognisense"] .case-team-degree { display: block; font-size: 12px; line-height: 1.5; color: #777f77; margin-top: 4px; }
.case-view[data-project="cognisense"] .case-links { align-items: center; gap: 14px; }
.case-view[data-project="cognisense"] .case-hero-action { display: inline-flex; align-items: center; justify-content: center; gap: 12px; height: 56px; padding: 0 18px; border: 1px solid #e1e5dd; border-radius: 8px; background: #fff; box-shadow: 0 3px 10px rgba(35, 38, 35, 0.08); text-decoration: none; font-size: 15px; }
.case-view[data-project="cognisense"] .case-hero-action img { display: block; width: 24px; height: 24px; object-fit: contain; }
.case-view[data-project="cognisense"] .case-hero-action--image { padding: 0; width: 194px; overflow: hidden; border: 0; }
.case-view[data-project="cognisense"] .case-hero-action--image img { width: 100%; height: 100%; object-fit: contain; }
.case-view[data-project="cognisense"] .case-hero-action:hover { box-shadow: 0 5px 14px rgba(35, 38, 35, 0.12); }
.case-view[data-project="cognisense"] .case-hero-action:focus-visible { outline: 2px solid #58704b; outline-offset: 4px; }
.case-view[data-project="cognisense"] .case-dimensions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; margin: 32px 0; }
.case-view[data-project="cognisense"] .case-dimensions .case-block { margin: 0; padding-top: 18px; border-top: 1px solid #d7ddd7; }
.case-view[data-project="cognisense"] .case-statement { margin: 34px 0; padding: 24px 0 24px 24px; border-left: 2px solid #596d56; }
.case-view[data-project="cognisense"] .case-statement > p { font-size: 12px; line-height: 1.5; color: #777f77; margin: 0 0 14px; }
.case-view[data-project="cognisense"] .case-statement h3 { max-width: 760px; font-size: 24px; font-weight: 500; line-height: 1.45; margin: 0; }
.case-view[data-project="cognisense"] .case-callout { margin: 28px 0; padding: 24px; border-left: 2px solid #596d56; background: #f4f6f2; }
.case-view[data-project="cognisense"] .case-callout h3, .case-view[data-project="cognisense"] .case-resource-links h3, .case-view[data-project="cognisense"] .case-walkthrough > h3 { font-size: 19px; line-height: 1.4; font-weight: 550; margin: 0 0 14px; }
.case-view[data-project="cognisense"] .case-callout p { max-width: 720px; font-size: 15px; line-height: 1.8; color: #545d54; margin: 0; }
.case-view[data-project="cognisense"] .case-resource-links { margin: 32px 0; }
.case-view[data-project="cognisense"] .case-resource-links ul { list-style: none; padding: 0; margin: 0; }
.case-view[data-project="cognisense"] .case-resource-links a { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 0; border-bottom: 1px solid #e5e7e5; font-size: 15px; line-height: 1.5; }
.case-view[data-project="cognisense"] .case-resource-links a:hover { text-decoration: underline; text-underline-offset: 4px; }
.case-view[data-project="cognisense"] .case-resource-links a:focus-visible { outline: 2px solid #58704b; outline-offset: 3px; }
.case-view[data-project="cognisense"] .case-resource-links img { width: 18px; height: 18px; flex: 0 0 auto; }
.case-view[data-project="cognisense"] .case-walkthrough { margin: 36px 0 0; }
.case-view[data-project="cognisense"] .case-walkthrough ol { list-style: none; padding: 0; margin: 0; }
.case-view[data-project="cognisense"] .case-walkthrough li { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 28px; align-items: start; padding: 30px 0; border-top: 1px solid #e5e7e5; }
.case-view[data-project="cognisense"] .case-walkthrough li:nth-child(even) { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.case-view[data-project="cognisense"] .case-walkthrough li:nth-child(even) figure { order: -1; }
.case-view[data-project="cognisense"] .case-walkthrough-copy > span { font-size: 12px; color: #777f77; }
.case-view[data-project="cognisense"] .case-walkthrough h4 { font-size: 18px; line-height: 1.4; font-weight: 550; margin: 12px 0; }
.case-view[data-project="cognisense"] .case-walkthrough-copy p { font-size: 15px; line-height: 1.8; color: #545d54; margin: 0; }
.case-view[data-project="cognisense"] .case-walkthrough figure { margin: 0; min-width: 0; }
.case-view[data-project="cognisense"] .case-walkthrough figcaption { font-size: 12px; line-height: 1.6; color: #7b847b; margin-top: 12px; }
.case-view[data-project="cognisense"] .case-story #case-framing .case-dimensions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.case-view[data-project="cognisense"] .case-story .storyboard-cell > .case-image-button { aspect-ratio: auto; }
.case-view[data-project="cognisense"] .case-story .storyboard-cell .case-image-button img { height: auto; }
.case-view[data-project="cognisense"] .case-story :is(.cogni-observations, .cogni-flow) > h3 { font-size: 19px; font-weight: 550; line-height: 1.4; margin: 0 0 24px; }
.case-view[data-project="cognisense"] .case-story :is(.cogni-observations, .cogni-resonance, .cogni-flow) h4 { font-size: 17px; font-weight: 550; line-height: 1.5; margin: 10px 0; }
.case-view[data-project="cognisense"] .case-story :is(.cogni-observations, .cogni-resonance, .cogni-flow) p { font-size: 14px; line-height: 1.8; color: #545d54; margin: 0; }
.case-view[data-project="cognisense"] .case-story :is(.cogni-observations, .cogni-resonance-dimension, .cogni-flow-stages) span:not(.cogni-flow-arrow) { font-size: 12px; line-height: 1.5; color: #777f77; }
.case-view[data-project="cognisense"] .cogni-observations ol { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 30px; }
.case-view[data-project="cognisense"] .cogni-observations li { grid-column: span 2; border-top: 1px solid #d7ddd7; padding-top: 18px; min-width: 0; }
.case-view[data-project="cognisense"] .cogni-observations li:first-child { grid-column: span 4; }
.case-view[data-project="cognisense"] .cogni-resonance-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-areas: ". attention ." "comprehension center memory" ". emotional ."; gap: 28px; align-items: center; padding: 12px 0; }
.case-view[data-project="cognisense"] .cogni-resonance-center { grid-area: center; border: 1px solid #d7ddd7; border-radius: 8px; padding: 28px 18px; text-align: center; }
.case-view[data-project="cognisense"] .cogni-resonance-center > span { font-size: 11px; line-height: 1.5; color: #777f77; }
.case-view[data-project="cognisense"] .cogni-resonance-center h3 { font-size: 21px; font-weight: 500; line-height: 1.4; margin: 12px 0 0; }
.case-view[data-project="cognisense"] .cogni-resonance-dimension { border-top: 1px solid #d7ddd7; padding-top: 12px; }
.case-view[data-project="cognisense"] .cogni-resonance-dimension[data-dimension="0"] { grid-area: attention; }
.case-view[data-project="cognisense"] .cogni-resonance-dimension[data-dimension="1"] { grid-area: comprehension; }
.case-view[data-project="cognisense"] .cogni-resonance-dimension[data-dimension="2"] { grid-area: memory; }
.case-view[data-project="cognisense"] .cogni-resonance-dimension[data-dimension="3"] { grid-area: emotional; }
.case-view[data-project="cognisense"] .cogni-flow-stages { list-style: none; display: grid; grid-template-columns: repeat(var(--cogni-steps), minmax(0, 1fr)); gap: 28px; margin: 0; padding: 0; }
.case-view[data-project="cognisense"] .cogni-flow-stages > li { min-width: 0; position: relative; border-top: 1px solid #d7ddd7; padding: 18px 0; }
.case-view[data-project="cognisense"] .cogni-flow-arrow { position: absolute; width: 22px; height: 1px; right: -25px; top: 24px; background: #777f77; }
.case-view[data-project="cognisense"] .cogni-flow-arrow::after { content: ""; position: absolute; right: 0; top: -4px; width: 8px; height: 8px; border-top: 1px solid #777f77; border-right: 1px solid #777f77; transform: rotate(45deg); }
.case-view[data-project="cognisense"] .cogni-flow-stages .cogni-flow-reference-label { margin-top: 16px; font-size: 11px; color: #777f77; }
.case-view[data-project="cognisense"] .cogni-flow-references { padding-left: 14px; margin: 8px 0 0; font-size: 11px; line-height: 1.8; color: #777f77; }
.case-topbar { position: sticky; top: 0; z-index: 25; height: var(--case-nav-height); background: rgba(255, 255, 255, 0.97); backdrop-filter: blur(12px); }
.case-toc { top: calc(var(--case-nav-height) + 24px); }
.case-section { scroll-margin-top: calc(var(--case-nav-height) + 24px); }
.case-title-row { display: flex; align-items: center; gap: 18px; }
.case-title-row h1 { min-width: 0; }
.case-logo { width: 64px; height: 64px; object-fit: contain; flex: 0 0 auto; }
.case-figure video { aspect-ratio: 16 / 9; max-height: 680px; object-fit: contain; background: #f4f5f4; }
.case-media-heading { font-size: 16px; font-weight: 550; line-height: 1.5; margin: 0; }
.case-gallery-head { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 20px; }
.case-gallery-controls { display: flex; align-items: center; gap: 7px; flex-shrink: 0; }
.case-icon-button { width: 36px; height: 36px; display: inline-grid; place-items: center; padding: 0; border: 1px solid #dce1dc; background: #fff; border-radius: 6px; cursor: pointer; flex: 0 0 auto; }
.case-icon-button:hover { background: #f0f3ed; }
.case-icon-button:focus-visible { outline: 2px solid #58704b; outline-offset: 2px; }
.case-icon-button img { width: 17px; height: 17px; border-radius: 0; }
.case-gallery-index { min-width: 44px; font-size: 12px; color: #6d766d; text-align: center; }
.case-gallery-track { position: relative; display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; scrollbar-color: #c9d0c4 transparent; overscroll-behavior-x: contain; touch-action: pan-x pan-y; }
.case-gallery-track[data-dragging] { scroll-snap-type: none; cursor: grabbing; user-select: none; }
.case-gallery-slide { margin: 0; min-width: 0; flex: 0 0 72%; scroll-snap-align: start; }
.case-image-button { display: block; width: 100%; padding: 0; border: 0; border-radius: 8px; background: transparent; cursor: zoom-in; }
.case-image-button:focus-visible { outline: 2px solid #58704b; outline-offset: 2px; }
.case-gallery-slide .case-image-button img { width: 100%; height: 430px; object-fit: contain; background: #f4f5f3; }
.case-gallery--phones .case-gallery-slide { flex-basis: 238px; }
.case-gallery--phones .case-gallery-slide .case-image-button img { height: 480px; background: transparent; }
.case-gallery--row .case-gallery-track { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); overflow: visible; }
.case-gallery--row .case-gallery-slide .case-image-button img { height: auto; aspect-ratio: 9 / 19; object-fit: contain; background: transparent; }
.case-gallery--store .case-gallery-track { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); overflow: visible; }
.case-gallery--store .case-gallery-slide .case-image-button img { height: auto; aspect-ratio: 9 / 19; object-fit: contain; background: transparent; }
.case-gallery--ai .case-gallery-head { display: none; }
.case-gallery--ai .case-gallery-track { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); overflow: visible; }
.case-gallery--ai .case-gallery-slide .case-image-button img { height: auto; aspect-ratio: 9 / 19; object-fit: contain; background: transparent; }
.case-product-flow > h3 { font-size: 20px; line-height: 1.5; margin: 0 0 24px; }
.product-flow-screens { display: grid; grid-template-columns: repeat(var(--flow-columns), minmax(0, 1fr)); gap: 20px; align-items: center; }
.product-flow-screens .case-image-button img, .product-flow-record .case-image-button img { width: 100%; height: auto; aspect-ratio: 9 / 19; max-height: 480px; object-fit: contain; background: transparent; }
.case-product-flow--inventory > .product-flow-screens, .case-product-flow--sharing > .product-flow-screens { max-width: 760px; margin: 0 auto; }
.product-flow-inventory { display: grid; grid-template-columns: minmax(0, 1fr) 150px minmax(0, 1fr); gap: 16px; align-items: center; }
.product-flow-shopping { border: 1px dashed #98a18f; border-radius: 8px; padding: 14px; }
.product-flow-connector { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; }
.product-flow-connector p { font-size: 12px; line-height: 1.8; text-align: center; color: #6f7965; margin: 0; text-wrap: pretty; }
.product-flow-connector--down { margin: 22px auto; max-width: 420px; }
.product-flow-arrow { position: relative; display: block; width: 40px; height: 1px; background: #6f7965; flex-shrink: 0; }
.product-flow-arrow::after { content: ""; position: absolute; right: 0; top: -4px; width: 8px; height: 8px; border-top: 1px solid #6f7965; border-right: 1px solid #6f7965; transform: rotate(45deg); }
.product-flow-connector--down .product-flow-arrow { transform: rotate(90deg); margin: 20px 0; }
.product-flow-record { max-width: 240px; margin: 0 auto; }
.case-gallery--stack .case-gallery-track { display: grid; grid-template-columns: minmax(0, 1fr); overflow: visible; }
.case-gallery--stack .case-gallery-slide .case-image-button img { height: auto; background: transparent; }
.case-gallery--grid .case-gallery-track, .case-gallery[data-mode="grid"] .case-gallery-track { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; overflow: visible; }
.case-gallery--grid .case-gallery-slide .case-image-button img { height: auto; background: transparent; }
.case-gallery[data-mode="grid"] .case-gallery-track { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
.case-gallery[data-mode="grid"] .case-gallery-slide .case-image-button img { height: 150px; object-fit: cover; }
.case-gallery[data-mode="grid"] [data-gallery-step], .case-gallery[data-mode="grid"] [data-gallery-pause], .case-gallery[data-mode="grid"] .case-gallery-index { display: none; }
.case-figure--phone > .case-image-button { max-width: 300px; margin: auto; }
.case-figure--qr > .case-image-button { max-width: 320px; margin: 0 auto; padding: 16px; background: #fff; }
.case-figure--qr figcaption { text-align: center; }
.case-video-grid > h3 { font-size: 20px; line-height: 1.5; margin: 0 0 22px; }
.case-video-grid-items { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.case-video-grid-item { min-width: 0; }
.case-video-grid-item video { display: block; width: 100%; height: 420px; aspect-ratio: 9 / 16; object-fit: contain; background: #f4f5f1; border: 1px solid #e1e5db; border-radius: 8px; }
.case-video-grid-item h4 { font-size: 15px; line-height: 1.5; margin: 18px 0 12px; }
.case-video-grid-item p { font-size: 13px; line-height: 1.8; color: #6f7965; margin: 0; text-wrap: pretty; }
.case-figure--personal .case-personal-layout { display: grid; grid-template-columns: minmax(0, 360px) minmax(0, 1fr); gap: 40px; align-items: start; }
.case-personal-notes { padding-top: 35px; }
.case-personal-note { border-top: 2px solid #d9db69; padding: 22px 0 32px; }
.case-personal-note + .case-personal-note { border-color: #72bfb9; }
.case-personal-note h3 { font-size: 21px; font-weight: 550; margin: 0 0 12px; }
.case-personal-note p { font-size: 15px; line-height: 1.7; color: #606b60; margin: 0; }
.case-figure--diagram > .case-image-button { max-width: 650px; margin: auto; }
.case-figure--diagram > .case-image-button img { padding: 22px; border: 1px solid #e1e6e1; background: #fcfdfb; }
.case-framework { margin: 32px 0; padding: 28px; border: 1px solid #eee9cf; border-radius: 8px; background: #fffdf1; }
.case-framework > header { border-bottom: 1px solid #dce2dc; padding-bottom: 20px; }
.case-framework > header p { color: #748074; font-size: 12px; margin: 0 0 12px; }
.case-framework > header h3 { font-size: 25px; font-weight: 500; line-height: 1.3; margin: 0; }
.ccb-columns { display: grid; grid-template-columns: 1.12fr 1fr 36px 1fr; gap: 20px; padding: 24px 0 20px; font-size: 11px; color: #8a9387; }
.ccb-layer { --layer-color: #c95192; display: grid; grid-template-columns: 1.12fr 1fr 36px 1fr; gap: 20px; align-items: center; padding: 0; margin-bottom: 36px; border: 0; }
.ccb-layer:nth-of-type(2) { --layer-color: #4e74b9; }
.ccb-layer:nth-of-type(3) { --layer-color: #cf7359; }
.ccb-layer-model { position: relative; }
.ccb-layer-category { display: block; color: var(--layer-color); font-size: 12px; margin-bottom: 10px; }
.ccb-layer-heading { border: 1px solid var(--layer-color); border-radius: 6px; min-height: 148px; padding: 20px 16px; display: flex; flex-direction: column; justify-content: center; }
.ccb-layer-heading h4 { font-size: 20px; font-weight: 500; line-height: 1.4; margin: 10px 0; }
.ccb-layer-heading p { color: #697469; font-size: 13px; line-height: 1.6; margin: 0; }
.ccb-layer ul { margin: 0; padding-left: 18px; color: #566256; font-size: 14px; line-height: 1.7; }
.ccb-layer-results ul { color: var(--layer-color); }
.ccb-arrow-right { position: relative; display: block; width: 100%; height: 18px; color: #31362d; }
.ccb-arrow-right::before { content: ""; position: absolute; top: 50%; left: 0; width: calc(100% - 8px); height: 1px; background: currentColor; }
.ccb-arrow-right::after { content: ""; position: absolute; top: calc(50% - 6px); right: 0; border-top: 6px solid transparent; border-bottom: 6px solid transparent; border-left: 9px solid currentColor; }
.ccb-arrow-down { position: absolute; top: 100%; left: 50%; transform: translateX(-50%); display: block; width: 18px; height: 32px; color: #31362d; }
.ccb-arrow-down::before { content: ""; position: absolute; top: 0; left: 50%; width: 1px; height: calc(100% - 8px); background: currentColor; }
.ccb-arrow-down::after { content: ""; position: absolute; bottom: 0; left: calc(50% - 6px); border-left: 6px solid transparent; border-right: 6px solid transparent; border-top: 9px solid currentColor; }
.ccb-mobile-connector { display: none; }
.ccb-list-label { display: none; }
.ccb-output { display: grid; grid-template-columns: 1.12fr 1fr 36px 1fr; gap: 20px; border: 0; margin: 0 0 34px; padding: 0; }
.ccb-output strong { padding: 20px 16px; border-radius: 6px; background: #292d25; color: #fff; font-size: 19px; line-height: 1.45; font-weight: 500; }
.ccb-adaptive { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; padding: 28px 0; border-top: 1px solid #dce2dc; margin-top: 20px; }
.ccb-adaptive h4 { font-size: 18px; font-weight: 500; margin: 12px 0 18px; }
.ccb-adaptive p, .ccb-adaptive li { color: #626e60; font-size: 14px; line-height: 1.7; }
.ccb-adaptive ul { padding-left: 18px; }
.ccb-adaptive > section { border: 1px dashed #dfbfc9; padding: 20px; border-radius: 6px; }
.ccb-adaptive h4 { color: #ad547f; font-size: 14px; margin: 0 0 18px; }
.ccb-engine-detail { display: grid; grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr); gap: 20px; }
.ccb-engine-detail > strong { font-size: 14px; font-weight: 500; line-height: 1.6; }
.ccb-engine-detail p { margin-top: 0; }
.case-view[data-project="friyo"] #case-research .case-table-wrap { border: 1px solid #eee9cf; border-radius: 8px; background: #fffdf3; padding: 20px; }
.case-view[data-project="friyo"] #case-research .case-table th { background: #faf5d9; }
.case-view[data-project="friyo"] .case-decision { padding: 24px; margin-bottom: 16px; border: 1px solid #e3e8dd; border-radius: 8px; background: #f6f8f3; }
.case-view[data-project="friyo"] #case-opportunity .case-block { padding: 24px; border: 1px solid #eee9cf; border-radius: 8px; background: #fffdf3; }
.case-view[data-project="friyo"] .case-personal-note { padding: 22px; margin-bottom: 18px; border: 1px solid #e9e4b6; border-radius: 8px; background: #fffdf1; }
.case-view[data-project="friyo"] .case-personal-note + .case-personal-note { border-color: #d5e7e4; background: #f3f9f7; }
.case-view[data-project="friyo"] #case-impact .case-result { padding: 22px; border: 1px solid #e3e8dd; border-radius: 8px; background: #f6f8f3; }
.case-journey-chart { padding: 24px; border: 1px solid #e5e5d8; border-radius: 8px; background: #fffdf3; }
.case-journey-chart header p { font-size: 11px; color: #859078; margin: 0 0 12px; }
.case-journey-chart h3 { font-size: 20px; font-weight: 550; line-height: 1.4; margin: 0 0 22px; }
.case-journey-chart svg { display: block; width: 100%; height: 280px; overflow: visible; }
.journey-grid line { stroke: #e7e8d9; stroke-dasharray: 3 5; stroke-width: 1; }
.journey-grid text { fill: #7e8674; font-size: 12px; text-anchor: end; }
.journey-line { fill: none; stroke: #5d7eb1; stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.journey-point circle { fill: #5d7eb1; stroke: #fffdf3; stroke-width: 3; transition: r 180ms ease, stroke-width 180ms ease; }
.journey-point:hover circle, .journey-point:focus circle { r: 7; stroke: #dce6f6; stroke-width: 5; }
.journey-point { outline: none; cursor: crosshair; }
.journey-stage-label { fill: #606a5a; font-size: 12px; }
.journey-scale { display: flex; justify-content: space-between; gap: 18px; margin-top: 22px; font-size: 12px; color: #687160; }
.journey-scale span:last-child { text-align: right; }
.case-journey-chart[data-reveal]:not(.is-visible) .journey-line { stroke-dasharray: 1; stroke-dashoffset: 1; }
.case-journey-chart[data-reveal].is-visible .journey-line { stroke-dasharray: 1; stroke-dashoffset: 0; transition: stroke-dashoffset 900ms cubic-bezier(0.22, 1, 0.36, 1); }
.case-problem-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin: 28px 0 38px; }
.case-problem-grid .case-block { margin: 0; }
.case-problem-card { min-width: 0; padding: 22px; border: 1px solid #dce2d8; border-radius: 8px; background: #fff; transition: transform 250ms ease, border-color 250ms ease, background 250ms ease, box-shadow 250ms ease; }
.problem-card-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 25px; color: #879180; font-size: 12px; }
.problem-card-top img { width: 24px; height: 24px; opacity: 0.7; transition: transform 250ms ease; }
.case-problem-card h3 { font-size: 20px; line-height: 1.4; margin-bottom: 16px; }
.case-problem-card .case-copy { font-size: 14px; line-height: 1.8; margin-bottom: 0; text-wrap: pretty; }
.case-problem-card:hover { transform: translateY(-4px); border-color: #c9c46d; background: #fffef5; box-shadow: 0 10px 22px rgba(70, 80, 50, 0.06); }
.case-problem-card:nth-child(2):hover { border-color: #93b2aa; background: #f6faf7; }
.case-problem-card:nth-child(3):hover { border-color: #b49aba; background: #fcf9fb; }
.case-problem-card:hover .problem-card-top img { transform: rotate(-8deg); }
.case-problem-grid[data-reveal]:not(.is-visible) .case-problem-card { opacity: 0; transform: translateY(12px); }
.case-problem-grid[data-reveal].is-visible .case-problem-card { animation: problemCardEnter 480ms cubic-bezier(0.22, 1, 0.36, 1) backwards; animation-delay: calc(var(--reveal-order) * 70ms); }
@keyframes problemCardEnter { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
.case-agent-diagram > header { margin-bottom: 26px; }
.agent-request { max-width: 460px; margin: auto; }
.agent-node { --node-color: #5275a8; min-width: 0; border: 1px solid var(--node-color); border-radius: 6px; padding: 18px; }
.agent-node[data-tone="pink"] { --node-color: #be518d; }
.agent-node[data-tone="green"] { --node-color: #7d9873; }
.agent-node h4 { font-size: 18px; line-height: 1.4; font-weight: 500; margin: 0; color: #30372b; }
.agent-node p { font-size: 13px; line-height: 1.6; margin: 10px 0 0; color: #6a7561; }
.agent-node p:empty { display: none; }
.agent-down { display: block; position: relative; width: 18px; height: 30px; margin: 0 auto; color: #31362d; }
.agent-down::before { content: ""; position: absolute; left: 50%; top: 0; width: 1px; height: calc(100% - 8px); background: currentColor; }
.agent-down::after { content: ""; position: absolute; left: calc(50% - 6px); bottom: 0; border-left: 6px solid transparent; border-right: 6px solid transparent; border-top: 9px solid currentColor; }
.agent-right { display: block; position: relative; width: 100%; height: 18px; color: #31362d; }
.agent-right::before { content: ""; position: absolute; top: 50%; left: 0; width: calc(100% - 8px); height: 1px; background: currentColor; }
.agent-right::after { content: ""; position: absolute; top: calc(50% - 6px); right: 0; border-top: 6px solid transparent; border-bottom: 6px solid transparent; border-left: 9px solid currentColor; }
.agent-sources { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.agent-columns, .agent-stage, .agent-state, .agent-result-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr) 32px minmax(0, 1fr); gap: 22px; }
.agent-columns { color: #89937e; font-size: 11px; padding: 16px 0 24px; }
.agent-stage { align-items: center; margin-bottom: 34px; }
.agent-model { position: relative; align-self: stretch; display: flex; flex-direction: column; }
.agent-model .agent-node { flex: 1; display: flex; align-items: center; }
.agent-model > small { display: block; font-size: 12px; color: #7b8770; margin-bottom: 10px; }
.agent-model > .agent-down { position: absolute; top: 100%; left: 50%; transform: translateX(-50%); }
.agent-explanation, .agent-result-copy p { color: #606c55; font-size: 14px; line-height: 1.75; margin: 0; text-wrap: pretty; }
.agent-result-copy h4 { font-size: 16px; font-weight: 500; line-height: 1.5; margin: 0 0 10px; color: #3e5137; }
.agent-result-row { align-items: center; }
.agent-result-row > strong { color: #fff; background: #292d25; padding: 18px; border-radius: 6px; font-size: 18px; font-weight: 500; line-height: 1.5; }
.agent-result-row > p { grid-column: 2 / -1; margin: 0; color: #606c55; font-size: 14px; line-height: 1.8; }
.agent-fallback { margin-top: 26px; padding: 22px 0 6px; border-top: 1px dashed #d6c0c7; }
.agent-fallback h4 { font-size: 16px; font-weight: 500; margin: 0 0 12px; color: #a04a79; }
.agent-fallback p, .agent-state-intro, .agent-state-route { font-size: 14px; color: #66725b; line-height: 1.75; }
.agent-state-intro { max-width: 620px; text-align: center; margin: 0 auto 16px; }
.agent-state { align-items: center; padding: 22px 0; border-top: 1px solid #e6e7d8; }
.agent-state-route { margin: 30px 0 18px; }
.agent-next-flow { display: grid; grid-template-columns: minmax(0, 1fr) 24px minmax(0, 1fr) 24px minmax(0, 1fr); gap: 12px; align-items: center; }
.case-lightbox { width: min(96vw, 1400px); max-width: none; max-height: 92vh; padding: 0; border: 1px solid #dce1dc; border-radius: 8px; background: #fff; color: #202620; }
.case-lightbox::backdrop { background: rgba(20, 26, 20, 0.76); backdrop-filter: blur(8px); }
.case-lightbox-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; position: sticky; top: 0; background: #fff; padding: 12px 16px; border-bottom: 1px solid #e1e6df; }
.case-lightbox-label { font-size: 13px; min-width: 0; overflow-wrap: anywhere; }
.case-lightbox-actions { display: flex; gap: 6px; }
.case-lightbox-content { display: grid; place-items: center; min-height: 200px; padding: 16px; }
.case-lightbox-content img { max-width: 100%; max-height: calc(86vh - 70px); width: auto; height: auto; object-fit: contain; }
@media (max-width: 900px) {
  .case-view[data-project="epistemic-research-studio"] #case-media-er-demo { scroll-margin-top: calc(var(--case-nav-height) + 74px); }
  .case-view[data-project="epistemic-research-studio"] .case-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .case-view[data-project="epistemic-research-studio"] .case-dimensions, .case-view[data-project="epistemic-research-studio"] .er-reasoning-overview ol { grid-template-columns: minmax(0, 1fr); }
  .case-view[data-project="epistemic-research-studio"] .case-flow-canvas .case-image-button { min-width: 1100px; }
  .case-view[data-project="epistemic-research-studio"] .er-reasoning-overview li { padding-bottom: 34px; }
  .case-view[data-project="epistemic-research-studio"] .er-flow-arrow { top: auto; right: auto; left: calc(50% - 11px); bottom: 8px; transform: rotate(90deg); }
  .case-view[data-project="thought-gym"] .case-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .case-view[data-project="thought-gym"] .case-dimensions, .case-view[data-project="thought-gym"] .thought-flow > ol { grid-template-columns: minmax(0, 1fr); }
  .case-view[data-project="thought-gym"] .thought-flow > ol > li { padding-bottom: 36px; }
  .case-view[data-project="thought-gym"] .thought-flow-arrow { top: auto; bottom: 8px; left: calc(50% - 11px); right: auto; transform: rotate(90deg); }
  .case-view[data-project="cognisense"] .case-story #case-framing .case-dimensions { grid-template-columns: minmax(0, 1fr); }
  .case-view[data-project="cognisense"] .cogni-observations ol { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .case-view[data-project="cognisense"] .cogni-observations li { grid-column: auto; }
  .case-view[data-project="cognisense"] .cogni-observations li:first-child { grid-column: 1 / -1; }
  .case-view[data-project="cognisense"] .cogni-flow-stages { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .case-view[data-project="cognisense"] .cogni-flow-stages > li { padding-bottom: 38px; }
  .case-view[data-project="cognisense"] .cogni-flow-arrow { top: auto; left: calc(50% - 11px); bottom: 10px; right: auto; transform: rotate(90deg); }
  .case-view[data-project="cognisense"] .case-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .case-view[data-project="cognisense"] .case-dimensions { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .case-view[data-project="cognisense"] .case-walkthrough li, .case-view[data-project="cognisense"] .case-walkthrough li:nth-child(even) { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .case-view[data-project="cognisense"] .case-walkthrough li:nth-child(even) figure { order: 0; }
  .product-flow-inventory { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .product-flow-inventory > .product-flow-screens { width: 100%; max-width: 620px; margin: 0 auto; }
  .product-flow-connector--right { max-width: 360px; margin: 0 auto; }
  .product-flow-connector--right .product-flow-arrow { transform: rotate(90deg); margin: 20px 0; }
  .case-video-grid-items { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .agent-columns { display: none; }
  .agent-stage, .agent-state { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .agent-model > .agent-down { display: none; }
  .agent-stage { padding-bottom: 30px; border-bottom: 1px solid #e6e7d8; }
  .agent-right { width: 30px; justify-self: center; transform: rotate(90deg); }
  .agent-result-row { grid-template-columns: minmax(0, 1fr); }
  .agent-result-row > p { grid-column: auto; }
  .case-toc { top: var(--case-nav-height); }
  .case-section { scroll-margin-top: calc(var(--case-nav-height) + 74px); }
  .case-gallery--row .case-gallery-track { display: flex; overflow-x: auto; }
  .case-gallery--row .case-gallery-slide { flex-basis: 215px; }
  .case-gallery--row .case-gallery-slide .case-image-button img { height: 440px; }
  .case-gallery--store .case-gallery-track { display: flex; overflow-x: auto; }
  .case-gallery--store .case-gallery-slide { flex-basis: 215px; }
  .case-gallery--store .case-gallery-slide .case-image-button img { height: 440px; }
  .case-gallery--ai .case-gallery-track { display: flex; overflow-x: auto; }
  .case-gallery--ai .case-gallery-slide { flex-basis: 215px; }
  .case-gallery--ai .case-gallery-slide .case-image-button img { height: 440px; }
  .case-personal-notes { padding-top: 0; }
  .ccb-columns { display: none; }
  .ccb-layer { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .ccb-layer-model > .ccb-arrow-down { display: none; }
  .ccb-arrow-right { width: 32px; justify-self: center; transform: rotate(90deg); }
  .ccb-mobile-connector { display: block; position: relative; top: auto; left: auto; transform: none; justify-self: center; }
  .ccb-output { grid-template-columns: minmax(0, 1fr); }
  .ccb-layer ul { margin-left: 16px; }
  .ccb-list-label { display: block; margin: 0 0 10px 16px; font-size: 12px; color: #889483; }
}
@media (max-width: 520px) {
  .case-view[data-project="epistemic-research-studio"] .case-meta { grid-template-columns: minmax(0, 1fr); }
  .case-view[data-project="epistemic-research-studio"] .case-statement h3 { font-size: 22px; }
  .case-view[data-project="epistemic-research-studio"] .er-research-context { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .case-view[data-project="thought-gym"] .case-meta { grid-template-columns: minmax(0, 1fr); }
  .case-view[data-project="thought-gym"] .case-tagline { font-size: 24px; }
  .case-view[data-project="thought-gym"] .case-statement h3 { font-size: 23px; }
  .case-view[data-project="thought-gym"] .thought-timeline ol { grid-template-columns: minmax(0, 1fr); }
  .case-view[data-project="thought-gym"] .thought-timeline li { grid-template-columns: 70px minmax(0, 1fr); gap: 14px; }
  .case-view[data-project="thought-gym"] .case-gallery--row .case-gallery-slide { flex-basis: 180px; }
  .case-view[data-project="cognisense"] .cogni-observations ol { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .case-view[data-project="cognisense"] .cogni-resonance-grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "center" "attention" "comprehension" "memory" "emotional"; gap: 24px; }
  .case-view[data-project="cognisense"] .case-meta { grid-template-columns: minmax(0, 1fr); }
  .case-view[data-project="cognisense"] .case-statement { padding: 16px 0 16px 18px; }
  .case-view[data-project="cognisense"] .case-statement h3 { font-size: 21px; }
  .product-flow-screens { gap: 10px; }
  .case-product-flow--cooking > .product-flow-screens { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; }
  .case-product-flow--cooking > .product-flow-screens > .case-image-button { flex: 0 0 215px; scroll-snap-align: start; }
  .product-flow-record { max-width: 215px; }
  .case-video-grid-items { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .case-journey-chart { padding: 18px 14px; }
  .journey-stage-label { font-size: 11px; }
  .case-problem-grid, .agent-sources, .agent-next-flow { grid-template-columns: minmax(0, 1fr); }
  .case-problem-card { padding: 22px; }
  .problem-card-top { margin-bottom: 18px; }
  .agent-sources { gap: 12px; }
  .case-logo { width: 48px; height: 48px; }
  .case-gallery-head { align-items: start; flex-wrap: wrap; }
  .case-gallery-controls { margin-left: auto; }
  .case-gallery-slide { flex-basis: 90%; }
  .case-gallery-slide .case-image-button img { height: 320px; }
  .case-gallery--phones .case-gallery-slide { flex-basis: 215px; }
  .case-gallery--phones .case-gallery-slide .case-image-button img { height: 440px; }
  .case-figure--personal .case-personal-layout { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .case-personal-layout > .case-image-button { max-width: 300px; margin: auto; }
  .case-gallery--grid .case-gallery-track { grid-template-columns: minmax(0, 1fr); }
  .case-gallery[data-mode="grid"] .case-gallery-track { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ccb-adaptive { grid-template-columns: minmax(0, 1fr); }
  .case-framework { padding: 18px; }
  .ccb-engine-detail { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .case-figure--diagram > .case-image-button img { padding: 6px; }
}
@media (prefers-reduced-motion: reduce) {
  .case-problem-card, .problem-card-top img, .journey-point circle { transition: none; }
  .case-problem-card:hover, .case-problem-card:hover .problem-card-top img { transform: none; }
  .case-problem-grid[data-reveal] .case-problem-card { animation: none; opacity: 1; transform: none; }
  .case-journey-chart[data-reveal] .journey-line { transition: none; stroke-dashoffset: 0; }
}

@font-face {
  font-family: "Barlow Condensed";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("assets/fonts/barlow-condensed-latin-500-normal.woff2") format("woff2");
}
body:has(.case-view[data-project="thought-gym"].active) { background: #e6e6e2; }
.app:has(> .case-view[data-project="thought-gym"].active) { padding-top: 0; padding-inline: 0; }
#case-study[data-project="thought-gym"] { background: #e6e6e2; color: #20221f; }
#case-study[data-project="thought-gym"] :is(h1,h2,h3,h4,h5,h6,strong,b,.case-tagline,.case-media-heading,.case-meta dt,.case-decision dt,.case-table caption,.case-table th,.thought-year,.thought-artifact-number,.case-next strong) {
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
  font-weight: 500;
  font-synthesis: none;
  letter-spacing: 0;
}
#case-study[data-project="thought-gym"] .case-topbar { background: #e6e6e2; backdrop-filter: none; border-color: #aaa9a2; }
#case-study[data-project="thought-gym"] .case-hero { display: grid; grid-template-columns: minmax(0,1fr) 240px; column-gap: 54px; padding-top: 44px; }
#case-study[data-project="thought-gym"] .case-tags { grid-column: 1 / -1; display: flex; flex-wrap: wrap; list-style: none; gap: 9px; padding: 0; margin: 0 0 24px; }
#case-study[data-project="thought-gym"] .case-tags li { display: flex; align-items: center; justify-content: center; min-height: 32px; padding: 6px 16px; border-radius: 999px; background: #171916; color: #fff; font-family: "Barlow Condensed", "Arial Narrow", sans-serif; font-size: 16px; font-weight: 500; line-height: 1.2; white-space: nowrap; }
#case-study[data-project="thought-gym"] .case-hero h1 { grid-column: 1 / -1; font-size: 96px; line-height: 1; text-transform: uppercase; margin: 0 0 22px; max-width: 1050px; }
#case-study[data-project="thought-gym"] .case-tagline { grid-column: 1; grid-row: 3; font-size: 36px; line-height: 1.18; margin: 0; max-width: 850px; }
#case-study[data-project="thought-gym"] .case-summary { grid-column: 1; grid-row: 4; font-size: 18px; line-height: 1.75; color: #4d524c; max-width: 840px; margin: 20px 0 14px; }
#case-study[data-project="thought-gym"] .case-outcome { grid-column: 1; grid-row: 5; font-size: 14px; line-height: 1.75; max-width: 820px; color: #63685f; margin: 0 0 28px; }
#case-study[data-project="thought-gym"] .case-links { grid-column: 2; grid-row: 3 / span 3; align-self: center; justify-self: end; margin: 0 0 28px; }
#case-study[data-project="thought-gym"] .case-hero-action { display: flex; align-items: center; justify-content: center; width: 172px; height: 100px; border: 1px solid #b6b6ad; border-radius: 6px; overflow: hidden; background: #e6e7e5; box-shadow: 0 5px 0 #c8c8c0, 0 11px 22px rgba(20,24,18,.14); transition: transform .18s,box-shadow .18s; }
#case-study[data-project="thought-gym"] .case-hero-action img { width: 100%; height: auto; display: block; object-fit: contain; }
#case-study[data-project="thought-gym"] .case-hero-action:hover { transform: translateY(-2px); box-shadow: 0 7px 0 #c3c3b9, 0 16px 28px rgba(20,24,18,.18); }
#case-study[data-project="thought-gym"] .case-hero-action:focus-visible { outline: 2px solid #b72f25; outline-offset: 5px; }
#case-study[data-project="thought-gym"] .case-hero > :is(.case-figure,.case-meta,.case-highlights) { grid-column: 1 / -1; }
#case-study[data-project="thought-gym"] .case-hero > .case-figure { margin-top: 0; }
#case-study[data-project="thought-gym"] .case-hero > .case-figure video { border-radius: 2px; background: #141414; }
#case-study[data-project="thought-gym"] .case-meta { border-top: 1px solid #999c92; border-bottom: 1px solid #999c92; margin-top: 30px; padding: 26px 0; }
#case-study[data-project="thought-gym"] .case-meta dt { font-size: 17px; color: #383d34; }
#case-study[data-project="thought-gym"] .case-meta dd { color: #52584e; }
#case-study[data-project="thought-gym"] .case-section { border-color: #acafa4; padding-block: 48px; }
#case-study[data-project="thought-gym"] .case-section > h2 { font-size: 42px; line-height: 1.15; max-width: 850px; text-transform: uppercase; }
#case-study[data-project="thought-gym"] .case-section-number { font-family: ui-monospace,monospace; font-size: 11px; color: #9d3026; margin-bottom: 16px; }
#case-study[data-project="thought-gym"] .case-copy { color: #4d5246; }
#case-study[data-project="thought-gym"] .case-toc > span { font-family: ui-monospace,monospace; font-size: 11px; color: #72786c; }
#case-study[data-project="thought-gym"] .case-toc a { color: #59614f; border-color: #adaf9f; }
#case-study[data-project="thought-gym"] .case-toc a[aria-current="location"] { color: #a62f25; border-color: #a62f25; }
#case-study[data-project="thought-gym"] .thought-artifact { padding-block: 30px; }
#case-study[data-project="thought-gym"] .thought-artifact > h3 { font-size: 32px; line-height: 1.15; text-transform: uppercase; }
#case-study[data-project="thought-gym"] .thought-artifact-number { font-size: 17px; }
#case-study[data-project="thought-gym"] .thought-artifact + .thought-artifact { border-color: #acafa4; }
#case-study[data-project="thought-gym"] .case-dimensions .case-block { border-color: #a62f25; }
#case-study[data-project="thought-gym"] :is(.case-block h3,.case-decision h3) { font-size: 27px; line-height: 1.3; }
#case-study[data-project="thought-gym"] .case-decision { border-color: #b6b9af; }
#case-study[data-project="thought-gym"] .case-decision dt { font-size: 17px; }
#case-study[data-project="thought-gym"] .case-decision dd { color: #4d5246; }
#case-study[data-project="thought-gym"] .case-statement { background: #1d211c; padding: 26px 30px; border-left: 4px solid #b72f25; margin-block: 34px; }
#case-study[data-project="thought-gym"] .case-statement > p { color: #babeb2; font-family: ui-monospace,monospace; font-size: 11px; }
#case-study[data-project="thought-gym"] .case-statement h3 { color: #f0f1e9; font-size: 34px; line-height: 1.25; max-width: 820px; }
#case-study[data-project="thought-gym"] .thought-flow > h3, #case-study[data-project="thought-gym"] .thought-timeline h3 { font-size: 27px; line-height: 1.25; }
#case-study[data-project="thought-gym"] .thought-flow > ol > li { border-top: 2px solid #555a4d; }
#case-study[data-project="thought-gym"] .thought-flow h4, #case-study[data-project="thought-gym"] .thought-timeline h4 { font-size: 22px; line-height: 1.25; }
#case-study[data-project="thought-gym"] .thought-flow p, #case-study[data-project="thought-gym"] .thought-timeline li p { color: #4d5246; }
#case-study[data-project="thought-gym"] .thought-timeline li { border-color: #aaaF9e; }
#case-study[data-project="thought-gym"] .thought-year { font-size: 38px; color: #a62f25; }
#case-study[data-project="thought-gym"] .case-callout { border-color: #a62f25; padding-left: 24px; }
#case-study[data-project="thought-gym"] .case-callout h3, #case-study[data-project="thought-gym"] .case-resource-links h3 { font-size: 25px; }
#case-study[data-project="thought-gym"] .case-callout p { color: #555c4c; }
#case-study[data-project="thought-gym"] .case-resource-links a { border-color: #b9bdae; }
#case-study[data-project="thought-gym"] .case-figure figcaption { color: #6a715f; }
#case-study[data-project="thought-gym"] .case-next { border-color: #999f8c; }
#case-study[data-project="thought-gym"] .case-next strong { font-size: 36px; }
@media (max-width: 900px) {
  #case-study[data-project="thought-gym"] .case-hero { grid-template-columns: minmax(0,1fr) 220px; column-gap: 28px; }
  #case-study[data-project="thought-gym"] .case-hero h1 { font-size: 78px; }
  #case-study[data-project="thought-gym"] .case-tagline { font-size: 31px; }
  #case-study[data-project="thought-gym"] .case-hero-action { width: 136px; height: 86px; }
  #case-study[data-project="thought-gym"] .case-section > h2 { font-size: 36px; }
}
@media (max-width: 640px) {
  #case-study[data-project="thought-gym"] .case-hero { grid-template-columns: minmax(0,1fr); padding-top: 30px; }
  #case-study[data-project="thought-gym"] .case-tags { gap: 8px; margin-bottom: 20px; }
  #case-study[data-project="thought-gym"] .case-tags li { font-size: 14px; min-height: 30px; padding-inline: 12px; }
  #case-study[data-project="thought-gym"] .case-hero h1 { font-size: 58px; }
  #case-study[data-project="thought-gym"] .case-tagline { font-size: 28px; }
  #case-study[data-project="thought-gym"] .case-summary { font-size: 17px; }
  #case-study[data-project="thought-gym"] .case-links { grid-column: 1; grid-row: 6; justify-self: end; margin-bottom: 24px; }
  #case-study[data-project="thought-gym"] .case-hero-action { width: 126px; height: 66px; }
  #case-study[data-project="thought-gym"] .case-section > h2 { font-size: 32px; }
  #case-study[data-project="thought-gym"] .case-statement { padding: 20px; }
  #case-study[data-project="thought-gym"] .case-statement h3 { font-size: 28px; }
}
@media (prefers-reduced-motion: reduce) { #case-study[data-project="thought-gym"] .case-hero-action { transition: none; } #case-study[data-project="thought-gym"] .case-hero-action:hover { transform: none; } }

@font-face {
  font-family: "Caveat";
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  src: url("assets/fonts/caveat-latin-500-normal.woff2") format("woff2");
}
#case-study[data-project="thought-gym"] .case-link-callout { width: 240px; display: flex; flex-direction: column; align-items: center; gap: 20px; }
#case-study[data-project="thought-gym"] .case-link-note { position: relative; display: grid; place-items: center; width: 100%; height: 118px; margin: 0; padding: 18px 28px; color: #30372e; opacity: .58; transform: rotate(-5deg); transition: opacity .22s ease; }
#case-study[data-project="thought-gym"] .case-link-note span { font-family: "Caveat", cursive; font-size: 26px; font-weight: 500; line-height: 1.05; text-align: center; }
#case-study[data-project="thought-gym"] .case-link-note svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; pointer-events: none; }
#case-study[data-project="thought-gym"] .case-link-note svg path:last-child { stroke-width: 1.2; opacity: .65; }
#case-study[data-project="thought-gym"] .case-link-callout:is(:hover,:focus-within) .case-link-note { opacity: 1; }
@media (max-width: 900px) { #case-study[data-project="thought-gym"] .case-link-callout { width: 220px; } }
@media (max-width: 640px) { #case-study[data-project="thought-gym"] .case-link-callout { width: 210px; gap: 20px; } #case-study[data-project="thought-gym"] .case-link-note { height: 108px; padding: 15px 25px; } #case-study[data-project="thought-gym"] .case-link-note span { font-size: 24px; } }
@media (prefers-reduced-motion: reduce) { #case-study[data-project="thought-gym"] .case-link-note { transition: none; } }

#case-study[data-project="thought-gym"] .thought-flip-deck { padding-top: 10px; }
#case-study[data-project="thought-gym"] .thought-flip-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 26px; padding: 18px 8px 0; }
#case-study[data-project="thought-gym"] .thought-flip-cell { min-width: 0; perspective: 1100px; }
#case-study[data-project="thought-gym"] .thought-flip-card { position: relative; display: block; width: 100%; aspect-ratio: 338 / 476; padding: 0; border: 0; border-radius: 3px; background: transparent; cursor: pointer; transform-style: preserve-3d; transform-origin: 50% 90%; transition: transform .22s ease; -webkit-tap-highlight-color: transparent; }
#case-study[data-project="thought-gym"] .thought-flip-rotor { position: absolute; inset: 0; display: block; transform-style: preserve-3d; transform: rotateY(0deg); transition: transform .72s cubic-bezier(.3,.05,.2,1); }
#case-study[data-project="thought-gym"] .thought-flip-card[data-face="back"] .thought-flip-rotor { transform: rotateY(-180deg); }
#case-study[data-project="thought-gym"] .thought-flip-face { position: absolute; inset: 0; display: block; border-radius: 3px; overflow: hidden; backface-visibility: hidden; -webkit-backface-visibility: hidden; background: #fff; box-shadow: 1px 3px 0 #b4b6ab, 0 8px 16px rgba(25,29,20,.16); transition: box-shadow .22s ease; }
#case-study[data-project="thought-gym"] .thought-flip-front { transform: translateZ(.5px); }
#case-study[data-project="thought-gym"] .thought-flip-back { transform: rotateY(180deg) translateZ(.5px); }
#case-study[data-project="thought-gym"] .thought-flip-face img { display: block; width: 100%; height: 100%; object-fit: fill; }
#case-study[data-project="thought-gym"] .thought-flip-card:focus-visible { outline: 2px solid #a62f25; outline-offset: 7px; }
#case-study[data-project="thought-gym"] .thought-flip-card:focus-visible .thought-flip-face { box-shadow: 1px 4px 0 #b4b6ab, 0 14px 24px rgba(25,29,20,.22); }
#case-study[data-project="thought-gym"] .thought-flip-card.is-turning { animation: thought-card-peel .72s ease both; }
#case-study[data-project="thought-gym"] .thought-flip-note { position: relative; display: grid; place-items: center; width: 138px; height: 62px; margin: 15px 0 0 auto; padding: 10px 15px; transform: rotate(-7deg); color: #30372e; opacity: .58; transition: opacity .2s ease; pointer-events: none; }
#case-study[data-project="thought-gym"] .thought-flip-note span { font-family: "Caveat",cursive; font-size: 24px; font-weight: 500; line-height: 1.1; white-space: nowrap; }
#case-study[data-project="thought-gym"] .thought-flip-note svg { position: absolute; inset: 0; width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; overflow: visible; }
#case-study[data-project="thought-gym"] .thought-flip-note svg path:last-child { stroke-width: .9; opacity: .65; }
#case-study[data-project="thought-gym"] .thought-flip-cell:is(:hover,:focus-within) .thought-flip-note { opacity: 1; }
@keyframes thought-card-peel {
  0%,100% { transform: translateY(0) rotateX(0) rotateZ(0); }
  22% { transform: translateY(-11px) rotateX(11deg) rotateZ(-2deg); }
  60% { transform: translateY(-8px) rotateX(-5deg) rotateZ(1deg); }
}
@media (hover: hover) and (pointer: fine) {
  #case-study[data-project="thought-gym"] .thought-flip-card:hover { transform: translateY(-5px) rotateX(7deg) rotateZ(-1deg); }
  #case-study[data-project="thought-gym"] .thought-flip-card:hover .thought-flip-face { box-shadow: 1px 4px 0 #b4b6ab, 0 15px 24px rgba(25,29,20,.24); }
}
@media (max-width: 900px) {
  #case-study[data-project="thought-gym"] .thought-flip-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 28px; max-width: 660px; margin-inline: auto; }
}
@media (max-width: 520px) {
  #case-study[data-project="thought-gym"] .thought-flip-grid { grid-template-columns: minmax(0,1fr); max-width: 290px; gap: 26px; }
}
@media (prefers-reduced-motion: reduce) {
  #case-study[data-project="thought-gym"] :is(.thought-flip-card,.thought-flip-rotor,.thought-flip-face,.thought-flip-note) { transition: none; }
  #case-study[data-project="thought-gym"] .thought-flip-card.is-turning { animation: none; }
  #case-study[data-project="thought-gym"] .thought-flip-card:hover { transform: none; }
}

#case-study[data-project="thought-gym"] #case-research .case-dimensions { gap: 24px; }
#case-study[data-project="thought-gym"] #case-research .case-block { border: 0; padding: 0; display: flex; flex-direction: column; }
#case-study[data-project="thought-gym"] #case-research .case-block h3 { display: flex; align-items: center; gap: 12px; font-size: 25px; min-height: 115px; margin-bottom: 18px; }
#case-study[data-project="thought-gym"] #case-research .case-block h3::before { content: ""; display: block; flex: 0 0 54px; width: 54px; height: 54px; background: url("assets/projects/thought-gym/metal-star.webp") center / contain no-repeat; animation: thought-metal-spin 12s linear infinite; }
#case-study[data-project="thought-gym"] #case-research .case-block:nth-child(2) h3::before { animation-direction: reverse; animation-delay: -4s; }
#case-study[data-project="thought-gym"] #case-research .case-block:nth-child(3) h3::before { animation-delay: -8s; }
#case-study[data-project="thought-gym"] #case-research .case-block .case-copy { flex: 1; background: #bc260e; color: #fff; border-radius: 8px; padding: 24px; margin: 0; font-size: 15px; line-height: 1.75; box-shadow: 0 3px 0 #9b2513; }
#case-study[data-project="thought-gym"] .case-section-number { display: flex; align-items: center; gap: 12px; }
#case-study[data-project="thought-gym"] .case-section-number::after { content: ""; display: inline-block; width: 28px; height: 28px; background: url("assets/projects/thought-gym/metal-ring.webp") center / contain no-repeat; }
#case-study[data-project="thought-gym"] .case-gallery--scenario .case-gallery-track { display: block; overflow: visible; }
#case-study[data-project="thought-gym"] .case-gallery--scenario .case-gallery-slide .case-image-button img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: contain; }
#case-study[data-project="thought-gym"] .thought-draw-heading { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; border-bottom: 1px solid #999e90; padding-bottom: 16px; }
#case-study[data-project="thought-gym"] .thought-draw-heading h3 { margin: 0; font-size: 27px; }
#case-study[data-project="thought-gym"] .thought-draw-heading > span { font-family: ui-monospace,monospace; font-size: 11px; color: #646c5c; }
#case-study[data-project="thought-gym"] .thought-draw-groups { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 26px 22px; margin-top: 26px; }
#case-study[data-project="thought-gym"] .thought-draw-group { min-width: 0; }
#case-study[data-project="thought-gym"] .thought-draw-group h4 { font-size: 23px; margin: 0 0 8px; display: flex; align-items: center; gap: 10px; }
#case-study[data-project="thought-gym"] .thought-draw-group h4::before { content: ""; width: 27px; height: 27px; background: url("assets/projects/thought-gym/metal-star.webp") center / contain no-repeat; }
#case-study[data-project="thought-gym"] .thought-fan-scroll { overflow-x: auto; overflow-y: hidden; scrollbar-width: thin; scrollbar-color: #a9ad9f transparent; }
#case-study[data-project="thought-gym"] .thought-fan-stage { position: relative; width: 100%; min-width: 470px; height: 320px; --fan-spread: 30px; --fan-tilt: 1; }
#case-study[data-project="thought-gym"] .thought-fan-card { position: absolute; left: 50%; bottom: 28px; width: 145px; aspect-ratio: 338 / 476; padding: 0; border: 1px solid #aaae9f; border-radius: 3px; background: #fff; cursor: pointer; transform-origin: 50% 100%; transform: translateX(calc(-50% + var(--fan-offset) * var(--fan-spread))) rotate(calc(var(--fan-angle) * var(--fan-tilt))); z-index: calc(var(--fan-order) + 1); box-shadow: 1px 2px 0 #a5aa98, 0 7px 16px rgba(25,29,20,.18); transition: transform .3s ease,box-shadow .3s ease; -webkit-tap-highlight-color: transparent; }
#case-study[data-project="thought-gym"] .thought-fan-card img { display: block; width: 100%; height: 100%; border-radius: 2px; object-fit: fill; pointer-events: none; }
#case-study[data-project="thought-gym"] .thought-fan-card:focus-visible { outline: 2px solid #a62f25; outline-offset: 4px; z-index: 40; transform: translateX(calc(-50% + var(--fan-offset) * var(--fan-spread))) translateY(-54px) rotate(0); }
#case-study[data-project="thought-gym"] .thought-fan-card[data-drawn="true"] { border-color: #a62f25; }
#case-study[data-project="thought-gym"] .thought-draw-dialog { width: min(94vw,1000px); max-width: none; max-height: 92vh; border: 1px solid #858b79; border-radius: 8px; background: #e6e6e2; padding: 0; color: #20221f; overflow: auto; }
#case-study[data-project="thought-gym"] .thought-draw-dialog::backdrop { background: rgba(15,18,12,.8); backdrop-filter: blur(7px); }
#case-study[data-project="thought-gym"] .thought-draw-dialog > header { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px 24px; border-bottom: 1px solid #a3aa94; position: sticky; top: 0; z-index: 2; background: #e6e6e2; }
#case-study[data-project="thought-gym"] .thought-draw-dialog header > div:first-child { min-width: 0; }
#case-study[data-project="thought-gym"] .thought-draw-dialog header p { font-family: ui-monospace,monospace; color: #68705c; font-size: 11px; margin: 0 0 6px; }
#case-study[data-project="thought-gym"] .thought-draw-dialog h3 { font-size: 30px; margin: 0; line-height: 1.2; overflow-wrap: anywhere; }
#case-study[data-project="thought-gym"] .thought-draw-actions { display: flex; gap: 6px; flex-shrink: 0; }
#case-study[data-project="thought-gym"] .thought-draw-preview { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 34px; padding: 28px 38px; }
#case-study[data-project="thought-gym"] .thought-draw-preview figure { margin: 0; min-width: 0; text-align: center; }
#case-study[data-project="thought-gym"] .thought-draw-preview img { display: block; width: auto; max-width: 100%; height: min(62vh,570px); object-fit: contain; margin: 0 auto; border-radius: 3px; box-shadow: 1px 3px 0 #aeb3a1, 0 12px 22px rgba(25,29,20,.2); }
#case-study[data-project="thought-gym"] .thought-draw-preview figcaption { font-family: "Barlow Condensed",sans-serif; font-size: 18px; margin-top: 16px; }
#case-study[data-project="thought-gym"] .thought-draw-preview.is-drawing figure:first-child { animation: thought-card-draw .5s cubic-bezier(.2,.8,.2,1) both; }
#case-study[data-project="thought-gym"] .thought-draw-preview.is-drawing figure:last-child { animation: thought-card-draw .5s .05s cubic-bezier(.2,.8,.2,1) both; }
#case-study[data-project="thought-gym"] .thought-webinar { max-width: 580px; margin: 30px auto; }
#case-study[data-project="thought-gym"] .thought-webinar > .case-image-button img { width: 100%; height: auto; border-radius: 3px; }
#case-study[data-project="thought-gym"] .thought-webinar .case-link-callout { margin: 28px auto 36px; }
@keyframes thought-metal-spin { to { transform: rotate(360deg); } }
@keyframes thought-card-draw { from { opacity: 0; transform: translateY(36px) rotate(-5deg) scale(.94); } to { opacity: 1; transform: translateY(0) rotate(0) scale(1); } }
@media (hover: hover) and (pointer: fine) {
  #case-study[data-project="thought-gym"] .thought-fan-stage:hover { --fan-spread: 40px; --fan-tilt: .35; }
  #case-study[data-project="thought-gym"] .thought-fan-card:hover { z-index: 40; transform: translateX(calc(-50% + var(--fan-offset) * var(--fan-spread))) translateY(-54px) rotate(0); box-shadow: 1px 3px 0 #a5aa98, 0 16px 24px rgba(25,29,20,.3); }
}
@media (max-width: 1100px) { #case-study[data-project="thought-gym"] .thought-draw-groups { grid-template-columns: minmax(0,1fr); } }
@media (max-width: 900px) { #case-study[data-project="thought-gym"] #case-research .case-block h3 { min-height: 0; font-size: 25px; } }
@media (max-width: 600px) {
  #case-study[data-project="thought-gym"] .thought-draw-dialog > header { flex-wrap: wrap; padding: 15px; gap: 12px; }
  #case-study[data-project="thought-gym"] .thought-draw-actions { margin-left: auto; }
  #case-study[data-project="thought-gym"] .thought-draw-dialog h3 { font-size: 25px; }
  #case-study[data-project="thought-gym"] .thought-draw-preview { grid-template-columns: minmax(0,1fr); padding: 24px; gap: 26px; }
  #case-study[data-project="thought-gym"] .thought-draw-preview img { width: 100%; max-width: 320px; height: auto; }
  #case-study[data-project="thought-gym"] #case-research .case-block .case-copy { padding: 22px; }
}
#case-study[data-project="thought-gym"]:not(.active) #case-research .case-block h3::before { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) {
  #case-study[data-project="thought-gym"] #case-research .case-block h3::before { animation: none; }
  #case-study[data-project="thought-gym"] .thought-fan-card { transition: none; }
  #case-study[data-project="thought-gym"] .thought-fan-stage:hover { --fan-spread: 30px; --fan-tilt: 1; }
  #case-study[data-project="thought-gym"] .thought-fan-card:hover { transform: translateX(calc(-50% + var(--fan-offset) * var(--fan-spread))) rotate(calc(var(--fan-angle) * var(--fan-tilt))); }
  #case-study[data-project="thought-gym"] .thought-draw-preview.is-drawing figure { animation: none; }
}

body:has(#case-study[data-project="ostomy-care"].active) { background: #f6f8fc; }
.app:has(> #case-study[data-project="ostomy-care"].active) { padding-top: 0; padding-inline: 0; }
#case-study[data-project="ostomy-care"] { --ostomy-blue: #5768c1; background: #f6f8fc; color: #25394b; font-family: Arial,sans-serif; }
#case-study[data-project="ostomy-care"] .case-topbar { background: #f6f8fc; border-color: #d9e2f0; backdrop-filter: none; }
#case-study[data-project="ostomy-care"] .case-back { color: #4a5db0; }
#case-study[data-project="ostomy-care"] .case-hero { padding-top: 42px; }
#case-study[data-project="ostomy-care"] :is(.case-eyebrow,.case-section-number) { color: #566bb7; font-size: 11px; line-height: 1.6; font-weight: 600; }
#case-study[data-project="ostomy-care"] .case-brand { color: #566bb7; }
#case-study[data-project="ostomy-care"] .case-hero h1 { font-size: 54px; font-weight: 600; line-height: 1.12; color: #283e57; }
#case-study[data-project="ostomy-care"] .case-tagline { color: #5268b6; font-size: 22px; font-weight: 400; line-height: 1.5; max-width: 850px; }
#case-study[data-project="ostomy-care"] .case-summary { color: #566a7b; font-size: 17px; line-height: 1.8; max-width: 900px; }
#case-study[data-project="ostomy-care"] .case-outcome { color: #748295; font-size: 13px; line-height: 1.7; }
#case-study[data-project="ostomy-care"] .case-meta { grid-template-columns: repeat(4,minmax(0,1fr)); gap: 24px; border-top: 1px solid #d9e2f0; border-bottom: 1px solid #d9e2f0; padding-block: 24px; }
#case-study[data-project="ostomy-care"] .case-meta dt { color: #647698; font-size: 11px; text-transform: uppercase; font-weight: 600; }
#case-study[data-project="ostomy-care"] .case-meta dd { color: #405369; font-size: 14px; line-height: 1.7; }
#case-study[data-project="ostomy-care"] .case-layout { grid-template-columns: 190px minmax(0,1fr); gap: 36px; }
#case-study[data-project="ostomy-care"] .case-toc { top: calc(var(--case-nav-height) + 12px); }
#case-study[data-project="ostomy-care"] .case-toc > span { font-size: 11px; font-weight: 600; color: #8091ab; }
#case-study[data-project="ostomy-care"] .case-toc a { border-left: 2px solid #d9e2f0; padding: 12px 14px; font-size: 13px; line-height: 1.5; color: #64788b; transition: background .15s ease,color .15s ease; }
#case-study[data-project="ostomy-care"] .case-toc a[aria-current="location"] { background: #eaf0fc; border-color: var(--ostomy-blue); color: #4358aa; }
#case-study[data-project="ostomy-care"] .case-toc a:focus-visible { outline-color: var(--ostomy-blue); }
#case-study[data-project="ostomy-care"] .case-section { border-color: #d9e2f0; padding-block: 46px; }
#case-study[data-project="ostomy-care"] .case-section > h2 { color: #293e54; font-size: 30px; font-weight: 600; line-height: 1.3; max-width: 860px; }
#case-study[data-project="ostomy-care"] .case-copy { color: #566a7b; font-size: 16px; line-height: 1.85; max-width: 920px; }
#case-study[data-project="ostomy-care"] .case-dimensions { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 26px; }
#case-study[data-project="ostomy-care"] .case-dimensions .case-block { border-color: #92a0d6; padding-top: 18px; }
#case-study[data-project="ostomy-care"] .case-block h3 { color: #4a60b1; font-size: 19px; line-height: 1.4; font-weight: 600; }
#case-study[data-project="ostomy-care"] .case-block p { font-size: 14px; line-height: 1.85; }
#case-study[data-project="ostomy-care"] :is(.case-callout,.case-statement) { border-left-color: var(--ostomy-blue); background: #edf2fc; padding: 22px 24px; margin-block: 30px; }
#case-study[data-project="ostomy-care"] .case-callout h3 { color: #4a60b1; font-size: 17px; }
#case-study[data-project="ostomy-care"] .case-callout p { color: #5d7089; font-size: 14px; line-height: 1.8; }
#case-study[data-project="ostomy-care"] .case-statement > p { color: #667bb2; font-size: 11px; text-transform: uppercase; font-weight: 600; }
#case-study[data-project="ostomy-care"] .case-statement h3 { color: #3d548f; font-size: 23px; line-height: 1.6; font-weight: 500; }
#case-study[data-project="ostomy-care"] .case-table-wrap { border: 1px solid #d9e2f0; border-radius: 4px; background: #fff; }
#case-study[data-project="ostomy-care"] .case-table { min-width: 580px; }
#case-study[data-project="ostomy-care"] .case-table caption { color: #4a60b1; font-size: 14px; font-weight: 600; padding: 18px; }
#case-study[data-project="ostomy-care"] .case-table th { color: #4a60b1; background: #edf2fc; font-size: 12px; }
#case-study[data-project="ostomy-care"] .case-table td { color: #536b80; font-size: 14px; line-height: 1.75; }
#case-study[data-project="ostomy-care"] .case-decision { border-color: #d9e2f0; }
#case-study[data-project="ostomy-care"] .case-decision h3 { color: #3d548f; font-size: 20px; font-weight: 600; }
#case-study[data-project="ostomy-care"] .case-decision dt { color: #7487a1; font-size: 12px; }
#case-study[data-project="ostomy-care"] .case-decision dd { color: #536b80; font-size: 14px; }
#case-study[data-project="ostomy-care"] .case-figure figcaption { color: #7b8da7; font-size: 12px; line-height: 1.7; margin-top: 14px; }
#case-study[data-project="ostomy-care"] .case-figure > .case-image-button img { border-radius: 4px; background: transparent; max-height: none; }
#case-study[data-project="ostomy-care"] .case-walkthrough li { border-color: #d9e2f0; gap: 32px; }
#case-study[data-project="ostomy-care"] .case-walkthrough h4 { color: #3d548f; font-size: 22px; }
#case-study[data-project="ostomy-care"] .case-walkthrough p { color: #5d7089; }
#case-study[data-project="ostomy-care"] .case-walkthrough img { border-radius: 4px; max-height: 460px; }
#case-study[data-project="ostomy-care"] .ostomy-journey strong { color: #5369b7; font-size: 15px; }
#case-study[data-project="ostomy-care"] .case-resource-links h3 { font-size: 15px; color: #5268b6; }
#case-study[data-project="ostomy-care"] .case-resource-links a { color: #536b80; }
#case-study[data-project="ostomy-care"] .case-next { border-color: #d9e2f0; }
@media (max-width: 900px) {
  #case-study[data-project="ostomy-care"] .case-layout { grid-template-columns: minmax(0,1fr); }
  #case-study[data-project="ostomy-care"] .case-meta { grid-template-columns: repeat(2,minmax(0,1fr)); }
  #case-study[data-project="ostomy-care"] .case-dimensions { grid-template-columns: minmax(0,1fr); }
  #case-study[data-project="ostomy-care"] .case-toc { top: var(--case-nav-height); }
  #case-study[data-project="ostomy-care"] .case-toc a { border-left: 0; border-bottom: 2px solid #d9e2f0; padding: 10px 12px; }
}
@media (max-width: 520px) {
  #case-study[data-project="ostomy-care"] .case-hero h1 { font-size: 38px; }
  #case-study[data-project="ostomy-care"] .case-tagline { font-size: 20px; }
  #case-study[data-project="ostomy-care"] .case-summary { font-size: 16px; }
  #case-study[data-project="ostomy-care"] .case-meta { grid-template-columns: minmax(0,1fr); }
  #case-study[data-project="ostomy-care"] .case-section > h2 { font-size: 27px; }
  #case-study[data-project="ostomy-care"] .case-statement h3 { font-size: 21px; }
  #case-study[data-project="ostomy-care"] .ostomy-journey ol { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 24px 18px; }
}
@media (prefers-reduced-motion: reduce) { #case-study[data-project="ostomy-care"] .case-toc a { transition: none; } }
