/* Case studies: one real project, ten independent visual directions. */
.case-card { height: 560px; }
.case-card h2 { font-size: clamp(25px,1.9vw,30px); line-height: 1.08; }
.case-card > p { font-size: 14px; }
.case-card .sc-footer { font-size: 11px; }
.cc-eyebrow { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 12px; color: var(--sc-muted); margin-bottom: 28px; }
.cc-eyebrow > span { font-size: 11px; }
/* 01. Result first. */
.cc--impact { background: var(--violet); --sc-text: var(--white); --sc-muted: var(--lilac); }
.cc-impact { margin: 4px 0 28px; display: flex; align-items: flex-end; gap: 18px; }
.cc-impact b { color: var(--lime); font-size: clamp(100px,7vw,134px); font-weight: 500; line-height: .8; letter-spacing: -.08em; }
.cc-impact > span { padding-bottom: 3px; font-size: 12px; line-height: 1.4; }
.cc-impact-rule { display: flex; gap: 5px; margin: 24px 0 4px; }
.cc-impact-rule i { height: 5px; border-radius: 3px; flex: 1; background: var(--lime); }
.cc-impact-rule i:nth-child(2) { opacity: .65; }
.cc-impact-rule i:nth-child(3) { opacity: .3; }
.cc--impact .sc-open { background: var(--lime); color: var(--ink); }
/* 02. Two sides of the same outcome. */
.cc-compare { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; flex: 0 0 200px; margin-bottom: 28px; }
.cc-compare > div { display: flex; flex-direction: column; padding: 17px; border-radius: 21px; background: var(--lilac); }
.cc-compare > div:last-child { background: var(--lime); }
.cc-compare span { font-size: 12px; }
.cc-compare b { font-size: 66px; color: var(--violet); line-height: 1; letter-spacing: -.07em; font-weight: 500; margin: auto 0; }
.cc-compare strong { font-size: 12px; font-weight: 500; }
.cc-compare-bars { display: flex; gap: 4px; }
.cc-compare-bars i { height: 12px; border-radius: 4px; background: var(--violet); flex: 1; }
/* 03. The architecture is the illustration. */
.cc--architecture { background: #E5F59D; }
.cc-architecture { flex: 0 0 206px; margin-bottom: 22px; }
.cc-sources { display: grid; grid-template-columns: repeat(3,1fr); gap: 7px; }
.cc-sources > span { padding: 10px 2px; text-align: center; border-radius: 12px; background: var(--white); font-size: 11px; }
.cc-architecture svg { width: 100%; height: 60px; overflow: visible; }
.cc-architecture path { fill: none; stroke: var(--violet); stroke-width: 1.5; stroke-dasharray: 4 5; }
.cc-engine { background: var(--violet); color: var(--white); border-radius: 18px; width: 82%; margin: -2px auto 0; padding: 16px 8px; text-align: center; font-size: 19px; letter-spacing: -.03em; }
.cc-engine i { color: var(--lime); font-style: normal; margin: 0 8px; }
.cc-output { text-align: center; font-size: 12px; padding-top: 14px; color: var(--violet); }
.cc--architecture:hover .cc-architecture path { animation: styleRoute 3s linear infinite; }
/* 04. A project passport. */
.cc--passport { border-color: var(--line); }
.cc--passport .cc-eyebrow { padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.cc-passport { margin: auto 0 0; padding-top: 26px; }
.cc-passport > div { display: grid; grid-template-columns: 75px 1fr; gap: 10px; border-top: 1px solid var(--line); padding: 12px 0; font-size: 12px; }
.cc-passport dt { color: var(--muted); }
.cc-passport dd { margin: 0; font-weight: 500; }
.cc-passport > div:last-child dd { color: var(--violet); }
.cc--passport > p { padding-top: 14px; border-top: 1px solid var(--line); }
/* 05. A trajectory with no invented numeric axis. */
.cc--trajectory { background: var(--ink); --sc-text: var(--white); --sc-muted: #B8B2C1; }
.cc-trajectory { flex: 0 0 213px; margin-bottom: 24px; }
.cc-trajectory > div { display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.cc-trajectory > div > span { max-width: 100px; font-size: 12px; }
.cc-trajectory b { color: var(--lime); font-size: 48px; font-weight: 500; line-height: 1; letter-spacing: -.05em; white-space: nowrap; }
.cc-trajectory b i { font-size: 12px; font-style: normal; letter-spacing: 0; }
.cc-trajectory svg { width: 100%; height: 125px; margin-top: 12px; }
.cc-grid { stroke: var(--white); stroke-opacity: .1; }
.cc-area { fill: var(--lime); fill-opacity: .08; }
.cc-line { stroke: var(--lime); stroke-width: 2.5; stroke-linecap: round; }
.cc-chart-caption { font-size: 11px; color: var(--lime); }
.cc--trajectory .sc-open { background: var(--lime); color: var(--ink); }
/* 06. A vertical process. */
.cc--steps { background: var(--lilac); }
.cc-steps { display: grid; gap: 14px; list-style: none; padding: 24px 0 0; margin: auto 0 0; }
.cc-steps li { display: flex; gap: 14px; position: relative; align-items: center; }
.cc-steps li:not(:last-child)::after { content: ''; position: absolute; top: 33px; left: 16px; height: 16px; border-left: 1px dashed var(--violet); opacity: .4; }
.cc-steps b { flex: 0 0 33px; height: 33px; display: grid; place-items: center; border-radius: 11px; background: var(--white); color: var(--violet); font-size: 11px; font-weight: 500; }
.cc-steps li:last-child b { background: var(--violet); color: var(--lime); }
.cc-steps span { font-size: 13px; line-height: 1.2; }
.cc-steps small { display: block; margin-top: 3px; font-size: 10px; color: var(--muted); }
/* 07. Visible scale through a matrix. */
.cc-matrix { flex: 0 0 214px; margin-bottom: 24px; }
.cc-matrix-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 15px; }
.cc-matrix-top span { font-size: 12px; color: var(--muted); }
.cc-matrix-top b { font-size: 40px; line-height: 1; color: var(--violet); letter-spacing: -.05em; font-weight: 500; }
.cc-cells { display: grid; grid-template-columns: repeat(9,1fr); gap: 5px; }
.cc-cells i { height: 34px; background: var(--lilac); border-radius: 6px; }
.cc-cells i:nth-child(3n+1) { background: var(--violet); }
.cc-cells i:nth-child(3n+2) { background: var(--lime); }
.cc-matrix > span { display: block; font-size: 11px; margin-top: 12px; color: var(--muted); }
.cc--matrix:hover .cc-cells i:nth-child(3n+2) { background: var(--violet); }
.cc-cells i { transition: background .4s; }
/* 08. A quiet editorial story. */
.cc--story { background: #E8E5DD; }
.cc-story-label { display: flex; align-items: center; justify-content: space-between; font-size: 12px; padding-bottom: 20px; border-bottom: 1px solid var(--line); margin-bottom: 30px; }
.cc-story-label i { font-style: normal; font-size: 22px; color: var(--violet); }
.cc--story h2 { font-size: clamp(30px,2.3vw,38px); letter-spacing: -.05em; }
.cc-story-result { display: flex; align-items: flex-end; justify-content: space-between; gap: 15px; margin: auto 0 6px; padding-top: 24px; color: var(--violet); }
.cc-story-result span { font-size: 13px; line-height: 1.4; }
.cc-story-result b { font-size: 70px; font-weight: 500; line-height: .8; letter-spacing: -.07em; }
/* 09. A small system, not a screenshot. */
.cc--console { background: #28143C; --sc-text: var(--white); --sc-muted: #C6B8D4; }
.cc-console { flex: 0 0 218px; margin-bottom: 24px; font-size: 11px; }
.cc-console-head { display: flex; align-items: center; gap: 8px; color: var(--lilac); padding-bottom: 15px; }
.cc-console-head > span:last-child { margin-left: auto; color: var(--lime); }
.cc-live { width: 7px; height: 7px; border-radius: 3px; background: var(--lime); }
.cc-console-row { display: flex; justify-content: space-between; gap: 10px; padding: 11px 0; border-top: 1px solid rgba(221,210,244,.15); }
.cc-console-row > span { color: var(--sc-muted); }
.cc-console-row b { font-weight: 400; }
.cc-console-row i { font-style: normal; color: var(--lime); margin-left: 8px; }
.cc-console-result { display: flex; align-items: center; gap: 16px; background: var(--lime); color: var(--ink); border-radius: 13px; padding: 10px 14px; margin-top: 10px; font-size: 34px; letter-spacing: -.05em; line-height: 1; }
.cc-console-result > span { font-size: 11px; letter-spacing: 0; }
.cc--console .sc-open { background: var(--lime); color: var(--ink); }
/* 10. A miniature project showcase. */
.cc--modules { background: var(--lime); }
.cc-modules { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 124px 68px; gap: 7px; margin-bottom: 28px; flex: 0 0 199px; }
.cc-modules > div { display: flex; flex-direction: column; justify-content: center; padding: 13px 16px; border-radius: 17px; background: var(--white); }
.cc-modules .cc-module-main { grid-column: span 2; background: var(--ink); color: var(--white); position: relative; }
.cc-module-main > span { font-size: 11px; color: var(--lilac); }
.cc-module-main > b { font-size: 72px; font-weight: 500; line-height: 1; letter-spacing: -.07em; color: var(--lime); }
.cc-module-main > small { position: absolute; right: 16px; bottom: 20px; max-width: 90px; font-size: 11px; color: var(--lilac); }
.cc-modules > div:not(:first-child) b { font-size: 17px; letter-spacing: -.035em; font-weight: 500; }
.cc-modules > div:not(:first-child) span { font-size: 10px; color: var(--muted); }
.cc--modules .sc-open { background: var(--ink); color: var(--lime); }
@media (max-width: 640px) {
  .case-card { height: 560px; }
  .cc--story h2 { font-size: 33px; }
  .cc-impact b { font-size: 104px; }
}
/* Case cards use colour and spacing, without an outer border, including hover. */
.style-card.case-card,.style-card.case-card:hover{border:0}
