/* About page: the /about/ chooser and the pieces its three experiences share.
   Effects read one number, --p (0 → 1), per element. CSS scroll-driven animations set it where supported;
   about.js sets it elsewhere. Without scripts, with reduced motion or with effects paused it stays 1,
   so every word and photo is simply shown. */
@property --p { syntax:'<number>'; inherits:true; initial-value:1 }
@keyframes about-progress { from { --p:0 } to { --p:1 } }
@supports (animation-timeline: view()) {
  html.fx [data-p] { animation:about-progress linear both; animation-timeline:view() }
  html.fx [data-p=enter] { animation-range:cover 0% cover 50% }
  html.fx [data-p=read] { animation-range:cover 15% cover 55% }
  html.fx [data-p=contain] { animation-range:contain 0% contain 100% }
}
html.reduced-motion [data-p] { --p:1 }

/* Page-to-page fades between pages that opt in; reduced motion keeps instant navigation. */
@view-transition { navigation:auto }
@media(prefers-reduced-motion:reduce) { @view-transition { navigation:none } }

.about-page main { background:var(--stage) }
.about-page section[id],.about-page li[id] { scroll-margin-top:92px }
.about-page .closing.about-closing { padding-top:0 }
.about-page .about-closing .site-footer { padding-top:10px }

/* Words brighten one after another as a paragraph is read. */
.lit-words span {
  opacity:clamp(.17, calc(var(--p) * (var(--n) + 6) - var(--i)), 1);
  transition:opacity .2s linear
}

.about-eyebrow {
  font:500 15px/1.35 var(--label);
  letter-spacing:.3em;
  text-transform:uppercase;
  color:var(--gold)
}

