/* Interactive adaptation of yma_website/WorkspaceArt.astro's file pocket.
   The title buttons stay still; only the decorative sheets move. */
.opportunity-layout { display:grid; grid-template-columns:minmax(280px,.4fr) minmax(0,.6fr); gap:clamp(36px,5vw,80px); align-items:center; }
.opportunity-copy h2 { font-size:clamp(40px,3.6vw,60px); line-height:1.1; max-width:16ch; text-wrap:balance; }
.opportunity-copy p { font-size:clamp(20px,1.65vw,26px); line-height:1.5; letter-spacing:-.015em; max-width:29ch; margin-top:30px; text-wrap:pretty; }
.opportunity-folders { --folder-travel:clamp(12px,2vw,28px); position:relative; width:100%; min-width:0; max-width:760px; aspect-ratio:1.32; min-height:min(600px,48vw); margin:auto; isolation:isolate; perspective:1100px; }
.opportunity-folder-art { position:absolute; inset:0; pointer-events:none; }
.opportunity-folder-art::before { content:''; position:absolute; left:9%; right:9%; bottom:-2%; height:12%; border-radius:50%; background:#00000012; filter:blur(18px); }
.opportunity-folder-sheet { --sheet-y:0px; --sheet-tilt:0deg; position:absolute; border-radius:20px 20px 10px 10px; transform-origin:50% 95%; transform:translate3d(0,var(--sheet-y),0) rotateX(var(--sheet-tilt)); will-change:transform; transition:transform .58s cubic-bezier(.22,.7,.25,1); }
.opportunity-folder-face { position:absolute; inset:0; border:1px solid #00000012; border-radius:inherit; background:linear-gradient(165deg,var(--sheet-top),var(--sheet-bottom) 88%); transform-origin:50% 95%; transform:translate3d(0,0,0) scale(1); will-change:transform; backface-visibility:hidden; box-shadow:0 1px 1px #ffffff inset,0 3px 5px #0000000c,0 15px 28px -15px #0000002a; transition:transform .62s cubic-bezier(.25,0,.2,1); }
.opportunity-folder-face::before { content:''; position:absolute; left:7px; right:7px; top:5px; height:7px; border-top:1px solid #ffffffb3; border-radius:15px 15px 0 0; }
.opportunity-folder-sheet[data-folder-index='0'] { --sheet-top:#f1e8fa; --sheet-bottom:#fdfaff; left:14%; right:14%; top:7%; bottom:14%; z-index:1; }
.opportunity-folder-sheet[data-folder-index='1'] { --sheet-top:#e4f1fc; --sheet-bottom:#f9fcff; left:7%; right:7%; top:28%; bottom:8%; z-index:2; }
.opportunity-folder-sheet[data-folder-index='2'] { --sheet-top:#ffecde; --sheet-bottom:#fffaf6; left:0; right:0; top:49%; bottom:2%; z-index:3; }
.opportunity-folder-name { display:block; text-align:center; padding:clamp(16px,2vw,28px) 12px 0; color:#000000; font-size:clamp(21px,2.05vw,32px); font-weight:500; letter-spacing:-.025em; line-height:1.2; }
.opportunity-folder-note { display:block; text-align:center; margin-top:8px; padding-inline:16px; font-family:Geist,Arial,sans-serif; font-size:20px; line-height:1.3; font-weight:400; color:#000000; }
.opportunity-folder-pocket { position:absolute; left:-3%; right:-3%; top:70%; bottom:0; z-index:4; border-radius:0 0 20px 20px; overflow:hidden; filter:drop-shadow(0 7px 8px #00000010); }
.opportunity-folder-pocket svg { width:100%; height:100%; display:block; }
.opportunity-folder-hint { position:absolute; z-index:6; left:0; right:0; bottom:5%; display:flex; justify-content:center; align-items:flex-end; gap:12px; margin:0; padding:0 12px; color:#666666; font-family:Geist,Arial,sans-serif; font-size:16px; font-weight:400; line-height:1.4; pointer-events:none; }
.opportunity-folder-hint span { padding-bottom:1px; }
.opportunity-folder-hint svg { flex:none; }
.opportunity-folder-hint:not([hidden]) { animation:opportunity-hint-in .45s ease-out both; }
@keyframes opportunity-hint-in { from { opacity:0; transform:translateY(5px); } to { opacity:1; transform:translateY(0); } }
.opportunity-folder-choice { position:absolute; z-index:5; padding:0; border:0; background:transparent; border-radius:18px; cursor:pointer; -webkit-tap-highlight-color:transparent; }
.opportunity-folder-choice[data-folder-index='0'] { left:14%; right:14%; top:0; height:28%; }
.opportunity-folder-choice[data-folder-index='1'] { left:7%; right:7%; top:28%; height:21%; }
.opportunity-folder-choice[data-folder-index='2'] { left:0; right:0; top:49%; bottom:0; }
.opportunity-folder-choice>span { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
.opportunity-folder-choice:focus-visible { outline:none; }
/* Passing over a title browses the stack; a short dwell draws that sheet out. */
.opportunity-folders[data-browse='0'] .opportunity-folder-sheet[data-folder-index='0'],
.opportunity-folders[data-browse='1'] .opportunity-folder-sheet[data-folder-index='1'],
.opportunity-folders[data-browse='2'] .opportunity-folder-sheet[data-folder-index='2'] { --sheet-y:calc(var(--folder-travel) * -.3); --sheet-tilt:-2deg; }
.opportunity-folders[data-browse='0'] .opportunity-folder-sheet[data-folder-index='1'] { --sheet-y:calc(var(--folder-travel) * .25); --sheet-tilt:4deg; }
.opportunity-folders[data-browse='0'] .opportunity-folder-sheet[data-folder-index='2'],
.opportunity-folders[data-browse='1'] .opportunity-folder-sheet[data-folder-index='2'] { --sheet-y:calc(var(--folder-travel) * .45); --sheet-tilt:6deg; }
.opportunity-folders[data-browse='1'] .opportunity-folder-sheet[data-folder-index='0'],
.opportunity-folders[data-browse='2'] .opportunity-folder-sheet[data-folder-index='0'] { --sheet-y:calc(var(--folder-travel) * -.5); --sheet-tilt:-4deg; }
.opportunity-folders[data-browse='2'] .opportunity-folder-sheet[data-folder-index='1'] { --sheet-y:calc(var(--folder-travel) * -.7); --sheet-tilt:-3deg; }
.opportunity-folders[data-lift='0'] .opportunity-folder-sheet[data-folder-index='0'] .opportunity-folder-face,
.opportunity-folders[data-lift='1'] .opportunity-folder-sheet[data-folder-index='1'] .opportunity-folder-face,
.opportunity-folders[data-lift='2'] .opportunity-folder-sheet[data-folder-index='2'] .opportunity-folder-face { transform:translate3d(0,calc(var(--folder-travel) * -.7),0) scale(1.025); }
.opportunity-folders:has(.opportunity-folder-choice[data-folder-index='0']:focus-visible) .opportunity-folder-sheet[data-folder-index='0'] .opportunity-folder-face,
.opportunity-folders:has(.opportunity-folder-choice[data-folder-index='1']:focus-visible) .opportunity-folder-sheet[data-folder-index='1'] .opportunity-folder-face,
.opportunity-folders:has(.opportunity-folder-choice[data-folder-index='2']:focus-visible) .opportunity-folder-sheet[data-folder-index='2'] .opportunity-folder-face { border-color:#1a1a1a; }
@media(max-width:1180px) {
  .opportunity-layout { grid-template-columns:1fr; gap:28px; }
  .opportunity-copy { display:grid; grid-template-columns:1fr 1fr; gap:30px; align-items:center; }
  .opportunity-copy h2 { font-size:36px; }
  .opportunity-copy p { font-size:20px; margin:0; }
  .opportunity-folders { max-width:600px; }
}
@media(max-width:600px) {
  .opportunity-copy { display:block; }
  .opportunity-copy h2 { font-size:36px; max-width:20ch; }
  .opportunity-copy p { margin-top:24px; font-size:20px; max-width:32ch; }
  .opportunity-folders { min-height:520px; aspect-ratio:1.12; }
  .opportunity-folder-sheet[data-folder-index='0'], .opportunity-folder-choice[data-folder-index='0'] { left:8%; right:8%; }
  .opportunity-folder-sheet[data-folder-index='1'], .opportunity-folder-choice[data-folder-index='1'] { left:4%; right:4%; }
  .opportunity-folder-name { font-size:19px; padding-top:10px; }
  .opportunity-folder-note { margin-top:5px; padding-inline:12px; text-wrap:balance; }
  .opportunity-folder-sheet { border-radius:14px 14px 8px 8px; }
  .opportunity-folder-pocket { border-radius:0 0 14px 14px; }
}
@media(max-width:360px) {
  .opportunity-folders { min-height:640px; }
}
@media(prefers-reduced-motion:reduce) {
  .opportunity-folder-sheet, .opportunity-folder-face { transition:none; will-change:auto; }
  .opportunity-folder-hint:not([hidden]) { animation:none; }
}
