@font-face { font-family: "Tiempos Fine"; src: url(fonts/TiemposFine.ttf) format("truetype"); font-weight: 300 400; font-display: swap; }
@font-face { font-family: "Suisse Int'l"; src: url(fonts/SuisseIntl-Regular.ttf) format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Suisse Int'l"; src: url(fonts/SuisseIntl-Medium.ttf) format("truetype"); font-weight: 500; font-display: swap; }
/* Case study page. Rhythm, reveal easing, hero narrowing, grid, pill and lightbox follow Studio ONTO /select (measured values in ref-r23/SPEC.md).
   WebTag TYPE SCALE (measured on populous.com; stand-ins until the licensed files are added):
   --wt-serif  Tiempos Fine (local files in fonts/, never committed)   quote 61px / 61px / -1.2px
   --wt-sans   Suisse Int'l Regular and Medium (local files), fallback Switzer   body 16px / 24px
   Sizes: display (hero title, closing line), 61 quote, 36 lead, 27 section heading (32.4), 16 body (24), 12 small labels and legends.
   Client brand specimens and swatches keep the client's own fonts (Bodoni Moda, Albert Sans). */
body.cs { --wt-serif: "Tiempos Fine", Georgia, serif; --wt-sans: "Suisse Int'l", "Switzer", "Helvetica Neue", Arial, sans-serif; --fs-quote: clamp(28px, 3.2vw, 61px); --fs-lead: clamp(24px, 1.9vw, 36px); --fs-h: clamp(20px, 1.4vw, 27px); font-family: var(--wt-sans); --m: clamp(20px, 2.78vw, 40px); --g: 20px; --o: cubic-bezier(.15, .9, .34, .95); --ink: #1e1e1e; --lb: #9b9b9b; --sec: clamp(120px, 14vw, 240px); background: #fff; color: var(--ink); }
.cs main { display: block; }
.cs :where(p, dd, dt) { margin: 0; }

/* hero: title top-left, pill beside it, details bar at the foot of the first 65vh */
.top { position: relative; height: 65vh; min-height: 430px; padding: calc(72px + 3vh) var(--m) 0; }
.top h1 { display: flex; align-items: flex-start; margin: 0; font-weight: 400; animation: tin 1.4s var(--o) .2s both; transform-origin: 0 0; }
.top .t { font-size: clamp(3.6rem, 14.7vw, 13.2rem); line-height: 1; letter-spacing: -.045em; font-weight: 400; margin-left: -.04em; }
.top .tag { margin: clamp(.6rem, 1.6vw, 2rem) 0 0 clamp(.8rem, 2vw, 2rem); padding: 0 .55rem; height: 18px; line-height: 16px; border: 1px solid var(--ink); border-radius: 9px; font-size: 12px; letter-spacing: 0; white-space: nowrap; font-weight: 400; }
.det { position: absolute; left: var(--m); right: var(--m); bottom: 1.5rem; display: flex; justify-content: space-between; gap: 24px; font-size: 16px; line-height: 24px; letter-spacing: 0; animation: tf 1s var(--o) .8s both; }
@keyframes tin { from { opacity: 0; transform: scale(1.08); } to { opacity: 1; transform: none; } }
@keyframes tf { from { opacity: 0; } to { opacity: 1; } }

.himg { position: relative; }
.hm { height: 100vh; min-height: 560px; background: #d9d9d9; overflow: hidden; clip-path: inset(0 var(--in, 0px)); animation: hu 1s var(--o) .8s both; }
.hm img { width: 100%; height: 100%; object-fit: cover; display: block; }
@keyframes hu { from { opacity: 0; transform: translate3d(0, 6rem, 0); } to { opacity: 1; transform: none; } }
.cap { display: flex; align-items: center; gap: 22px; margin: 14px 0 0; font-size: 12px; line-height: 1; color: #9b9b9b; letter-spacing: 0; }
.cap svg { fill: #9b9b9b; flex: none; }
.himg .cap { padding: 0 var(--m); }

/* statements: ONTO case__intro (48% wide, 25% indent) */
.brief { width: 48%; margin: 0 0 0 var(--m); text-indent: 25%; font-size: clamp(20px, 1.8vw, 28px); line-height: 1.2; letter-spacing: -.02em; font-weight: 400; }
.big-intro { margin-top: var(--sec); }
.sec { margin-top: var(--sec); }
.sec > .brief { margin-bottom: clamp(72px, 8vw, 130px); }

/* rows: label 52%, two 24% columns */
.info { display: flex; padding: 0 var(--m); }
.info > div { width: 24%; padding-right: 2%; font-size: 16px; line-height: 24px; }
.info > .lb { width: 52%; padding-right: 0; font-size: 12px; line-height: 1.2; text-transform: uppercase; letter-spacing: .02em; color: var(--lb); }
.sec > .info + div, .sec > .info + .pair { margin-top: clamp(48px, 5vw, 80px); }
.info p + p { margin-top: 12px; }

/* panels + site frames */
.pn { position: relative; background: #d9d9d9; overflow: hidden; display: grid; place-items: center; }
.pn > img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cell { min-width: 0; display: flex; flex-direction: column; }
.cell .cap { padding-left: 0; }
.pair { display: grid; grid-template-columns: 1fr 1.6fr; gap: var(--g); margin: 0 var(--m); align-items: end; }
.pair .p-a { aspect-ratio: 4 / 5; }
.pair .p-b { aspect-ratio: 3 / 2; }
.wf { width: min(84%, 1280px); border-radius: 9px; overflow: hidden; background: #fff; box-shadow: 0 40px 90px -40px rgba(0, 0, 0, .45), 0 0 0 1px rgba(0, 0, 0, .06); }
.wf img { display: block; width: 100%; height: auto; }
.bar { height: 26px; display: flex; align-items: center; gap: 6px; padding: 0 12px; background: #f6f6f6; border-bottom: 1px solid #ebebeb; font-size: 11px; color: #8a8a8a; }
.bar i { width: 8px; height: 8px; border-radius: 50%; background: #d4d4d4; }
.bar span { margin: 0 auto; transform: translateX(-18px); }
.ph { width: 46%; max-width: 290px; aspect-ratio: 1 / 2.16; border-radius: 34px; padding: 7px; background: #0b0b0b; box-shadow: 0 40px 90px -40px rgba(0, 0, 0, .55); }
.ph img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 27px; display: block; }
[data-mango] { cursor: zoom-in; }

/* specimens (client's own ground) */
.spec { display: flex; }
.spec .pn { flex: 1; }
.specs { display: grid; grid-template-columns: repeat(var(--n, 2), 1fr); gap: var(--g); margin: 0 var(--m); }
.pn.dk { background: #0f0b0a; color: #e8d8c0; display: block; padding: clamp(24px, 3vw, 48px); min-height: 40vw; }
.aa { font-size: clamp(9rem, 18vw, 18rem); line-height: .9; letter-spacing: -.02em; }
.spec .sm { display: flex; justify-content: space-between; gap: 16px; margin: clamp(20px, 3vw, 48px) 0 clamp(24px, 3vw, 44px); padding-top: 14px; border-top: 1px solid rgba(232, 216, 192, .18); font-size: 13px; font-family: "Switzer", sans-serif; }
.spec .sm .sr { opacity: .64; text-align: right; }
.ln { font-size: clamp(1.5rem, 2.3vw, 2.4rem); line-height: 1.15; letter-spacing: -.01em; }
.ln + .ln { margin-top: 10px; }
.gl { margin-top: clamp(24px, 3vw, 44px); font-size: clamp(.8rem, 1vw, 1rem); line-height: 1.5; opacity: .64; word-break: break-all; }

/* swatches */
.sws { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--g); margin: 0 var(--m); }
.sw .pn { aspect-ratio: 3 / 4; display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-start; padding: clamp(14px, 1.6vw, 24px); font-size: 13px; line-height: 1.3; }
.sw b { font-weight: 500; font-size: clamp(1.1rem, 1.7vw, 1.6rem); letter-spacing: -.02em; }
.sw span { margin-top: 6px; opacity: .72; }
.sw em { font-style: normal; margin-top: auto; font-size: clamp(1rem, 1.4vw, 1.3rem); letter-spacing: .01em; }
.sw:first-child .pn { box-shadow: none; }

/* context (Populous project page: 36px intro, ruled rows, value from 69%) and approach (one column from 50%) */
.ctx2 { margin-top: clamp(100px, 10vw, 200px); }
.lead2 { width: 48%; margin: 0 0 0 var(--gm); font-size: var(--fs-lead); line-height: 1.2; letter-spacing: -.03em; font-weight: 400; }
.tbl2 { margin: clamp(90px, 9.4vw, 178px) var(--gm) 0; padding: 0; }
.tbl2 > div { display: flex; border-top: 1px solid #000; padding: 8px 0 18.7px; font-size: 16px; line-height: 24px; }
.tbl2 dt { width: 69%; }
.tbl2 dd { margin: 0; flex: 1; }
.tbl2 dd span { display: block; }
.apr { margin-top: clamp(100px, 10vw, 200px); }
.apc { grid-column: 2; width: 59%; margin-top: clamp(100px, 8vw, 160px); font-size: 16px; line-height: 24px; }
.apc p + p { margin-top: 24px; }

/* impact: label left, one text column from 50.5% (Populous approach block) */
.info.imp > .lb { width: 50.5%; }
.info.imp > .impc { width: 27%; padding: 0; font-size: 16px; line-height: 24px; }
.impc p + p { margin-top: 24px; }
.impc .note { color: #9b9b9b; font-size: 12px; }

/* highlights: Studio ONTO case-study format (notes row, grey block with an inset recording, legend under) */
.ap2 { display: grid; grid-template-columns: 1fr 1fr; column-gap: 20px; align-items: start; margin: 0 3.5vw; }
.hb1, .hb2 { min-width: 0; }
.gb { display: block; aspect-ratio: 16 / 10; background: #111; border-radius: 4px; }
.slb { all: unset; display: block; width: 100%; height: 100%; cursor: zoom-in; }
.slb:focus-visible .clip { outline: 2px solid #000; outline-offset: 3px; }
.clip { height: 100%; border-radius: 4px; overflow: hidden; background: #111; }
.clip video { display: block; width: 100%; height: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.ap2 .cap { margin-top: 14px; }

/* devices */
.pm { padding: 0; margin: clamp(48px, 5vw, 80px) var(--m) 0; display: grid; gap: var(--g); align-items: end; }
.pm.pair { grid-template-columns: 1.7fr 1fr; }
.pm .cell:first-child .pn { aspect-ratio: 1.3; }
.pm .cell:last-child .pn { aspect-ratio: .82; }
.pm .wf { width: 86%; }

/* sideways row */
.railwrap { position: relative; margin-top: clamp(40px, 4vw, 64px); }
.rail { display: flex; gap: var(--g); overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-left: var(--m); padding: 0 var(--m); scrollbar-width: none; cursor: grab; outline-offset: -2px; }
.rail::-webkit-scrollbar { display: none; }
.rail.drag { scroll-snap-type: none; cursor: grabbing; user-select: none; }
.rc { flex: none; width: clamp(300px, 44vw, 820px); scroll-snap-align: start; }
.rc img { display: block; width: 100%; height: auto; border-radius: 4px; }
.rn { display: flex; align-items: baseline; gap: 12px; margin-top: 16px; font-size: 16px; line-height: 24px; font-weight: 500; }
.rn span { font-size: 12px; font-weight: 400; color: var(--lb); }
.rl { margin-top: 4px; max-width: 34em; font-size: 16px; line-height: 24px; color: #5b5b5b; }
.arrows { display: flex; gap: 8px; margin: 28px var(--m) 0; }
.ar { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border: 1px solid #cfcfcf; border-radius: 4px; background: #fff; color: #010101; font: inherit; font-size: 15px; line-height: 1; cursor: pointer; transition: background .3s, color .3s, border-color .3s; }
.ar:hover:not(:disabled) { background: #010101; color: #fff; border-color: #010101; }
.ar:disabled { opacity: .3; cursor: default; }
.cnt { margin-right: 10px; font-size: 12px; font-variant-numeric: tabular-nums; color: var(--lb); }
.cnt b { color: var(--ink); font-weight: 400; }

/* media grid + viewer */
/* justified rows: every tile keeps its media's own shape (--ar = width / height, set in case-render.js), rows share one height, nothing is cropped */
.tiles { --rh: clamp(180px, 17vw, 340px); display: flex; flex-wrap: wrap; align-items: flex-start; gap: var(--g); margin: 32px var(--m) 0; }
.tiles::after { content: ''; flex: 10000 1 0; }
.tile { all: unset; box-sizing: border-box; display: block; cursor: pointer; min-width: 0; }
.tile, .tile.w { flex: var(--ar, 1.5) 1 calc(var(--ar, 1.5) * var(--rh)); aspect-ratio: var(--ar, 1.5); }
/* desktop: fixed-height mosaic (positions set by justify() in case-render.js); photos fill their cell, reels keep their shape */
.tiles.mz { display: block; position: relative; }
.tiles.mz::after { content: none; }
.tiles.mz .tile { position: absolute; aspect-ratio: auto; }
.tile:focus-visible .pn { outline: 2px solid #000; outline-offset: 3px; }
.tile .pn { height: 100%; border-radius: 4px; }
.tile .pn > img, .tile .pn > video { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 1.2s var(--o); }
.tile:hover .pn > img, .tile:hover .pn > video { transform: scale(1.05); }
.play { position: absolute; left: 12px; bottom: 12px; width: 36px; height: 36px; border-radius: 50%; background: rgba(255, 255, 255, .92); display: grid; place-items: center; }
.play svg { fill: #000; margin-left: 2px; }
.lbx { position: fixed; inset: 0; z-index: 1300; background: #0b0b0b; color: rgba(255, 255, 255, .8); font-size: 14px; line-height: 20px; opacity: 0; visibility: hidden; transition: opacity .4s ease, visibility .4s; }
.lbx.on { opacity: 1; visibility: visible; }
.lbx button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
.lbx-h { position: absolute; top: 0; left: 0; right: 0; display: flex; justify-content: space-between; align-items: center; height: 56px; padding: 0 clamp(20px, 2.8vw, 40px); }
.lbx-x { padding: 8px 0 !important; transition: opacity .3s; }
.lbx-x:hover, .lbx-a:hover { opacity: .6; }
.lbx-st { position: absolute; inset: calc(56px + 3vh) 8vw calc(124px + 3vh); }
.lbx-f { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; opacity: 0; transform: scale(1.02); transition: opacity .6s var(--o), transform .6s var(--o); }
.lbx-f.in { opacity: 1; transform: none; }
.lbx-f img, .lbx-f video { max-width: 100%; max-height: 100%; object-fit: contain; display: block; border-radius: 2px; }
.lbx-a { position: absolute; top: 50%; margin-top: -24px; width: 48px; height: 48px; font-size: 28px; font-weight: 300; line-height: 1; transition: opacity .3s; }
.lbx-p { left: 1.6vw; } .lbx-n { right: 1.6vw; }
.lbx-b { position: absolute; left: clamp(20px, 2.8vw, 40px); right: clamp(20px, 2.8vw, 40px); bottom: 82px; display: flex; align-items: baseline; gap: 24px; }
.lbx-c { font-variant-numeric: tabular-nums; color: rgba(255, 255, 255, .5); }
.lbx-th { position: absolute; left: 0; right: 0; bottom: 20px; height: 44px; display: flex; gap: 8px; justify-content: safe center; overflow-x: auto; padding: 0 clamp(20px, 2.8vw, 40px); scrollbar-width: none; }
.lbx-th::-webkit-scrollbar { display: none; }
.lbx-th button { flex: none; width: 70px; height: 44px; opacity: .4; transition: opacity .3s; }
.lbx-th button.on, .lbx-th button:hover { opacity: 1; }
.lbx-th img { width: 100%; height: 100%; object-fit: cover; border-radius: 2px; display: block; }

/* images described (Populous showcase: 3 figures, 14px caption under) */
.dsc { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--g); margin: 0 var(--m); align-items: start; }
.dsc figure { margin: 0; }
.dsc .pn { aspect-ratio: 799 / 632; }
.dsc figcaption { display: flex; flex-direction: column; gap: 4px; margin-top: 14px; font-size: 16px; line-height: 24px; max-width: 30em; }
.dsc figcaption b { font-weight: 500; }
.dsc figcaption span { color: #5b5b5b; }

/* client quote (Populous: 61px serif centred in 64%, name at 62%) */
.qt { padding: clamp(40px, 6vw, 100px) 0; }
.qt blockquote { width: 64%; margin: 0 auto; text-align: center; font-family: var(--wt-serif); font-weight: 300; font-size: var(--fs-quote); line-height: 1; letter-spacing: -.02em; color: #010101; }
.qt .qn { margin: clamp(40px, 4.5vw, 80px) 0 0 50.5%; font-size: 16px; line-height: 24px; }
.qt-ph, .ph-sec { position: relative; outline: 1px dashed #bdbdbd; outline-offset: -1px; }
.qt-ph blockquote, .qt-ph .qn, .ph-sec p { color: #9a9a9a; }
.ph-tag { position: absolute; top: 16px; left: var(--m); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: #9a9a9a; }

.ul { border-bottom: 1px solid currentColor; }

/* facts and figures (Populous: rounded coloured panel, serif heading, 4px outlined cards, 80px numbers) */
.fp { background: #0F0B0A; color: #E8D8C0; margin: var(--sec) clamp(12px, 1.25vw, 24px) 0; padding: 40px var(--gm) 80px; border-radius: 12px; }
.fp h2 { margin: 0; font-weight: 400; font-size: var(--fs-h); line-height: 1.2; letter-spacing: 0; }
.fp ul { list-style: none; margin: clamp(60px, 8vw, 160px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(var(--n, 4), 1fr); gap: var(--g); }
.fp li { display: flex; flex-direction: column; justify-content: space-between; gap: 40px; min-height: clamp(190px, 15vw, 287px); padding: 20px; border: 1px solid rgba(232, 216, 192, .2); border-radius: 4px; }
.fp li p { font-size: 16px; line-height: 24px; font-weight: 500; opacity: .7; }
.fp li b { font-family: var(--wt-serif); font-weight: 300; font-size: clamp(3.2rem, 5vw, 5rem); line-height: 1; letter-spacing: -.02em; }

/* explore more projects (Populous: 27px heading, 2 cards 799x461, 4px radius, 16px caption row) */
.more { margin: var(--sec) var(--gm) 0; }
.more h2 { font-weight: 400; font-size: var(--fs-h); line-height: 1.2; letter-spacing: 0; }
.more ul { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: var(--g); }
.more a { display: block; }
.mi { aspect-ratio: 799 / 461; border-radius: 4px; overflow: hidden; background: #d9d9d9; }
.mi img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 1.2s var(--o); }
.more a:hover .mi img { transform: scale(1.04); }
.more p { display: flex; justify-content: space-between; gap: 16px; margin-top: 0; padding-top: 0; line-height: 24px; font-size: 16px; }

/* explore our work band (Populous globe: 36px/-1.8 statement left, 16px line + 4px button right) */
.band { position: relative; margin-top: var(--sec); height: clamp(640px, 100vh, 1000px); background: #02030a; color: #fff; overflow: hidden; }
.band img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .5; }
.band h2 { position: absolute; left: var(--gm); top: 40%; width: min(448px, 38%); margin: 0; font-weight: 400; font-size: var(--fs-lead); line-height: 1.2; letter-spacing: -.05em; }
.bc { position: absolute; left: 72%; top: 40%; width: min(389px, 22%); }
.bc p { font-size: 16px; line-height: 24px; }
.pbtn { display: inline-flex; align-items: center; gap: 8px; margin-top: 40px; padding: 6px 12px 4.8px; border-radius: 4px; background: #010101; color: #fff; font-size: 12px; line-height: 22px; font-weight: 500; letter-spacing: .04em; transition: transform .4s var(--o); }
.pbtn.wh { background: #fff; color: #010101; margin-top: 36px; }
.pbtn:hover { transform: translateY(-2px); }
.pbtn i { font-style: normal; }

/* final call to action (Populous: 80px / -4px centred, 200px above, 160px below) */
.cta { margin: clamp(120px, 10.5vw, 200px) auto clamp(100px, 8.4vw, 160px); padding: 0 var(--gm); text-align: center; display: flex; flex-direction: column; align-items: center; }
.cta h2 { margin: 0; font-weight: 400; font-size: clamp(2.8rem, 4.2vw, 80px); line-height: 1; letter-spacing: -.05em; }
.cta .pbtn { margin-top: 40px; }

.only .top, .only .himg { animation: none; }
.only .sec, .only .more, .only .fp, .only .cta { margin-top: 0; }
.only .sec { padding: 40px 0; }
.only .big-intro { margin: 0; padding: 40px 0; }
.only .cta, .only .more { padding-top: 40px; padding-bottom: 40px; margin-bottom: 0; }
.only .band { margin-top: 0; }
.only .fp { margin-top: 20px; margin-bottom: 20px; }
.only .ft { clip-path: none; min-height: 0; height: 100%; }
.only .ft-sa { top: 0; height: 100%; clip-path: none; }
.only .ft-m { position: static; min-height: 100%; }

/* reveals: ONTO text-anim / img-anim */
.ta { opacity: 0; visibility: hidden; transform: translate3d(0, 3rem, 0); }
.ta.anim { opacity: 1; visibility: visible; transform: none; transition: all 1.4s var(--o) .4s; }
.ia .pn { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); opacity: 0; visibility: hidden; transform: translate3d(0, 5rem, 0); }
.ia.anim .pn { opacity: 1; visibility: visible; transform: none; transition: all 1.4s var(--o); }
.ia.d.anim .pn { transition: transform 1.4s var(--o) .2s, opacity 1.4s var(--o) .2s, visibility 1.4s var(--o) .2s, clip-path 1.4s var(--o); }
.ia.anim:hover .pn { clip-path: polygon(2% 2%, 98% 2%, 98% 98%, 2% 98%); }
.ia .cap { opacity: 0; transition: opacity 1s var(--o); }
.ia.anim .cap { opacity: 1; transition-delay: .6s; }

/* fixed pill */
.pill { position: fixed; z-index: 15; left: 0; right: 0; bottom: 4vh; margin: auto; width: max-content; padding: 0 20px; height: 48px; border-radius: 33px; background: #000; color: #fff; display: flex; align-items: center; justify-content: center; gap: 4px; font-size: 14px; letter-spacing: -.05px; white-space: nowrap; transition: transform 1s var(--o); transform-origin: bottom center; }
.pill.hide { transform: translateY(10rem); }
.pill i { font-style: normal; color: #bdbbb6; }
@media (hover: hover) { .pill:hover { transform: scale(1.2); } .pill.hide:hover { transform: translateY(10rem); } }

/* cursor + lightbox */
.cur { position: fixed; z-index: 1200; top: -10px; left: -10px; width: 20px; height: 20px; pointer-events: none; transform: translate(-100px, -100px); transition: transform .9s var(--o); display: none; }
.cur::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: #e4e4e4; opacity: .4; transition: all .4s var(--o); }
.cur svg { position: absolute; top: 3px; left: 3px; z-index: 1; fill: none; stroke: #fff; stroke-width: 1.6; opacity: 0; transform: scale(0) rotate(45deg); transition: all .6s var(--o); }
.cur.hv::after { background: #000; opacity: .8; transform: scale(1.8); }
.cur.hv svg { opacity: 1; transform: none; }
@media (hover: hover) and (pointer: fine) { .cur { display: block; } }
.mg { position: fixed; inset: 0; z-index: 1100; background: #fff; opacity: 0; transition: opacity .3s ease .3s; cursor: zoom-out; }
.mg.on { opacity: 1; transition: opacity .1s ease; }
.mgi { position: fixed; z-index: 1101; margin: 0; cursor: zoom-out; transition: transform .3s ease; transform-origin: 0 0; }

@media (max-width: 991px) {
  .top { height: 60vh; }
  .top .t { font-size: 18vw; }
  .top h1.long { flex-wrap: wrap; row-gap: .5rem; } /* a long client name (over 9 letters) drops the pill under it on a phone instead of off-screen */
  .det { font-size: 16px; flex-direction: column; gap: 4px; bottom: 1.2rem; }
  .brief { width: auto; margin-right: var(--m); text-indent: 0; }
  .lead2 { width: auto; margin-right: var(--gm); }
  .tbl2 > div { flex-direction: column; gap: 4px; }
  .tbl2 dt { width: 100%; color: var(--lb); font-size: 12px; text-transform: uppercase; letter-spacing: .02em; }
  .info { flex-wrap: wrap; row-gap: 14px; }
  .info > div, .info > .lb { width: 100%; padding: 0; }
  .info > .lb { margin-bottom: 4px; }
  .pair, .specs, .pm.pair { grid-template-columns: 1fr; }
  .pair .p-a { aspect-ratio: 4 / 4.6; }
  .pn.dk { min-height: 0; }
  .sws { grid-template-columns: 1fr 1fr; row-gap: var(--g); }
  .pm .wf { width: 90%; }
  .ph { width: 58%; }
  .pm .cell:first-child .pn { aspect-ratio: 1.15; }
  .pm .cell:last-child .pn { aspect-ratio: .85; }
  .ap2 { display: flex; flex-direction: column; margin: 0 var(--gm); }
  .apc { width: auto; margin: 36px 0 0; }
  .info.imp > .lb, .info.imp > .impc { width: 100%; }
  .apL { margin-bottom: 28px; }
  .hb2 { margin-bottom: 0; }
  .rc { width: 78vw; }
  .tiles { --rh: 34vw; }
  .lbx-st { inset: 60px 12px 130px; }
  .lbx-a { display: none; }
  .lbx-b { bottom: 78px; gap: 12px; }
  .pill { bottom: 20px; }
  .dsc { grid-template-columns: 1fr; row-gap: 32px; }
  .qt blockquote, .qt .qn { width: auto; margin-left: var(--m); margin-right: var(--m); }
  .qt .qn { text-align: left; }
  .qt blockquote { text-align: left; }
  .fp { padding: 32px 20px 24px; }
  .fp ul { grid-template-columns: 1fr 1fr; margin-top: 48px; }
  .fp li { min-height: 160px; padding: 14px; }
  .more { margin-left: var(--m); margin-right: var(--m); }
  .more ul { grid-template-columns: 1fr; gap: 28px; }
  .band h2 { left: var(--m); top: 12%; width: 86%; }
  .bc { left: var(--m); top: auto; bottom: 12%; width: 86%; }
  .cta { padding: 0 var(--m); }
}
@media (prefers-reduced-motion: reduce) {
  .top h1, .det, .hm { animation: none; }
  .lbx, .lbx-f, .tile .pn > img, .tile .pn > video { transition: none; }
  .ta, .ia .pn, .ia .cap { opacity: 1; visibility: visible; transform: none; transition: none; }
}

/* case page header: tabs and the gallery button live inside the main header (added by hdr.js when body[data-case-nav]) */
.hnav, .hxp { opacity: 0; pointer-events: none; transition: opacity .5s var(--o); }
.hdr.cn-on .hnav, .hdr.cn-on .hxp { opacity: 1; pointer-events: auto; }
.hnav { position: absolute; left: max(var(--gm), 184px); top: 0; height: 100%; display: flex; align-items: center; gap: 20px; font-size: 16px; line-height: 24px; }
.hnav a { color: #9b9b9b; transition: color .3s; }
.hnav a:hover, .hnav a.on { color: #010101; }
.hxp { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: flex; align-items: center; gap: 8px; padding: 6px 12px 5px; border: 1px solid #e0e0e0; border-radius: 4px; background: #fff; color: #010101; font: 500 12px/22px var(--wt-sans); letter-spacing: .04em; cursor: pointer; }
.hxp svg { flex: none; }
@media (max-width: 991px) { .hnav, .hxp { display: none; } }


/* other pages header: label left, counter + square arrows + text on the right edge */
.oh { align-items: flex-start; justify-content: space-between; }
.oh > .lb { width: auto; }
.oh > .ohr { width: auto; padding: 0; display: flex; flex-direction: column; align-items: flex-end; gap: 20px; text-align: right; }
.oh .ohr p { max-width: 24em; font-size: 16px; line-height: 24px; }
.oc { display: flex; align-items: center; gap: 8px; }
.railwrap { margin-top: 32px; }

/* brand logo: small beside the name in the Client row, and one panel before the fonts */
.tbl2 dd.cl { display: flex; align-items: center; gap: 12px; }
.lgm { height: 28px; width: auto; max-width: 140px; object-fit: contain; display: block; }
.lgm.chip { box-sizing: content-box; padding: 6px 10px; border-radius: 6px; background: var(--lg); margin: -6px 0; }
.lgo { margin: 0 var(--m); }
.lgo .pn { padding: clamp(56px, 7vw, 112px) 24px; }
.lgo .lgt { margin: 0; font-weight: 500; font-size: clamp(28px, 4.4vw, 64px); line-height: 1.05; letter-spacing: -.02em; text-align: center; }
.lgo .pn > img { width: auto; height: auto; max-width: min(100%, 560px); max-height: 140px; object-fit: contain; }
@media (max-width: 991px) {
  .lgo .pn { padding: 48px 24px; }
  .lgo .pn > img { max-height: 80px; }
}

/* logo loop (case-logo.js): overlays sit exactly on the logo img, so nothing shifts */
.la-ov { position: absolute; pointer-events: none; display: block; }
.la-sheen { -webkit-mask: center / contain no-repeat; mask: center / contain no-repeat; background: linear-gradient(105deg, transparent 38%, rgba(255,255,255,.75) 50%, transparent 62%) 100% 0 / 300% 100% no-repeat; opacity: 0; mix-blend-mode: soft-light; }
.la-mask { -webkit-mask: linear-gradient(90deg, #000 42%, transparent 58%) 100% 0 / 250% 100% no-repeat; mask: linear-gradient(90deg, #000 42%, transparent 58%) 100% 0 / 250% 100% no-repeat; }
