/* Identity case study — builds on site.css */
.idp { background: var(--paper); }
.idp .nav__links a { font-size: 13.5px; }
.i-cover { min-height: 100svh; display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); align-items: center; gap: clamp(24px, 5vw, 96px); padding: calc(var(--navh) + 40px) var(--gut) 60px; }
.i-cover__mark { display: grid; place-items: center; }
.i-cover__mark svg { width: min(30vw, 380px); height: auto; overflow: visible; }
.i-h1 { font-family: var(--serif); font-weight: 360; font-stretch: 104%; font-variation-settings: 'opsz' 700; font-size: clamp(64px, 10vw, 180px); line-height: .9; letter-spacing: -.02em; margin: 22px 0 28px; }
.i-lede { font-size: clamp(17px, 1.35vw, 21px); max-width: 48ch; color: var(--ink-soft); }
.i-sec { padding: clamp(80px, 10vw, 160px) var(--gut); }
.i-sec--paper2 { background: var(--paper-2); }
.i-sec--ink { background: var(--ink); color: var(--paper); }
.i-sec--ink .i-prose { color: rgba(243, 238, 230, .72); }
.i-sec > .eyebrow { margin-bottom: 28px; }
.i-cols { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 96px); align-items: start; }
.i-prose { display: grid; gap: 16px; font-size: clamp(16px, 1.2vw, 18.5px); color: var(--ink-soft); }
.i-narrow { max-width: 22ch; margin-bottom: clamp(36px, 5vw, 70px); }

.i-build { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 90px); align-items: center; }
.i-diagram { background: var(--paper); border-radius: 6px; padding: clamp(16px, 3vw, 40px); box-shadow: inset 0 0 0 1px var(--line); }
.i-diagram svg { width: 100%; height: auto; overflow: visible; }
.dg-t { font-family: var(--wide); font-stretch: 115%; font-size: 3.3px; letter-spacing: .14em; text-transform: uppercase; fill: #6b6f80; }
.i-steps { counter-reset: s; display: grid; gap: 14px; margin: 26px 0 32px; }
.i-steps li { counter-increment: s; position: relative; padding-left: 38px; font-size: 16px; color: var(--ink-soft); }
.i-steps li::before { content: counter(s, decimal-leading-zero); position: absolute; left: 0; top: 4px; font-family: var(--wide); font-size: 11px; letter-spacing: .1em; color: var(--brass); }
.i-steps b { color: var(--ink); font-weight: 600; }
.i-slider { display: grid; gap: 10px; max-width: 420px; }
.i-slider span { display: flex; justify-content: space-between; font-family: var(--wide); font-stretch: 115%; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; }
.i-slider output { color: var(--brass); }
.i-slider input { -webkit-appearance: none; appearance: none; width: 100%; height: 2px; background: var(--ink); border-radius: 2px; outline-offset: 8px; }
.i-slider input::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; border-radius: 50%; background: var(--room); box-shadow: 0 0 0 3px var(--paper), 0 0 0 4px var(--ink); cursor: grab; }
.i-slider input::-moz-range-thumb { width: 26px; height: 26px; border-radius: 50%; background: var(--room); border: 3px solid var(--paper); box-shadow: 0 0 0 1px var(--ink); cursor: grab; }

.i-lockups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.i-lock { border-radius: 6px; padding: clamp(36px, 6vw, 96px) clamp(24px, 4vw, 64px); display: grid; place-items: center; min-height: 320px; }
.i-lock svg { width: 100%; max-width: 560px; height: auto; }
.i-lock--paper { background: var(--paper-2); }
.i-lock--ink { background: var(--ink); }
.i-specs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; margin-top: 32px; border-top: 1px solid var(--line); padding-top: 20px; }
.i-specs dt { font-family: var(--wide); font-stretch: 115%; font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--brass); margin-bottom: 6px; }
.i-specs dd { font-size: 14.5px; color: var(--ink-soft); }
.i-marks { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: clamp(40px, 5vw, 70px); }
.i-marks figure { background: var(--paper-2); border-radius: 6px; aspect-ratio: 1; display: grid; place-items: center; position: relative; }
.i-marks img { width: 46%; height: auto; }
.i-marks .i-fav { width: 22%; border-radius: 6px; }
.i-marks figcaption { position: absolute; left: 14px; bottom: 12px; font-family: var(--wide); font-stretch: 115%; font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-soft); }

