/* Shared layout for the case study pages (/case-studies), from the Figma "Madison Lane" frame: one centred
 * 950px column, a bold title, a wide hero, the write-up, then image rows.
 * Every block is separated by the same --space, so the page rhythm is even. */
@font-face{font-family:Archivo;font-style:normal;font-weight:400;font-display:optional;src:url(/fonts/archivo-latin-400-normal.woff2) format('woff2')}
@font-face{font-family:Archivo;font-style:normal;font-weight:700;font-display:optional;src:url(/fonts/archivo-latin-700-normal.woff2) format('woff2')}
@font-face{font-family:"Archivo Fallback";src:local("Arial");size-adjust:98.7%;ascent-override:88.95%;descent-override:21.28%;line-gap-override:0%}
:root{--bg:#000;--fg:#fff;--fg-dim:#a0a0a0;--hl:#f7f7da;--col:950px;--space:clamp(28px,5vw,56px);--gap:clamp(10px,1.6vw,16px)}
*{box-sizing:border-box}
body{margin:0;background:var(--bg);color:var(--fg);font-family:Archivo,"Archivo Fallback","Helvetica Neue",Helvetica,Arial,sans-serif;-webkit-font-smoothing:antialiased;overflow-x:hidden}
.topbar{position:fixed;top:0;left:0;right:0;z-index:50;height:52px;display:flex;align-items:center;justify-content:flex-end;padding:0 clamp(12px,2.5vw,24px);background:#000}
.menu-word{color:#fff;display:flex;align-items:center;justify-content:center;width:52px;height:52px;padding:10px;border:0;background:transparent;cursor:pointer;transition:opacity .2s ease}
.menu-word svg{display:block;width:32px;height:32px}
.menu-word:hover,.menu-word:focus-visible{opacity:.7}
main{margin:0;padding:calc(52px + var(--space)) clamp(20px,5vw,64px) var(--space);display:flex;flex-direction:column;gap:var(--space)}
h1{margin:0;font-size:clamp(2.3rem,7vw,5rem);font-weight:700;line-height:1.08;letter-spacing:-.015em}
img{display:block;width:100%;height:auto}
figure{margin:0}
.hero img,.wide img{border-radius:2px;background:#fff}
.text{max-width:900px;font-size:1rem;font-weight:400;line-height:1.55}
.text h2,.text h3{margin:0 0 .6em;font-size:1rem;font-weight:600}
.text p,.text ul{margin:0 0 1.6em}
.text ul{padding-left:1.5em}
.text li{margin-bottom:.3em}
.text>*:last-child{margin-bottom:0}
.note{padding:.8rem 1rem;border:1px dashed rgba(247,247,218,.45);color:var(--hl);font-size:.875rem}
/* Image row: widths follow the artwork's own shape, heights match. */
.row{display:flex;gap:var(--gap);align-items:stretch}
.row figure{flex:var(--w,1) 1 0;min-width:0}
.row img{height:100%;object-fit:cover;aspect-ratio:var(--ar,1/1);background:#fff}
@media(max-width:640px){.row{flex-direction:column}.row figure{flex:none}.row img{aspect-ratio:var(--ar,1/1)}}
.pager{display:flex;align-items:center;justify-content:space-between;gap:1rem}
.back{color:var(--fg-dim);font-size:.875rem;text-decoration:none}
.back:hover,.back:focus-visible{color:var(--hl)}
footer{margin:0;padding:0 clamp(20px,5vw,64px) var(--space);color:var(--fg-dim);font-size:.7rem}
/* Text and image blocks sit in a 900px column inside the 950px hero, as in the Figma frames. */
.inset{width:100%}
.brentwood-top{display:grid;grid-template-columns:541fr 326fr;gap:var(--gap)}
.brentwood-top .col{display:flex;flex-direction:column;gap:var(--gap);min-width:0}
.brentwood-top img{height:100%;object-fit:cover;background:#fff}
.thumbs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:var(--gap)}
.thumbs img{aspect-ratio:1/1;object-fit:cover;background:#fff}
@media(max-width:640px){.brentwood-top{grid-template-columns:1fr}.thumbs{grid-template-columns:repeat(2,minmax(0,1fr))}}
/* Both case studies share one page: each is a section with its own title. */
.case{display:flex;flex-direction:column;gap:var(--space);scroll-margin-top:calc(52px + var(--space))}
.case+.case{margin-top:var(--space)}
.case-title{margin:0;font-size:1.6rem;font-weight:700;line-height:1.15;letter-spacing:-.01em}

/* Full width, like the other pages. The hero logo is the same badge as on /who-we-are. */
.brand{display:block;width:clamp(165.888px,21.12vw,253.44px);height:auto;margin:0;color:#36454f;filter:brightness(.64)}
.topbar{gap:8px}
.bar-left{margin-right:auto;display:flex;align-items:center;gap:12px}
.bar-logo{display:flex;align-items:center;opacity:0;visibility:hidden;transition:opacity .8s ease,visibility 0s .8s}
.bar-logo.on{opacity:1;visibility:visible;transition:opacity .8s ease}
.bar-logo img{display:block;width:32px;height:32px}
