/* Nov 12 (CJ): brands page as a gallery. One format for all six scenes: the mark centred and alone, a dark translucent
   layer over restaurant video/photos so it reads, and a small wall-label caption under a hairline (name, what it is, one
   quiet sentence). Deliberately different from the home Projects slides: no glass buttons, no large type.
   To undo: remove this file's <link> in brands.html and restore brands.html from backups/2026-11-12-pre-brands-format. */
.case-brands .brand-scene{padding-bottom:clamp(26px,4.6svh,46px);gap:clamp(20px,4svh,40px)}
/* The dark layer. --scrim sets its strength per scene. */
.case-brands .brand-scene::after{content:"";position:absolute;inset:0;z-index:-1;background:#07070a;opacity:var(--scrim,0);pointer-events:none}
.case-brands .brand-restaurant{--scrim:.38}
.case-brands .brand-highbucha{--scrim:.4}
/* The mark: centred on every scene, held to a similar optical size. */
.case-brands .brand-mark{width:min(46vw,560px);align-self:center;justify-self:center}
.case-brands .brand-mark>img{max-height:30svh;margin-inline:auto}
.case-brands .brand-camsoda .brand-mark{width:min(48vw,600px)}
.case-brands .brand-highbucha .brand-mark{width:min(24vw,290px);justify-self:center}
.case-brands .brand-highbucha .brand-mark>img{max-height:36svh}
.case-brands .brand-restaurant .brand-mark{width:min(44vw,520px)}
/* The wall label. */
.case-brands .brand-scene-caption{align-items:start;gap:32px;padding-top:18px;border-top:1px solid #ffffff2b}
.case-brands .brand-scene-caption h2{margin:0;font-family:var(--sans);font-size:12px;font-weight:500;line-height:1.4;letter-spacing:.16em;text-transform:uppercase;max-width:none}
.case-brands .brand-scene-caption .brand-placard-meta{margin:5px 0 0;max-width:none;font-size:12px;line-height:1.4;letter-spacing:.04em;color:#ffffff99}
.case-brands .brand-scene-caption>div:first-child>p:not(.brand-placard-meta){max-width:44ch;margin-top:12px;font-size:14px;line-height:1.55;color:#ffffffb3}
.case-brands .brand-scene-links{flex-direction:row-reverse;align-items:center;gap:30px}
.case-brands .brand-scene-link{gap:9px;padding:0 0 6px;border-bottom-color:#ffffff4d;font-size:11px;letter-spacing:.14em;text-transform:uppercase;white-space:nowrap}
.case-brands .brand-scene-links .restaurant-press{display:flex;align-items:center;gap:16px;filter:none;color:#ffffff99}
.case-brands .restaurant-press p{white-space:nowrap}
.case-brands .restaurant-press ul{flex-wrap:nowrap}
/* Quiet chevrons in place of the large ones. */
.case-brands .brand-scene-nav{padding-inline:clamp(2px,1vw,14px)}
.case-brands .brand-scene-nav button{width:44px;height:72px}
.case-brands .brand-scene-nav button>span{width:13px;border-top-width:1.5px;border-right-width:1.5px;filter:none;opacity:.6}
@media(hover:hover){.case-brands .brand-scene-nav button:not([aria-disabled=true]):hover>span{opacity:1}}
/* Arrival: the mark settles in, then the label. */
@media(prefers-reduced-motion:no-preference){
 .case-brands .brand-scene:not([inert]) .brand-mark{animation:brand-mark-in 1.5s cubic-bezier(.22,.8,.25,1) both}
 .case-brands .brand-scene:not([inert]) .brand-scene-caption{animation:brand-label-in 1s .45s ease both}
}
@keyframes brand-mark-in{from{opacity:0;transform:translateY(10px) scale(.985)}to{opacity:1;transform:none}}
@keyframes brand-label-in{from{opacity:0}to{opacity:1}}
@media(max-width:700px){
 .case-brands .brand-scene-caption{flex-direction:column;gap:16px;padding-top:14px}
 .case-brands .brand-scene-links{width:100%;flex-flow:row-reverse wrap;justify-content:space-between;gap:10px 16px}
 .case-brands .brand-scene-links .restaurant-press{margin-left:0;gap:10px}
 .case-brands .brand-mark,.case-brands .brand-restaurant .brand-mark{width:min(72%,420px)}
 .case-brands .brand-camsoda .brand-mark{width:min(78%,440px)}
 .case-brands .brand-highbucha .brand-mark{width:min(48%,210px)}
 .case-brands .brand-scene-caption>div:first-child>p:not(.brand-placard-meta){font-size:13px}
}
/* Hand-drawn marks (Louis Corner, Desnuda, Ilona): the logo writes itself on when the scene arrives, then rests.
   Kava's block mark stamps in instead. brands-gallery.js adds .is-drawing to the active scene. */
.case-brands .brand-mark>.brand-drawn-mark{display:block;width:100%;height:auto;max-height:30svh;margin-inline:auto;overflow:hidden;filter:drop-shadow(0 5px 22px #0008)}
.case-brands :is(.brand-restaurant-desnuda,.brand-restaurant-ilona) .brand-drawn-mark{filter:brightness(0) invert(1) drop-shadow(0 5px 22px #0008)}
.case-brands .brand-scene.is-drawing .reveal-stroke{animation-duration:3.2s}
.case-brands .brand-scene.is-drawing .logo-finish{animation-delay:3.15s}
.case-brands .brand-scene.is-drawing .mark-tagline{animation-delay:2.6s}
@media(prefers-reduced-motion:no-preference){
 .case-brands .brand-scene:not([inert]):has(.brand-drawn-mark) .brand-mark{animation:none}
 .case-brands .brand-scene:not([inert]):has(.brand-drawn-mark) .brand-scene-caption{animation-delay:1.6s}
 .case-brands .brand-restaurant-kava:not([inert]) .brand-mark{animation:case-logo-stamp 1.2s cubic-bezier(.22,.8,.2,1) both}
}
/* Desnuda: CJ's brush-drawn record (the "d" as vinyl) turns slowly behind the script. Three eased turns, then a rest. */
.case-brands .brand-record{position:absolute;z-index:0;left:50%;top:46%;width:min(62svh,58vw);translate:-50% -50%;opacity:.5;pointer-events:none}
.case-brands .brand-record svg{display:block;width:100%;height:auto;overflow:visible}
.case-brands .brand-record .d-record{fill:#0a0405;transform-box:view-box;transform-origin:568px 536px}
.case-brands .brand-restaurant-desnuda .brand-mark{position:relative;z-index:1}
@media(prefers-reduced-motion:no-preference){
 .case-brands .brand-scene:not([inert]) .brand-record{animation:brand-record-in 1.6s .2s ease backwards}
 .case-brands .brand-scene:not([inert]) .brand-record .d-record{animation:brand-record-spin 16s 2.4s infinite}
}
@keyframes brand-record-spin{0%{transform:rotate(0deg);animation-timing-function:cubic-bezier(.45,0,.3,1)}65%{transform:rotate(1080deg)}100%{transform:rotate(1080deg)}}
@media(max-width:700px){.case-brands .brand-record{width:min(86vw,46svh);top:42%}}
@keyframes brand-record-in{from{opacity:0}}

/* Shared caption band and gallery controls. */
.case-brands .brand-scene {
 --brand-footer-pad: clamp(26px,4.6svh,46px);
 padding-bottom: var(--brand-footer-pad);
}
.case-brands .brand-scene-caption {
 position: relative;
 isolation: isolate;
 display: grid;
 grid-template-columns: minmax(0,1fr) auto;
 align-items: start;
 gap: 32px;
 min-height: 144px;
 border-top-color: #ffffff40;
}
.case-brands .brand-scene-caption::before {
 content: "";
 position: absolute;
 z-index: -1;
 inset: -90px calc(-1 * var(--edge)) calc(-1 * var(--brand-footer-pad));
 background: linear-gradient(180deg,transparent 0%,#100b124d 25%,#100b12b8 62%,#100b12d9 100%);
 pointer-events: none;
}
.case-brands .brand-scene-caption h2 { color: #fff; }
.case-brands .brand-scene-caption .brand-placard-meta { color: #ffffffd9; }
.case-brands .brand-scene-caption > div:first-child > p:not(.brand-placard-meta) {
 max-width: 48ch;
 color: #fffffff2;
 font-size: clamp(14px,1.05vw,16px);
 line-height: 1.6;
}
.case-brands .brand-scene-links {
 display: flex;
 flex-direction: column;
 align-items: flex-end;
 align-self: stretch;
 justify-content: space-between;
 gap: 16px;
 max-width: 40vw;
}
.case-brands .brand-scene-link {
 min-height: 44px;
 padding: 8px 0;
 align-self: flex-end;
 color: #fff;
 border-bottom-color: #ffffff80;
 font-size: 12px;
 letter-spacing: .12em;
}
.case-brands .brand-scene-link > span { font-size: 19px; line-height: 1; transition: translate .2s ease; }
.case-brands .brand-scene-link:is(:hover,:focus-visible) { border-bottom-color: #fff; }
.case-brands .brand-scene-link:is(:hover,:focus-visible) > span { translate: 3px 0; }
.case-brands .brand-scene-links .restaurant-press { color: #ffffffd9; margin-top: auto; }
.case-brands .restaurant-press .press-logo { opacity: .9; }
.case-brands .brand-scene-nav button { width: clamp(44px,6vw,80px); height: clamp(64px,9vw,120px); }
.case-brands .brand-scene-nav button > span { width: clamp(20px,2.6vw,36px); opacity: .45; }
.case-brands .brand-scene-nav button:not([aria-disabled=true]):is(:hover,:focus-visible) > span { opacity: 1; }
@media (max-width:700px) {
 .case-brands .brand-scene-caption { grid-template-columns: minmax(0,1fr); min-height: 0; gap: 14px; }
 .case-brands .brand-scene-caption::before { top: -70px; }
 .case-brands .brand-scene-links { width: 100%; max-width: none; flex-flow: row wrap; align-items: center; justify-content: space-between; gap: 12px 20px; }
 .case-brands .brand-scene-links .restaurant-press { margin-top: 0; margin-left: auto; }
 .case-brands .brand-scene-link { align-self: auto; }
}
@media (prefers-reduced-motion:reduce) {
 .case-brands .brand-scene-link > span { transition: none; }
 .case-brands .brand-scene-link:is(:hover,:focus-visible) > span { translate: none; }
}


/* Highbucha's High-state gradient and original symbol. */
.case-brands .brand-highbucha {
 --scrim: 0;
 background: linear-gradient(180deg,#6a8cf2 0%,#cf9bec 36%,#ff9fb4 64%,#ffae72 100%);
}
.case-brands .brand-highbucha::before { background: linear-gradient(180deg,#18235026,transparent 38%); }
.case-brands .brand-highbucha .brand-mark { position: relative; z-index: 1; }
.case-brands .brand-highbucha .brand-mark > img { filter: brightness(0) invert(1) drop-shadow(0 3px 16px #69426833); }
.hb-brand-trace {
 position: absolute;
 z-index: 0;
 left: 58%;
 top: 43%;
 height: 74%;
 width: auto;
 max-width: none;
 opacity: .38;
 stroke: #cf5a24;
 stroke-width: .9;
 stroke-linecap: round;
 stroke-linejoin: round;
 pointer-events: none;
 transform: translate(-50%,-50%) rotate(-9deg);
}
.hb-brand-trace path { stroke-dasharray: 1; stroke-dashoffset: 0; }
@media (prefers-reduced-motion:no-preference) {
 .brand-highbucha:not([inert]) .hb-brand-trace path {
  animation: hb-brand-trace-in 2.3s cubic-bezier(.4,0,.2,1) calc(.3s + var(--trace-i) * .45s) both;
 }
}
@keyframes hb-brand-trace-in { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@media (max-width:700px) {
 .hb-brand-trace { left: 56%; top: 40%; height: 61%; opacity: .34; stroke-width: 1.1; }
}
/* Give the main Highbucha identity the same visual presence as the wider wordmarks. */
.case-brands .brand-highbucha .brand-mark { width: min(32vw,380px); }
.case-brands .brand-highbucha .brand-mark > img { max-height: 40svh; }
@media (max-width:700px) {
 .case-brands .brand-highbucha .brand-mark { width: min(60vw,260px); }
 .case-brands .brand-highbucha .brand-mark > img { max-height: 35svh; }
 .hb-brand-trace { left: 52%; height: 58%; }
}

/* Ilona's teal carries through the photograph and caption shading. */
.case-brands .brand-restaurant-ilona { --restaurant-field: #079992; --scrim: 0; }
.case-brands .brand-restaurant-ilona::before {
 background: linear-gradient(145deg,#079992a8 0%,#07999270 48%,#034d49bf 100%);
}
.case-brands .brand-restaurant-ilona .brand-scene-caption::before {
 background: linear-gradient(180deg,transparent 0%,#034c474d 25%,#03332fb8 62%,#022b28d9 100%);
}

.case-brands .brand-restaurant-louis .brand-mark > .brand-drawn-mark {
 filter: drop-shadow(0 0 5px #f2ca7d80) drop-shadow(0 0 20px #dca74866) drop-shadow(0 0 42px #bc842c40);
}

.case-brands .brand-scene-link > .case-chevron { width: 8px; height: 8px; margin-left: 4px; border-top-width: 1.5px; border-right-width: 1.5px; }

/* CamSoda: caption shade is a deep berry from the pink field (blue band removed Nov 21); caption type matches the other scenes. */
.case-brands .brand-camsoda .brand-scene-caption::before {
 background: linear-gradient(180deg,#4a0a3200 0%,#4a0a3299 28%,#360726eb 68%,#26041b 100%);
}
.case-brands .brand-camsoda .brand-scene-caption>div:first-child>.brand-placard-meta{color:#ffffff99}

/* Phones: "Featured in" hidden; "View project" becomes a full-width row (divider above, label left, chevron right). */
@media (max-width:700px) {
 .case-brands .brand-scene-links .restaurant-press { display: none; }
 .case-brands .brand-scene-links { display: block; }
 .case-brands .brand-scene-link { display: flex; width: 100%; justify-content: space-between; padding: 14px 0; border-bottom: 0; border-top: 1px solid #ffffff38; }
}