.i-ks { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; margin: clamp(40px, 5vw, 80px) 0; }
.i-k { background: rgba(243, 238, 230, .05); border-radius: 6px; padding: 22px 14px 14px; display: grid; gap: 14px; justify-items: center; }
.i-k svg { width: 58%; height: auto; }
.i-k figcaption { width: 100%; display: flex; justify-content: space-between; gap: 8px; font-size: 12px; color: rgba(243, 238, 230, .7); }
.i-k figcaption b { color: var(--paper); font-weight: 500; }
.i-palette { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
.i-sw { display: grid; gap: 4px; font-size: 13px; color: rgba(243, 238, 230, .65); }
.i-sw__fill { height: 120px; border-radius: 4px; background: var(--c); color: var(--ci); padding: 10px; display: flex; align-items: flex-end; box-shadow: inset 0 0 0 1px rgba(243, 238, 230, .1); }
.i-sw__fill code { font-family: var(--wide); font-size: 11px; letter-spacing: .06em; }
.i-sw b { color: var(--paper); font-weight: 500; font-size: 14.5px; margin-top: 8px; }
.i-sw__src { display: flex; align-items: center; gap: 6px; font-size: 11.5px; }
.i-sw__src i { width: 10px; height: 10px; border-radius: 50%; }

.i-type { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(24px, 5vw, 96px); align-items: center; }
.i-type__big { display: flex; gap: .1em; font-family: var(--serif); font-variation-settings: 'opsz' 1200; font-weight: 340; font-size: clamp(120px, 17vw, 300px); line-height: .9; }
.i-aa--it { font-style: italic; color: var(--brass); }
.i-type__name { font-family: var(--sans); font-weight: 600; font-size: 15px; margin: 26px 0 10px; display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.i-type__name:first-of-type { margin-top: 0; }
.i-type__name small { font-weight: 400; color: var(--ink-soft); font-size: 13px; }
.i-type__sample { font-family: var(--serif); font-variation-settings: 'opsz' 400; font-size: clamp(30px, 3.4vw, 54px); line-height: 1.05; }
.i-type__body { font-size: 17px; max-width: 54ch; color: var(--ink-soft); }

.i-apps { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.app { background: var(--paper); border-radius: 6px; padding: clamp(20px, 3vw, 40px); display: grid; gap: 18px; align-content: space-between; min-height: 420px; overflow: hidden; }
.app figcaption { font-size: 13.5px; color: var(--ink-soft); max-width: 46ch; }
.app--cards { grid-column: span 4; }
.app--sign { grid-column: span 2; grid-row: span 2; background: #dfe6dc; }
.app--plate, .app--key { grid-column: span 2; }
.app--chips { grid-column: 1 / span 4; }

.cards { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 14px; align-items: center; }
.card { aspect-ratio: 1.75; border-radius: 4px; box-shadow: 0 1px 0 rgba(28, 37, 64, .08), 0 22px 40px -22px rgba(28, 37, 64, .45); }
.card--front { background: #FBF8F3; padding: 7% 8%; display: grid; grid-template-rows: auto 1fr auto; gap: 6px; color: var(--ink); }
.card--front svg { width: 46%; height: auto; }
.card__who { align-self: end; font-size: clamp(10px, .9vw, 13px); display: grid; }
.card__who span { font-size: .78em; color: var(--ink-soft); }
.card__how { font-size: clamp(7.5px, .62vw, 9.5px); color: var(--ink-soft); line-height: 1.4; }
.card--back { aspect-ratio: .57; background: var(--c); color: var(--ci, #F3EEE6); display: grid; place-items: center; position: relative; }
.card--back svg { width: 34%; height: auto; color: var(--ci, #F3EEE6); }
.card--back .kg { fill: var(--ci, #F3EEE6); opacity: .0; }
.card--back span { position: absolute; left: 10%; bottom: 7%; font-family: var(--wide); font-stretch: 115%; font-size: clamp(6px, .5vw, 8px); letter-spacing: .14em; text-transform: uppercase; opacity: .85; }

.sign { position: relative; display: grid; justify-items: center; padding-top: 20px; }
.sign__board { position: relative; z-index: 1; width: 92%; aspect-ratio: .78; background: var(--paper); border-radius: 3px; box-shadow: 0 30px 50px -30px rgba(28, 37, 64, .6), inset 0 0 0 10px var(--paper), inset 0 0 0 11px rgba(28, 37, 64, .2); padding: 14% 12%; display: grid; align-content: space-between; }
.sign__board svg { width: 100%; height: auto; }
.sign__line { font-family: var(--serif); font-variation-settings: 'opsz' 200; font-size: clamp(18px, 1.7vw, 28px); line-height: 1.1; }
.sign__small { font-size: clamp(9px, .7vw, 11px); color: var(--ink-soft); line-height: 1.5; }
.sign__post { position: absolute; bottom: -60px; width: 14px; height: 160px; background: linear-gradient(90deg, #cfc6b6, #f1ebdf 40%, #c9bfae); z-index: 0; }
.sign__post:nth-of-type(2) { left: 22%; }
.sign__post:nth-of-type(3) { right: 22%; }
.app--sign { padding-bottom: 0; }

.plate { justify-self: center; width: min(100%, 360px); aspect-ratio: 2.4; border-radius: 4px; background: linear-gradient(135deg, #e7cc93 0%, #c39d5c 38%, #f0d9a4 55%, #a8823f 100%); box-shadow: inset 0 0 0 1px rgba(80, 55, 20, .55), inset 0 0 0 6px rgba(255, 240, 200, .25), inset 0 0 0 7px rgba(80, 55, 20, .4), 0 20px 34px -20px rgba(60, 40, 10, .7); display: flex; align-items: center; gap: 8%; padding: 0 9%; color: rgba(55, 36, 12, .88); }
.plate svg { height: 52%; width: auto; filter: drop-shadow(0 1px 0 rgba(255, 240, 200, .55)); }
.plate .kg { fill: rgba(55, 36, 12, .25); }
.plate span { font-family: var(--serif); font-variation-settings: 'opsz' 120; font-size: clamp(14px, 1.3vw, 19px); line-height: 1.15; text-shadow: 0 1px 0 rgba(255, 240, 200, .5); }
.plate small { font-family: var(--wide); font-stretch: 115%; font-size: 8.5px; letter-spacing: .16em; text-transform: uppercase; }

.keytag { justify-self: center; position: relative; width: 150px; aspect-ratio: .55; border-radius: 75px 75px 10px 10px; background: linear-gradient(160deg, #f0d9a4, #c39d5c 45%, #a8823f); box-shadow: inset 0 0 0 1px rgba(80, 55, 20, .5), 0 26px 40px -24px rgba(60, 40, 10, .7); display: grid; justify-items: center; align-content: center; gap: 14px; color: rgba(55, 36, 12, .9); transform: rotate(-8deg); }
.keytag i { position: absolute; top: 18px; width: 18px; height: 18px; border-radius: 50%; background: var(--paper); box-shadow: inset 0 1px 3px rgba(0, 0, 0, .4); }
.keytag svg { width: 40%; height: auto; margin-top: 20px; }
.keytag .kg { fill: var(--room); }
.keytag span { text-align: center; font-family: var(--serif); font-size: 18px; line-height: 1.1; }
.keytag small { font-family: var(--wide); font-size: 7.5px; letter-spacing: .14em; text-transform: uppercase; display: block; margin-top: 4px; }

.chips { position: relative; height: 300px; }
.fchip { position: absolute; left: 50%; bottom: 14px; width: 92px; height: 250px; margin-left: -46px; border-radius: 4px; background: var(--paper); box-shadow: 0 1px 0 rgba(28, 37, 64, .08), 0 14px 26px -16px rgba(28, 37, 64, .5); transform-origin: 50% 92%; transform: rotate(var(--r)); transition: transform .9s var(--ease); display: grid; grid-template-rows: 1fr auto; overflow: hidden; }
.fchip::before { content: ''; background: var(--c); }
.fchip__code { position: absolute; left: 8px; top: 8px; font-family: var(--wide); font-size: 7px; letter-spacing: .14em; color: var(--ci); }
.fchip__name { padding: 8px; font-size: 10.5px; line-height: 1.2; display: grid; }
.fchip__name small { font-size: 8.5px; color: var(--ink-soft); }
.chips:hover .fchip { transform: rotate(calc(var(--r) * 1.35)); }
.fan-rivet { position: absolute; left: 50%; bottom: 31px; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #f3dfae, #b8955a 55%, #7a5a2a); z-index: 50; box-shadow: 0 1px 2px rgba(0, 0, 0, .4); }

.idp .foot { padding-top: clamp(64px, 8vw, 120px); }

@media (max-width: 1100px) {
  .i-ks, .i-palette { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .i-specs, .i-marks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .i-apps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .app--cards, .app--chips { grid-column: 1 / -1; }
  .app--sign { grid-column: 1 / -1; grid-row: auto; }
  .app--plate, .app--key { grid-column: span 1; }
}
@media (max-width: 860px) {
  .i-cover { grid-template-columns: 1fr; padding-top: calc(var(--navh) + 24px); text-align: left; }
  .i-cover__mark svg { width: min(56vw, 260px); }
  .i-cols, .i-build, .i-type, .i-lockups { grid-template-columns: 1fr; }
  .i-ks, .i-palette { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .i-specs { grid-template-columns: 1fr; }
  .i-apps { grid-template-columns: 1fr; }
  .app--plate, .app--key { grid-column: 1 / -1; }
  .cards { grid-template-columns: 1fr 1fr 1fr; }
  .card--front { grid-column: 1 / -1; }
  .i-type__big { font-size: 120px; }
}
