/* Reserve space for the shared navigation without changing the approved galleries. */
body[data-page="experience"]{--accent:#d9e7b5}
.mast{padding-top:96px}
.experience-detail::before{
  content:"";
  position:fixed;
  z-index:18;
  inset:0 0 auto;
  height:126px;
  pointer-events:none;
  background:linear-gradient(180deg,rgba(8,14,16,.96) 0%,rgba(8,14,16,.78) 45%,rgba(8,14,16,0) 100%);
  -webkit-backdrop-filter:blur(7px);
  backdrop-filter:blur(7px);
  -webkit-mask-image:linear-gradient(#000 0 52%,transparent 100%);
  mask-image:linear-gradient(#000 0 52%,transparent 100%);
}
.experience-detail .site-header{top:20px}
.experience-detail .back{
  z-index:21;
  top:20px;
  min-height:44px;
  padding:10px 16px;
  background:rgba(10,16,17,.74);
  border-color:rgba(255,255,255,.10);
  box-shadow:0 6px 20px rgba(0,0,0,.16);
  -webkit-backdrop-filter:blur(12px);
  backdrop-filter:blur(12px);
}
.experience-detail .page{padding-top:128px}
.experience-detail .page-head{margin-bottom:48px}
.experience-detail .page-head h1{
  max-width:1120px;
  font-size:clamp(42px,4.4vw,68px);
  line-height:1.14;
  text-wrap:balance;
}
.global-nav__item.is-current{background:rgba(255,255,255,.08)}
.site-footer h2{line-height:1.5}
#main:focus{outline:none}
@media(max-width:760px){
  .mast{padding-top:90px}
  .experience-detail::before{height:132px}
  .experience-detail .site-header{top:10px}
  .experience-detail .back{top:62px;left:16px;min-height:40px;padding:8px 14px}
  .experience-detail .page{padding-top:126px}
  .experience-detail .page-head{margin-bottom:34px}
  .experience-detail .page-head h1{font-size:clamp(34px,9.4vw,46px);line-height:1.18}
}

/* Overview: one composed viewport across common desktop browser heights. */
body[data-page="experience"]:not(.experience-detail) .mast{
  position:absolute;
  z-index:2;
  top:0;
  left:0;
  right:0;
  padding:clamp(94px,12svh,118px) 4.5vw 0;
  pointer-events:none;
}
body[data-page="experience"]:not(.experience-detail) .landing{
  width:100%;
  max-width:1800px;
  height:100svh;
  min-height:650px;
  margin:0 auto;
  padding:clamp(116px,15svh,150px) 4.5vw clamp(66px,8.8svh,78px);
  display:grid;
  grid-template-rows:auto minmax(0,1fr);
}
body[data-page="experience"]:not(.experience-detail) .hero-title.editorial-title{
  padding:0 0 clamp(22px,3.8svh,38px);
}
body[data-page="experience"]:not(.experience-detail) .hero-title.editorial-title h1{
  font-size:clamp(42px,4.8vw,68px);
  line-height:1.16;
}
body[data-page="experience"]:not(.experience-detail) .hero-title-en{
  margin-top:clamp(8px,1.6svh,15px);
  font-size:clamp(18px,1.75vw,27px);
}
body[data-page="experience"]:not(.experience-detail) .accordion{
  height:auto;
  min-height:0;
  max-height:none;
}
body[data-page="experience"]:not(.experience-detail) .panel-copy{
  bottom:clamp(20px,3.2svh,30px);
}

/* Short laptop windows: retain the full composition without clipping cards. */
@media(min-width:761px) and (max-height:760px){
  body[data-page="experience"]:not(.experience-detail) .mast{padding-top:84px}
  body[data-page="experience"]:not(.experience-detail) .landing{
    min-height:600px;
    padding-top:102px;
    padding-bottom:52px;
  }
  body[data-page="experience"]:not(.experience-detail) .hero-title.editorial-title{padding-bottom:18px}
  body[data-page="experience"]:not(.experience-detail) .hero-title.editorial-title h1{font-size:clamp(38px,4.35vw,58px)}
  body[data-page="experience"]:not(.experience-detail) .hero-title-en{font-size:19px;margin-top:7px}
  body[data-page="experience"]:not(.experience-detail) .panel-copy{bottom:20px}
}

/* Mobile overview: all three destinations remain visible in the first viewport. */
@media(max-width:760px){
  body[data-page="experience"]:not(.experience-detail) .mast{
    padding:72px 20px 0;
  }
  body[data-page="experience"]:not(.experience-detail) .landing{
    height:100svh;
    min-height:620px;
    padding:104px 20px 16px;
    grid-template-rows:auto minmax(0,1fr);
  }
  body[data-page="experience"]:not(.experience-detail) .hero-title.editorial-title{padding:0 0 16px}
  body[data-page="experience"]:not(.experience-detail) .hero-title.editorial-title h1{
    font-size:clamp(29px,8.2vw,38px);
    line-height:1.12;
    letter-spacing:.02em;
  }
  body[data-page="experience"]:not(.experience-detail) .hero-title-en{
    margin-top:7px;
    font-size:clamp(15px,4.6vw,19px);
  }
  body[data-page="experience"]:not(.experience-detail) .accordion{
    display:grid;
    grid-template-rows:repeat(3,minmax(0,1fr));
    gap:10px;
    height:auto;
    min-height:0;
  }
  body[data-page="experience"]:not(.experience-detail) .panel,
  body[data-page="experience"]:not(.experience-detail) .panel.active{
    height:auto;
    min-height:0;
    border-radius:12px;
  }
  body[data-page="experience"]:not(.experience-detail) .panel-number{top:14px;left:16px;font-size:10px}
  body[data-page="experience"]:not(.experience-detail) .panel-copy{left:17px;right:15px;bottom:14px}
  body[data-page="experience"]:not(.experience-detail) .panel h2{font-size:20px}
  body[data-page="experience"]:not(.experience-detail) .panel p{
    margin-top:5px;
    font-size:10px;
    line-height:1.45;
    white-space:normal;
    display:-webkit-box;
    -webkit-line-clamp:1;
    -webkit-box-orient:vertical;
    overflow:hidden;
  }
}

@media(max-width:380px){
  body[data-page="experience"]:not(.experience-detail) .landing{padding-left:14px;padding-right:14px}
  body[data-page="experience"]:not(.experience-detail) .mast{padding-left:14px;padding-right:14px}
  body[data-page="experience"]:not(.experience-detail) .panel h2{font-size:18px}
}

/* Keep the final navigation balanced between its divider and the site footer. */
.experience-detail .article{padding-bottom:0}
.experience-detail .article>.portal{padding-block:34px}
@media(max-width:760px){
  .experience-detail .article>.portal{padding-block:24px}
}

/* Keep the final film close to navigation while preserving navigation padding. */
:is(.article--anu,.article--audiovisual,.article--ceremonies)>.film-series{margin-bottom:72px}
.article--xingyun>.film-series{margin-bottom:48px}
:is(.article--anu,.article--xingyun,.article--audiovisual,.article--ceremonies)>.film-series>.video-section:last-child{margin-bottom:0}
@media(max-width:760px){
  :is(.article--anu,.article--audiovisual,.article--ceremonies)>.film-series{margin-bottom:48px}
  .article--xingyun>.film-series{margin-bottom:32px}
}

/* Center the single admissions product photo at its existing width. */
.article--admissions .photo-grid.count-1{margin-inline:auto}

/* Shared article hierarchy across every experience and project detail. */
body[data-page="experience"].experience-detail .article>.page-head{
  display:block;
  max-width:none;
  margin:0 0 48px;
  padding:0;
  border:0;
  text-align:left;
}
body[data-page="experience"].experience-detail .article>.page-head .eyebrow{
  margin:0 0 22px;
  font-size:11px;
  line-height:1.8;
  letter-spacing:.17em;
}
body[data-page="experience"].experience-detail .article>.page-head h1{
  max-width:none;
  margin:0 0 23px;
  font-size:clamp(42px,4.4vw,68px);
  font-weight:400;
  line-height:1.14;
  letter-spacing:.02em;
  text-wrap:balance;
}
body[data-page="experience"].experience-detail .article>.page-head p:last-child{
  margin:0;
  font-size:14px;
  line-height:1.9;
  letter-spacing:normal;
  text-align:left;
  white-space:normal;
}
body[data-page="experience"].experience-detail .article>.prose{
  display:flow-root;
  width:100%;
  max-width:none;
  margin:0 0 42px;
  padding:0;
  font-size:clamp(16px,1.35vw,20px);
  line-height:1.9;
  color:#b8c1bf;
  text-align:left;
  text-wrap:wrap;
}
body[data-page="experience"].experience-detail .article>.prose p{margin:0 0 24px}
body[data-page="experience"].experience-detail .article>.prose p:last-child{margin-bottom:0}
body[data-page="experience"].experience-detail .article>.prose h2{
  margin:0 0 16px;
  font-size:23px;
  font-weight:400;
  line-height:1.5;
}
body[data-page="experience"].experience-detail .article>.prose section+section{margin-top:32px}
@media(max-width:760px){
  body[data-page="experience"].experience-detail .article{padding-inline:22px}
  body[data-page="experience"].experience-detail .article>.page-head{margin-bottom:34px}
  body[data-page="experience"].experience-detail .article>.page-head .eyebrow{font-size:10px;margin-bottom:18px}
  body[data-page="experience"].experience-detail .article>.page-head h1{
    font-size:clamp(34px,9.4vw,46px);
    line-height:1.18;
    margin-bottom:20px;
  }
  body[data-page="experience"].experience-detail .article>.page-head p:last-child{font-size:12px}
  body[data-page="experience"].experience-detail .article>.prose{font-size:14px;margin-bottom:38px}
  body[data-page="experience"].experience-detail .article>.prose h2{font-size:20px;margin-bottom:14px}
  body[data-page="experience"].experience-detail .article>.prose section+section{margin-top:28px}
}

/* Keep the original one-over-two composition within the available viewport height.
   Image rows use about 25/24 of the grid width; reserve room for navigation,
   captions, and gaps before deriving the shared image scale. */
@media(min-width:761px){
  .article--student-organizations .photo-grid.count-3{
    grid-template-columns:repeat(2,minmax(0,1fr));
    grid-template-rows:auto;
    width:min(100%,960px,calc((100svh - 250px)*.96));
    max-width:none;
    margin-inline:auto;
    align-items:start;
    gap:26px 16px;
  }
  .article--student-organizations .photo-grid.count-3 figure:first-child{
    grid-column:1/-1;
    grid-row:auto;
  }
  .article--student-organizations .photo-grid.count-3 figure:first-child img,
  .article--student-organizations .photo-grid.count-3 figure:not(:first-child) img{
    aspect-ratio:auto;
    height:auto;
    object-fit:contain;
  }
}

/* Picture sources change only the mobile download; these wrappers add no boxes. */
body[data-page="experience"] .experience-picture,
body[data-page="experience"] .motion-frame{display:contents}
body[data-page="experience"] .mobile-image-feedback{display:none}
/* Keep the original overview image treatment after introducing picture sources. */
body[data-page="experience"] .panel>.experience-picture>img{
  height:100%;width:100%;object-fit:cover;
  filter:brightness(.57) saturate(.6);transform:scale(1.07);
  transition:filter .85s var(--ease),transform 1.2s var(--ease);
}
body[data-page="experience"] .panel.active>.experience-picture>img{
  filter:brightness(.87) saturate(.9);transform:scale(1);
}
@media(max-width:760px){
  /* The newer 64px navigation already supplies its own glass background. */
  body[data-page="experience"].experience-detail.primary-nav-ready::before{display:none}
  body[data-page="experience"].experience-detail.primary-nav-ready.primary-nav-glass .site-header{background:rgba(11,17,19,.88)!important}
  body[data-page="experience"] .panel>.experience-picture>img{filter:brightness(.8);transform:none}
  body[data-page="experience"] .photo-grid--mobile-natural{align-items:start}
  body[data-page="experience"] .photo-grid--mobile-natural>figure>button{flex:none}
  body[data-page="experience"] .photo--preserve-mobile img{
    height:auto;aspect-ratio:var(--image-ratio,auto);object-fit:contain;
  }
  body[data-page="experience"] [data-image-shell]{position:relative}
  body[data-page="experience"] .mobile-image-feedback:not([hidden]){
    position:absolute;inset:0;display:grid;place-items:center;padding:12px;
    background:#17201c;color:#cdd6d0;font-size:11px;line-height:1.6;
    text-align:center;pointer-events:none;border-radius:inherit;
  }
  body[data-page="experience"] .motion-frame{
    display:block;position:relative;width:100%;aspect-ratio:4/3;
    overflow:hidden;border-radius:10px;background:#171a16;
  }
  body[data-page="experience"] .motion-frame .motion-video{height:100%;width:100%;object-fit:cover}
}


/* Desktop detail typography; mobile retains its existing independent hierarchy.
   Media patterns: centered single, paired images, one-over-two, editorial wall,
   film stills, and the media project's three-by-three collection. */
@media(min-width:761px){
  body[data-page="experience"].experience-detail .article>.page-head h1{
    font-size:clamp(36px,3.3vw,48px);
  }
  body[data-page="experience"].experience-detail .article>.prose{
    font-size:16px;
  }
  body[data-page="experience"].experience-detail .article>.prose h2{
    font-size:21px;
  }
  body[data-page="experience"] :is(.article--media,.article--xingyun)>.media-matrix{
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:32px 16px;
    margin:38px 0 60px;
    align-items:start;
  }
  body[data-page="experience"] .media-matrix>.photo-section,
  body[data-page="experience"] .media-matrix>.photo-section>.photo-grid{
    display:contents;
  }
  body[data-page="experience"] :is(.article--media,.article--xingyun) .media-matrix .photo-grid>figure{
    margin:0;
    min-width:0;
    display:flex;
    flex-direction:column;
    grid-column:auto;
    grid-row:auto;
  }
  body[data-page="experience"] .media-matrix figure>button{flex:none}
}

/* Center related-link banners within the project content width. */
body[data-page="experience"] .related-links{margin-inline:auto}

/* Match the two portrait photos without cropping their subjects. */
body[data-page="experience"] .article--audiovisual .photo-grid>figure>button{flex:none}
body[data-page="experience"] .article--audiovisual .photo-grid img{height:auto;aspect-ratio:3/4;object-fit:contain}
