/* Client-directed opening and three-panel brand kit section. */
.hero-foot > span:last-child { display:block; text-align:right; }
.desktop-nav { gap:24px; }
.hero-translation { white-space:nowrap; }
@media(min-width:761px) { .hero-layout { min-height:640px; } }

.atelier-ribbon { overflow:hidden; background:var(--burgundy); color:var(--ivory); }
.ribbon-window { overflow:hidden; padding-block:17px; }
.ribbon-track { display:flex; width:max-content; animation:ribbon-drift 42s linear infinite; }
.ribbon-group { display:flex; flex:none; align-items:center; justify-content:space-around; min-width:100vw; gap:50px; padding-inline:25px; }
.ribbon-group > span { white-space:nowrap; font:italic 400 32px/1.35 var(--display); letter-spacing:.005em; font-synthesis:none; }
.ribbon-group > i { display:block; flex:none; width:4px; height:4px; border-radius:50%; background:currentColor; opacity:.6; }
@keyframes ribbon-drift { to { transform:translateX(-50%); } }

.brand-stories { background:#e9e6dc; padding-block:80px; }
.brand-stories .section-line { margin-bottom:35px; }
.brand-stories .section-heading { gap:48px; margin-bottom:42px; }
.brand-stories .section-heading h2 { max-width:720px; }
.brand-stories .section-heading > p { max-width:360px; }
.brand-panels { display:flex; gap:6px; width:min(1440px,calc(100% - 64px)); margin-inline:auto; overflow-x:auto; scroll-snap-type:x mandatory; overscroll-behavior-x:contain; scrollbar-width:none; }
.brand-panels::-webkit-scrollbar { display:none; }
.brand-panels:focus-visible { outline:1px solid var(--burgundy); outline-offset:6px; }
.brand-panel { flex:0 0 calc((100% - 12px)/3); position:relative; isolation:isolate; min-height:clamp(520px,45vw,720px); overflow:hidden; color:var(--ivory); background:#63564c; scroll-snap-align:start; }
.brand-panel-art { position:absolute; inset:0; z-index:-2; overflow:hidden; }
.brand-panel-art img { width:100%; height:100%; object-fit:cover; object-position:center top; transition:transform 1s var(--ease); }
.brand-panel-pages { display:grid; grid-template-rows:repeat(3,minmax(0,1fr)); gap:5px; background:#faf6ef; }
.brand-panel-pages.brand-panel-two-pages { grid-template-rows:repeat(2,minmax(0,1fr)); }
.brand-panel-pages img { min-height:0; object-fit:contain; object-position:center; }
.brand-panel::after { content:''; position:absolute; inset:0; z-index:-1; background:linear-gradient(180deg,#24190e0d 0%,transparent 25%,#21180e40 55%,#21180ee0 100%); }
.brand-panel::before { content:''; position:absolute; inset:0; z-index:-1; background:#16100d8c; opacity:0; transition:opacity .5s ease; }
.brand-panel-copy { position:absolute; left:28px; right:28px; bottom:30px; pointer-events:none; }
.brand-panel-category { display:block; font-size:7px; letter-spacing:.12em; margin-bottom:12px; }
.brand-panel-copy h3 { font:400 clamp(28px,2.55vw,38px)/1.03 var(--display); letter-spacing:-.045em; }
.brand-panel-tagline { font:italic 24px/1.1 var(--display); margin-top:6px; }
.brand-panel-reveal { display:grid; grid-template-rows:0fr; opacity:0; transform:translateY(12px); transition:grid-template-rows .6s var(--ease),opacity .45s ease,transform .6s var(--ease); }
.brand-panel-reveal > div { overflow:hidden; min-height:0; }
.brand-panel-reveal p { padding-top:23px; font:400 12px/1.85 var(--body); max-width:360px; }
.brand-panel-cta { display:block; width:max-content; max-width:100%; border-bottom:1px solid #f4f0e5a8; margin-top:16px; padding-bottom:4px; font:500 11px/1.4 var(--body); }
.brand-panel-open { position:absolute; z-index:3; inset:0; width:100%; height:100%; padding:0; }
.brand-panel-open:focus-visible { outline:2px solid var(--ivory); outline-offset:-7px; }
.brand-panel:focus-within .brand-panel-reveal { grid-template-rows:1fr; opacity:1; transform:none; }
.brand-panel:focus-within::before { opacity:1; }
.kit-document { margin:0 0 28px; font-size:10px; }
#project-gallery.is-brand-kit { grid-template-columns:repeat(2,minmax(0,1fr)); max-width:960px; margin-inline:auto; }
#project-gallery.is-brand-kit > figure:first-child img { max-width:700px; margin-inline:auto; }
.brand-browse { display:flex; align-items:center; justify-content:space-between; gap:24px; margin-top:26px; }
.brand-browse > p { display:flex; align-items:center; gap:24px; font-size:9px; }
.brand-browse-count { font-variant-numeric:tabular-nums; letter-spacing:.06em; }
.brand-browse-hint { color:var(--muted); }
.brand-browse-actions { display:flex; gap:8px; }
.brand-browse-actions button { display:grid; place-items:center; width:44px; height:44px; border:1px solid var(--line); border-radius:50%; font-size:19px; line-height:1; }
.brand-browse-actions button:hover:not(:disabled) { background:var(--burgundy); color:var(--ivory); }
.brand-browse-actions button:disabled { opacity:.25; }
@media(hover:hover) and (pointer:fine) {
  .brand-panel:hover .brand-panel-reveal { grid-template-rows:1fr; opacity:1; transform:none; }
  .brand-panel:hover .brand-panel-art img { transform:scale(1.035); }
  .brand-panel:hover::before { opacity:1; }
}
@media(hover:none),(pointer:coarse) {
  .brand-panel-reveal { grid-template-rows:1fr; opacity:1; transform:none; }
  .brand-panel::before { opacity:1; }
}
@media(max-width:1100px) {
  .desktop-nav { gap:18px; }
  .desktop-nav a { font-size:9px; }
  .brand-panels { width:calc(100% - 40px); }
  .brand-panel-copy { left:23px; right:23px; bottom:28px; }
  .brand-panel-copy h3 { font-size:29px; }
  .brand-panel-tagline { font-size:22px; }
  .brand-panel-reveal p { font-size:11px; }
}
@media(max-width:850px) and (min-width:761px) {
  .brand-panel-copy { left:18px; right:18px; }
  .brand-panel-copy h3 { font-size:26px; }
  .brand-panel-tagline { font-size:20px; }
  .brand-panel-reveal p { font-size:10px; }
}
@media(max-width:760px) {
  .hero-foot > span:last-child { max-width:150px; }
  .ribbon-window { padding-block:17px; }
  .ribbon-group { gap:32px; padding-inline:16px; }
  .ribbon-group > span { font-size:29px; }
  .brand-stories { padding-block:60px; }
  .brand-stories .section-heading { margin-bottom:32px; }
  .brand-stories .section-heading > p { max-width:420px; }
  .brand-panels { width:calc(100% - 44px); gap:9px; }
  .brand-panel { flex-basis:100%; min-height:540px; margin-top:0; }
  .brand-panel:first-child { margin-top:0; }
  .brand-panel-copy { left:26px; right:26px; bottom:28px; }
  .brand-panel-copy h3 { font-size:33px; }
  .brand-panel-tagline { font-size:25px; }
  .brand-panel-reveal { grid-template-rows:1fr; opacity:1; transform:none; }
  .brand-panel::before { opacity:1; }
  .brand-panel-reveal p { font-size:11px; padding-top:20px; max-width:370px; }
  .brand-panel-cta { margin-top:16px; }
  .brand-panel-category { font-size:7px; margin-bottom:10px; }
  .brand-browse { margin-top:20px; gap:12px; }
  .brand-browse > p { display:block; font-size:8px; }
  .brand-browse-hint { display:block; margin-top:4px; }
  #project-gallery.is-brand-kit { display:block; }
}
@media(max-width:370px) {
  .brand-panel { min-height:540px; }
  .brand-panel-copy { left:20px; right:20px; }
  .brand-panel-copy h3 { font-size:29px; }
  .brand-panel-tagline { font-size:23px; }
  .brand-panel-reveal p { font-size:10px; }
}
@media(prefers-reduced-motion:reduce) {
  .ribbon-track { width:100%; animation:none!important; }
  .ribbon-group { min-width:0; width:100%; flex-wrap:wrap; justify-content:center; gap:8px 24px; }
  .ribbon-group > span { white-space:normal; text-align:center; }
  .ribbon-group[aria-hidden="true"],.ribbon-group > i { display:none; }
  .brand-panel-art img,.brand-panel-reveal,.brand-panel::before { transition:none; }
  .brand-panel:hover .brand-panel-art img { transform:none; }
}