/* Enlarged photos: a link to the image without scripts, a morphing lightbox with them. */
.about-zoom { position:relative; display:block; cursor:zoom-in }
.about-zoom::after {
  content:'';
  position:absolute;
  right:14px;
  bottom:14px;
  width:38px;
  height:38px;
  border-radius:50%;
  background:#0f0e0bb3 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ecc98c' stroke-width='1.4'%3E%3Ccircle cx='10.5' cy='10.5' r='6.5'/%3E%3Cpath d='m15.5 15.5 5 5M10.5 7.5v6M7.5 10.5h6'/%3E%3C/svg%3E") center/20px no-repeat;
  border:1px solid #ecc98c59;
  opacity:0;
  translate:0 6px;
  transition:opacity .3s,translate .3s var(--ease)
}
.about-zoom:hover::after,.about-zoom:focus-visible::after { opacity:1; translate:0 0 }
dialog.about-lightbox {
  display:grid;
  place-items:center;
  padding:clamp(56px,7vw,96px) clamp(16px,5vw,80px) clamp(24px,4vw,56px);
  background:#0b0a07f5;
  overflow:hidden
}
dialog.about-lightbox:not([open]) { display:none }
dialog.about-lightbox::backdrop { background:#0b0a07 }
.about-lightbox figure { margin:0; display:grid; gap:18px; justify-items:center; max-width:100% }
.about-lightbox img {
  max-width:100%;
  max-height:calc(100svh - 190px);
  width:auto;
  height:auto;
  object-fit:contain;
  box-shadow:0 40px 90px #000c,0 0 0 1px #f2e8d71f
}
.about-lightbox figcaption { font:16px/1.5 var(--serif); font-style:italic; color:var(--muted); text-align:center }
.about-lightbox-close {
  position:absolute;
  top:22px;
  right:var(--gutter);
  display:flex;
  gap:12px;
  align-items:center;
  min-height:44px;
  border:0;
  background:none;
  font:15px var(--label);
  letter-spacing:.18em;
  text-transform:uppercase
}
.about-lightbox-close span { font-size:28px; line-height:1; color:var(--gold) }
::view-transition-group(about-photo) { animation-duration:.55s; animation-timing-function:var(--ease) }

/* Names, shared by every layout's roll call. */
.about-roll { list-style:none; margin:0; padding:0 }
.roll-name { font:500 clamp(19px,1.6vw,24px)/1.2 var(--label); letter-spacing:.06em; text-transform:uppercase; color:var(--ink) }
.roll-years { display:block; margin-top:4px; font:14px/1.4 var(--body); color:var(--gold) }

/* Related pages. */
.about-next { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:18px }

/* /about/: three experience cards, then the whole story as plain text. */
.about-choose,.about-chronicle,.about-honors,.about-family,.about-today { border-top:1px solid var(--line); padding:clamp(70px,10svh,110px) 0 }
.info-about section[id],.info-about li[id],.info-about article[id] { scroll-margin-top:96px }
.about-choose-head { max-width:820px }
.about-choose-head h2,.about-chronicle-head h2,.about-honors h2,.about-family h2,.about-today h2 { margin-top:16px; font-size:clamp(40px,4.6vw,80px); line-height:.98; text-wrap:balance }
.about-honors h2,.about-family h2,.about-today h2 { margin-top:0 }
.about-choose-head p:last-child { max-width:640px; margin-top:20px; font:clamp(18px,1.4vw,22px)/1.55 var(--serif); color:#e3d9c8 }
.about-cards { list-style:none; margin:clamp(40px,6svh,64px) 0 0; padding:0; display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:clamp(18px,2.4vw,36px) }
.about-card { position:relative; height:100%; display:flex; flex-direction:column; overflow:hidden; isolation:isolate; border:1px solid #f2e8d726; background:#15130e; transition:border-color .4s,translate .45s var(--ease),box-shadow .45s }
.about-card:hover,.about-card:focus-visible { color:var(--ink); border-color:#ecc98c88; translate:0 -6px; box-shadow:0 30px 60px #000a,0 0 44px #ecc98c1a }
.about-card-art { position:relative; aspect-ratio:16 / 10; overflow:hidden; background:#0b0a07 }
.about-card-art img { width:100%; height:100%; object-fit:cover; filter:brightness(.6) saturate(.85); transition:filter .7s var(--ease),scale 1.2s var(--ease) }
.about-card:hover .about-card-art img,.about-card:focus-visible .about-card-art img { filter:none; scale:1.04 }
/* Each card hints at its experience: a filament, a picture light, a safelight that lifts. */
.about-card-art::after { content:''; position:absolute; pointer-events:none; transition:opacity .7s var(--ease),transform .9s var(--ease) }
.about-card--lightline .about-card-art::after { left:50%; top:0; width:2px; height:100%; margin-left:-1px; background:linear-gradient(#fff6dc,#ecc98c 70%,transparent); box-shadow:0 0 12px #ecc98c,0 0 30px #ecc98c88; transform:scaleY(.18); transform-origin:top }
.about-card--lightline:hover .about-card-art::after,.about-card--lightline:focus-visible .about-card-art::after { transform:scaleY(1) }
.about-card--gallery-walk .about-card-art::after { left:15%; right:15%; top:0; height:100%; clip-path:polygon(38% 0,62% 0,100% 100%,0 100%); background:linear-gradient(#ffeab866,#ffdca01c 60%,transparent); mix-blend-mode:screen; opacity:0 }
.about-card--gallery-walk:hover .about-card-art::after,.about-card--gallery-walk:focus-visible .about-card-art::after { opacity:1 }
.about-card--darkroom .about-card-art::after { inset:0; background:#ff6a24; mix-blend-mode:multiply; opacity:.5 }
.about-card--darkroom:hover .about-card-art::after,.about-card--darkroom:focus-visible .about-card-art::after { opacity:0 }
.about-card-body { flex:1; display:flex; flex-direction:column; gap:14px; padding:26px 26px 28px }
.about-card-number { font:500 14px var(--label); letter-spacing:.26em; text-transform:uppercase; color:var(--gold) }
.about-card h3 { font:400 clamp(36px,3vw,52px)/1 var(--display); text-transform:uppercase }
.about-card-body>p:not(.about-card-number) { font:17px/1.55 var(--serif); color:#e3d9c8 }
.about-card ul { margin:0; padding:0 0 0 18px; display:grid; gap:7px; font:15px/1.45 var(--body); color:var(--muted) }
.about-card li::marker { color:var(--gold) }
.about-card .button { margin-top:auto }
.about-card:hover .button,.about-card:focus-visible .button { color:var(--bg) }
.about-card:hover .button::before,.about-card:focus-visible .button::before { transform:scaleY(1) }

.about-chronicle { display:grid; grid-template-columns:minmax(220px,.8fr) minmax(0,2.2fr); gap:clamp(30px,6vw,110px); align-items:start }
.about-chronicle-head { position:sticky; top:112px }
.about-chronicle-head p { margin-top:18px; font:17px/1.6 var(--serif); color:var(--muted) }
.about-chronicle-head .about-chronicle-lede,.about-family .about-chronicle-lede { margin-top:20px; font:clamp(19px,1.5vw,23px)/1.5 var(--serif); color:var(--ink) }
.about-years { list-style:none; margin:0; padding:0 }
.about-years li { display:grid; grid-template-columns:clamp(96px,10vw,150px) minmax(0,1fr); gap:clamp(20px,3vw,48px); padding:30px 0; border-top:1px solid var(--line) }
.about-years li:first-child { padding-top:0; border-top:0 }
.about-years-year { font:clamp(40px,4vw,64px)/.9 var(--display); color:var(--gold-hot) }
.about-years h3,.about-honor h3 { font:400 clamp(26px,2.2vw,36px)/1.1 var(--display); text-transform:uppercase; text-wrap:balance }
.about-years p:not(.about-years-year),.about-honor p:not(.about-years-year),.about-family-copy p:not(.about-chronicle-lede),.about-today>p { max-width:68ch; margin-top:12px; font:18px/1.65 var(--serif); color:var(--muted) }
.about-years .text-link { margin-top:10px; font-size:16px }
.about-honor-list { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:clamp(30px,5vw,80px); margin-top:40px }
.about-honor { display:grid; grid-template-columns:clamp(110px,11vw,150px) minmax(0,1fr); gap:28px; align-items:start }
.about-honor-badge { width:100%; height:auto; mix-blend-mode:lighten }
.about-honor .about-years-year { font-size:clamp(28px,2.4vw,40px) }
.about-honor h3 { margin-top:8px }
.about-family { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:clamp(40px,6vw,110px) }
.about-family-roll h3 { font:500 clamp(22px,2vw,30px)/1.2 var(--label); letter-spacing:.06em; text-transform:uppercase; color:var(--gold-hot); text-wrap:balance }
.about-roll--plain { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px 28px; margin-top:26px }
.about-family-closing { margin-top:30px; padding-top:24px; border-top:1px solid var(--line); font:italic 18px/1.6 var(--serif) }
.about-today { padding-bottom:clamp(40px,6svh,70px) }
.about-departments { list-style:none; margin:34px 0 0; padding:0; display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); border-block:1px solid var(--line) }
.about-departments li+li a { border-left:1px solid var(--line) }
.about-departments a { height:100%; display:flex; flex-direction:column; gap:12px; padding:26px 16px; font:500 clamp(18px,1.5vw,24px)/1.15 var(--label); letter-spacing:.05em; text-transform:uppercase; transition:background .5s,color .3s }
.about-departments span { font:13px var(--label); letter-spacing:.22em; color:var(--gold) }
.about-departments a:hover,.about-departments a:focus-visible { background:radial-gradient(90% 100% at 50% 0,#ecc98c2e,transparent 70%); color:var(--gold-hot) }

/* 2018: two award medals cut from our own storefront photos, each on a ribbon with its rank. */
.about-medals { display:flex; flex-wrap:wrap; justify-content:center; gap:clamp(22px,3.4vw,52px); padding:6px 0 4px }
.about-medal { display:grid; justify-items:center; width:var(--medal,clamp(150px,15vw,220px)); text-align:center }
.about-medal-photo { position:relative; display:block; width:100%; aspect-ratio:1; padding:7px; border-radius:50%; isolation:isolate; background:conic-gradient(from 200deg,#f6e3b0,#b8935a,#f3dfa6,#8a6a35,#ecd394,#b8935a,#f6e3b0); box-shadow:0 22px 40px #000b,inset 0 0 0 1px #5e4723 }
.about-medal-photo::before { content:''; position:absolute; left:50%; top:62%; z-index:-1; width:54%; height:58%; translate:-50% 0; background:linear-gradient(90deg,#7a5c2c 0 16%,#c9a45f 16% 38%,#efd9a0 38% 62%,#c9a45f 62% 84%,#7a5c2c 84%); clip-path:polygon(0 0,100% 0,100% 100%,50% 80%,0 100%) }
/* Specific enough to win over each experience's general photo rules. */
.about-medals .about-medal-photo img { width:100%; height:100%; max-width:none; object-fit:cover; border-radius:50%; border:3px solid #15130e; background:none }
.about-medal-rank { position:relative; z-index:1; display:grid; place-items:center; align-content:center; width:70px; height:70px; margin-top:-38px; border-radius:50%; border:2px solid #ecc98c; background:radial-gradient(circle at 50% 35%,#3e311f,#15110c); box-shadow:0 10px 22px #000b; font:32px/1 var(--display); color:var(--gold-hot) }
.about-medal-rank span { display:block; margin-bottom:1px; font:500 11px/1 var(--label); letter-spacing:.18em; text-transform:uppercase; color:var(--gold) }
.about-medal-city { display:block; margin-top:14px; font:500 clamp(18px,1.5vw,22px)/1.15 var(--label); letter-spacing:.08em; text-transform:uppercase; color:var(--ink) }
.about-medal-place { display:block; margin-top:4px; font:italic 15px/1.4 var(--serif); color:var(--muted) }
.about-medals-figure { margin:26px 0 8px }
.about-medals-figure .about-medals { justify-content:flex-start }
.about-medals-figure .about-medal { --medal:clamp(130px,12vw,170px) }
.about-medals-figure figcaption { margin-top:16px; font:italic 15px/1.45 var(--serif); color:var(--muted) }

/* Every experience ends by offering the other two and the plain story. */
.about-switch { padding:clamp(60px,9svh,100px) var(--gutter) clamp(40px,6svh,60px); border-top:1px solid var(--line); background:var(--stage) }
.about-switch ul { list-style:none; margin:24px 0 0; padding:0; display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:clamp(14px,2vw,28px) }
.about-switch a { height:100%; display:grid; grid-template-columns:minmax(0,1fr) auto; gap:8px 20px; align-items:center; padding:26px 26px 24px; border:1px solid #f2e8d726; background:#15130e; transition:border-color .4s,background .4s,translate .45s var(--ease) }
.about-switch a:hover,.about-switch a:focus-visible { color:var(--ink); border-color:#ecc98c88; background:radial-gradient(90% 120% at 50% 0,#ecc98c1f,transparent 70%),#15130e; translate:0 -4px }
.about-switch-name { font:400 clamp(28px,2.4vw,40px)/1 var(--display); text-transform:uppercase }
.about-switch-text { grid-column:1; font:16px/1.5 var(--serif); color:var(--muted) }
.about-switch .icon { grid-column:2; grid-row:1 / span 2; color:var(--gold) }

@media(max-width:1000px) {
  .about-cards,.about-switch ul { grid-template-columns:minmax(0,1fr) }
  .about-chronicle,.about-family,.about-honor-list { grid-template-columns:minmax(0,1fr) }
  .about-chronicle-head { position:static }
  .about-departments { grid-template-columns:repeat(3,minmax(0,1fr)) }
  .about-departments li:nth-child(4) a { border-left:0 }
  .about-departments li:nth-child(n+4) a { border-top:1px solid var(--line) }
}
@media(max-width:760px) {
  .about-next { grid-template-columns:1fr }
  .about-page section[id],.about-page li[id] { scroll-margin-top:76px }
  .about-years li { grid-template-columns:minmax(0,1fr); gap:8px }
  .about-roll--plain { grid-template-columns:minmax(0,1fr) }
  .about-honor { grid-template-columns:96px minmax(0,1fr); gap:20px }
  .about-departments { grid-template-columns:minmax(0,1fr) }
  .about-departments li a,.about-departments li+li a { flex-direction:row; align-items:baseline; border-left:0; border-top:1px solid var(--line); padding:20px 4px }
  .about-departments li:first-child a { border-top:0 }
  .about-switch { padding-inline:22px }
}
