/* FERRIER — identity case study */
body.brand { background: var(--caliche); }
.b-nav { position: fixed; z-index: 50; top: 0; left: 0; right: 0; display: flex; justify-content: space-between; align-items: center; padding: 18px var(--pad); color: var(--caliche); mix-blend-mode: difference; }
.b-nav a { text-decoration: none; }
.b-nav__brand { display: flex; align-items: center; gap: 12px; }
.b-nav__brand svg { height: 26px; fill: currentColor; }
.b-nav__mid { opacity: .7; }

.b-cover { min-height: 100vh; min-height: 100svh; background: var(--ink); color: var(--caliche); display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; gap: clamp(32px, 5vw, 80px); padding: 120px var(--pad) 80px; overflow: hidden; }
.b-cover__mark { position: relative; height: min(72vh, 680px); aspect-ratio: 73.6 / 100; justify-self: center; perspective: 1200px; }
.b-cover__mark .cs { position: absolute; transform-style: preserve-3d; transition: transform 1.1s cubic-bezier(.3,1.4,.4,1); }
.b-cover__mark .cs > i { position: absolute; inset: 0; backface-visibility: hidden; }
.b-cover__mark .cs > i:last-child { transform: rotateY(180deg); background: var(--caliche) !important; }
.b-cover__mark .cs.is-flip { transform: rotateY(180deg); }
.b-kicker { color: var(--stone-2); margin: 0 0 26px; }
.b-cover h1 { font-size: clamp(54px, 7vw, 124px); max-width: 11ch; }
.b-cover h1 em { background: var(--ramp); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: .06em; }
.b-cover .lead { color: rgba(236,230,218,.75); margin: 28px 0 36px; }
.b-meta { display: grid; gap: 0; max-width: 520px; }
.b-meta div { display: grid; grid-template-columns: 110px 1fr; padding: 10px 0; border-top: 1px solid rgba(236,230,218,.15); }
.b-meta dt { color: var(--stone-2); }
.b-meta dd { margin: 0; }

.b-sec { padding: clamp(90px, 12vw, 180px) 0; position: relative; }
.b-num { color: var(--muted); margin: 0 0 26px; }
.b-sec h2.display { font-size: clamp(46px, 6.4vw, 112px); max-width: 16ch; margin-bottom: 28px; }
.b-two { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 90px); align-items: center; }

.b-idea { background: var(--paper); }
.b-idea h2.display { max-width: 22ch; }
.b-morph { margin-top: clamp(48px, 7vw, 100px); display: grid; justify-items: center; gap: 30px; }
.b-morph svg { width: min(1100px, 100%); overflow: visible; fill: var(--ink); }
.m-mark { opacity: 0; }
.m-labels text { font-size: 9px; fill: var(--muted); letter-spacing: .1em; }
.b-btn { border: 1px solid var(--ink); background: transparent; border-radius: 99px; padding: 12px 20px; transition: background .3s, color .3s; }
.b-btn:hover { background: var(--ink); color: var(--caliche); }

.b-construct { background: var(--caliche); }
.b-list { list-style: none; padding: 0; margin: 30px 0 0; display: grid; }
.b-list li { padding: 12px 0; border-top: 1px solid var(--line); }
.b-list b { display: inline-block; min-width: 3em; color: var(--granite); font-weight: 500; }
.b-grid { background: var(--paper); border-radius: 6px; padding: 24px; }
.b-grid svg { width: 100%; }
.g-grid line { stroke: rgba(18,17,14,.12); stroke-width: .25; }
.g-roof { stroke: var(--ir-4); stroke-width: .5; stroke-dasharray: 2 1.5; }
.g-mark { fill: var(--ink); }
.g-dim line { stroke: var(--granite); stroke-width: .4; }
.g-dim text { font-size: 4px; fill: var(--muted); letter-spacing: .05em; }
.g-dim .g-acc { fill: var(--ir-4); font-size: 5px; }

