/* Case study (portfolio inner) pages: loaded when body has .page-case.
   Same system as the homepage: zinc scale, bezel hero, soft stacked band, 36/48px radii. */
.page-case { background: var(--paper); }
.c-wrap { width: 100%; max-width: 84rem; margin-inline: auto; padding-inline: var(--gutter); }
.c-section { padding-block: clamp(2rem, 5vw, 4.5rem); }
.c-h2 { font-size: var(--h3); font-weight: 600; letter-spacing: var(--tracking-tight); line-height: 1.12; }
.c-h3 { font-size: var(--h4); font-weight: 600; letter-spacing: var(--tracking-snug); line-height: 1.2; }

/* hero: grey bezel around a dark rounded panel, title bottom-left */
.c-hero { padding: calc(var(--header-h) + 1.25rem) var(--gutter) 0; max-width: 90rem; margin-inline: auto; }
.c-hero__shell { background: var(--gray-100); border: 1px solid var(--gray-150); border-radius: calc(var(--r-2xl) + 8px); padding: 8px; box-shadow: var(--shadow-bezel); }
.c-hero__panel {
  position: relative; isolation: isolate; overflow: hidden; border-radius: var(--r-2xl); color: #fff;
  min-height: clamp(26rem, 68svh, 42rem); display: flex; flex-direction: column; justify-content: space-between; gap: var(--space-6);
  padding: clamp(1.25rem, 4vw, 3.5rem);
  background: radial-gradient(110% 90% at 85% 0%, color-mix(in srgb, var(--case-accent, var(--accent)) 55%, #09090b) 0%, transparent 60%), linear-gradient(160deg, #18181b, #09090b);
}
.c-hero__img { position: absolute; inset: 0; z-index: -2; }
.c-hero__img picture, .c-hero__img img { width: 100%; height: 100%; object-fit: cover; }
.c-hero__panel::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(9, 9, 11, 0.7), rgba(9, 9, 11, 0.2) 65%), linear-gradient(0deg, rgba(9, 9, 11, 0.5), transparent 55%); }
.c-hero .breadcrumbs ol, .c-hero .breadcrumbs a { color: var(--white-70); }
.c-hero .breadcrumbs [aria-current] { color: #fff; }
.c-hero__body { display: grid; gap: var(--space-4); justify-items: start; }
.c-hero__title { font-size: clamp(2.25rem, 1rem + 5vw, 4.75rem); font-weight: 600; line-height: 1.06; letter-spacing: var(--tracking-tight); max-width: 15ch; text-wrap: balance; }
.c-hero__sub { font-size: var(--step-1); line-height: 1.4; max-width: 34ch; color: var(--white-90); }
.c-chips { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.c-chip { display: inline-block; padding: 6px 12px; border-radius: var(--r-xs); background: var(--white-20); border: 1px solid var(--white-20); backdrop-filter: blur(8px); color: #fff; font-size: var(--ui); font-weight: 500; text-decoration: none; transition: background-color 0.25s; }
.c-chip:hover { background: var(--white-50); color: var(--gray-950); }

/* about: text + spec card on the left, sticky call-out on the right */
.c-about { display: grid; gap: var(--space-7); align-items: start; }
.c-about__main { display: grid; gap: var(--space-5); }
.c-lead { font-size: var(--step-1); line-height: 1.45; color: var(--gray-700); max-width: 46ch; }
.c-spec { display: grid; grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr)); gap: 1px; background: var(--gray-150); border: 1px solid var(--gray-150); border-radius: var(--r-lg); overflow: hidden; }
.c-spec > div { background: var(--gray-100); padding: var(--space-4) var(--space-5); }
.c-spec dt { font-size: var(--ui); color: var(--gray-500); }
.c-spec dd { margin: 0.15rem 0 0; font-weight: 600; color: var(--gray-900); overflow-wrap: anywhere; }
.c-deliv { display: grid; gap: var(--space-2); }
.c-deliv__label { font-size: var(--ui); color: var(--gray-500); }
.c-deliv ul { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.c-deliv li { padding: 4px 10px; border-radius: var(--r-xs); background: var(--gray-100); border: 1px solid var(--gray-150); font-size: var(--ui); }
.c-side { display: grid; gap: var(--space-4); background: #fff; border: 1px solid var(--gray-150); border-radius: var(--r-xl); padding: var(--space-5); box-shadow: var(--shadow-lift); }
.c-side__title { font-size: var(--h5); font-weight: 700; line-height: 1.25; }
.c-side p { color: var(--gray-600); }
.c-side .btn { justify-content: center; }
.c-about--solo { max-width: 40rem; }
@media (min-width: 62rem) {
  .c-about { grid-template-columns: minmax(0, 1fr) 24rem; }
  .c-about--solo { grid-template-columns: 1fr; }
  .c-side { position: sticky; top: calc(var(--header-h) + var(--space-4)); }
}

/* soft stacked band that holds the story and the visuals */
.c-band { background: var(--gray-100); border-radius: var(--r-2xl) var(--r-2xl) 0 0; margin-top: clamp(1rem, 3vw, 2.5rem); padding-block: clamp(1rem, 3vw, 2.5rem); }
.c-collab { display: grid; gap: var(--space-7); align-items: center; }
.c-collab__text { display: grid; gap: var(--space-6); }
.c-block { display: grid; gap: var(--space-3); }
.c-tile { margin: 0; border-radius: var(--r-xl); overflow: hidden; background: var(--gray-300); box-shadow: var(--shadow-card); }
.c-tile img, .c-tile .ph { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
@media (min-width: 62rem) { .c-collab--img { grid-template-columns: 1fr 1fr; } }

/* image stages: centred heading over a tinted rounded panel */
.c-section--stage { padding-block: clamp(1rem, 3vw, 2.5rem); }
.c-stagewrap { display: grid; gap: var(--space-5); justify-items: center; }
.c-stage-head { text-align: center; max-width: 44rem; }
.c-stage {
  width: 100%; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(0.75rem, 2vw, 1.5rem); align-items: center;
  border-radius: var(--r-2xl); padding: clamp(1rem, 3vw, 2.5rem);
  background: linear-gradient(135deg, color-mix(in srgb, var(--case-accent, var(--accent)) 8%, #eceef7), color-mix(in srgb, var(--case-accent, var(--accent)) 16%, #d6dbee));
}
.c-fig { margin: 0; grid-column: 1 / -1; min-width: 0; }
.c-fig .media img, .c-fig .ph { width: 100%; height: auto; border-radius: var(--r-lg); box-shadow: var(--shadow-card); }
.c-fig .device .media img { box-shadow: none; }
.c-fig figcaption { margin-top: var(--space-2); text-align: center; font-size: var(--ui); color: var(--gray-600); }
@media (min-width: 48rem) {
  .c-fig--half, .c-fig--device { grid-column: span 6; }
  .c-fig--third { grid-column: span 4; }
}

/* results + client card, testimonial */
.c-results { display: grid; gap: var(--space-4); align-items: stretch; }
.c-card { background: #fff; border: 1px solid var(--gray-150); border-radius: var(--r-xl); padding: clamp(1.25rem, 3vw, 2.5rem); box-shadow: var(--shadow-card); }
.c-results .c-card:first-child { display: grid; gap: var(--space-3); align-content: start; }
.c-client { display: grid; place-items: center; align-content: center; gap: var(--space-4); text-align: center; font-family: var(--font-display); font-size: var(--h3); font-weight: 700; letter-spacing: var(--tracking-snug); line-height: 1.1; }
.c-link { font-family: var(--font-text); font-size: var(--ui-lg); font-weight: 500; color: var(--gray-900); text-decoration: none; }
.c-link:hover { color: var(--accent-text); }
.c-quote { background: var(--gray-100); box-shadow: none; }
.c-quote .quote { max-width: 34ch; }
@media (min-width: 62rem) { .c-results { grid-template-columns: 1fr 1fr; } }
