/* Extra styles for work/ujla-kal.html only. A brand case study is image-led: the work is shown as large artwork
   plates (not phone frames), the decisions pair the reasoning with the sheet it produced, and the motion idea plays
   as a small CSS animation. Shared type, tokens, header and footer come from tokens.css, base.css and case.css. */

/* artwork plates: the brand's own colours in both themes, framed by a hairline, enlarge on select */
.art { position: relative; display: block; width: 100%; padding: 0; background: #fbf4e8; border: 1px solid var(--plate-edge);
  cursor: zoom-in; transition: transform .18s var(--ease), border-color .15s; }
.art img { display: block; width: 100%; height: auto; }
.art:hover { transform: translateY(-2px); border-color: var(--ink-3); }
.art:focus-visible { outline-offset: 4px; }
[data-theme="dark"] .art img { filter: brightness(.94); }

/* key artwork: three plates at one height (widths follow each image's ratio) */
.keys-row.keys-row--brand { grid-template-columns: minmax(0, 1.474fr) minmax(0, 1fr) minmax(0, 1.366fr); align-items: start; }
.keys-row--brand > li { display: block; }
.keys-row--brand .key-c { margin-top: 14px; padding-bottom: 0; max-width: 30em; }

/* summary: the confidentiality note stays quiet but plain */
.prose .quiet { font-size: 14.5px; line-height: 1.55; color: var(--ink-3); }

/* problem: the four audiences */
.aud { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: var(--g);
  margin-top: clamp(40px, 4vw, 56px); margin-inline-start: calc((100% + var(--g)) / 12); border-top: 1px solid var(--ink); }
.aud li { padding: 14px 0 4px; display: grid; gap: 6px; align-content: start; }
.aud-k { font-size: 12px; color: var(--data-ink); }
.aud b { font-weight: 520; font-size: 17px; line-height: 1.3; }
.aud p { font-size: 15px; line-height: 1.5; color: var(--ink-2); text-wrap: pretty; }

/* a full-width figure inside a section */
.art-fig { margin-top: clamp(36px, 4vw, 56px); margin-inline-start: calc((100% + var(--g)) / 12); }
.art-fig .fig-cap { max-width: 64em; }
.art-pair { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: var(--g); row-gap: 14px; align-items: start; }

/* decisions: the reasoning on the left, the sheet it produced on the right */
.bdecs { list-style: none; margin-inline-start: calc((100% + var(--g)) / 12); border-top: 1px solid var(--ink); }
.bdec { display: grid; grid-template-columns: repeat(11, minmax(0, 1fr)); column-gap: var(--g); row-gap: 22px; align-items: start;
  padding: clamp(28px, 3.4vw, 48px) 0; border-bottom: 1px solid var(--rule); }
.bdec-t { grid-column: 1 / 5; }
.bdec-v { grid-column: 5 / 12; margin: 0; display: grid; gap: 12px; }
.bdec-n { font-size: 11.5px; color: var(--data-ink); }
.bdec h3 { margin-top: 8px; font-weight: 480; font-size: clamp(22px, 2vw, 28px); line-height: 1.18; letter-spacing: -.012em; text-wrap: pretty; }
.bdec .pair-r { margin-top: 16px; }
.bdec-v figcaption { font-size: 11.5px; color: var(--ink-3); margin-top: -2px; }

/* final work: one artwork per row, with what it does */
.work { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--g); row-gap: 22px; align-items: start; scroll-margin-top: 16px; }
.work + .work { margin-top: clamp(56px, 6vw, 96px); }
.work-v { grid-column: 2 / 10; margin: 0; }
.work-t { grid-column: 10 / 13; padding-top: 4px; }
.work-k { font-size: 12px; color: var(--data-ink); }
.work-t h3 { margin-top: 8px; font-weight: 470; font-size: clamp(21px, 1.8vw, 26px); line-height: 1.18; letter-spacing: -.012em; text-wrap: pretty; }
.work-t p { margin-top: 10px; font-size: 15.5px; line-height: 1.55; color: var(--ink-2); text-wrap: pretty; }
.work-v .fig-cap { margin-top: 10px; }

