/* Brand identity case study, /work/brand-identity. Staged in brand/showcase/site/, not on the live site yet.
   Builds on /css/styles.css (tokens, .wrap, .svc, .h30, .btn, .chip). Motion is CSS transform/opacity only. */

.bi { padding-block: 64px; border-top: 1px solid var(--line); }
.bi__head { max-width: 40rem; }
.bi__head .h30 { margin-top: 12px; }
@media (min-width: 64rem) { .bi { padding-block: 96px; } }

.bi-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; margin-top: 40px; }
@media (min-width: 48rem) {
  .bi-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .bi-4 { grid-column: span 6; }
  .bi-8, .bi-12 { grid-column: 1 / -1; }
}
@media (min-width: 64rem) { .bi-4 { grid-column: span 4; } .bi-8 { grid-column: span 8; } }

/* tile: label on top, art in the middle, caption at the foot */
.bi-t { position: relative; display: flex; flex-direction: column; min-height: 320px; margin: 0; padding: 20px;
  overflow: hidden; isolation: isolate; border-radius: 16px; background: var(--card); }
.bi-t--paper { background: #f5f4f0; color: #101010; }
.bi-t--ink { background: #101010; box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.08); }
@media (min-width: 64rem) { .bi-t { min-height: 360px; padding: 24px; } .bi-t--tall { min-height: 440px; } }
.bi-lbl { position: relative; z-index: 2; font: 500 12px/16px var(--f-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--fg-60); }
.bi-lbl b { margin-right: 10px; font-weight: 500; color: #fff; }
.bi-cap { position: relative; z-index: 2; max-width: 32em; font-size: 14px; line-height: 21px; color: var(--fg-60); }
.bi-t--paper .bi-lbl, .bi-t--paper .bi-cap, .bi-on-light .bi-lbl, .bi-on-light .bi-cap { color: rgb(16 16 16 / 0.62); }
.bi-t--paper .bi-lbl b, .bi-on-light .bi-lbl b { color: #101010; }
.bi-art { flex: 1; display: grid; place-items: center; padding: 28px 0; }
.bi-art img { max-width: 100%; height: auto; }

/* 01 wordmark, 02 symbol */
.bi-wm { width: min(78%, 560px); }
.bi-sym { width: 150px; }
@media (min-width: 64rem) { .bi-sym { width: 180px; } }

/* 03 idea */
.bi-idea { justify-content: space-between; }
.bi-idea h3 { margin-top: 28px; font-size: 28px; line-height: 34px; font-weight: 500; letter-spacing: -0.02em; }
.bi-idea p { max-width: 17em; margin-top: 10px; font-size: 15px; line-height: 23px; color: rgb(16 16 16 / 0.62); }
.bi-glyph { align-self: flex-end; width: 132px; height: auto; margin-top: 12px; }

/* 04 lockups */
.bi-lockups { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 28px 40px; }
.bi-lockups .st { width: 132px; } .bi-lockups .hz { width: 200px; }
@media (min-width: 64rem) { .bi-lockups { flex-wrap: nowrap; gap: 28px; } .bi-lockups .st { width: 104px; } .bi-lockups .hz { width: 176px; } }

/* 05 color */
.bi-colors { padding: 0; display: grid; grid-template-columns: 1fr 1fr; }
.bi-colors .bi-lbl { position: absolute; top: 20px; left: 20px; }
.bi-sw { display: flex; flex-direction: column; justify-content: flex-end; padding: 72px 20px 20px; }
.bi-sw--ink { background: #101010; }
.bi-sw--paper { background: #f5f4f0; color: #101010; }
.bi-sw h3 { font-size: 22px; line-height: 28px; font-weight: 500; }
.bi-sw dl { margin-top: 10px; font: 400 12px/20px var(--f-mono); color: var(--fg-60); }
.bi-sw--paper dl { color: rgb(16 16 16 / 0.62); }
@media (min-width: 64rem) { .bi-colors .bi-lbl { top: 24px; left: 24px; } .bi-sw { padding: 24px; } }

/* 06 cards: a photo with the label and caption laid over it */
.bi-photo { padding: 0; min-height: 0; background: #8f8a84; }
.bi-photo img { display: block; width: 100%; height: auto; transition: transform 0.6s var(--ease); }
.bi-motion { background: #0a0a0a; }
.bi-motion video { display: block; width: 100%; height: auto; }   /* played while on screen by /js/main.js (data-inview) */
.bi-photo .bi-lbl { position: absolute; top: 20px; left: 20px; }
.bi-photo .bi-cap { position: absolute; left: 20px; right: 20px; bottom: 18px; }
@media (min-width: 64rem) { .bi-photo .bi-lbl { top: 24px; left: 24px; } .bi-photo .bi-cap { left: 24px; bottom: 22px; } }
@media (hover: hover) { .bi-photo:hover img { transform: scale(1.012); } }

/* 07 website: browser window, plus a phone from 48rem */
.bi-site { padding-bottom: 0; }
.bi-browser { position: relative; margin-top: 24px; border-radius: 12px 12px 0 0; overflow: hidden; background: #1f1f1f;
  box-shadow: 0 0 0 1px rgb(255 255 255 / 0.08), 0 24px 60px rgb(0 0 0 / 0.5); }
.bi-browser__bar { display: flex; align-items: center; gap: 7px; height: 32px; padding: 0 12px; background: #1c1c1c;
  border-bottom: 1px solid rgb(255 255 255 / 0.06); }
.bi-browser__bar i { width: 9px; height: 9px; border-radius: 50%; background: #3a3a3a; }
.bi-browser__bar span { margin-left: 10px; padding: 2px 12px; border-radius: 999px; background: #2a2a2a; font-size: 11px; line-height: 16px; color: var(--fg-60); }
.bi-browser img { display: block; width: 100%; height: auto; }
.bi-phone { display: none; }
/* Caption looks like every other caption on the page (plain text). The screenshot fades into the card colour behind it, so it reads without a box. */
.bi-site .bi-cap { position: absolute; left: 20px; right: 20px; bottom: 18px; }
.bi-site::after { content: ""; position: absolute; inset: auto 0 0; z-index: 1; height: 120px; background: linear-gradient(to top, var(--card) 38%, transparent); }
@media (min-width: 48rem) {
  .bi-browser { width: 78%; }
  .bi-phone { display: block; position: absolute; right: 24px; top: 52px; width: 23%; max-width: 196px; padding: 6px;
    border-radius: 30px; background: #262626; box-shadow: 0 0 0 1px rgb(255 255 255 / 0.1), 0 30px 70px rgb(0 0 0 / 0.6); }
  .bi-phone img { display: block; width: 100%; height: auto; aspect-ratio: 390 / 844; object-fit: cover; object-position: left top; border-radius: 24px; }
}
@media (min-width: 64rem) { .bi-site .bi-cap { left: 24px; bottom: 22px; } }

/* 08 icons */
.bi-icons .bi-art { gap: 28px; align-content: center; }
.bi-app { width: 132px; filter: drop-shadow(0 18px 36px rgb(0 0 0 / 0.5)); }
.bi-favs { display: flex; align-items: flex-end; justify-content: center; gap: 28px; }
.bi-favs figure { display: grid; justify-items: center; gap: 10px; margin: 0; }
.bi-favs img { image-rendering: pixelated; }
.bi-favs figcaption { font: 500 11px/14px var(--f-mono); letter-spacing: 0.08em; color: var(--fg-60); }

/* 09 type */
.bi-type .bi-art { grid-template-columns: auto auto; justify-content: space-between; align-items: center; gap: 20px; place-items: initial; }
.bi-aa { font-size: 120px; line-height: 1; font-weight: 450; letter-spacing: -0.04em; }
.bi-faces { display: grid; gap: 18px; text-align: right; }
.bi-faces strong { display: block; font-size: 22px; line-height: 28px; font-weight: 500; }
.bi-faces .m { font-family: var(--f-mono); font-size: 18px; }
.bi-faces span { font: 500 11px/16px var(--f-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--fg-60); }

/* 10 guidelines: the wordmark inside its clear space (one x-height on every side) */
.bi-clear { position: relative; padding: calc(160px * 96 / 624.84); outline: 1px dashed rgb(16 16 16 / 0.35);
  background: repeating-linear-gradient(45deg, transparent 0 6px, rgb(16 16 16 / 0.05) 6px 7px); }
.bi-clear img { display: block; width: 160px; background: #f5f4f0; }
.bi-mins { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; margin-top: 18px;
  font: 500 11px/16px var(--f-mono); letter-spacing: 0.08em; text-transform: uppercase; color: rgb(16 16 16 / 0.62); }
.bi-guide .bi-art { align-content: center; }

/* 11 share image */
.bi-share { width: 100%; max-width: 420px; border-radius: 12px; overflow: hidden; background: #202020; box-shadow: 0 0 0 1px rgb(255 255 255 / 0.08); }
.bi-share img { display: block; width: 100%; height: auto; }
.bi-share div { padding: 10px 14px 12px; }
.bi-share small { display: block; font-size: 12px; line-height: 17px; color: var(--fg-60); }
.bi-share b { display: block; font-size: 15px; line-height: 21px; font-weight: 500; }

/* what you get */
.bi-get { display: grid; gap: 32px; }
.bi-get .h30 { margin-top: 12px; }
@media (min-width: 64rem) { .bi-get { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: start; } }
.bi-list { display: grid; gap: 0 32px; padding: 8px 24px; border-radius: 16px; background: var(--card); list-style: none; }
@media (min-width: 40rem) { .bi-list { grid-template-columns: 1fr 1fr; } }
.bi-list li { display: flex; gap: 12px; padding: 14px 0; border-top: 1px solid var(--line); font-size: 15px; line-height: 22px; }
.bi-list li:first-child { border-top: 0; }
@media (min-width: 40rem) { .bi-list li:nth-child(2) { border-top: 0; } }
.bi-list svg { flex: none; width: 16px; height: 22px; fill: none; stroke: #fff; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

@media (prefers-reduced-motion: reduce) { .bi-photo img { transition: none; } .bi-photo:hover img { transform: none; } }
