/* Meet the Team: a real one-viewport clothesline of pegged Polaroids.
   Separate from the rest of the DD experience pages. */
body.team-page{min-height:100svh;min-width:300px;display:flex;flex-direction:column;overflow-x:hidden;overflow-y:auto}
.team-page .team-shell{width:min(1400px,calc(100% - 2rem));max-width:none;min-height:0;flex:1 0 auto;display:flex;flex-direction:column;padding-bottom:0}
.team-page .site-legal-footer{flex:0 0 auto;width:100%}
.team-lineup{--card-width:clamp(232px,26vw,287px);--rope-gap:clamp(23px,3.5vw,50px);position:relative;isolation:isolate;display:flex;flex:1 0 auto;flex-direction:column;align-items:center;justify-content:center;gap:clamp(.5rem,1.6vh,1.35rem);padding:clamp(.8rem,3vh,2.2rem) 0 clamp(1rem,3vh,2rem);text-align:center}
.team-intro{position:relative;z-index:2}
.team-intro .eyebrow{margin:0 0 .45rem;color:#bba7fa;font-size:.66rem;letter-spacing:.2em;font-weight:800}
.team-intro h1{margin:0;font-size:clamp(2rem,4.2vw,4.3rem);line-height:1.05;letter-spacing:-.065em;color:#f8f5ff}
.team-intro h1 span{color:#be9dfc}
.team-intro>p:last-child{margin:.65rem auto 0;max-width:60ch;font-size:clamp(.73rem,.9vw,.87rem);line-height:1.5;color:#b9b0c8}
.team-gallery{width:min(100%,670px);position:relative;padding-inline:clamp(0px,1vw,12px)}
.team-rope-window{position:relative;overflow-x:auto;overflow-y:hidden;overscroll-behavior-x:contain;scroll-snap-type:x mandatory;scroll-behavior:smooth;scrollbar-width:none;mask-image:linear-gradient(90deg,transparent,#000 2.5%,#000 97.5%,transparent)}
.team-rope-window::-webkit-scrollbar{display:none}
.team-rope-window::before{content:"";position:absolute;top:48px;left:0;right:0;height:4px;background:linear-gradient(180deg,#d2b18b,#6e5340 50%,#dbc5ac);border-radius:60%;box-shadow:0 2px 4px #0008;z-index:1;pointer-events:none}
.team-rope-track{display:flex;align-items:flex-start;gap:var(--rope-gap);width:max-content;min-width:100%;padding:56px clamp(10px,1.2vw,20px) 51px;list-style:none;margin:0}
.team-person{position:relative;flex:0 0 var(--card-width);width:var(--card-width);scroll-snap-align:center;transform:rotate(var(--tilt));filter:drop-shadow(0 15px 19px #0009);transition:transform .2s ease}
.team-person:nth-child(1){--tilt:-4deg}
.team-person:nth-child(2){--tilt:2.8deg}
.team-person:nth-child(3){--tilt:-2.3deg}
.team-person:hover{transform:rotate(0deg) translateY(-3px)}
.team-peg{position:absolute;z-index:5;top:-36px;left:50%;width:22px;height:54px;transform:translateX(-50%) rotate(-4deg);border-radius:5px;background:linear-gradient(90deg,#a67d55 0 46%,#e5bb85 48% 84%,#c29264);border:1px solid #b79268;box-shadow:2px 3px 8px #0008}
.team-peg::before{content:"";position:absolute;left:4px;top:9px;width:14px;height:15px;border:2px solid #6b5140;border-radius:100%;opacity:.8}
.team-peg::after{content:"";position:absolute;top:25px;left:10px;width:1px;height:23px;background:#775636}
.team-polaroid{position:relative;background:#f6f0e8;color:#211b24;padding:clamp(9px,.95vw,12px) clamp(9px,.95vw,12px) 14px;border:1px solid #e9d9c5;box-shadow:inset 0 -2px 3px #beb4aa75,0 3px 0 #e7dbcf}
.team-photo{position:relative;aspect-ratio:1.25 / 1;overflow:hidden;background:#302247}
.team-photo img{display:block;width:100%;height:100%;object-fit:cover}
.team-person:nth-child(2) .team-photo img{filter:hue-rotate(45deg) saturate(.82)}
.team-person:nth-child(3) .team-photo img{filter:hue-rotate(286deg) saturate(.9)}
.team-polaroid h2{margin:9px 0 3px;font-size:clamp(1.18rem,1.7vw,1.5rem);line-height:1.05;font-weight:850;letter-spacing:-.045em}
.team-polaroid p{margin:0 auto;max-width:27ch;color:#5e5361;font-size:clamp(.65rem,.9vw,.73rem);line-height:1.35;min-height:2.7em}
.team-person .team-heart{position:absolute;inset:-42px -39px -39px -42px;width:calc(100% + 81px);height:calc(100% + 81px);overflow:visible;z-index:7;pointer-events:none;transform:rotate(-7deg)}
.team-heart path{fill:none;stroke:#fa4e88;stroke-width:14;stroke-linecap:round;stroke-linejoin:round;opacity:.96}
.team-heart path:last-child{stroke:#ff96be;stroke-width:4;stroke-dasharray:24 15;opacity:.9}
.team-gallery-controls{display:flex;align-items:center;justify-content:center;gap:1rem;margin-top:clamp(.15rem,.8vh,.55rem)}
.team-gallery-controls button{display:grid;place-items:center;width:38px;height:38px;border:1px solid #bc9cfa77;border-radius:50%;background:#261a3c;color:#e9dcff;font-size:1.5rem;line-height:1;cursor:pointer}
.team-gallery-controls button:hover:not(:disabled),.team-gallery-controls button:focus-visible{background:#58338f;border-color:#e2c3ff}
.team-gallery-controls button:disabled{opacity:.28;cursor:default}
.team-gallery-count{min-width:70px;color:#bbaed3;font-size:.73rem;font-weight:800;letter-spacing:.1em}
.team-lineup .team-return{display:inline-block;margin:.1rem 0 0;font-size:.74rem;color:#b7a7ce;text-decoration:underline;text-underline-offset:4px}
.team-lineup .team-return:hover{color:white}
@media(min-width:1050px) and (min-height:760px){.team-rope-window::before{top:48px}}
@media(max-width:700px){body.team-page{min-height:100svh}.team-page .team-shell{width:min(100% - 1rem,1400px);flex:1 0 auto}.team-lineup{--card-width:min(70vw,275px);--rope-gap:28px;justify-content:flex-start;padding:1.3rem 0 1.5rem}.team-intro h1{font-size:clamp(2rem,8.3vw,3rem)}.team-intro>p:last-child{padding-inline:.65rem;font-size:.75rem}.team-gallery{width:100%}.team-rope-track{padding-bottom:42px}.team-person .team-heart{inset:-33px -27px -33px -31px;width:calc(100% + 58px);height:calc(100% + 66px)}.team-gallery-controls{margin-top:.25rem}.team-page .site-legal-footer>.container{padding:.8rem 0}.team-page .experience-header{padding-top:.7rem;padding-bottom:.7rem}}
@media(max-height:730px) and (min-width:701px){.team-lineup{justify-content:flex-start;padding-top:.3rem;gap:.4rem}.team-rope-track{padding-bottom:44px}.team-polaroid{padding-bottom:10px}.team-photo{aspect-ratio:1.5/1}.team-intro h1{font-size:clamp(2rem,3vw,3rem)}}
@media(prefers-reduced-motion:reduce){.team-rope-window{scroll-behavior:auto}.team-person{transition:none}}

/* Five-person, wider and taller gallery; the rope belongs to the whole scroll track,
   not the clipping viewport, so it reaches the fifth Polaroid. */
.team-page .team-lineup{--card-width:clamp(305px,30vw,365px);--rope-gap:clamp(34px,3.6vw,56px);
  justify-content:flex-start;gap:clamp(.45rem,1vh,.85rem);padding-top:clamp(0px,.8vh,9px);
  padding-bottom:clamp(.3rem,1.4vh,1rem)}
.team-page .team-gallery{width:min(100%,1090px);padding-inline:0}
.team-page .team-rope-window{mask-image:linear-gradient(90deg,transparent,#000 2%,#000 98%,transparent);touch-action:pan-x;cursor:grab}
.team-page .team-rope-window:active{cursor:grabbing}
.team-page .team-rope-window::before{content:none}
.team-page .team-rope-track{position:relative;padding:58px clamp(55px,5.2vw,74px) 57px;width:max-content;min-width:100%}
.team-page .team-rope-track::before{content:"";position:absolute;z-index:0;top:48px;left:0;right:0;height:4px;border-radius:50%;
  background:linear-gradient(180deg,#dbc3a0,#7c6048 48%,#d4baa0);box-shadow:0 2px 4px #000a}
.team-page .team-person{z-index:1}
.team-page .team-photo{aspect-ratio:1.35 / 1}
.team-page .team-person:nth-child(4){--tilt:3.6deg}
.team-page .team-person:nth-child(5){--tilt:-3.8deg}
.team-page .team-person:nth-child(4) .team-photo img{filter:hue-rotate(142deg) saturate(.78)}
.team-page .team-person:nth-child(5) .team-photo img{filter:hue-rotate(240deg) saturate(.7)}
.team-page .team-gesture-guide{pointer-events:none;position:absolute;z-index:10;top:44%;left:50%;transform:translate(-50%,-50%);
  display:grid;place-items:center;min-width:190px;opacity:1;transition:opacity .35s ease}
.team-page .team-gallery[data-team-interacted] .team-gesture-guide{opacity:0}
.team-page .team-gesture-ghost{align-items:center;justify-content:center;flex-direction:column;gap:2px;color:#fff;
  filter:drop-shadow(0 3px 7px rgba(0,0,0,.75));animation:dd-ghost-scroll-reveal 7s ease-in-out infinite}
.team-page .team-gesture-ghost svg{display:block;width:115px;height:84px;opacity:.9}
.team-page .team-gesture-ghost span{display:block;font:800 .64rem/1.3 "DM Sans",sans-serif;letter-spacing:.1em;text-transform:uppercase;text-shadow:0 2px 8px #000}
.team-page .team-gesture-traveller{transform-box:fill-box;transform-origin:center;animation:dd-ghost-scroll-travel 7s ease-in-out infinite}
.team-page .team-gesture-ghost--desktop{display:flex}
.team-page .team-gesture-ghost--mobile{display:none}
@keyframes dd-ghost-scroll-reveal{
  0%,9%,61%,100%{opacity:0}
  16%,27%,46%,54%{opacity:.94}
}
@keyframes dd-ghost-scroll-travel{
  0%,14%,60%,100%{transform:translateX(31px)}
  32%,49%{transform:translateX(-26px)}
}
@media(hover:none),(pointer:coarse){
  .team-page .team-gesture-ghost--desktop{display:none}
  .team-page .team-gesture-ghost--mobile{display:flex}
  .team-page .team-gesture-ghost--mobile svg{height:95px}
}
@media(max-width:700px){
  .team-page .team-lineup{--card-width:min(82vw,335px);--rope-gap:36px;padding-top:.2rem}
  .team-page .team-rope-track{padding:58px 45px 55px}
  .team-page .team-photo{aspect-ratio:1.28 / 1}
  .team-page .team-intro h1{font-size:clamp(1.7rem,7.4vw,2.7rem)}
  .team-page .team-gesture-guide{top:43%}
}
@media(max-height:760px) and (min-width:701px){
  .team-page .team-photo{aspect-ratio:1.55/1}
  .team-page .team-rope-track{padding-bottom:47px}
}
@media(prefers-reduced-motion:reduce){
  .team-page .team-gesture-ghost,.team-page .team-gesture-traveller{animation:none}
  .team-page .team-gesture-ghost{opacity:.6}
  .team-page .team-gesture-guide{transition:none}
}

/* Team sign-off polish: readable old-fashioned Polaroid footers and actual spring pegs. */
.team-page .team-lineup{
  padding-top:clamp(32px,4.3vh,54px);
  gap:clamp(.65rem,1.5vh,1.1rem);
}
.team-page .team-polaroid{
  padding-bottom:clamp(14px,1.5vw,22px);
  box-shadow:0 17px 27px #0008,inset 0 -2px 4px #6f625c36;
}
.team-page .team-polaroid p{
  min-height:2.7em;
  margin-bottom:12px;
}
.team-page .team-polaroid-facts{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px 12px;
  margin:12px 0 0;
  padding-top:12px;
  border-top:1px dashed #9b8b82a8;
  text-align:left;
}
.team-page .team-polaroid-facts div{min-width:0}
.team-page .team-polaroid-facts dt{
  margin:0;
  color:#726671;
  font:800 clamp(.57rem,.74vw,.67rem)/1.3 "DM Sans",sans-serif;
  text-transform:uppercase;
  letter-spacing:.1em;
}
.team-page .team-polaroid-facts dd{
  margin:3px 0 0;
  color:#342b32;
  font:700 clamp(.65rem,.83vw,.77rem)/1.35 "DM Sans",sans-serif;
  overflow-wrap:break-word;
}
.team-page .team-peg{
  width:41px;
  height:82px;
  top:-55px;
  left:50%;
  transform:translateX(-50%) rotate(-30deg);
  transform-origin:50% 57%;
  border:0;
  border-radius:0;
  background:url("assets/team-wooden-clothes-peg.svg") center/contain no-repeat;
  box-shadow:none;
  filter:drop-shadow(2px 4px 3px #09070ab9);
}
.team-page .team-peg::before,.team-page .team-peg::after{content:none}
@media(max-width:700px){
  .team-page .team-lineup{padding-top:clamp(20px,3vh,32px)}
  .team-page .team-polaroid-facts{gap:8px 9px}
  .team-page .team-peg{width:34px;height:70px;top:-49px}
}
@media(max-height:790px) and (min-width:701px){
  .team-page .team-lineup{padding-top:18px}
  .team-page .team-photo{aspect-ratio:1.72/1}
  .team-page .team-polaroid-facts{gap:6px 9px;margin-top:8px;padding-top:8px}
}

/* 2026-11-16: full-shell clothesline, constrained above footer, real desktop mouse drag. */
.team-page .team-gallery{width:100%!important;max-width:none;min-width:0;padding-inline:0}
.team-page .team-rope-window{width:100%;min-width:0;overscroll-behavior:contain}
.team-page .team-rope-track{padding-right:clamp(64px,5vw,86px);padding-left:clamp(64px,5vw,86px)}
.team-page .team-rope-window img,
.team-page .team-rope-window .team-peg{
  -webkit-user-drag:none;
  user-select:none;
}
.team-page .team-rope-window[data-dragging]{
  cursor:grabbing!important;
  scroll-behavior:auto!important;
  scroll-snap-type:none!important;
  user-select:none;
}
.team-page .team-rope-window[data-dragging] *{cursor:grabbing!important}
@media(min-width:701px) and (min-height:650px){
  html:has(body.team-page){height:100%;overflow:hidden}
  body.team-page{height:100dvh;min-height:0;max-height:100dvh;overflow:hidden}
  .team-page .team-shell{
    min-height:0;max-height:none;
    flex:1 1 auto;
    overflow:hidden;
  }
  .team-page .team-lineup{
    --card-width:clamp(280px,min(26vw,36vh),345px);
    min-height:0;
    flex:1 1 auto;
    justify-content:flex-start;
    padding:clamp(8px,1.5vh,18px) 0 0;
    gap:clamp(4px,1vh,10px);
    overflow:hidden;
  }
  .team-page .team-intro{flex:0 0 auto}
  .team-page .team-gallery{
    flex:1 1 auto;min-height:0;
    overflow:hidden;
  }
  .team-page .team-rope-window{
    height:100%;max-height:100%;
    overflow-x:auto;overflow-y:hidden;
  }
  .team-page .team-rope-track{padding-top:58px;padding-bottom:22px}
  .team-page .team-photo{aspect-ratio:1.42/1}
  .team-page .site-legal-footer{flex:0 0 auto}
}
@media(min-width:701px) and (max-height:740px){
  .team-page .team-lineup{--card-width:clamp(250px,32vh,300px);padding-top:5px}
  .team-page .team-photo{aspect-ratio:1.75/1}
  .team-page .team-rope-track{padding-top:55px;padding-bottom:14px}
  .team-page .team-polaroid-facts{margin-top:6px;padding-top:6px;gap:5px 9px}
}
@media(max-width:700px){
  body.team-page{height:auto;min-height:100dvh;overflow-y:auto}
  .team-page .team-shell{overflow:visible}
  .team-page .team-gallery{width:100%;overflow:hidden}
  .team-page .team-rope-window{overflow-x:auto;overflow-y:hidden}
}


/* Edge-to-edge line: Polaroids leave the actual browser border rather
   than disappearing at the narrower 1400px content-shell boundary. */
.team-page .team-shell,
.team-page .team-lineup{
  overflow:visible!important;
}
.team-page .team-intro{
  padding-top:10px;
}
.team-page .team-gallery{
  position:relative;
  left:50%;
  transform:translateX(-50%);
  width:100vw!important;
  max-width:100vw!important;
  min-width:0;
  margin-inline:0!important;
  padding:0!important;
}
.team-page .team-rope-window{
  box-sizing:border-box;
  width:100vw!important;
  max-width:100vw!important;
  overflow-x:auto!important;
  overflow-y:hidden!important;
  mask-image:none!important;
  -webkit-mask-image:none!important;
  clip-path:inset(0 0 0 0);
}
.team-page .team-rope-track{
  padding-left:clamp(40px,4vw,64px)!important;
  padding-right:clamp(40px,4vw,64px)!important;
}
@media(max-width:700px){
  .team-page .team-gallery,
  .team-page .team-rope-window{
    width:100vw!important;
    max-width:100vw!important;
  }
  .team-page .team-intro{padding-top:10px}
  .team-page .team-rope-track{
    padding-left:clamp(22px,6vw,36px)!important;
    padding-right:clamp(22px,6vw,36px)!important;
  }
}


/* Two empty positions at the far end of the clothesline. The photo is
   deliberately obscured; the printed stamp itself remains perfectly sharp. */
.team-page .team-person--future{
  --tilt:-3deg;
}
.team-page .team-person--future-2{--tilt:3deg}
.team-page .team-person--future .team-polaroid{
  position:relative;
  filter:saturate(.54) brightness(.82);
}
.team-page .team-person--future .team-photo{
  isolation:isolate;
}
.team-page .team-person--future .team-photo img{
  filter:blur(10px) grayscale(.55) hue-rotate(210deg)!important;
  transform:scale(1.13);
}
.team-page .team-person--future-2 .team-photo img{
  filter:blur(11px) grayscale(.55) hue-rotate(45deg)!important;
}
.team-page .team-person--future .team-photo::after{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(135deg,#2518309a,#62487c38 55%,#251830a8);
  z-index:2;
  pointer-events:none;
}
.team-page .team-future-stamp{
  position:absolute;
  z-index:8;
  left:50%;
  top:39%;
  width:max-content;
  max-width:90%;
  padding:.6rem .85rem;
  border:3px double #dcb9e3;
  border-radius:3px;
  color:#ffe9ff;
  background:#301b42a3;
  box-shadow:0 0 0 2px #3a223a8c,0 7px 18px #0007;
  text-transform:uppercase;
  text-align:center;
  letter-spacing:.1em;
  font:900 clamp(.8rem,1.18vw,1rem)/1.1 "DM Sans",sans-serif;
  transform:translate(-50%,-50%) rotate(-12deg);
  pointer-events:none;
}
.team-page .team-person--future-2 .team-future-stamp{
  transform:translate(-50%,-50%) rotate(9deg);
}
@media(max-width:700px){
  .team-page .team-future-stamp{
    font-size:.84rem;
    padding:.47rem .6rem;
  }
}


/* The clothesline itself belongs to the full browser-width viewport, not
   to the finite sequence of Polaroids. It must reach BOTH borders even when
   the track happens to stop between two pictures. */
.team-page .team-gallery{
  isolation:isolate;
  width:100vw!important;
  max-width:100vw!important;
}
.team-page .team-gallery::before{
  content:"";
  position:absolute;
  pointer-events:none;
  z-index:0;
  top:48px;
  left:0;
  right:0;
  height:4px;
  border-radius:999px;
  background:linear-gradient(180deg,#d2b18b,#765a42 48%,#dac2a4);
  box-shadow:0 2px 4px #0009;
}
.team-page .team-rope-track::before{
  display:none!important;
}
.team-page .team-rope-window{
  width:100vw!important;
  max-width:100vw!important;
  position:relative;
  z-index:1;
  background:transparent;
}
.team-page .team-rope-track{
  padding-right:clamp(9px,1.4vw,22px)!important;
}
@media(max-width:700px){
  .team-page .team-rope-track{padding-right:10px!important}
}