/* motion: the logo animation, live, next to the stills */
.mo { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); column-gap: var(--g); row-gap: 14px; align-items: stretch; }
.mo-live { display: grid; place-items: center; background: #fbf4e8; border: 1px solid var(--plate-edge); padding: 24px; min-height: 180px; }
.mo-live svg { width: min(100%, 300px); height: auto; overflow: visible; }
.mo-line { transform-origin: 0 0; animation: uk-line 5s var(--ease) infinite; }
.mo-sun { animation: uk-rise 5s var(--ease) infinite; }
.mo-l { animation: uk-left 5s var(--ease) infinite; }
.mo-r { animation: uk-right 5s var(--ease) infinite; }
@keyframes uk-line { 0% { transform: scaleX(0); } 14%, 100% { transform: scaleX(1); } }
@keyframes uk-rise { 0%, 10% { transform: translateY(70px); } 30%, 100% { transform: translateY(0); } }
@keyframes uk-left { 0%, 34% { transform: translateX(2.6px); } 46%, 100% { transform: translateX(0); } }
@keyframes uk-right { 0%, 34% { transform: translateX(-2.6px); } 46%, 100% { transform: translateX(0); } }
[data-theme="dark"] .mo-live { filter: brightness(.94); }

/* rollout: what made it cheap to run */
.roll { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--g); margin-top: 28px;
  margin-inline-start: calc((100% + var(--g)) / 12); border-top: 1px solid var(--rule); }
.roll li { display: grid; grid-template-columns: 28px minmax(0, 1fr); column-gap: 8px; padding: 14px 0; border-bottom: 1px solid var(--rule); }
.roll li::before { content: ""; width: 12px; height: 6px; margin-top: .55em; background: var(--data); }
.roll b { font-weight: 520; font-size: 16px; }
.roll p { font-size: 15px; line-height: 1.5; color: var(--ink-2); margin-top: 2px; text-wrap: pretty; }
#screens .sub-t, #screens .sub { margin-inline-start: calc((100% + var(--g)) / 12); }

/* ---------- tablet ---------- */
@media (max-width: 1100px) {
  .keys-row.keys-row--brand { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); row-gap: 32px; }
  .keys-row--brand > li:first-child { grid-column: 1 / -1; }
  .aud { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 8px; }
  .bdec-t { grid-column: 1 / 12; }
  .bdec-v { grid-column: 1 / 12; }
  .work-v { grid-column: 1 / 13; }
  .work-t { grid-column: 1 / 13; display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); column-gap: var(--g); align-items: start; }
  .work-t .work-k { grid-column: 1 / -1; }
  .work-t h3 { grid-column: 1; margin-top: 4px; }
  .work-t p { grid-column: 2; margin-top: 4px; }
}

/* ---------- phone ---------- */
@media (max-width: 720px) {
  .keys-row.keys-row--brand { grid-template-columns: 1fr; row-gap: 30px; }
  .keys-row--brand > li:first-child { grid-column: auto; }
  .aud, .art-fig, .bdecs, .roll, #screens .sub-t, #screens .sub { margin-inline-start: 0; }
  .aud { grid-template-columns: 1fr 1fr; }
  .art-pair { grid-template-columns: 1fr; }
  .bdec { display: block; padding: 28px 0 32px; }
  .bdec-v { margin-top: 20px; }
  .work { display: block; }
  .work-t { display: block; margin-top: 16px; }
  .work-t p { margin-top: 8px; }
  .mo { grid-template-columns: 1fr; }
  .roll { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .art { transition: none; }
  .art:hover { transform: none; }
  .mo-line, .mo-sun, .mo-l, .mo-r { animation: none; }
}