.b-word { background: var(--ink); color: var(--caliche); }
.b-word .b-num { color: var(--stone-2); }
.b-wordmark { margin: clamp(40px, 6vw, 90px) 0; }
.b-wordmark svg { width: 100%; fill: var(--caliche); }
.b-wordmark__notes { display: flex; justify-content: space-between; margin-top: 18px; color: var(--stone-2); border-top: 1px solid rgba(236,230,218,.2); padding-top: 14px; }
.b-lockups { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.lk { aspect-ratio: 4 / 3; border-radius: 6px; display: flex; align-items: center; justify-content: center; gap: 18px; padding: 24px; }
.lk__m { height: 26%; width: auto; }
.lk__w { height: 11%; width: auto; }
.lk--light { background: var(--caliche); fill: var(--ink); }
.lk--dark { background: #0C0522; fill: var(--caliche); }
.lk--stack { flex-direction: column; gap: 14px; }
.lk--stack .lk__m { height: 30%; } .lk--stack .lk__w { height: 9%; }
.lk--stack span { font-size: 10px; }
.lk--cedar { background: var(--cedar); fill: var(--ink); color: var(--ink); }

.b-modes { background: var(--paper); }
.b-palettes { display: grid; grid-template-columns: 1fr 1.2fr; gap: 24px; margin-top: 50px; }
.pal { background: var(--caliche); border-radius: 6px; padding: 24px; display: grid; gap: 10px; align-content: start; }
.pal > p.mono { margin: 0 0 6px; color: var(--muted); }
.sw { display: flex; justify-content: space-between; align-items: flex-end; height: 74px; padding: 12px 14px; border-radius: 4px; background: var(--c); color: var(--caliche); }
.sw[data-l] { color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.sw b { font: 400 26px/1 var(--serif); }
.sw span { font-family: var(--mono); font-size: 11px; letter-spacing: .06em; }
.pal--ir { background: #0C0522; color: #F4E9FF; }
.pal--ir > p.mono { color: #A99BD8; }
.ramp { display: grid; grid-template-columns: repeat(9, 1fr); height: 260px; gap: 4px; perspective: 600px; }
.ramp i { background: var(--c); border-radius: 3px; transition: transform .8s cubic-bezier(.3,1.5,.4,1); }
.ramp:hover i { transform: rotateY(28deg); }
.ramp__labels { display: flex; justify-content: space-between; color: #A99BD8; }
.b-small { font-size: 14px; color: #D8CCF5; max-width: 34em; }

.b-type { background: var(--caliche); }
.b-type__grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 24px; margin-top: 30px; }
.tspec { border-top: 1px solid var(--ink); padding-top: 18px; display: grid; gap: 22px; align-content: start; }
.tspec span { color: var(--muted); }
.tspec b.display { font-size: clamp(64px, 8vw, 140px); }
.tspec p { margin: 0; font-size: 19px; }
.tspec__data { font-size: 15px !important; line-height: 1.8; }

.b-motion { background: var(--ink); color: var(--caliche); }
.b-motion .b-num { color: var(--stone-2); }
.b-motion .lead { color: rgba(236,230,218,.75); }
.b-louver { position: relative; aspect-ratio: 16 / 9; border-radius: 6px; overflow: hidden; display: grid; perspective: 900px; }
.b-louver .ls { position: relative; transform-style: preserve-3d; transition: transform .9s cubic-bezier(.3,1.45,.4,1); }
.b-louver .ls > i { position: absolute; inset: 0; backface-visibility: hidden; background-size: var(--bw) 100%; background-repeat: no-repeat; }
.b-louver .ls > i:first-child { background-image: url(../img/hero-day.jpg); }
.b-louver .ls > i:last-child { background-image: url(../img/hero-ir.jpg); transform: rotateY(180deg); }
.b-louver .ls.is-flip { transform: rotateY(180deg); }

.b-apps { background: var(--paper); }
.app { position: relative; margin: 0; }
.app img { width: 100%; border-radius: 6px; display: block; }
.app__frame { position: relative; }
.app figcaption { color: var(--muted); margin-top: 12px; }
.app--sign { margin: 40px 0 24px; }
.app__sign { position: absolute; left: 30.6%; top: 39.2%; width: 38.9%; height: 29.6%; display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 6%; padding: 0 6%; color: var(--caliche); }
.app__sign-l svg { height: clamp(40px, 9vw, 130px); width: auto; }
.app__sign-r svg { width: 100%; fill: var(--caliche); }
.app__sign-r p { margin: 6% 0 0; font-size: clamp(6px, .82vw, 12px); color: rgba(236,230,218,.75); }
.app__sign-hers { color: var(--ir-7) !important; margin-top: 2% !important; }
.app-row { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 24px; }
.app--cards .app__card { position: absolute; left: 17.4%; top: 39%; width: 20.8%; height: 23.4%; display: grid; place-items: center; }
.app--cards .app__card svg { height: 46%; aspect-ratio: 73.6 / 100; width: auto; fill: #2a2622; opacity: .88; mix-blend-mode: multiply; }
.app--cards .app__note { position: absolute; left: 41.4%; top: 27.8%; width: 25%; height: 45%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 0 2%; color: #3a352e; text-align: center; }
.app--cards .app__note svg { width: 74%; aspect-ratio: 487 / 100; height: auto; flex: none; fill: #2a2622; opacity: .9; mix-blend-mode: multiply; }
.app--cards .app__note span { font-size: clamp(5px, .6vw, 10px); }
.app__note-addr { opacity: .6; }
.app-col { display: grid; gap: 24px; align-content: start; min-width: 0; }
.app--banner { min-width: 0; overflow: hidden; }
.app--icons { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.app--icons figcaption { grid-column: 1 / -1; }
.ico { aspect-ratio: 1; display: grid; place-items: center; border-radius: 22%; background: var(--ink); }
.ico svg { height: 52%; }
.ico--rd { border-radius: 50%; background: var(--caliche); box-shadow: inset 0 0 0 1px var(--line); fill: var(--ink); }
.ico--cedar { background: var(--cedar); fill: var(--ink); border-radius: 8px; }
.banner { display: flex; align-items: center; gap: 22px; height: 84px; background: var(--ink); color: var(--caliche); border-radius: 4px; overflow: hidden; white-space: nowrap; padding-left: 20px; background-image: repeating-linear-gradient(90deg, rgba(236,230,218,.05) 0 14px, transparent 14px 22px); }
.banner svg { height: 46px; flex: none; fill: var(--ir-7); }
.banner span { animation: marquee 18s linear infinite; }
@keyframes marquee { to { transform: translateX(-100%); } }
.plaque { aspect-ratio: 5 / 3; border-radius: 6px; display: grid; place-items: center; background: radial-gradient(120% 90% at 30% 20%, #C9A46A, #8E6A35 60%, #5E4521); box-shadow: inset 0 0 0 6px rgba(0,0,0,.12), inset 0 2px 12px rgba(255,255,255,.3); }
.plaque svg { width: 70%; }
.pl-g { stroke: rgba(40,25,8,.5); stroke-width: 1; }
.pl-s { fill: rgba(40,25,8,.35); }
.pl-m { fill: #3A2812; }

.b-voice { background: var(--ink); color: var(--caliche); }
.b-voice .b-num { color: var(--stone-2); }
.b-voice__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.b-voice__grid div { border-top: 1px solid rgba(236,230,218,.2); padding-top: 20px; }
.b-voice__grid b { font-size: clamp(32px, 3.2vw, 54px); display: block; margin-bottom: 16px; }
.b-voice__grid div:first-child b { background: var(--ramp); -webkit-background-clip: text; background-clip: text; color: transparent; }
.b-voice__grid p { color: rgba(236,230,218,.7); margin: 0; }

@media (max-width: 1000px) {
  .b-cover, .b-two, .b-palettes, .app-row { grid-template-columns: 1fr; }
  .b-cover__mark { height: 52vh; }
  .b-lockups, .b-type__grid, .b-voice__grid { grid-template-columns: 1fr 1fr; }
  .b-nav__mid { display: none; }
}
@media (max-width: 640px) {
  .b-lockups, .b-type__grid, .b-voice__grid { grid-template-columns: 1fr; }
  .b-wordmark__notes { flex-wrap: wrap; gap: 8px; }
}
