/* Gallery Walk: the story hangs on a gallery wall. On wide screens the wall slides past as you
   scroll (CSS scroll-driven translate, container units); elsewhere it is a vertical gallery. Each picture
   light switches on as you reach it. */
.about-gallery-walk {
  --wall:#15130e;
  --card:#ece4d2;
  --card-ink:#2a231a;
  --brass:linear-gradient(#f6e3b0,#d1ad6c 42%,#8f6d3a 78%,#b8935a)
}

/* Opening: an exhibition title wall under a row of downlights. */
.b-hero.hero {
  display:grid;
  place-items:center;
  grid-template-rows:1fr;
  min-height:max(100svh,720px);
  padding:clamp(130px,17svh,180px) var(--gutter) clamp(60px,9svh,100px);
  text-align:center;
  background:linear-gradient(#0c0b08,var(--wall) 22%,#14120d 80%,#0d0c09 80.2%,#0f0e0b)
}
.b-scallops { position:absolute; inset:0 0 19.8%; z-index:0; display:flex; justify-content:space-around; pointer-events:none }
.b-scallops span {
  position:relative;
  width:19vw;
  height:100%;
  background:radial-gradient(ellipse 34% 46% at 50% -3%,#fff1d22e 0%,#ffe2ae21 64%,transparent 74%),radial-gradient(ellipse 62% 92% at 50% 0%,#ffd9a018,transparent 70%)
}
.b-scallops span::before {
  content:'';
  position:absolute;
  left:50%;
  top:-5px;
  width:64px;
  height:12px;
  translate:-50% 0;
  border-radius:50%;
  background:radial-gradient(#fffbea,#ffe2a866 48%,transparent 72%)
}
.b-scallops span:nth-child(2) { --i:1 } .b-scallops span:nth-child(3) { --i:2 } .b-scallops span:nth-child(4) { --i:3 } .b-scallops span:nth-child(5) { --i:4 }
html.fx .b-scallops span { animation:b-on 1.6s calc(.25s + var(--i,0) * .2s) var(--ease) both }
.b-hero-copy { position:relative; z-index:1; display:grid; justify-items:center; width:min(1200px,100%) }
.b-hero .breadcrumbs ol { justify-content:center }
.b-title { display:grid; justify-items:center; margin-top:clamp(18px,3svh,34px); font-family:var(--display); text-transform:uppercase; line-height:.88 }
.b-title-top { font-size:clamp(84px,min(15.5vw,25svh),270px); letter-spacing:.005em }
.b-title-bottom { margin-top:.12em; font-size:clamp(36px,min(6.1vw,9.6svh),106px); letter-spacing:.06em }
.b-title-top,.b-title-top .char,.b-title-bottom,.b-title-bottom .char { background:var(--brass); -webkit-background-clip:text; background-clip:text; color:transparent }
.b-title-top.is-split,.b-title-bottom.is-split { background:none }
.b-title { filter:drop-shadow(0 2px 0 #0009) drop-shadow(0 22px 40px #000b) }
/* A filter on a letter stops Chrome painting its clipped gradient, so these letters rise without the blur. */
html.fx .b-hero.hero .b-title [data-split] .char { filter:none }
.b-h1 { max-width:760px; margin-top:clamp(20px,3svh,34px); font:500 clamp(16px,1.4vw,21px)/1.45 var(--label); letter-spacing:.16em; color:var(--gold-hot); text-wrap:balance }
.b-lede { max-width:720px; margin-top:18px; font:clamp(18px,1.45vw,23px)/1.5 var(--serif); color:#e6dccb; text-wrap:balance }
.b-cue { display:inline-flex; align-items:center; gap:18px; min-height:44px; margin-top:clamp(22px,4svh,40px); font:500 17px var(--label); letter-spacing:.16em; text-transform:uppercase; color:var(--gold-hot) }
html.fx .b-cue .icon { animation:nudge 2.8s 3s ease-in-out infinite }
html.fx .b-hero [data-split] .char { transition-delay:calc(1.1s + var(--i) * 55ms),calc(1.1s + var(--i) * 55ms),calc(1.1s + var(--i) * 55ms),0s,0s }
html.fx .b-h1,html.fx .b-lede,html.fx .b-cue,html.fx .b-hero .breadcrumbs,html.fx .b-hero .about-eyebrow { animation:copy-enter 1s var(--ease) both }
html.fx .b-hero .breadcrumbs,html.fx .b-hero .about-eyebrow { animation-delay:.5s }
html.fx .b-h1 { animation-delay:2.1s }
html.fx .b-lede { animation-delay:2.3s }
html.fx .b-cue { animation-delay:2.5s }
/* Lights fade on smoothly; nothing flickers. */
@keyframes b-on { from { opacity:0 } to { opacity:1 } }

/* The wall: plaster above a chair rail, darker wainscot below. */
.b-gallery { position:relative; background:var(--wall) }
.b-stage {
  position:relative;
  overflow:clip;
  container-type:inline-size;
  padding:clamp(90px,12svh,140px) var(--gutter);
  background:linear-gradient(#0f0e0b,var(--wall) 12%,var(--wall) 84%,#0d0c09 84.15%,#100f0b)
}
.b-gallery-head { max-width:760px }
.b-gallery-head h2 { margin-top:16px; font-size:clamp(40px,4.4vw,78px); line-height:.98; text-wrap:balance }
.b-intro { max-width:580px; margin-top:20px; font:clamp(17px,1.25vw,20px)/1.6 var(--serif); color:var(--muted) }
.b-track { list-style:none; margin:clamp(90px,13svh,140px) 0 0; padding:0; display:grid; gap:clamp(110px,16svh,170px) }
.b-exhibit { width:100%; max-width:1300px; margin:0 auto; display:grid; grid-template-columns:minmax(0,1.35fr) minmax(280px,.65fr); gap:clamp(30px,4.5vw,80px); align-items:end }
.b-exhibit--archive,.b-exhibit--note,.b-exhibit--logo { grid-template-columns:minmax(0,1fr) minmax(280px,.65fr) }

/* A picture light, its beam and the wash it leaves on the wall. */
.b-piece { position:relative; margin:62px 0 0; display:grid; justify-items:center; isolation:isolate }
.b-piece::before {
  content:'';
  position:absolute;
  left:50%;
  top:-70px;
  z-index:-1;
  width:150%;
  height:calc(100% + 150px);
  translate:-50% 0;
  background:radial-gradient(ellipse 48% 44% at 50% 16%,#ffd9a02e,transparent 72%);
  pointer-events:none;
  transition:opacity 1.2s var(--ease)
}
.b-piece::after {
  content:'';
  position:absolute;
  left:50%;
  top:-46px;
  z-index:2;
  width:min(150%,130vw);
  height:calc(100% + 12px);
  translate:-50% 0;
  clip-path:polygon(41% 0,59% 0,100% 100%,0 100%);
  background:linear-gradient(#ffeab866,#ffdca024 38%,transparent 82%);
  mix-blend-mode:screen;
  filter:blur(4px);
  pointer-events:none;
  transition:opacity 1.2s var(--ease)
}
.b-lamp {
  position:absolute;
  left:50%;
  top:-58px;
  z-index:3;
  width:clamp(110px,42%,260px);
  height:14px;
  translate:-50% 0;
  border-radius:8px 8px 11px 11px;
  background:linear-gradient(#f6e3b0,#c09a5c 45%,#6e5530);
  box-shadow:0 2px 3px #000b,0 7px 18px #ffe2a899;
  transition:box-shadow 1.2s var(--ease)
}
.b-lamp::before {
  content:'';
  position:absolute;
  left:50%;
  top:12px;
  z-index:-1;
  width:4px;
  height:46px;
  translate:-50% 0;
  background:linear-gradient(90deg,#5e4826,#e2c486,#5e4826)
}
.b-frame {
  position:relative;
  display:block;
  padding:clamp(8px,.85vw,14px);
  background:linear-gradient(150deg,#3b3125,#14100b 52%,#2b2219);
  box-shadow:inset 0 0 0 1px #ffffff14,0 36px 60px #000d,0 10px 18px #000a;
  transition:filter 1s var(--ease)
}
.b-frame img { width:100%; height:auto; border:clamp(10px,1.5vw,22px) solid #ebe2cf; background:#ebe2cf }
.b-piece figcaption { margin-top:16px; font:italic 15px/1.45 var(--serif); color:var(--muted); text-align:center }
.b-piece--archive .b-frame img { width:calc(var(--w) * 1.5 + 2 * clamp(34px,4.4vw,70px)); max-width:100%; border-width:clamp(34px,4.4vw,70px) }
.b-piece--logo .b-frame,.b-piece--cutout .b-frame { padding:0; background:none; box-shadow:none }
.b-piece--logo .b-frame img,.b-piece--cutout .b-frame img { border:0; background:none; filter:drop-shadow(0 14px 20px #000c) }
.b-piece--logo .b-frame img { width:min(100%,560px) }
.b-piece--cutout .b-frame img { width:min(100%,640px) }
.b-piece--year { padding:10px 0 0 }
/* 2018: the two medals in a velvet-lined shadow box. */
.b-piece--medals .b-frame { padding:clamp(30px,3vw,46px) clamp(30px,3.4vw,56px) clamp(26px,2.6vw,40px); background:radial-gradient(ellipse at 50% 30%,#2b241b,#15120d); box-shadow:inset 0 0 0 1px #ffffff14,inset 0 0 44px #000a,0 36px 60px #000d,0 10px 18px #000a }
.b-piece--medals .b-frame img { width:100%; height:100%; border:3px solid #15130e; background:none }
.b-piece--medals .about-medal { --medal:clamp(140px,13vw,200px) }
.b-gallery.is-walking .b-piece--medals .about-medal { --medal:min(14vw,22svh,200px) }
.b-brass { display:block; font:clamp(140px,15vw,260px)/.85 var(--display); background:var(--brass); -webkit-background-clip:text; background-clip:text; color:transparent; filter:drop-shadow(0 3px 0 #0009) drop-shadow(0 26px 40px #000c); transition:filter 1s var(--ease) }

/* Museum label: cream card, dark ink. */
.b-placard { width:100%; max-width:400px; padding:24px 24px 22px; background:linear-gradient(#f0e9d9,var(--card)); color:var(--card-ink); box-shadow:0 20px 44px #000b; transition:filter 1s var(--ease) }
.b-number { font:600 12px var(--label); letter-spacing:.26em; text-transform:uppercase; color:#8b7350 }
.b-year { margin-top:6px; font:clamp(46px,3.6vw,60px)/.95 var(--display); color:var(--card-ink) }
.b-placard h3 { margin-top:8px; font:600 clamp(19px,1.45vw,23px)/1.15 var(--label); letter-spacing:.04em; text-transform:uppercase; text-wrap:balance }
.b-placard p:not(.b-number):not(.b-year) { margin-top:12px; font:15.5px/1.56 var(--serif); color:#3b3227; text-wrap:pretty }
.b-placard .text-link { margin-top:10px; min-height:40px; gap:14px; font-size:15px; color:var(--card-ink) }
.b-placard .text-link:hover { color:#8b6a33 }
.b-placard a:focus-visible { outline-color:#8b6a33 }

/* Lights stay off until you reach a piece, then fade on: beam, wall wash, lamp glow, photo and label together. */
html.fx:not(.reduced-motion) [data-light]:not(.is-lit) .b-piece::before,html.fx:not(.reduced-motion) [data-light]:not(.is-lit)::before { opacity:0 }
html.fx:not(.reduced-motion) [data-light]:not(.is-lit) .b-piece::after,html.fx:not(.reduced-motion) [data-light]:not(.is-lit)::after { opacity:0 }
html.fx:not(.reduced-motion) [data-light]:not(.is-lit) .b-lamp { box-shadow:0 2px 3px #000b }
html.fx:not(.reduced-motion) [data-light]:not(.is-lit) .b-frame,html.fx:not(.reduced-motion) [data-light]:not(.is-lit) .b-brass { filter:brightness(.3) saturate(.35) }
html.fx:not(.reduced-motion) [data-light]:not(.is-lit) .b-placard { filter:brightness(.42) }

/* Walking: the wall is pinned and slides sideways with the page's scroll. */
.b-rail { display:none }
.b-gallery.is-walking .b-stage { position:sticky; top:0; height:100svh; padding:0 }
.b-gallery.is-walking .b-reel {
  position:relative;
  display:flex;
  align-items:center;
  gap:clamp(110px,10vw,190px);
  width:max-content;
  height:100%;
  padding:clamp(70px,9svh,96px) 14vw clamp(70px,11svh,110px) var(--gutter);
  translate:calc(var(--p) * (100cqw - 100%)) 0;
  will-change:translate
}
.b-gallery.is-walking .b-gallery-head { flex:none; width:min(560px,38vw) }
.b-gallery.is-walking .b-track { display:flex; align-items:center; gap:clamp(120px,10vw,200px); margin:0 }
.b-gallery.is-walking .b-exhibit { display:flex; align-items:flex-end; gap:clamp(30px,3vw,50px); width:auto; max-width:none; margin:0; flex:none }
.b-gallery.is-walking .b-piece { margin:0 }
.b-gallery.is-walking .b-piece--photo .b-frame img { width:auto; height:min(46svh,470px); max-width:min(54vw,900px); object-fit:cover }
.b-gallery.is-walking .b-piece--logo .b-frame img { width:min(36vw,560px) }
.b-gallery.is-walking .b-piece--cutout .b-frame img { width:auto; height:min(44svh,420px) }
.b-gallery.is-walking .b-placard { width:clamp(290px,24vw,380px); max-height:calc(100svh - 230px); overflow:auto }
.b-gallery.is-walking .b-exhibit:nth-child(8) .b-placard { width:clamp(320px,28vw,430px) }
.b-gallery.is-walking .b-rail { display:block; position:absolute; left:var(--gutter); right:var(--gutter); bottom:clamp(14px,3svh,32px); z-index:5; height:46px }
.b-rail-line { position:absolute; left:0; right:0; bottom:10px; height:1px; background:#4a4234 }
.b-rail-fill { position:absolute; inset:0; transform:scaleX(var(--p)); transform-origin:left; background:linear-gradient(90deg,var(--gold),var(--gold-hot)); box-shadow:0 0 10px #ecc98c88 }
.b-rail a { position:absolute; left:calc(var(--at,0) * 100%); bottom:0; translate:-50% 0; display:grid; justify-items:center; gap:9px; min-width:44px; padding:0 4px; font:13px var(--label); letter-spacing:.12em; color:var(--muted) }
.b-rail a::after { content:''; width:7px; height:7px; border-radius:50%; background:#4a4234; transition:background .3s,box-shadow .3s,scale .3s }
.b-rail a.is-current { color:var(--gold-hot) }
.b-rail a.is-current::after { background:var(--gold-hot); box-shadow:0 0 12px #ecc98c; scale:1.5 }
.b-rail a:hover { color:var(--gold-hot) }

/* Recognition, in two lit display cases. */
.b-hall { padding:clamp(100px,14svh,170px) var(--gutter); background:linear-gradient(#0f0e0b,#16140f) }
.b-section-head { max-width:960px; margin:0 auto; text-align:center }
.b-section-head h2 { margin-top:16px; font-size:clamp(44px,5.4vw,98px); line-height:.96; text-wrap:balance }
.b-cases { display:grid; grid-template-columns:repeat(2,minmax(0,500px)); justify-content:center; gap:clamp(40px,6vw,100px); margin-top:clamp(50px,8svh,90px) }
.b-case-wrap { display:grid; gap:22px; align-content:start }
.b-case { position:relative; height:clamp(320px,40svh,420px); display:grid; place-items:center; overflow:hidden; border:1px solid #f2e8d726; background:linear-gradient(160deg,#ffffff0e,#ffffff03 42%,#ffffff09); box-shadow:inset 0 0 70px #0007,0 30px 60px #000a }
.b-case::before { content:''; position:absolute; inset:0; z-index:2; pointer-events:none; background:linear-gradient(115deg,transparent 28%,#ffffff0f 34%,transparent 41%,transparent 62%,#ffffff09 66%,transparent 70%) }
.b-case-light { position:absolute; inset:0; background:radial-gradient(ellipse 58% 60% at 50% 0%,#ffe6b244,transparent 72%) }
.b-case-badge { position:relative; z-index:1; width:auto; height:clamp(150px,20svh,220px); max-width:68%; object-fit:contain; margin-bottom:46px; filter:drop-shadow(0 22px 24px #000c) }
.b-case-badge { mix-blend-mode:lighten }
.b-case-wrap:last-child .b-case-badge { max-width:78% }
.b-plinth { position:absolute; left:50%; bottom:0; width:66%; height:56px; translate:-50% 0; background:linear-gradient(#2e271d,#16120d); border-top:1px solid #f2e8d738 }
.b-placard--case { max-width:none }
html.fx .b-case-wrap .b-case-light { animation:b-on 1.6s .3s var(--ease) both paused }
html.fx .b-case-wrap.in-view .b-case-light { animation-play-state:running }

/* Our people: the 2001 portrait in a gilt frame, with its label. */
.b-portrait { overflow:clip; display:grid; grid-template-columns:minmax(0,1.45fr) minmax(0,1fr); gap:clamp(50px,6vw,110px); align-items:center; padding:clamp(140px,18svh,210px) max(var(--gutter),calc((100% - 1500px) / 2)) clamp(90px,12svh,150px) }
.b-portrait-piece { margin:0 }
.b-lamp--wide { width:clamp(160px,44%,420px); top:-62px }
.b-frame--gilt { padding:clamp(14px,1.4vw,24px); background:linear-gradient(135deg,#ecd394,#9b7840 28%,#f3dfa6 50%,#8a6a35 74%,#d7b878); box-shadow:inset 0 0 0 2px #5e4723,inset 0 0 0 7px #c9a96644,0 44px 80px #000d,0 12px 22px #000a }
.b-frame--gilt img { border-width:clamp(16px,2.2vw,36px) }
.b-portrait-label h2 { margin-top:16px; font-size:clamp(40px,4.3vw,78px); line-height:.98; text-wrap:balance }
.b-portrait-lede { margin-top:22px; font:clamp(20px,1.6vw,26px)/1.45 var(--serif); color:var(--ink) }
.b-portrait-label p:not(.about-eyebrow):not(.b-portrait-lede) { margin-top:16px; font:clamp(17px,1.2vw,19px)/1.65 var(--serif); color:#e1d7c6 }

/* The names, engraved on a stone wall that a raking light crosses as you scroll. */
.b-donors { position:relative; isolation:isolate; overflow:hidden; padding:clamp(100px,14svh,160px) var(--gutter); text-align:center; background:radial-gradient(ellipse 70% 55% at 50% 0%,#2b251c,transparent 72%),linear-gradient(#1b1813,#110f0b) }
.b-donors::after {
  content:'';
  position:absolute;
  inset:0;
  z-index:1;
  pointer-events:none;
  background:linear-gradient(100deg,transparent 36%,#ffe6b31c 46%,#fff2d63a 50%,#ffe6b31c 54%,transparent 64%) no-repeat;
  background-size:260% 100%;
  background-position:calc((1 - var(--p)) * 100%) 0;
  mix-blend-mode:screen
}
.b-donors h2 { max-width:900px; margin:0 auto; font:500 clamp(25px,2.5vw,40px)/1.25 var(--label); letter-spacing:.12em; color:var(--gold); text-wrap:balance }
.b-roll { max-width:1240px; margin:clamp(50px,8svh,80px) auto 0; display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:34px 40px }
.b-roll .roll-name { font:400 clamp(24px,2.2vw,36px)/1.1 var(--display); letter-spacing:.06em; color:#cdb07a; text-shadow:0 -1px 0 #000d,0 1px 0 #ffffff1f }
.b-roll .roll-years { margin-top:6px; font:13px var(--label); letter-spacing:.2em; text-transform:uppercase; color:#8f7d5f }
.b-donors-note { max-width:720px; margin:clamp(50px,8svh,80px) auto 0; font:italic clamp(18px,1.4vw,22px)/1.6 var(--serif); color:var(--ink) }

/* Today: five departments as exhibition banners. */
.b-now { padding:clamp(100px,14svh,160px) var(--gutter) clamp(80px,11svh,130px) }
.b-now-text { max-width:660px; margin:24px auto 0; font:clamp(18px,1.35vw,21px)/1.6 var(--serif); color:#e1d7c6 }
.b-banners { list-style:none; max-width:1300px; margin:clamp(56px,8svh,90px) auto; padding:0; display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:clamp(12px,1.6vw,26px) }
.b-banners a {
  position:relative;
  height:clamp(340px,46svh,480px);
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:space-between;
  padding:30px 12px 46px;
  background:linear-gradient(#2b241a,#18140e);
  border-top:3px solid #b8935a;
  clip-path:polygon(0 0,100% 0,100% 90%,50% 100%,0 90%);
  transition:background .5s,translate .5s var(--ease),color .3s
}
.b-banners a:hover,.b-banners a:focus-visible { background:linear-gradient(#5b4628,#261e14); translate:0 -6px; color:var(--gold-hot) }
.b-banner-number { font:14px var(--label); letter-spacing:.22em; color:var(--gold) }
.b-banner-name { writing-mode:vertical-rl; rotate:180deg; font:clamp(26px,2.4vw,42px)/1 var(--display); letter-spacing:.04em; text-transform:uppercase }
.b-banner-cta { display:flex; align-items:center; gap:10px; font:13px var(--label); letter-spacing:.2em; text-transform:uppercase; color:var(--gold) }
.b-banner-cta .icon { width:22px; height:18px }
.b-next { max-width:1100px; margin:0 auto }

@media(max-width:899px) {
  .b-exhibit,.b-exhibit--archive,.b-exhibit--note,.b-exhibit--logo { grid-template-columns:minmax(0,1fr); justify-items:center }
  .b-placard { max-width:560px }
  .b-cases { grid-template-columns:minmax(0,520px) }
  .b-portrait { grid-template-columns:minmax(0,1fr) }
  .b-roll { grid-template-columns:repeat(2,minmax(0,1fr)) }
  .b-banners { grid-template-columns:minmax(0,1fr); gap:10px }
  .b-banners a { height:auto; flex-direction:row; justify-content:flex-start; gap:18px; padding:22px 20px; clip-path:none; border-top:0; border-left:3px solid #b8935a }
  .b-banner-name { writing-mode:horizontal-tb; rotate:0deg; font-size:clamp(24px,6.4vw,32px) }
  .b-banner-cta { margin-left:auto }
}
@media(max-width:640px) {
  .b-hero.hero { min-height:max(100svh,640px); padding:120px 22px 54px }
  .b-scallops span:nth-child(1),.b-scallops span:nth-child(5) { display:none }
  .b-scallops span { width:36vw }
  .b-title-top { font-size:min(21vw,15svh) }
  .b-title-bottom { font-size:min(9vw,7svh) }
  .b-h1 { font-size:15px; letter-spacing:.12em }
  .b-stage,.b-hall,.b-donors,.b-now { padding-inline:22px }
  .b-portrait { padding-inline:22px }
  .b-roll { grid-template-columns:minmax(0,1fr); gap:24px }
  .b-banner-cta { display:none }
}
