/* Work index and concept case-study pages. */

/* Work index entries */
.concepts { padding-top: 40px; padding-bottom: var(--section-pad); }
.concept-entry { display: flex; flex-direction: column; gap: 28px; padding: 56px 0 72px; border-top: 1px solid var(--ink); }
.concept-entry__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 12px; }
.concept-entry__head h2 { font-family: var(--font-display); font-weight: 400; font-size: clamp(40px, 4.4vw, 64px); line-height: 1.05; letter-spacing: -.02em; }
.concept-entry__count { font-family: var(--font-mono); font-size: 13px; color: var(--accent); }
.concept-entry__body { display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-start; }
.concept-entry__media { position: relative; flex: 0 1 920px; min-width: 0; padding-bottom: 40px; }
.concept-entry__media > .frame { width: calc(100% - 56px); box-shadow: 0 1px 0 var(--rule); }
.concept-entry__media .phone { position: absolute; right: 0; bottom: 0; width: clamp(104px, 20.6%, 190px); }
.concept-entry__info { flex: 1 1 260px; display: flex; flex-direction: column; gap: 22px; }
.concept-entry__type { display: flex; flex-direction: column; gap: 4px; }
.concept-entry__type strong { font-size: 18px; font-weight: 500; }
.concept-entry__type span { font-size: 16px; color: var(--muted); }
.concept-entry .feature-list { border-top: 1px solid var(--rule); padding-top: 18px; }
.concept-entry .feature-list .muted { color: var(--muted); }
.concept-entry .feature-list .muted::before { content: none; }
.concept-entry .actions { gap: 14px 24px; }
.concept-entry .link-underline { font-size: 15px; }

@media (max-width: 759px) {
  .concept-entry { padding: 40px 0 56px; }
  .concept-entry__media { flex-basis: 100%; padding-bottom: 28px; }
  .concept-entry__media > .frame { width: calc(100% - 32px); }
  .concept-entry__media .phone { padding: 5px; border-radius: 20px; }
  .concept-entry__media .phone .frame { border-radius: 15px; }
}

/* Case study */
.cs-head { padding-top: clamp(40px, 5vw, 72px); padding-bottom: 40px; }
.cs-crumbs { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-bottom: 36px; letter-spacing: .1em; }
.cs-crumbs a { color: var(--muted); }
.cs-crumbs a.cs-crumbs__back { color: var(--ink); }
.cs-crumbs a:hover { color: var(--accent); }
.cs-title { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px 32px; }
.cs-title h1 { font-size: clamp(48px, 8vw, 124px); max-width: 980px; text-wrap: balance; }
.cs-title .badge { font-size: 12px; padding: 8px 12px; margin-bottom: 14px; align-self: auto; }
.cs-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 24px; margin: 40px 0 0; padding-top: 24px; border-top: 1px solid var(--ink); }
.cs-facts div { display: flex; flex-direction: column; gap: 6px; }
.cs-facts dt { font-size: 11px; }
.cs-facts dd { margin: 0; font-size: 17px; }

.cs-figure { display: flex; flex-direction: column; gap: 20px; padding-top: 24px; }
.cs-figure .frame { width: 100%; }
.cs-figure__foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; }

.swatches { align-self: start; display: flex; flex-wrap: wrap; gap: 20px; list-style: none; margin: 0; padding: 0; }
.swatches li { display: flex; flex-direction: column; gap: 10px; font-family: var(--font-mono); font-size: 12px; color: var(--muted); }
.swatch { width: 120px; height: 120px; box-shadow: inset 0 0 0 1px rgba(20, 18, 16, .1); }
@media (max-width: 759px) { .swatch { width: 56px; height: 56px; } .swatches { gap: 12px; } }
.cs-story .feature-list { font-size: 14px; gap: 10px; }

.cs-figures { display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-start; }
.cs-figures figure { margin: 0; display: flex; flex-direction: column; gap: 14px; }
.cs-figures .fig-desktop { flex: 0 1 780px; min-width: 0; }
.cs-figures .fig-desktop .frame { box-shadow: 0 30px 60px -30px rgba(20, 18, 16, .4); }
.cs-figures .fig-mobile { flex: 0 0 241px; }
.cs-figures .phone { padding: 8px; border-radius: 38px; box-shadow: 0 30px 60px -30px rgba(20, 18, 16, .5); }
.cs-figures .phone .frame { border-radius: 31px; }
@media (max-width: 759px) {
  .cs-figures { flex-direction: column; align-items: stretch; }
  .cs-figures .fig-desktop { flex: none; width: 100%; }
  .cs-figures .fig-mobile { flex: none; width: 200px; }
}

.next-concept { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 16px; color: var(--ink); }
.next-concept__name { font-family: var(--font-display); font-size: clamp(36px, 5vw, 76px); line-height: 1.05; letter-spacing: -.02em; }
.next-concept:hover .next-concept__name { color: var(--accent); }

/* Concept palettes (no inline styles under the CSP, so each swatch gets a class) */
.swatch--F4EEE3 { background: #F4EEE3; }
.swatch--2F4A3A { background: #2F4A3A; }
.swatch--C0643F { background: #C0643F; }
.swatch--E8B48F { background: #E8B48F; }
.swatch--F7F4EF { background: #F7F4EF; }
.swatch--141414 { background: #141414; }
.swatch--8A6A3F { background: #8A6A3F; }
.swatch--E4DED4 { background: #E4DED4; }
.swatch--F6F3EE { background: #F6F3EE; }
.swatch--14233A { background: #14233A; }
.swatch--E2BE7E { background: #E2BE7E; }
.swatch--8A6A33 { background: #8A6A33; }
.swatch--F3EDE4 { background: #F3EDE4; }
.swatch--2B2620 { background: #2B2620; }
.swatch--7A6D60 { background: #7A6D60; }
.swatch--CDBFAC { background: #CDBFAC; }
.swatch--F1E8D6 { background: #F1E8D6; }
.swatch--1F2420 { background: #1F2420; }
.swatch--E0B84E { background: #E0B84E; }
.swatch--8A6A1E { background: #8A6A1E; }
